From 103b2533ef240645880647ff75240a3d020b8e37 Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 22 Oct 2024 16:35:53 +0000 Subject: [PATCH] Releasing version 2.97.0 Co-authored-by: Harsh Kumar --- CHANGELOG.md | 22 + lib/accessgovernancecp/package.json | 2 +- lib/adm/package.json | 2 +- lib/aianomalydetection/package.json | 2 +- lib/aidocument/package.json | 2 +- lib/ailanguage/package.json | 2 +- lib/aispeech/package.json | 2 +- lib/aivision/package.json | 2 +- lib/analytics/package.json | 2 +- lib/announcementsservice/package.json | 2 +- lib/apigateway/package.json | 2 +- lib/apmconfig/package.json | 2 +- lib/apmcontrolplane/package.json | 2 +- lib/apmsynthetics/package.json | 2 +- lib/apmtraces/package.json | 2 +- lib/appmgmtcontrol/package.json | 2 +- lib/artifacts/package.json | 2 +- lib/audit/package.json | 2 +- lib/autoscaling/package.json | 2 +- lib/bastion/package.json | 2 +- lib/bds/package.json | 2 +- lib/blockchain/package.json | 2 +- lib/budget/package.json | 2 +- lib/capacitymanagement/package.json | 2 +- lib/certificates/package.json | 2 +- lib/certificatesmanagement/package.json | 2 +- lib/cims/package.json | 2 +- lib/cloudbridge/lib/client.ts | 164 +- .../model/asset-source-credentials-type.ts | 1 + .../lib/model/asset-source-credentials.ts | 7 +- .../lib/model/asset-source-summary.ts | 10 + .../lib/model/asset-source-type.ts | 1 + lib/cloudbridge/lib/model/asset-source.ts | 7 + lib/cloudbridge/lib/model/asset-type.ts | 2 + lib/cloudbridge/lib/model/asset.ts | 14 + .../lib/model/aws-asset-source-summary.ts | 58 + lib/cloudbridge/lib/model/aws-asset-source.ts | 82 + lib/cloudbridge/lib/model/aws-ebs-asset.ts | 48 + .../lib/model/aws-ebs-properties.ts | 108 + lib/cloudbridge/lib/model/aws-ec2-asset.ts | 72 + .../lib/model/aws-ec2-properties.ts | 210 + .../lib/model/create-asset-details.ts | 20 + .../lib/model/create-asset-source-details.ts | 10 + .../model/create-aws-asset-source-details.ts | 88 + .../lib/model/create-aws-ebs-asset-details.ts | 55 + .../lib/model/create-aws-ec2-asset-details.ts | 79 + .../create-vm-ware-asset-source-details.ts | 2 +- .../model/create-vmware-vm-asset-details.ts | 8 +- lib/cloudbridge/lib/model/group-identifier.ts | 42 + .../import-inventory-via-assets-details.ts | 4 +- lib/cloudbridge/lib/model/index.ts | 52 +- .../instance-network-interface-association.ts | 54 + .../instance-network-interface-attachment.ts | 58 + .../lib/model/instance-network-interface.ts | 132 + .../lib/model/instance-private-ip-address.ts | 61 + lib/cloudbridge/lib/model/instance-state.ts | 42 + .../lib/model/monthly-cost-summary.ts | 42 + lib/cloudbridge/lib/model/operation-type.ts | 3 + lib/cloudbridge/lib/model/placement.ts | 66 + .../supported-cloud-region-collection.ts | 56 + .../supported-cloud-region-lifecycle-state.ts | 42 + .../model/supported-cloud-region-summary.ts | 60 + .../{update-plugin-details.ts => tag.ts} | 18 +- .../lib/model/update-asset-details.ts | 20 + .../lib/model/update-asset-source-details.ts | 16 +- .../model/update-aws-asset-source-details.ts | 80 + .../lib/model/update-aws-ebs-asset-details.ts | 55 + .../lib/model/update-aws-ec2-asset-details.ts | 79 + .../update-vm-ware-asset-source-details.ts | 6 +- lib/cloudbridge/lib/model/vm-asset.ts | 4 +- .../lib/model/vm-ware-asset-source-summary.ts | 2 +- .../lib/model/vm-ware-asset-source.ts | 3 +- lib/cloudbridge/lib/model/vmware-vm-asset.ts | 8 +- .../lib/model/volume-attachment.ts | 54 + .../lib/request/create-asset-request.ts | 5 +- .../request/create-asset-source-request.ts | 4 +- lib/cloudbridge/lib/request/index.ts | 4 +- .../list-supported-cloud-regions-request.ts | 56 + .../lib/request/update-asset-request.ts | 6 +- .../request/update-asset-source-request.ts | 4 +- lib/cloudbridge/lib/response/index.ts | 4 +- .../list-supported-cloud-regions-response.ts | 35 + lib/cloudbridge/package.json | 2 +- lib/cloudguard/package.json | 2 +- lib/cloudmigrations/package.json | 2 +- lib/clusterplacementgroups/package.json | 2 +- lib/common/package.json | 2 +- lib/computecloudatcustomer/package.json | 2 +- lib/computeinstanceagent/package.json | 2 +- lib/containerengine/package.json | 2 +- lib/containerinstances/package.json | 2 +- lib/core/lib/model/index.ts | 2 + .../virtual-circuit-redundancy-metadata.ts | 89 + lib/core/lib/model/virtual-circuit.ts | 11 + lib/core/package.json | 2 +- lib/dashboardservice/package.json | 2 +- ...onomous-database-encryption-key-details.ts | 86 + ...s-database-encryption-key-history-entry.ts | 59 + .../lib/model/autonomous-database-summary.ts | 28 + lib/database/lib/model/autonomous-database.ts | 28 + lib/database/lib/model/aws-key-details.ts | 66 + lib/database/lib/model/azure-key-details.ts | 58 + .../model/create-autonomous-database-base.ts | 14 + lib/database/lib/model/index.ts | 14 + lib/database/lib/model/oci-key-details.ts | 58 + lib/database/lib/model/okv-key-details.ts | 70 + .../lib/model/oracle-managed-key-details.ts | 54 + .../update-autonomous-database-details.ts | 14 + lib/database/package.json | 2 +- lib/databasemanagement/package.json | 2 +- lib/databasemigration/package.json | 2 +- lib/databasetools/package.json | 2 +- lib/datacatalog/package.json | 2 +- lib/dataflow/package.json | 2 +- lib/dataintegration/package.json | 2 +- lib/datalabelingservice/package.json | 2 +- lib/datalabelingservicedataplane/package.json | 2 +- lib/datasafe/package.json | 2 +- lib/datascience/lib/client.ts | 73 + .../lib/model/backup-operation-details.ts | 47 + lib/datascience/lib/model/backup-setting.ts | 47 + .../lib/model/create-model-details.ts | 16 + lib/datascience/lib/model/index.ts | 12 + .../lib/model/model-setting-action-state.ts | 40 + ...odel-setting-customer-notification-type.ts | 45 + lib/datascience/lib/model/model-summary.ts | 4 + lib/datascience/lib/model/model.ts | 34 + .../lib/model/retention-operation-details.ts | 59 + .../lib/model/retention-setting.ts | 47 + .../lib/model/update-model-details.ts | 16 + .../lib/model/work-request-operation-type.ts | 1 + lib/datascience/lib/request/index.ts | 2 + .../lib/request/list-work-requests-request.ts | 3 +- ...restore-archived-model-artifact-request.ts | 48 + lib/datascience/lib/response/index.ts | 2 + ...estore-archived-model-artifact-response.ts | 24 + lib/datascience/package.json | 2 +- lib/delegateaccesscontrol/package.json | 2 +- lib/demandsignal/package.json | 2 +- lib/desktops/package.json | 2 +- lib/devops/package.json | 2 +- lib/disasterrecovery/package.json | 2 +- lib/dns/package.json | 2 +- lib/dts/package.json | 2 +- lib/email/package.json | 2 +- lib/emaildataplane/package.json | 2 +- lib/emwarehouse/package.json | 2 +- lib/events/package.json | 2 +- lib/filestorage/lib/client.ts | 4574 ++++++++----- .../lib/model/create-export-details.ts | 16 + .../lib/model/create-file-system-details.ts | 26 +- ...eate-filesystem-snapshot-policy-details.ts | 16 + .../lib/model/create-mount-target-details.ts | 18 +- .../create-outbound-connector-details.ts | 26 +- .../lib/model/create-replication-details.ts | 26 +- .../lib/model/create-snapshot-details.ts | 26 +- lib/filestorage/lib/model/export-summary.ts | 26 +- lib/filestorage/lib/model/export.ts | 16 + .../lib/model/file-system-summary.ts | 16 + lib/filestorage/lib/model/file-system.ts | 16 + .../filesystem-snapshot-policy-summary.ts | 26 +- .../lib/model/filesystem-snapshot-policy.ts | 14 + lib/filestorage/lib/model/index.ts | 2 + .../lib/model/mount-target-summary.ts | 26 +- lib/filestorage/lib/model/mount-target.ts | 20 +- .../lib/model/outbound-connector-summary.ts | 26 +- .../lib/model/outbound-connector.ts | 26 +- .../lib/model/replication-summary.ts | 26 +- lib/filestorage/lib/model/replication.ts | 26 +- lib/filestorage/lib/model/resource-lock.ts | 68 + lib/filestorage/lib/model/snapshot-summary.ts | 26 +- lib/filestorage/lib/model/snapshot.ts | 26 +- .../lib/request/add-export-lock-request.ts | 44 + .../request/add-file-system-lock-request.ts | 44 + ...filesystem-snapshot-policy-lock-request.ts | 44 + .../request/add-mount-target-lock-request.ts | 44 + .../add-outbound-connector-lock-request.ts | 44 + .../request/add-replication-lock-request.ts | 44 + .../lib/request/add-snapshot-lock-request.ts | 44 + .../change-file-system-compartment-request.ts | 4 + ...tem-snapshot-policy-compartment-request.ts | 4 + ...change-mount-target-compartment-request.ts | 4 + ...-outbound-connector-compartment-request.ts | 4 + .../change-replication-compartment-request.ts | 4 + .../request/create-mount-target-request.ts | 4 + .../lib/request/delete-export-request.ts | 4 + .../lib/request/delete-file-system-request.ts | 4 + ...lete-filesystem-snapshot-policy-request.ts | 4 + .../request/delete-mount-target-request.ts | 4 + .../delete-outbound-connector-request.ts | 4 + .../lib/request/delete-replication-request.ts | 4 + .../delete-replication-target-request.ts | 4 + .../lib/request/delete-snapshot-request.ts | 4 + lib/filestorage/lib/request/index.ts | 28 + ...ause-filesystem-snapshot-policy-request.ts | 4 + .../lib/request/remove-export-lock-request.ts | 44 + .../remove-file-system-lock-request.ts | 44 + ...filesystem-snapshot-policy-lock-request.ts | 44 + .../remove-mount-target-lock-request.ts | 44 + .../remove-outbound-connector-lock-request.ts | 44 + .../remove-replication-lock-request.ts | 44 + .../request/remove-snapshot-lock-request.ts | 44 + ...ause-filesystem-snapshot-policy-request.ts | 4 + .../lib/request/update-export-request.ts | 4 + .../lib/request/update-file-system-request.ts | 4 + ...date-filesystem-snapshot-policy-request.ts | 4 + .../request/update-mount-target-request.ts | 4 + .../update-outbound-connector-request.ts | 4 + .../lib/request/update-replication-request.ts | 4 + .../lib/request/update-snapshot-request.ts | 4 + .../lib/response/add-export-lock-response.ts | 33 + .../response/add-file-system-lock-response.ts | 33 + ...ilesystem-snapshot-policy-lock-response.ts | 33 + .../add-mount-target-lock-response.ts | 33 + .../add-outbound-connector-lock-response.ts | 33 + .../response/add-replication-lock-response.ts | 33 + .../response/add-snapshot-lock-response.ts | 33 + lib/filestorage/lib/response/index.ts | 28 + .../response/remove-export-lock-response.ts | 33 + .../remove-file-system-lock-response.ts | 33 + ...ilesystem-snapshot-policy-lock-response.ts | 33 + .../remove-mount-target-lock-response.ts | 33 + ...remove-outbound-connector-lock-response.ts | 33 + .../remove-replication-lock-response.ts | 33 + .../response/remove-snapshot-lock-response.ts | 33 + lib/filestorage/package.json | 2 +- lib/fleetappsmanagement/index.ts | 3 +- lib/fleetappsmanagement/lib/client.ts | 5731 +++++++++++++---- .../lib/fleetappsmanagement-waiter.ts | 3 +- .../lib/fleetappsmanagementadmin-waiter.ts | 79 +- ...tappsmanagementmaintenancewindow-waiter.ts | 3 +- .../fleetappsmanagementoperations-waiter.ts | 22 +- .../lib/fleetappsmanagementrunbooks-waiter.ts | 3 +- .../action-group-based-user-action-details.ts | 61 + .../lib/model/action-group-details.ts | 17 +- .../lib/model/action-group.ts | 5 +- .../lib/model/action-type.ts | 3 +- .../lib/model/activity-resource-target.ts | 11 +- .../lib/model/announcement-collection.ts | 5 +- .../lib/model/announcement-sort-by.ts | 3 +- .../lib/model/announcement-summary.ts | 17 +- .../lib/model/api-based-execution-details.ts | 5 +- .../lib/model/artifact-details.ts | 68 + .../associated-fleet-credential-details.ts | 10 +- .../associated-fleet-property-details.ts | 9 +- .../associated-fleet-resource-details.ts | 9 +- .../model/associated-local-task-details.ts | 15 +- .../model/associated-scheduler-definition.ts | 7 +- .../model/associated-shared-task-details.ts | 7 +- .../lib/model/associated-task-details.ts | 3 +- .../lib/model/associations.ts | 17 +- .../model/check-resource-tagging-details.ts | 9 +- .../lib/model/compliance-detail-policy.ts | 73 + .../lib/model/compliance-detail-product.ts | 47 + .../lib/model/compliance-detail-resource.ts | 55 + .../lib/model/compliance-detail-target.ts | 47 + .../lib/model/compliance-level.ts | 39 + .../lib/model/compliance-patch-detail.ts | 72 + .../lib/model/compliance-policy-collection.ts | 57 + .../compliance-policy-rule-collection.ts | 57 + .../model/compliance-policy-rule-summary.ts | 150 + .../lib/model/compliance-policy-rule.ts | 166 + .../lib/model/compliance-policy-summary.ts | 93 + .../lib/model/compliance-policy.ts | 109 + ...ompliance-record-aggregation-collection.ts | 57 + .../model/compliance-record-aggregation.ts | 54 + .../lib/model/compliance-record-collection.ts | 57 + .../lib/model/compliance-record-dimension.ts | 43 + .../lib/model/compliance-record-summary.ts | 103 + .../lib/model/compliance-record.ts | 110 + .../model/compliance-report-patch-detail.ts | 13 +- .../lib/model/compliance-report-product.ts | 7 +- .../lib/model/compliance-report-resource.ts | 11 +- .../lib/model/compliance-report-target.ts | 11 +- .../lib/model/compliance-report.ts | 9 +- .../lib/model/compliance-rule-severity.ts | 41 + .../lib/model/compliance-state.ts | 5 +- .../lib/model/component-properties.ts | 42 +- .../lib/model/condition.ts | 15 +- .../lib/model/config-association-details.ts | 47 + .../lib/model/config-category-details.ts | 98 + .../lib/model/confirm-targets-details.ts | 5 +- .../lib/model/content-details.ts | 5 +- .../create-compliance-policy-rule-details.ts | 111 + .../model/create-fleet-credential-details.ts | 8 +- .../lib/model/create-fleet-details.ts | 47 +- .../model/create-fleet-property-details.ts | 9 +- .../model/create-fleet-resource-details.ts | 5 +- .../create-maintenance-window-details.ts | 22 +- .../lib/model/create-onboarding-details.ts | 11 +- .../lib/model/create-patch-details.ts | 111 + .../create-platform-configuration-details.ts | 73 + .../lib/model/create-property-details.ts | 9 +- .../lib/model/create-runbook-details.ts | 104 + .../create-scheduler-definition-details.ts | 3 +- .../lib/model/create-task-record-details.ts | 76 + .../credential-config-category-details.ts | 57 + .../lib/model/credential-details.ts | 5 +- .../credential-entity-specific-details.ts | 25 +- .../lib/model/dependent-patch-details.ts | 39 + lib/fleetappsmanagement/lib/model/details.ts | 15 +- .../lib/model/discovered-target.ts | 9 +- .../lib/model/enable-latest-policy-details.ts | 39 + .../lib/model/entity-execution-details.ts | 19 +- .../environment-config-category-details.ts | 58 + .../lib/model/execution-collection.ts | 5 +- .../lib/model/execution-details.ts | 5 +- .../lib/model/execution-summary.ts | 39 +- .../lib/model/execution-workflow-details.ts | 5 +- .../lib/model/execution.ts | 37 +- .../model/export-compliance-report-details.ts | 59 + .../lib/model/fleet-collection.ts | 3 +- .../lib/model/fleet-credential-collection.ts | 3 +- ...leet-credential-entity-specific-details.ts | 75 + .../lib/model/fleet-credential-summary.ts | 8 +- .../lib/model/fleet-credential.ts | 10 +- .../lib/model/fleet-product-collection.ts | 3 +- .../lib/model/fleet-product-summary.ts | 7 +- .../lib/model/fleet-property-collection.ts | 7 +- .../lib/model/fleet-property-summary.ts | 9 +- .../lib/model/fleet-property.ts | 15 +- .../lib/model/fleet-resource-collection.ts | 5 +- .../lib/model/fleet-resource-summary.ts | 21 +- .../lib/model/fleet-resource.ts | 23 +- .../lib/model/fleet-summary.ts | 17 +- .../lib/model/fleet-target-collection.ts | 3 +- .../lib/model/fleet-target-summary.ts | 21 +- .../lib/model/fleet-target.ts | 21 +- lib/fleetappsmanagement/lib/model/fleet.ts | 39 +- .../generate-compliance-report-details.ts | 9 +- .../lib/model/generic-artifact-details.ts | 59 + .../lib/model/generic-artifact.ts | 49 + lib/fleetappsmanagement/lib/model/group.ts | 14 +- lib/fleetappsmanagement/lib/model/index.ts | 179 +- .../lib/model/input-argument.ts | 5 +- .../lib/model/input-parameter.ts | 3 +- .../model/inventory-resource-collection.ts | 3 +- .../lib/model/inventory-resource-summary.ts | 9 +- .../lib/model/job-activity.ts | 27 +- .../lib/model/job-status.ts | 4 +- .../key-encryption-credential-details.ts | 9 +- .../lib/model/life-cycle-action-group-type.ts | 3 +- .../model/maintenance-window-collection.ts | 5 +- .../lib/model/maintenance-window-summary.ts | 20 +- .../lib/model/maintenance-window-type.ts | 3 +- .../lib/model/maintenance-window.ts | 22 +- .../lib/model/manage-job-execution-details.ts | 51 + .../lib/model/manage-settings-details.ts | 39 + .../managed-entity-aggregation-collection.ts | 57 + .../lib/model/managed-entity-aggregation.ts | 54 + .../lib/model/managed-entity-dimension.ts | 39 + .../lib/model/managed-entity.ts | 39 + .../lib/model/notification-preferences.ts | 11 +- .../object-storage-bucket-content-details.ts | 7 +- .../lib/model/onboarding-collection.ts | 7 +- .../lib/model/onboarding-policy-collection.ts | 7 +- .../lib/model/onboarding-policy-summary.ts | 5 +- .../lib/model/onboarding-summary.ts | 38 +- .../lib/model/onboarding.ts | 40 +- .../lib/model/operation-runbook.ts | 3 +- .../lib/model/operation-status.ts | 3 +- .../lib/model/operation-type.ts | 19 +- lib/fleetappsmanagement/lib/model/os-type.ts | 3 +- lib/fleetappsmanagement/lib/model/outcome.ts | 11 +- .../lib/model/output-variable-details.ts | 5 +- .../model/output-variable-input-argument.ts | 5 +- .../lib/model/output-variable-mapping.ts | 9 +- .../lib/model/patch-collection.ts | 57 + .../model/patch-level-selection-details.ts | 70 + .../lib/model/patch-name-selection-details.ts | 57 + .../lib/model/patch-product.ts | 43 + .../patch-release-date-selection-details.ts | 62 + .../lib/model/patch-selection-details.ts | 78 + .../lib/model/patch-severity.ts | 41 + .../lib/model/patch-summary.ts | 133 + .../patch-type-config-category-details.ts | 57 + .../lib/model/patch-type.ts | 39 + lib/fleetappsmanagement/lib/model/patch.ts | 172 + .../lib/model/pause-details.ts | 68 + .../model/plain-text-credential-details.ts | 5 +- .../platform-configuration-collection.ts | 57 + .../model/platform-configuration-summary.ts | 119 + .../lib/model/platform-configuration.ts | 142 + .../platform-specific-artifact-details.ts | 72 + .../lib/model/platform-specific-artifact.ts | 77 + .../lib/model/preferences.ts | 7 +- .../model/product-config-category-details.ts | 118 + ...t-stack-as-product-sub-category-details.ts | 108 + .../product-stack-config-category-details.ts | 85 + ...duct-stack-generic-sub-category-details.ts | 59 + .../product-stack-sub-category-details.ts | 68 + .../lib/model/product-version-details.ts | 46 + .../lib/model/properties.ts | 3 +- .../lib/model/property-collection.ts | 7 +- .../lib/model/property-summary.ts | 11 +- lib/fleetappsmanagement/lib/model/property.ts | 13 +- .../lib/model/publish-runbook-details.ts | 39 + .../request-resource-validation-details.ts | 9 +- .../model/request-target-discovery-details.ts | 9 +- .../lib/model/resource-collection.ts | 57 + ...urce-credential-entity-specific-details.ts | 63 + .../lib/model/resource-summary.ts | 87 + .../lib/model/resource-tag-check-details.ts | 7 +- .../lib/model/resource-tag-enablement-info.ts | 7 +- .../lib/model/rollback-workflow-details.ts | 72 + lib/fleetappsmanagement/lib/model/rule.ts | 19 +- .../lib/model/runbook-collection.ts | 5 +- .../lib/model/runbook-summary.ts | 9 +- lib/fleetappsmanagement/lib/model/runbook.ts | 18 +- lib/fleetappsmanagement/lib/model/schedule.ts | 3 +- .../lib/model/scheduled-fleet-collection.ts | 3 +- .../lib/model/scheduled-fleet-summary.ts | 3 +- .../model/scheduler-definition-collection.ts | 3 +- .../lib/model/scheduler-definition-summary.ts | 3 +- .../lib/model/scheduler-definition.ts | 19 +- .../scheduler-job-aggregation-collection.ts | 57 + .../lib/model/scheduler-job-aggregation.ts | 54 + .../lib/model/scheduler-job-collection.ts | 5 +- .../lib/model/scheduler-job-dimension.ts | 39 + .../lib/model/scheduler-job-summary.ts | 22 +- .../lib/model/scheduler-job.ts | 26 +- lib/fleetappsmanagement/lib/model/scope.ts | 5 +- .../model/script-based-execution-details.ts | 28 +- .../lib/model/selection-criteria.ts | 11 +- .../lib/model/selection.ts | 3 +- .../lib/model/set-default-runbook-details.ts | 39 + .../lib/model/sort-order.ts | 3 +- .../model/step-based-user-action-details.ts | 68 + .../lib/model/step-collection.ts | 57 + .../lib/model/step-summary.ts | 73 + .../lib/model/string-input-argument.ts | 3 +- ...rget-credential-entity-specific-details.ts | 9 +- .../lib/model/target-resource.ts | 5 +- .../lib/model/task-argument.ts | 3 +- .../lib/model/task-execution-type.ts | 3 +- .../model/task-notification-preferences.ts | 47 + .../lib/model/task-record-collection.ts | 3 +- .../lib/model/task-record-summary.ts | 3 +- .../lib/model/task-record.ts | 5 +- .../lib/model/task-scope.ts | 3 +- .../lib/model/task-variable.ts | 7 +- lib/fleetappsmanagement/lib/model/task.ts | 3 +- .../lib/model/time-based-pause-details.ts | 53 + .../update-compliance-policy-rule-details.ts | 95 + .../model/update-fleet-credential-details.ts | 8 +- .../lib/model/update-fleet-details.ts | 7 +- .../model/update-fleet-property-details.ts | 7 +- .../model/update-fleet-resource-details.ts | 5 +- .../update-maintenance-window-details.ts | 20 +- .../lib/model/update-onboarding-details.ts | 43 + .../lib/model/update-patch-details.ts | 105 + .../update-platform-configuration-details.ts | 69 + .../lib/model/update-property-details.ts | 9 +- .../lib/model/update-runbook-details.ts | 100 + .../update-scheduler-definition-details.ts | 3 +- .../lib/model/update-scheduler-job-details.ts | 7 +- .../lib/model/update-task-record-details.ts | 72 + .../model/user-action-based-pause-details.ts | 50 + .../lib/model/user-action-details.ts | 81 + .../lib/model/value-type.ts | 3 +- lib/fleetappsmanagement/lib/model/variable.ts | 43 + .../model/vault-secret-credential-details.ts | 3 +- .../model/work-request-error-collection.ts | 3 +- .../lib/model/work-request-error.ts | 3 +- .../work-request-log-entry-collection.ts | 3 +- .../lib/model/work-request-log-entry.ts | 3 +- .../work-request-resource-metadata-key.ts | 3 +- .../lib/model/work-request-resource.ts | 3 +- .../model/work-request-summary-collection.ts | 3 +- .../lib/model/work-request-summary.ts | 3 +- .../lib/model/work-request.ts | 3 +- .../lib/model/workflow-component.ts | 3 +- .../lib/model/workflow-group-component.ts | 7 +- .../lib/model/workflow-group.ts | 5 +- .../lib/model/workflow-task-component.ts | 3 +- .../request/check-resource-tagging-request.ts | 2 +- .../lib/request/confirm-targets-request.ts | 2 +- .../create-compliance-policy-rule-request.ts | 38 + .../create-fleet-credential-request.ts | 2 +- .../request/create-fleet-property-request.ts | 2 +- .../request/create-fleet-resource-request.ts | 2 +- .../lib/request/create-onboarding-request.ts | 2 +- .../lib/request/create-patch-request.ts | 38 + .../create-platform-configuration-request.ts | 38 + .../lib/request/create-runbook-request.ts | 38 + .../lib/request/create-task-record-request.ts | 38 + .../delete-compliance-policy-rule-request.ts | 38 + .../delete-fleet-credential-request.ts | 2 +- .../request/delete-fleet-property-request.ts | 4 +- .../lib/request/delete-fleet-request.ts | 2 +- .../request/delete-fleet-resource-request.ts | 2 +- .../lib/request/delete-onboarding-request.ts | 38 + .../lib/request/delete-patch-request.ts | 38 + .../delete-platform-configuration-request.ts | 38 + .../lib/request/delete-runbook-request.ts | 38 + .../lib/request/delete-task-record-request.ts | 38 + .../request/enable-latest-policy-request.ts | 51 + .../export-compliance-report-request.ts | 47 + .../generate-compliance-report-request.ts | 4 +- .../request/get-compliance-policy-request.ts | 29 + .../get-compliance-policy-rule-request.ts | 29 + .../request/get-compliance-report-request.ts | 4 +- .../request/get-fleet-credential-request.ts | 2 +- .../lib/request/get-fleet-property-request.ts | 4 +- .../lib/request/get-fleet-request.ts | 2 +- .../lib/request/get-fleet-resource-request.ts | 2 +- .../lib/request/get-onboarding-request.ts | 29 + .../lib/request/get-patch-request.ts | 29 + .../get-platform-configuration-request.ts | 29 + lib/fleetappsmanagement/lib/request/index.ts | 79 +- .../lib/request/list-announcements-request.ts | 6 +- .../list-compliance-policies-request.ts | 67 + .../list-compliance-policy-rules-request.ts | 75 + .../list-compliance-records-request.ts | 77 + .../request/list-fleet-credentials-request.ts | 16 +- .../request/list-fleet-products-request.ts | 4 +- .../request/list-fleet-properties-request.ts | 6 +- .../request/list-fleet-resources-request.ts | 8 +- .../lib/request/list-fleet-targets-request.ts | 6 +- .../lib/request/list-fleets-request.ts | 12 +- .../list-inventory-resources-request.ts | 10 +- .../list-maintenance-windows-request.ts | 8 +- .../lib/request/list-onboardings-request.ts | 2 +- .../lib/request/list-patches-request.ts | 93 + .../list-platform-configurations-request.ts | 69 + .../lib/request/list-properties-request.ts | 6 +- .../lib/request/list-resources-request.ts | 72 + .../lib/request/list-runbooks-request.ts | 12 +- .../list-scheduler-definitions-request.ts | 12 +- .../request/list-scheduler-jobs-request.ts | 6 +- .../lib/request/list-steps-request.ts | 72 + .../lib/request/list-targets-request.ts | 2 +- .../request/manage-job-execution-request.ts | 51 + .../lib/request/manage-settings-request.ts | 51 + .../lib/request/publish-runbook-request.ts | 47 + .../request-resource-validation-request.ts | 4 +- .../request-target-discovery-request.ts | 4 +- .../request/set-default-runbook-request.ts | 47 + ...marize-compliance-record-counts-request.ts | 41 + ...summarize-managed-entity-counts-request.ts | 41 + .../summarize-scheduler-job-counts-request.ts | 41 + .../update-compliance-policy-rule-request.ts | 42 + .../update-fleet-credential-request.ts | 4 +- .../request/update-fleet-property-request.ts | 4 +- .../lib/request/update-fleet-request.ts | 2 +- .../request/update-fleet-resource-request.ts | 2 +- .../update-maintenance-window-request.ts | 2 +- .../lib/request/update-onboarding-request.ts} | 16 +- .../lib/request/update-patch-request.ts | 42 + .../update-platform-configuration-request.ts | 42 + .../lib/request/update-runbook-request.ts | 42 + .../lib/request/update-task-record-request.ts | 42 + .../create-compliance-policy-rule-response.ts | 46 + .../lib/response/create-patch-response.ts} | 8 +- .../create-platform-configuration-response.ts | 33 + .../lib/response/create-runbook-response.ts | 46 + .../response/create-task-record-response.ts | 33 + .../delete-compliance-policy-rule-response.ts | 29 + .../response/delete-onboarding-response.ts | 29 + .../lib/response/delete-patch-response.ts | 29 + .../delete-platform-configuration-response.ts | 29 + .../lib/response/delete-runbook-response.ts | 29 + .../response/delete-task-record-response.ts | 29 + .../response/enable-latest-policy-response.ts | 24 + .../export-compliance-report-response.ts | 42 + .../get-compliance-policy-response.ts | 33 + .../get-compliance-policy-rule-response.ts | 33 + .../lib/response/get-onboarding-response.ts | 33 + .../lib/response/get-patch-response.ts | 33 + .../get-platform-configuration-response.ts | 33 + lib/fleetappsmanagement/lib/response/index.ts | 79 +- .../list-compliance-policies-response.ts | 35 + .../list-compliance-policy-rules-response.ts | 35 + .../list-compliance-records-response.ts | 35 + .../lib/response/list-patches-response.ts | 35 + .../list-platform-configurations-response.ts | 35 + .../lib/response/list-resources-response.ts | 35 + .../lib/response/list-steps-response.ts | 35 + .../response/manage-job-execution-response.ts | 29 + .../lib/response/manage-settings-response.ts | 24 + .../lib/response/publish-runbook-response.ts | 29 + .../response/set-default-runbook-response.ts | 33 + ...arize-compliance-record-counts-response.ts | 35 + ...ummarize-managed-entity-counts-response.ts | 35 + ...summarize-scheduler-job-counts-response.ts | 35 + .../update-compliance-policy-rule-response.ts | 29 + .../response/update-onboarding-response.ts | 29 + .../lib/response/update-patch-response.ts | 29 + .../update-platform-configuration-response.ts | 29 + .../lib/response/update-runbook-response.ts | 29 + .../response/update-task-record-response.ts | 29 + lib/fleetappsmanagement/package.json | 2 +- lib/fleetsoftwareupdate/package.json | 2 +- lib/functions/package.json | 2 +- lib/fusionapps/package.json | 2 +- lib/generativeai/package.json | 2 +- lib/generativeaiagent/package.json | 2 +- lib/generativeaiagentruntime/package.json | 2 +- lib/generativeaiinference/package.json | 2 +- lib/genericartifactscontent/package.json | 2 +- lib/globallydistributeddatabase/package.json | 2 +- lib/goldengate/package.json | 2 +- lib/governancerulescontrolplane/package.json | 2 +- lib/healthchecks/package.json | 2 +- lib/identity/package.json | 2 +- lib/identitydataplane/package.json | 2 +- lib/identitydomains/lib/model/auth-token.ts | 14 + .../lib/model/customer-secret-key.ts | 11 + .../lib/model/o-auth2-client-credential.ts | 13 + .../lib/model/smtp-credential.ts | 12 + lib/identitydomains/package.json | 2 +- lib/integration/package.json | 2 +- lib/jms/package.json | 2 +- lib/jmsjavadownloads/package.json | 2 +- lib/keymanagement/package.json | 2 +- lib/licensemanager/package.json | 2 +- lib/limits/package.json | 2 +- lib/loadbalancer/package.json | 2 +- lib/lockbox/package.json | 2 +- lib/loganalytics/package.json | 2 +- lib/logging/package.json | 2 +- lib/loggingingestion/package.json | 2 +- lib/loggingsearch/package.json | 2 +- lib/managementagent/package.json | 2 +- lib/managementdashboard/package.json | 2 +- lib/marketplace/package.json | 2 +- lib/marketplaceprivateoffer/package.json | 2 +- lib/marketplacepublisher/package.json | 2 +- lib/mediaservices/package.json | 2 +- lib/monitoring/package.json | 2 +- lib/mysql/package.json | 2 +- lib/networkfirewall/package.json | 2 +- lib/networkloadbalancer/package.json | 2 +- lib/nosql/package.json | 2 +- lib/objectstorage/package.json | 2 +- lib/oce/package.json | 2 +- lib/ocicontrolcenter/package.json | 2 +- lib/ocvp/package.json | 2 +- lib/oda/package.json | 2 +- lib/onesubscription/package.json | 2 +- lib/ons/package.json | 2 +- lib/opa/package.json | 2 +- lib/opensearch/package.json | 2 +- lib/operatoraccesscontrol/package.json | 2 +- lib/opsi/lib/client.ts | 88 + .../model/host-configuration-metric-group.ts | 7 + lib/opsi/lib/model/host-containers.ts | 14 +- ...insight-resource-statistics-aggregation.ts | 1 + lib/opsi/lib/model/host-io-statistics.ts | 53 + .../model/host-performance-metric-group.ts | 7 - .../lib/model/host-resource-statistics.ts | 7 + lib/opsi/lib/model/index.ts | 8 + .../lib/model/io-usage-trend-aggregation.ts | 63 + lib/opsi/lib/model/io-usage-trend.ts | 61 + ...insight-host-recommendation-aggregation.ts | 1 + ...t-io-usage-trend-aggregation-collection.ts | 74 + ...e-capacity-trend-aggregation-collection.ts | 1 + ...ght-resource-forecast-trend-aggregation.ts | 1 + ...ource-statistics-aggregation-collection.ts | 1 + ...host-insight-resource-usage-aggregation.ts | 1 + ...urce-usage-trend-aggregation-collection.ts | 1 + ...esource-utilization-insight-aggregation.ts | 1 + lib/opsi/lib/request/index.ts | 2 + ...ize-host-insight-io-usage-trend-request.ts | 97 + lib/opsi/lib/response/index.ts | 2 + ...ze-host-insight-io-usage-trend-response.ts | 35 + lib/opsi/package.json | 2 +- lib/optimizer/package.json | 2 +- lib/osmanagement/package.json | 2 +- lib/osmanagementhub/package.json | 2 +- lib/ospgateway/package.json | 2 +- lib/osubbillingschedule/package.json | 2 +- lib/osuborganizationsubscription/package.json | 2 +- lib/osubsubscription/package.json | 2 +- lib/osubusage/package.json | 2 +- lib/psql/package.json | 2 +- lib/queue/package.json | 2 +- lib/recovery/package.json | 2 +- lib/redis/package.json | 2 +- lib/resourcemanager/package.json | 2 +- lib/resourcescheduler/package.json | 2 +- lib/resourcesearch/package.json | 2 +- lib/rover/package.json | 2 +- lib/sch/package.json | 2 +- lib/secrets/package.json | 2 +- lib/securityattribute/package.json | 2 +- lib/servicecatalog/package.json | 2 +- lib/servicemanagerproxy/package.json | 2 +- lib/servicemesh/package.json | 2 +- lib/stackmonitoring/package.json | 2 +- lib/streaming/package.json | 2 +- lib/tenantmanagercontrolplane/package.json | 2 +- lib/threatintelligence/package.json | 2 +- lib/usage/package.json | 2 +- lib/usageapi/package.json | 2 +- lib/vault/package.json | 2 +- lib/vbsinst/package.json | 2 +- lib/visualbuilder/package.json | 2 +- lib/vnmonitoring/package.json | 2 +- lib/vulnerabilityscanning/package.json | 2 +- lib/waa/package.json | 2 +- lib/waas/package.json | 2 +- lib/waf/package.json | 2 +- lib/workrequests/package.json | 2 +- lib/zpr/package.json | 2 +- package.json | 2 +- 706 files changed, 23558 insertions(+), 4063 deletions(-) create mode 100644 lib/cloudbridge/lib/model/aws-asset-source-summary.ts create mode 100644 lib/cloudbridge/lib/model/aws-asset-source.ts create mode 100644 lib/cloudbridge/lib/model/aws-ebs-asset.ts create mode 100644 lib/cloudbridge/lib/model/aws-ebs-properties.ts create mode 100644 lib/cloudbridge/lib/model/aws-ec2-asset.ts create mode 100644 lib/cloudbridge/lib/model/aws-ec2-properties.ts create mode 100644 lib/cloudbridge/lib/model/create-aws-asset-source-details.ts create mode 100644 lib/cloudbridge/lib/model/create-aws-ebs-asset-details.ts create mode 100644 lib/cloudbridge/lib/model/create-aws-ec2-asset-details.ts create mode 100644 lib/cloudbridge/lib/model/group-identifier.ts create mode 100644 lib/cloudbridge/lib/model/instance-network-interface-association.ts create mode 100644 lib/cloudbridge/lib/model/instance-network-interface-attachment.ts create mode 100644 lib/cloudbridge/lib/model/instance-network-interface.ts create mode 100644 lib/cloudbridge/lib/model/instance-private-ip-address.ts create mode 100644 lib/cloudbridge/lib/model/instance-state.ts create mode 100644 lib/cloudbridge/lib/model/monthly-cost-summary.ts create mode 100644 lib/cloudbridge/lib/model/placement.ts create mode 100644 lib/cloudbridge/lib/model/supported-cloud-region-collection.ts create mode 100644 lib/cloudbridge/lib/model/supported-cloud-region-lifecycle-state.ts create mode 100644 lib/cloudbridge/lib/model/supported-cloud-region-summary.ts rename lib/cloudbridge/lib/model/{update-plugin-details.ts => tag.ts} (69%) create mode 100644 lib/cloudbridge/lib/model/update-aws-asset-source-details.ts create mode 100644 lib/cloudbridge/lib/model/update-aws-ebs-asset-details.ts create mode 100644 lib/cloudbridge/lib/model/update-aws-ec2-asset-details.ts create mode 100644 lib/cloudbridge/lib/model/volume-attachment.ts create mode 100644 lib/cloudbridge/lib/request/list-supported-cloud-regions-request.ts create mode 100644 lib/cloudbridge/lib/response/list-supported-cloud-regions-response.ts create mode 100644 lib/core/lib/model/virtual-circuit-redundancy-metadata.ts create mode 100644 lib/database/lib/model/autonomous-database-encryption-key-details.ts create mode 100644 lib/database/lib/model/autonomous-database-encryption-key-history-entry.ts create mode 100644 lib/database/lib/model/aws-key-details.ts create mode 100644 lib/database/lib/model/azure-key-details.ts create mode 100644 lib/database/lib/model/oci-key-details.ts create mode 100644 lib/database/lib/model/okv-key-details.ts create mode 100644 lib/database/lib/model/oracle-managed-key-details.ts create mode 100644 lib/datascience/lib/model/backup-operation-details.ts create mode 100644 lib/datascience/lib/model/backup-setting.ts create mode 100644 lib/datascience/lib/model/model-setting-action-state.ts create mode 100644 lib/datascience/lib/model/model-setting-customer-notification-type.ts create mode 100644 lib/datascience/lib/model/retention-operation-details.ts create mode 100644 lib/datascience/lib/model/retention-setting.ts create mode 100644 lib/datascience/lib/request/restore-archived-model-artifact-request.ts create mode 100644 lib/datascience/lib/response/restore-archived-model-artifact-response.ts create mode 100644 lib/filestorage/lib/model/resource-lock.ts create mode 100644 lib/filestorage/lib/request/add-export-lock-request.ts create mode 100644 lib/filestorage/lib/request/add-file-system-lock-request.ts create mode 100644 lib/filestorage/lib/request/add-filesystem-snapshot-policy-lock-request.ts create mode 100644 lib/filestorage/lib/request/add-mount-target-lock-request.ts create mode 100644 lib/filestorage/lib/request/add-outbound-connector-lock-request.ts create mode 100644 lib/filestorage/lib/request/add-replication-lock-request.ts create mode 100644 lib/filestorage/lib/request/add-snapshot-lock-request.ts create mode 100644 lib/filestorage/lib/request/remove-export-lock-request.ts create mode 100644 lib/filestorage/lib/request/remove-file-system-lock-request.ts create mode 100644 lib/filestorage/lib/request/remove-filesystem-snapshot-policy-lock-request.ts create mode 100644 lib/filestorage/lib/request/remove-mount-target-lock-request.ts create mode 100644 lib/filestorage/lib/request/remove-outbound-connector-lock-request.ts create mode 100644 lib/filestorage/lib/request/remove-replication-lock-request.ts create mode 100644 lib/filestorage/lib/request/remove-snapshot-lock-request.ts create mode 100644 lib/filestorage/lib/response/add-export-lock-response.ts create mode 100644 lib/filestorage/lib/response/add-file-system-lock-response.ts create mode 100644 lib/filestorage/lib/response/add-filesystem-snapshot-policy-lock-response.ts create mode 100644 lib/filestorage/lib/response/add-mount-target-lock-response.ts create mode 100644 lib/filestorage/lib/response/add-outbound-connector-lock-response.ts create mode 100644 lib/filestorage/lib/response/add-replication-lock-response.ts create mode 100644 lib/filestorage/lib/response/add-snapshot-lock-response.ts create mode 100644 lib/filestorage/lib/response/remove-export-lock-response.ts create mode 100644 lib/filestorage/lib/response/remove-file-system-lock-response.ts create mode 100644 lib/filestorage/lib/response/remove-filesystem-snapshot-policy-lock-response.ts create mode 100644 lib/filestorage/lib/response/remove-mount-target-lock-response.ts create mode 100644 lib/filestorage/lib/response/remove-outbound-connector-lock-response.ts create mode 100644 lib/filestorage/lib/response/remove-replication-lock-response.ts create mode 100644 lib/filestorage/lib/response/remove-snapshot-lock-response.ts create mode 100644 lib/fleetappsmanagement/lib/model/action-group-based-user-action-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/artifact-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-detail-policy.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-detail-product.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-detail-resource.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-detail-target.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-level.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-patch-detail.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-policy-collection.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-policy-rule-collection.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-policy-rule-summary.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-policy-rule.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-policy-summary.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-policy.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-record-aggregation-collection.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-record-aggregation.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-record-collection.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-record-dimension.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-record-summary.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-record.ts create mode 100644 lib/fleetappsmanagement/lib/model/compliance-rule-severity.ts create mode 100644 lib/fleetappsmanagement/lib/model/config-association-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/config-category-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/create-compliance-policy-rule-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/create-patch-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/create-platform-configuration-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/create-runbook-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/create-task-record-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/credential-config-category-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/dependent-patch-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/enable-latest-policy-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/environment-config-category-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/export-compliance-report-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/fleet-credential-entity-specific-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/generic-artifact-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/generic-artifact.ts create mode 100644 lib/fleetappsmanagement/lib/model/manage-job-execution-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/manage-settings-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/managed-entity-aggregation-collection.ts create mode 100644 lib/fleetappsmanagement/lib/model/managed-entity-aggregation.ts create mode 100644 lib/fleetappsmanagement/lib/model/managed-entity-dimension.ts create mode 100644 lib/fleetappsmanagement/lib/model/managed-entity.ts create mode 100644 lib/fleetappsmanagement/lib/model/patch-collection.ts create mode 100644 lib/fleetappsmanagement/lib/model/patch-level-selection-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/patch-name-selection-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/patch-product.ts create mode 100644 lib/fleetappsmanagement/lib/model/patch-release-date-selection-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/patch-selection-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/patch-severity.ts create mode 100644 lib/fleetappsmanagement/lib/model/patch-summary.ts create mode 100644 lib/fleetappsmanagement/lib/model/patch-type-config-category-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/patch-type.ts create mode 100644 lib/fleetappsmanagement/lib/model/patch.ts create mode 100644 lib/fleetappsmanagement/lib/model/pause-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/platform-configuration-collection.ts create mode 100644 lib/fleetappsmanagement/lib/model/platform-configuration-summary.ts create mode 100644 lib/fleetappsmanagement/lib/model/platform-configuration.ts create mode 100644 lib/fleetappsmanagement/lib/model/platform-specific-artifact-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/platform-specific-artifact.ts create mode 100644 lib/fleetappsmanagement/lib/model/product-config-category-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/product-stack-as-product-sub-category-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/product-stack-config-category-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/product-stack-generic-sub-category-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/product-stack-sub-category-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/product-version-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/publish-runbook-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/resource-collection.ts create mode 100644 lib/fleetappsmanagement/lib/model/resource-credential-entity-specific-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/resource-summary.ts create mode 100644 lib/fleetappsmanagement/lib/model/rollback-workflow-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/scheduler-job-aggregation-collection.ts create mode 100644 lib/fleetappsmanagement/lib/model/scheduler-job-aggregation.ts create mode 100644 lib/fleetappsmanagement/lib/model/scheduler-job-dimension.ts create mode 100644 lib/fleetappsmanagement/lib/model/set-default-runbook-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/step-based-user-action-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/step-collection.ts create mode 100644 lib/fleetappsmanagement/lib/model/step-summary.ts create mode 100644 lib/fleetappsmanagement/lib/model/task-notification-preferences.ts create mode 100644 lib/fleetappsmanagement/lib/model/time-based-pause-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/update-compliance-policy-rule-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/update-onboarding-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/update-patch-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/update-platform-configuration-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/update-runbook-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/update-task-record-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/user-action-based-pause-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/user-action-details.ts create mode 100644 lib/fleetappsmanagement/lib/model/variable.ts create mode 100644 lib/fleetappsmanagement/lib/request/create-compliance-policy-rule-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/create-patch-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/create-platform-configuration-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/create-runbook-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/create-task-record-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/delete-compliance-policy-rule-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/delete-onboarding-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/delete-patch-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/delete-platform-configuration-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/delete-runbook-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/delete-task-record-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/enable-latest-policy-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/export-compliance-report-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/get-compliance-policy-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/get-compliance-policy-rule-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/get-onboarding-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/get-patch-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/get-platform-configuration-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/list-compliance-policies-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/list-compliance-policy-rules-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/list-compliance-records-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/list-patches-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/list-platform-configurations-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/list-resources-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/list-steps-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/manage-job-execution-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/manage-settings-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/publish-runbook-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/set-default-runbook-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/summarize-compliance-record-counts-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/summarize-managed-entity-counts-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/summarize-scheduler-job-counts-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/update-compliance-policy-rule-request.ts rename lib/{cloudbridge/lib/request/update-plugin-request.ts => fleetappsmanagement/lib/request/update-onboarding-request.ts} (72%) create mode 100644 lib/fleetappsmanagement/lib/request/update-patch-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/update-platform-configuration-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/update-runbook-request.ts create mode 100644 lib/fleetappsmanagement/lib/request/update-task-record-request.ts create mode 100644 lib/fleetappsmanagement/lib/response/create-compliance-policy-rule-response.ts rename lib/{cloudbridge/lib/response/update-plugin-response.ts => fleetappsmanagement/lib/response/create-patch-response.ts} (85%) create mode 100644 lib/fleetappsmanagement/lib/response/create-platform-configuration-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/create-runbook-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/create-task-record-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/delete-compliance-policy-rule-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/delete-onboarding-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/delete-patch-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/delete-platform-configuration-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/delete-runbook-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/delete-task-record-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/enable-latest-policy-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/export-compliance-report-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/get-compliance-policy-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/get-compliance-policy-rule-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/get-onboarding-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/get-patch-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/get-platform-configuration-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/list-compliance-policies-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/list-compliance-policy-rules-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/list-compliance-records-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/list-patches-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/list-platform-configurations-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/list-resources-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/list-steps-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/manage-job-execution-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/manage-settings-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/publish-runbook-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/set-default-runbook-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/summarize-compliance-record-counts-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/summarize-managed-entity-counts-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/summarize-scheduler-job-counts-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/update-compliance-policy-rule-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/update-onboarding-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/update-patch-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/update-platform-configuration-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/update-runbook-response.ts create mode 100644 lib/fleetappsmanagement/lib/response/update-task-record-response.ts create mode 100644 lib/opsi/lib/model/host-io-statistics.ts create mode 100644 lib/opsi/lib/model/io-usage-trend-aggregation.ts create mode 100644 lib/opsi/lib/model/io-usage-trend.ts create mode 100644 lib/opsi/lib/model/summarize-host-insight-io-usage-trend-aggregation-collection.ts create mode 100644 lib/opsi/lib/request/summarize-host-insight-io-usage-trend-request.ts create mode 100644 lib/opsi/lib/response/summarize-host-insight-io-usage-trend-response.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 9546444a0a..8797cb71f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,28 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 2.97.0 - 2024-10-22 +### Added +- Support for resource locking in the File storage service +- Support for customer managed keys via Azure key vault and Amazon Web Services key vault in the Database service +- Support for generated tokens on create secret operations in the Identity Domains service +- Support for creating and updating Amazon Web Services asset-sources, EC2 and EBS assets in the Cloud Bridge service +- Support for listing Amazon Web Services regions which are available for discovery and migration in the Cloud Bridge service +- Support for model backup retention and restore in the Data Science service +- Support for host capacity planning for host IO metrics in the Operations Insight service +- Support for FastConnect redundancy in the Compute service +- Support for create, publish, clone and delete operations on runbooks in the Fleet Application Management service +- Support for platform configurations and metadata management in the Fleet Application Management service +- Support for management of compliance policy rules in the Fleet Application Management service +- Support for compliance report details based on compliance policy in the Fleet Application Management service +- Support for administrative settings like auto discovery frequency in the Fleet Application Management service + +### Breaking Changes +- The field `discoveryScheduleId` was removed from the model `UpdateVmWareAssetSourceDetails` in the Cloud Bridge service +- The operation `UpdatePlugin` was removed from the `OcbAgentSvcClient` client in the Cloud Bridge service +- The enum value `HOST_CONTAINERS` was removed from the enum `HostPerformanceMetricGroup` in the model `HostPerformanceMetricGroup` in the Operations Insight service +- The parent class of model `HostContainers` was changed from `HostPerformanceMetricGroup` to `HostConfigurationMetricGroup` in the Operations Insight service + ## 2.96.0 - 2024-10-15 ### Added - Support for open id connect discovery in the Oracle Kubernetes Engine service diff --git a/lib/accessgovernancecp/package.json b/lib/accessgovernancecp/package.json index 339440711c..c39264bf89 100644 --- a/lib/accessgovernancecp/package.json +++ b/lib/accessgovernancecp/package.json @@ -1,6 +1,6 @@ { "name": "oci-accessgovernancecp", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Access Governance Cp Service", "repository": { "type": "git", diff --git a/lib/adm/package.json b/lib/adm/package.json index 99a4a0c12c..a99007e092 100644 --- a/lib/adm/package.json +++ b/lib/adm/package.json @@ -1,6 +1,6 @@ { "name": "oci-adm", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Adm Service", "repository": { "type": "git", diff --git a/lib/aianomalydetection/package.json b/lib/aianomalydetection/package.json index 074ba75ad2..265f3b6f7e 100644 --- a/lib/aianomalydetection/package.json +++ b/lib/aianomalydetection/package.json @@ -1,6 +1,6 @@ { "name": "oci-aianomalydetection", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Ai Anomaly Detection Service", "repository": { "type": "git", diff --git a/lib/aidocument/package.json b/lib/aidocument/package.json index ad31222318..f3963e2f6a 100644 --- a/lib/aidocument/package.json +++ b/lib/aidocument/package.json @@ -1,6 +1,6 @@ { "name": "oci-aidocument", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Ai Document Service", "repository": { "type": "git", diff --git a/lib/ailanguage/package.json b/lib/ailanguage/package.json index 27c1e57b49..d289a829d7 100644 --- a/lib/ailanguage/package.json +++ b/lib/ailanguage/package.json @@ -1,6 +1,6 @@ { "name": "oci-ailanguage", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Ai Language Service", "repository": { "type": "git", diff --git a/lib/aispeech/package.json b/lib/aispeech/package.json index bd4f832ad6..d8f4664b2f 100644 --- a/lib/aispeech/package.json +++ b/lib/aispeech/package.json @@ -1,6 +1,6 @@ { "name": "oci-aispeech", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Ai Speech Service", "repository": { "type": "git", diff --git a/lib/aivision/package.json b/lib/aivision/package.json index ce7ebf138a..4e780b4a94 100644 --- a/lib/aivision/package.json +++ b/lib/aivision/package.json @@ -1,6 +1,6 @@ { "name": "oci-aivision", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Ai Vision Service", "repository": { "type": "git", diff --git a/lib/analytics/package.json b/lib/analytics/package.json index c598012379..e4280097fa 100644 --- a/lib/analytics/package.json +++ b/lib/analytics/package.json @@ -1,6 +1,6 @@ { "name": "oci-analytics", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Analytics Service", "repository": { "type": "git", diff --git a/lib/announcementsservice/package.json b/lib/announcementsservice/package.json index 7dce920d8e..b52e388aa8 100644 --- a/lib/announcementsservice/package.json +++ b/lib/announcementsservice/package.json @@ -1,6 +1,6 @@ { "name": "oci-announcementsservice", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Announcement Service", "repository": { "type": "git", diff --git a/lib/apigateway/package.json b/lib/apigateway/package.json index d760a652cf..041d0d2d91 100644 --- a/lib/apigateway/package.json +++ b/lib/apigateway/package.json @@ -1,6 +1,6 @@ { "name": "oci-apigateway", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for API gateway service", "repository": { "type": "git", diff --git a/lib/apmconfig/package.json b/lib/apmconfig/package.json index f42474e08d..675c82eec5 100644 --- a/lib/apmconfig/package.json +++ b/lib/apmconfig/package.json @@ -1,6 +1,6 @@ { "name": "oci-apmconfig", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Apm Config Service", "repository": { "type": "git", diff --git a/lib/apmcontrolplane/package.json b/lib/apmcontrolplane/package.json index ce0fcd4dcd..7feabf6b3a 100644 --- a/lib/apmcontrolplane/package.json +++ b/lib/apmcontrolplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-apmcontrolplane", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Apm Control Plane Service", "repository": { "type": "git", diff --git a/lib/apmsynthetics/package.json b/lib/apmsynthetics/package.json index e77c234f6f..fba104bbf2 100644 --- a/lib/apmsynthetics/package.json +++ b/lib/apmsynthetics/package.json @@ -1,6 +1,6 @@ { "name": "oci-apmsynthetics", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Apm Synthetics Service", "repository": { "type": "git", diff --git a/lib/apmtraces/package.json b/lib/apmtraces/package.json index 405c5a8b43..f3e5764d71 100644 --- a/lib/apmtraces/package.json +++ b/lib/apmtraces/package.json @@ -1,6 +1,6 @@ { "name": "oci-apmtraces", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Apm Traces Service", "repository": { "type": "git", diff --git a/lib/appmgmtcontrol/package.json b/lib/appmgmtcontrol/package.json index 02639fbf9a..4bee68bd65 100644 --- a/lib/appmgmtcontrol/package.json +++ b/lib/appmgmtcontrol/package.json @@ -1,6 +1,6 @@ { "name": "oci-appmgmtcontrol", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Appmgmt Control Service", "repository": { "type": "git", diff --git a/lib/artifacts/package.json b/lib/artifacts/package.json index 67c5d47d41..729430cb96 100644 --- a/lib/artifacts/package.json +++ b/lib/artifacts/package.json @@ -1,6 +1,6 @@ { "name": "oci-artifacts", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Artifacts Service", "repository": { "type": "git", diff --git a/lib/audit/package.json b/lib/audit/package.json index 08dd581edc..9eb43e08a6 100644 --- a/lib/audit/package.json +++ b/lib/audit/package.json @@ -1,6 +1,6 @@ { "name": "oci-audit", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Audit Service", "repository": { "type": "git", diff --git a/lib/autoscaling/package.json b/lib/autoscaling/package.json index f7e086afa7..96fe6b30e7 100644 --- a/lib/autoscaling/package.json +++ b/lib/autoscaling/package.json @@ -1,6 +1,6 @@ { "name": "oci-autoscaling", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Autoscaling Service", "repository": { "type": "git", diff --git a/lib/bastion/package.json b/lib/bastion/package.json index c4a4e2d7fa..6d7eda36e0 100644 --- a/lib/bastion/package.json +++ b/lib/bastion/package.json @@ -1,6 +1,6 @@ { "name": "oci-bastion", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Bastion Service", "repository": { "type": "git", diff --git a/lib/bds/package.json b/lib/bds/package.json index c424f81622..4619fa8965 100644 --- a/lib/bds/package.json +++ b/lib/bds/package.json @@ -1,6 +1,6 @@ { "name": "oci-bds", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for BDS Service", "repository": { "type": "git", diff --git a/lib/blockchain/package.json b/lib/blockchain/package.json index 0ba083aa07..4a28ab8599 100644 --- a/lib/blockchain/package.json +++ b/lib/blockchain/package.json @@ -1,6 +1,6 @@ { "name": "oci-blockchain", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Blockchain Service", "repository": { "type": "git", diff --git a/lib/budget/package.json b/lib/budget/package.json index bdf2a42cb7..71716a045b 100644 --- a/lib/budget/package.json +++ b/lib/budget/package.json @@ -1,6 +1,6 @@ { "name": "oci-budget", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Budget Service", "repository": { "type": "git", diff --git a/lib/capacitymanagement/package.json b/lib/capacitymanagement/package.json index 75514bb1fd..5864c811ed 100644 --- a/lib/capacitymanagement/package.json +++ b/lib/capacitymanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-capacitymanagement", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Capacity Management Service", "repository": { "type": "git", diff --git a/lib/certificates/package.json b/lib/certificates/package.json index e8e455d2a0..770124dd6f 100644 --- a/lib/certificates/package.json +++ b/lib/certificates/package.json @@ -1,6 +1,6 @@ { "name": "oci-certificates", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Certificates Service", "repository": { "type": "git", diff --git a/lib/certificatesmanagement/package.json b/lib/certificatesmanagement/package.json index d3f6c59823..582cc0aaaf 100644 --- a/lib/certificatesmanagement/package.json +++ b/lib/certificatesmanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-certificatesmanagement", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Certificates Management Service", "repository": { "type": "git", diff --git a/lib/cims/package.json b/lib/cims/package.json index 19a74f4c89..fff8a37bbc 100644 --- a/lib/cims/package.json +++ b/lib/cims/package.json @@ -1,6 +1,6 @@ { "name": "oci-cims", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Cims ", "repository": { "type": "git", diff --git a/lib/cloudbridge/lib/client.ts b/lib/cloudbridge/lib/client.ts index 5af857ec24..56d4681e8b 100644 --- a/lib/cloudbridge/lib/client.ts +++ b/lib/cloudbridge/lib/client.ts @@ -1661,6 +1661,88 @@ export class DiscoveryClient { } } + /** + * Returns a list of supported cloud regions related to AssetSourceTypeParam. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListSupportedCloudRegionsRequest + * @return ListSupportedCloudRegionsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/cloudbridge/ListSupportedCloudRegions.ts.html |here} to see how to use ListSupportedCloudRegions API. + */ + public async listSupportedCloudRegions( + listSupportedCloudRegionsRequest: requests.ListSupportedCloudRegionsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DiscoveryClient#listSupportedCloudRegions."); + const operationName = "listSupportedCloudRegions"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "assetSourceType": listSupportedCloudRegionsRequest.assetSourceType, + "nameContains": listSupportedCloudRegionsRequest.nameContains, + "sortBy": listSupportedCloudRegionsRequest.sortBy, + "sortOrder": listSupportedCloudRegionsRequest.sortOrder, + "limit": listSupportedCloudRegionsRequest.limit, + "page": listSupportedCloudRegionsRequest.page + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listSupportedCloudRegionsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listSupportedCloudRegionsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/supportedCloudRegions", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "supportedCloudRegionCollection", + bodyModel: model.SupportedCloudRegionCollection, + type: "model.SupportedCloudRegionCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + /** * Initiates the process of asset metadata synchronization with the related asset source. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. @@ -5259,86 +5341,4 @@ export class OcbAgentSvcClient { throw err; } } - - /** - * Updates the plugin. - * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param UpdatePluginRequest - * @return UpdatePluginResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/cloudbridge/UpdatePlugin.ts.html |here} to see how to use UpdatePlugin API. - */ - public async updatePlugin( - updatePluginRequest: requests.UpdatePluginRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation OcbAgentSvcClient#updatePlugin."); - const operationName = "updatePlugin"; - const apiReferenceLink = ""; - const pathParams = { - "{agentId}": updatePluginRequest.agentId, - "{pluginName}": updatePluginRequest.pluginName - }; - - const queryParams = {}; - - let headerParams = { - "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": updatePluginRequest.ifMatch, - "opc-request-id": updatePluginRequest.opcRequestId - }; - - const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; - const retrier = GenericRetrier.createPreferredRetrier( - this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - updatePluginRequest.retryConfiguration, - specRetryConfiguration - ); - if (this.logger) retrier.logger = this.logger; - const request = await composeRequest({ - baseEndpoint: this._endpoint, - defaultHeaders: this._defaultHeaders, - path: "/agents/{agentId}/plugins/{pluginName}", - method: "PUT", - bodyContent: common.ObjectSerializer.serialize( - updatePluginRequest.updatePluginDetails, - "UpdatePluginDetails", - model.UpdatePluginDetails.getJsonObj - ), - pathParams: pathParams, - headerParams: headerParams, - queryParams: queryParams - }); - try { - const response = await retrier.makeServiceCall( - this._httpClient, - request, - this.targetService, - operationName, - apiReferenceLink - ); - const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "plugin", - bodyModel: model.Plugin, - type: "model.Plugin", - responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, - { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", - dataType: "string" - } - ] - }); - - return sdkResponse; - } catch (err) { - throw err; - } - } } diff --git a/lib/cloudbridge/lib/model/asset-source-credentials-type.ts b/lib/cloudbridge/lib/model/asset-source-credentials-type.ts index f5467e1b61..fa1f70e65c 100644 --- a/lib/cloudbridge/lib/model/asset-source-credentials-type.ts +++ b/lib/cloudbridge/lib/model/asset-source-credentials-type.ts @@ -19,6 +19,7 @@ import common = require("oci-common"); **/ export enum AssetSourceCredentialsType { Basic = "BASIC", + ApiKey = "API_KEY", /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/lib/cloudbridge/lib/model/asset-source-credentials.ts b/lib/cloudbridge/lib/model/asset-source-credentials.ts index 6f3f57c035..340de7fa70 100644 --- a/lib/cloudbridge/lib/model/asset-source-credentials.ts +++ b/lib/cloudbridge/lib/model/asset-source-credentials.ts @@ -24,8 +24,11 @@ export interface AssetSourceCredentials { "type": model.AssetSourceCredentialsType; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the secret in a vault. - * If the the type of the credentials is BASIC{@code , the secret must contain the username and - * password in JSON format, which is in the form of }{ \"username\": \"\", \"password\": \"\" }. + * If the type of the credentials is {@code BASIC}, the secret must contain the username and + * password in JSON format, which is in the form of {@code { \"username\": \"\", \"password\": \"\" }}. + * If the type of the credentials is {@code API_KEY}, the secret must contain the accessKeyId and + * secretAccessKey in JSON format, + * which is in the form of {@code { \"accessKeyId\": \"\", \"secretAccessKey\": \"\" }}. * */ "secretId": string; diff --git a/lib/cloudbridge/lib/model/asset-source-summary.ts b/lib/cloudbridge/lib/model/asset-source-summary.ts index 3564208b81..30d5178cff 100644 --- a/lib/cloudbridge/lib/model/asset-source-summary.ts +++ b/lib/cloudbridge/lib/model/asset-source-summary.ts @@ -96,6 +96,11 @@ export namespace AssetSourceSummary { (jsonObj), true ); + case "AWS": + return model.AwsAssetSourceSummary.getJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); } @@ -112,6 +117,11 @@ export namespace AssetSourceSummary { (jsonObj), true ); + case "AWS": + return model.AwsAssetSourceSummary.getDeserializedJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); } diff --git a/lib/cloudbridge/lib/model/asset-source-type.ts b/lib/cloudbridge/lib/model/asset-source-type.ts index 7ae989ea4b..5b5f2d1cbd 100644 --- a/lib/cloudbridge/lib/model/asset-source-type.ts +++ b/lib/cloudbridge/lib/model/asset-source-type.ts @@ -19,6 +19,7 @@ import common = require("oci-common"); **/ export enum AssetSourceType { Vmware = "VMWARE", + Aws = "AWS", /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/lib/cloudbridge/lib/model/asset-source.ts b/lib/cloudbridge/lib/model/asset-source.ts index bcf807ef7d..72312e1bb3 100644 --- a/lib/cloudbridge/lib/model/asset-source.ts +++ b/lib/cloudbridge/lib/model/asset-source.ts @@ -100,6 +100,8 @@ export namespace AssetSource { (jsonObj), true ); + case "AWS": + return model.AwsAssetSource.getJsonObj((jsonObj), true); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); } @@ -116,6 +118,11 @@ export namespace AssetSource { (jsonObj), true ); + case "AWS": + return model.AwsAssetSource.getDeserializedJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); } diff --git a/lib/cloudbridge/lib/model/asset-type.ts b/lib/cloudbridge/lib/model/asset-type.ts index 78bac974d8..dafdf3d03e 100644 --- a/lib/cloudbridge/lib/model/asset-type.ts +++ b/lib/cloudbridge/lib/model/asset-type.ts @@ -20,6 +20,8 @@ import common = require("oci-common"); export enum AssetType { VmwareVm = "VMWARE_VM", Vm = "VM", + AwsEc2 = "AWS_EC2", + AwsEbs = "AWS_EBS", /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/lib/cloudbridge/lib/model/asset.ts b/lib/cloudbridge/lib/model/asset.ts index bde647e313..1c3f6a7787 100644 --- a/lib/cloudbridge/lib/model/asset.ts +++ b/lib/cloudbridge/lib/model/asset.ts @@ -99,8 +99,12 @@ export namespace Asset { if (obj && "assetType" in obj && obj.assetType) { switch (obj.assetType) { + case "AWS_EC2": + return model.AwsEc2Asset.getJsonObj((jsonObj), true); case "VMWARE_VM": return model.VmwareVmAsset.getJsonObj((jsonObj), true); + case "AWS_EBS": + return model.AwsEbsAsset.getJsonObj((jsonObj), true); case "VM": return model.VmAsset.getJsonObj((jsonObj), true); default: @@ -114,11 +118,21 @@ export namespace Asset { if (obj && "assetType" in obj && obj.assetType) { switch (obj.assetType) { + case "AWS_EC2": + return model.AwsEc2Asset.getDeserializedJsonObj( + (jsonObj), + true + ); case "VMWARE_VM": return model.VmwareVmAsset.getDeserializedJsonObj( (jsonObj), true ); + case "AWS_EBS": + return model.AwsEbsAsset.getDeserializedJsonObj( + (jsonObj), + true + ); case "VM": return model.VmAsset.getDeserializedJsonObj((jsonObj), true); default: diff --git a/lib/cloudbridge/lib/model/aws-asset-source-summary.ts b/lib/cloudbridge/lib/model/aws-asset-source-summary.ts new file mode 100644 index 0000000000..1dbf6b117b --- /dev/null +++ b/lib/cloudbridge/lib/model/aws-asset-source-summary.ts @@ -0,0 +1,58 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of an AWS asset source provided in the list. + */ +export interface AwsAssetSourceSummary extends model.AssetSourceSummary { + /** + * AWS region information, from where the resources are discovered. + */ + "awsRegion": string; + /** + * The key of customer's aws account to be discovered/migrated. + */ + "awsAccountKey": string; + + "type": string; +} + +export namespace AwsAssetSourceSummary { + export function getJsonObj(obj: AwsAssetSourceSummary, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AssetSourceSummary.getJsonObj(obj) as AwsAssetSourceSummary)), + ...{} + }; + + return jsonObj; + } + export const type = "AWS"; + export function getDeserializedJsonObj( + obj: AwsAssetSourceSummary, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AssetSourceSummary.getDeserializedJsonObj(obj) as AwsAssetSourceSummary)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/aws-asset-source.ts b/lib/cloudbridge/lib/model/aws-asset-source.ts new file mode 100644 index 0000000000..cc4182180f --- /dev/null +++ b/lib/cloudbridge/lib/model/aws-asset-source.ts @@ -0,0 +1,82 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * AWS asset source. Used for discovery of EC2 instances and EBS volumes registered for the AWS account. + * + */ +export interface AwsAssetSource extends model.AssetSource { + "discoveryCredentials": model.AssetSourceCredentials; + "replicationCredentials"?: model.AssetSourceCredentials; + /** + * AWS region information, from where the resources are discovered. + */ + "awsRegion": string; + /** + * The key of customer's aws account to be discovered/migrated. + */ + "awsAccountKey": string; + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + */ + "areHistoricalMetricsCollected"?: boolean; + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + */ + "areRealtimeMetricsCollected"?: boolean; + /** + * Flag indicating whether cost data collection is enabled for assets, originating from this asset source. + */ + "isCostInformationCollected"?: boolean; + + "type": string; +} + +export namespace AwsAssetSource { + export function getJsonObj(obj: AwsAssetSource, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.AssetSource.getJsonObj(obj) as AwsAssetSource)), + ...{ + "discoveryCredentials": obj.discoveryCredentials + ? model.AssetSourceCredentials.getJsonObj(obj.discoveryCredentials) + : undefined, + "replicationCredentials": obj.replicationCredentials + ? model.AssetSourceCredentials.getJsonObj(obj.replicationCredentials) + : undefined + } + }; + + return jsonObj; + } + export const type = "AWS"; + export function getDeserializedJsonObj(obj: AwsAssetSource, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AssetSource.getDeserializedJsonObj(obj) as AwsAssetSource)), + ...{ + "discoveryCredentials": obj.discoveryCredentials + ? model.AssetSourceCredentials.getDeserializedJsonObj(obj.discoveryCredentials) + : undefined, + "replicationCredentials": obj.replicationCredentials + ? model.AssetSourceCredentials.getDeserializedJsonObj(obj.replicationCredentials) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/aws-ebs-asset.ts b/lib/cloudbridge/lib/model/aws-ebs-asset.ts new file mode 100644 index 0000000000..73ee14eb4b --- /dev/null +++ b/lib/cloudbridge/lib/model/aws-ebs-asset.ts @@ -0,0 +1,48 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * AWS EBS type of asset. + */ +export interface AwsEbsAsset extends model.Asset { + "awsEbs": model.AwsEbsProperties; + + "assetType": string; +} + +export namespace AwsEbsAsset { + export function getJsonObj(obj: AwsEbsAsset, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Asset.getJsonObj(obj) as AwsEbsAsset)), + ...{ + "awsEbs": obj.awsEbs ? model.AwsEbsProperties.getJsonObj(obj.awsEbs) : undefined + } + }; + + return jsonObj; + } + export const assetType = "AWS_EBS"; + export function getDeserializedJsonObj(obj: AwsEbsAsset, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Asset.getDeserializedJsonObj(obj) as AwsEbsAsset)), + ...{ + "awsEbs": obj.awsEbs ? model.AwsEbsProperties.getDeserializedJsonObj(obj.awsEbs) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/aws-ebs-properties.ts b/lib/cloudbridge/lib/model/aws-ebs-properties.ts new file mode 100644 index 0000000000..15029ebc32 --- /dev/null +++ b/lib/cloudbridge/lib/model/aws-ebs-properties.ts @@ -0,0 +1,108 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * AWS EBS volume related properties. + */ +export interface AwsEbsProperties { + /** + * Information about the volume attachments. + */ + "attachments"?: Array; + /** + * The Availability Zone for the volume. + */ + "availabilityZone"?: string; + /** + * Indicates whether the volume is encrypted. + */ + "isEncrypted": boolean; + /** + * The number of I/O operations per second. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "iops"?: number; + /** + * Indicates whether Amazon EBS Multi-Attach is enabled. + */ + "isMultiAttachEnabled": boolean; + /** + * The size of the volume, in GiBs. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "sizeInGiBs": number; + /** + * The volume state. + */ + "status"?: string; + /** + * Any tags assigned to the volume. + */ + "tags"?: Array; + /** + * The throughput that the volume supports, in MiB/s. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "throughput"?: number; + /** + * The ID of the volume. + */ + "volumeKey": string; + /** + * The volume type. + */ + "volumeType": string; +} + +export namespace AwsEbsProperties { + export function getJsonObj(obj: AwsEbsProperties): object { + const jsonObj = { + ...obj, + ...{ + "attachments": obj.attachments + ? obj.attachments.map(item => { + return model.VolumeAttachment.getJsonObj(item); + }) + : undefined, + + "tags": obj.tags + ? obj.tags.map(item => { + return model.Tag.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: AwsEbsProperties): object { + const jsonObj = { + ...obj, + ...{ + "attachments": obj.attachments + ? obj.attachments.map(item => { + return model.VolumeAttachment.getDeserializedJsonObj(item); + }) + : undefined, + + "tags": obj.tags + ? obj.tags.map(item => { + return model.Tag.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/aws-ec2-asset.ts b/lib/cloudbridge/lib/model/aws-ec2-asset.ts new file mode 100644 index 0000000000..8ade400b95 --- /dev/null +++ b/lib/cloudbridge/lib/model/aws-ec2-asset.ts @@ -0,0 +1,72 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * AWS EC2 type of asset. + */ +export interface AwsEc2Asset extends model.Asset { + "compute": model.ComputeProperties; + "vm": model.VmProperties; + "awsEc2": model.AwsEc2Properties; + "awsEc2Cost"?: model.MonthlyCostSummary; + "attachedEbsVolumesCost"?: model.MonthlyCostSummary; + + "assetType": string; +} + +export namespace AwsEc2Asset { + export function getJsonObj(obj: AwsEc2Asset, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Asset.getJsonObj(obj) as AwsEc2Asset)), + ...{ + "compute": obj.compute ? model.ComputeProperties.getJsonObj(obj.compute) : undefined, + "vm": obj.vm ? model.VmProperties.getJsonObj(obj.vm) : undefined, + "awsEc2": obj.awsEc2 ? model.AwsEc2Properties.getJsonObj(obj.awsEc2) : undefined, + "awsEc2Cost": obj.awsEc2Cost + ? model.MonthlyCostSummary.getJsonObj(obj.awsEc2Cost) + : undefined, + "attachedEbsVolumesCost": obj.attachedEbsVolumesCost + ? model.MonthlyCostSummary.getJsonObj(obj.attachedEbsVolumesCost) + : undefined + } + }; + + return jsonObj; + } + export const assetType = "AWS_EC2"; + export function getDeserializedJsonObj(obj: AwsEc2Asset, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Asset.getDeserializedJsonObj(obj) as AwsEc2Asset)), + ...{ + "compute": obj.compute + ? model.ComputeProperties.getDeserializedJsonObj(obj.compute) + : undefined, + "vm": obj.vm ? model.VmProperties.getDeserializedJsonObj(obj.vm) : undefined, + "awsEc2": obj.awsEc2 + ? model.AwsEc2Properties.getDeserializedJsonObj(obj.awsEc2) + : undefined, + "awsEc2Cost": obj.awsEc2Cost + ? model.MonthlyCostSummary.getDeserializedJsonObj(obj.awsEc2Cost) + : undefined, + "attachedEbsVolumesCost": obj.attachedEbsVolumesCost + ? model.MonthlyCostSummary.getDeserializedJsonObj(obj.attachedEbsVolumesCost) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/aws-ec2-properties.ts b/lib/cloudbridge/lib/model/aws-ec2-properties.ts new file mode 100644 index 0000000000..7742744c63 --- /dev/null +++ b/lib/cloudbridge/lib/model/aws-ec2-properties.ts @@ -0,0 +1,210 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * AWS virtual machine related properties. + */ +export interface AwsEc2Properties { + /** + * The architecture of the image. + */ + "architecture": string; + /** + * The boot mode of the instance. + */ + "bootMode"?: string; + /** + * The ID of the Capacity Reservation. + */ + "capacityReservationKey"?: string; + /** + * Indicates if the elastic inference accelerators attached to an instance + */ + "areElasticInferenceAcceleratorsPresent"?: boolean; + /** + * Indicates whether the instance is enabled for AWS Nitro Enclaves. + */ + "isEnclaveOptions"?: boolean; + /** + * Indicates whether the instance is enabled for hibernation. + */ + "isHibernationOptions"?: boolean; + /** + * The ID of the AMI used to launch the instance. + */ + "imageKey"?: string; + /** + * The ID of the instance. + */ + "instanceKey": string; + /** + * Indicates whether this is a Spot Instance or a Scheduled Instance. + */ + "instanceLifecycle"?: string; + /** + * The instance type. + */ + "instanceType": string; + /** + * The public IPv4 address, or the Carrier IP address assigned to the instance. + */ + "ipAddress"?: string; + /** + * The IPv6 address assigned to the instance. + */ + "ipv6Address"?: string; + /** + * The kernel associated with this instance, if applicable. + */ + "kernelKey"?: string; + /** + * The time the instance was launched. + */ + "timeLaunch"?: Date; + /** + * The license configurations for the instance. + */ + "licenses"?: Array; + /** + * Provides information on the recovery and maintenance options of your instance. + */ + "maintenanceOptions"?: string; + /** + * The monitoring for the instance. + */ + "monitoring"?: string; + /** + * The network interfaces for the instance. + */ + "networkInterfaces"?: Array; + "placement"?: model.Placement; + /** + * (IPv4 only) The private DNS hostname name assigned to the instance. + */ + "privateDnsName"?: string; + /** + * The private IPv4 address assigned to the instance. + */ + "privateIpAddress"?: string; + /** + * The device name of the root device volume. + */ + "rootDeviceName": string; + /** + * The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume. + */ + "rootDeviceType"?: string; + /** + * The security groups for the instance. + */ + "securityGroups"?: Array; + /** + * Indicates whether source/destination checking is enabled. + */ + "isSourceDestCheck"?: boolean; + /** + * If the request is a Spot Instance request, this value will be true. + */ + "isSpotInstance"?: boolean; + /** + * Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled. + */ + "sriovNetSupport"?: string; + "state": model.InstanceState; + /** + * EC2-VPC The ID of the subnet in which the instance is running. + */ + "subnetKey"?: string; + /** + * Any tags assigned to the instance. + */ + "tags"?: Array; + /** + * If the instance is configured for NitroTPM support, the value is v2.0. + */ + "tpmSupport"?: string; + /** + * The virtualization type of the instance. + */ + "virtualizationType"?: string; + /** + * EC2-VPC The ID of the VPC in which the instance is running. + */ + "vpcKey"?: string; +} + +export namespace AwsEc2Properties { + export function getJsonObj(obj: AwsEc2Properties): object { + const jsonObj = { + ...obj, + ...{ + "networkInterfaces": obj.networkInterfaces + ? obj.networkInterfaces.map(item => { + return model.InstanceNetworkInterface.getJsonObj(item); + }) + : undefined, + "placement": obj.placement ? model.Placement.getJsonObj(obj.placement) : undefined, + + "securityGroups": obj.securityGroups + ? obj.securityGroups.map(item => { + return model.GroupIdentifier.getJsonObj(item); + }) + : undefined, + + "state": obj.state ? model.InstanceState.getJsonObj(obj.state) : undefined, + + "tags": obj.tags + ? obj.tags.map(item => { + return model.Tag.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: AwsEc2Properties): object { + const jsonObj = { + ...obj, + ...{ + "networkInterfaces": obj.networkInterfaces + ? obj.networkInterfaces.map(item => { + return model.InstanceNetworkInterface.getDeserializedJsonObj(item); + }) + : undefined, + "placement": obj.placement + ? model.Placement.getDeserializedJsonObj(obj.placement) + : undefined, + + "securityGroups": obj.securityGroups + ? obj.securityGroups.map(item => { + return model.GroupIdentifier.getDeserializedJsonObj(item); + }) + : undefined, + + "state": obj.state ? model.InstanceState.getDeserializedJsonObj(obj.state) : undefined, + + "tags": obj.tags + ? obj.tags.map(item => { + return model.Tag.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/create-asset-details.ts b/lib/cloudbridge/lib/model/create-asset-details.ts index 2ebb5cddbb..ece80cbf64 100644 --- a/lib/cloudbridge/lib/model/create-asset-details.ts +++ b/lib/cloudbridge/lib/model/create-asset-details.ts @@ -66,11 +66,21 @@ export namespace CreateAssetDetails { if (obj && "assetType" in obj && obj.assetType) { switch (obj.assetType) { + case "AWS_EBS": + return model.CreateAwsEbsAssetDetails.getJsonObj( + (jsonObj), + true + ); case "VMWARE_VM": return model.CreateVmwareVmAssetDetails.getJsonObj( (jsonObj), true ); + case "AWS_EC2": + return model.CreateAwsEc2AssetDetails.getJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.assetType}`); } @@ -82,11 +92,21 @@ export namespace CreateAssetDetails { if (obj && "assetType" in obj && obj.assetType) { switch (obj.assetType) { + case "AWS_EBS": + return model.CreateAwsEbsAssetDetails.getDeserializedJsonObj( + (jsonObj), + true + ); case "VMWARE_VM": return model.CreateVmwareVmAssetDetails.getDeserializedJsonObj( (jsonObj), true ); + case "AWS_EC2": + return model.CreateAwsEc2AssetDetails.getDeserializedJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.assetType}`); } diff --git a/lib/cloudbridge/lib/model/create-asset-source-details.ts b/lib/cloudbridge/lib/model/create-asset-source-details.ts index b53f22794e..8ebcfd9c32 100644 --- a/lib/cloudbridge/lib/model/create-asset-source-details.ts +++ b/lib/cloudbridge/lib/model/create-asset-source-details.ts @@ -81,6 +81,11 @@ export namespace CreateAssetSourceDetails { (jsonObj), true ); + case "AWS": + return model.CreateAwsAssetSourceDetails.getJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); } @@ -97,6 +102,11 @@ export namespace CreateAssetSourceDetails { (jsonObj), true ); + case "AWS": + return model.CreateAwsAssetSourceDetails.getDeserializedJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); } diff --git a/lib/cloudbridge/lib/model/create-aws-asset-source-details.ts b/lib/cloudbridge/lib/model/create-aws-asset-source-details.ts new file mode 100644 index 0000000000..41553ea8e4 --- /dev/null +++ b/lib/cloudbridge/lib/model/create-aws-asset-source-details.ts @@ -0,0 +1,88 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * AWS asset source creation request. + */ +export interface CreateAwsAssetSourceDetails extends model.CreateAssetSourceDetails { + "discoveryCredentials": model.AssetSourceCredentials; + "replicationCredentials"?: model.AssetSourceCredentials; + /** + * AWS region information, from where the resources are discovered. + */ + "awsRegion": string; + /** + * The key of customer's aws account to be discovered/migrated. + */ + "awsAccountKey": string; + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + */ + "areHistoricalMetricsCollected"?: boolean; + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + */ + "areRealtimeMetricsCollected"?: boolean; + /** + * Flag indicating whether cost data collection is enabled for assets, originating from this asset source. + */ + "isCostInformationCollected"?: boolean; + + "type": string; +} + +export namespace CreateAwsAssetSourceDetails { + export function getJsonObj(obj: CreateAwsAssetSourceDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateAssetSourceDetails.getJsonObj(obj) as CreateAwsAssetSourceDetails)), + ...{ + "discoveryCredentials": obj.discoveryCredentials + ? model.AssetSourceCredentials.getJsonObj(obj.discoveryCredentials) + : undefined, + "replicationCredentials": obj.replicationCredentials + ? model.AssetSourceCredentials.getJsonObj(obj.replicationCredentials) + : undefined + } + }; + + return jsonObj; + } + export const type = "AWS"; + export function getDeserializedJsonObj( + obj: CreateAwsAssetSourceDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateAssetSourceDetails.getDeserializedJsonObj( + obj + ) as CreateAwsAssetSourceDetails)), + ...{ + "discoveryCredentials": obj.discoveryCredentials + ? model.AssetSourceCredentials.getDeserializedJsonObj(obj.discoveryCredentials) + : undefined, + "replicationCredentials": obj.replicationCredentials + ? model.AssetSourceCredentials.getDeserializedJsonObj(obj.replicationCredentials) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/create-aws-ebs-asset-details.ts b/lib/cloudbridge/lib/model/create-aws-ebs-asset-details.ts new file mode 100644 index 0000000000..96deb158b0 --- /dev/null +++ b/lib/cloudbridge/lib/model/create-aws-ebs-asset-details.ts @@ -0,0 +1,55 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Create AWS EBS type of asset. + */ +export interface CreateAwsEbsAssetDetails extends model.CreateAssetDetails { + "awsEbs": model.AwsEbsProperties; + + "assetType": string; +} + +export namespace CreateAwsEbsAssetDetails { + export function getJsonObj(obj: CreateAwsEbsAssetDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateAssetDetails.getJsonObj(obj) as CreateAwsEbsAssetDetails)), + ...{ + "awsEbs": obj.awsEbs ? model.AwsEbsProperties.getJsonObj(obj.awsEbs) : undefined + } + }; + + return jsonObj; + } + export const assetType = "AWS_EBS"; + export function getDeserializedJsonObj( + obj: CreateAwsEbsAssetDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateAssetDetails.getDeserializedJsonObj(obj) as CreateAwsEbsAssetDetails)), + ...{ + "awsEbs": obj.awsEbs ? model.AwsEbsProperties.getDeserializedJsonObj(obj.awsEbs) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/create-aws-ec2-asset-details.ts b/lib/cloudbridge/lib/model/create-aws-ec2-asset-details.ts new file mode 100644 index 0000000000..399e41db17 --- /dev/null +++ b/lib/cloudbridge/lib/model/create-aws-ec2-asset-details.ts @@ -0,0 +1,79 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Create AWS EC2 VM type of asset. + */ +export interface CreateAwsEc2AssetDetails extends model.CreateAssetDetails { + "compute": model.ComputeProperties; + "vm": model.VmProperties; + "awsEc2": model.AwsEc2Properties; + "awsEc2Cost"?: model.MonthlyCostSummary; + "attachedEbsVolumesCost"?: model.MonthlyCostSummary; + + "assetType": string; +} + +export namespace CreateAwsEc2AssetDetails { + export function getJsonObj(obj: CreateAwsEc2AssetDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateAssetDetails.getJsonObj(obj) as CreateAwsEc2AssetDetails)), + ...{ + "compute": obj.compute ? model.ComputeProperties.getJsonObj(obj.compute) : undefined, + "vm": obj.vm ? model.VmProperties.getJsonObj(obj.vm) : undefined, + "awsEc2": obj.awsEc2 ? model.AwsEc2Properties.getJsonObj(obj.awsEc2) : undefined, + "awsEc2Cost": obj.awsEc2Cost + ? model.MonthlyCostSummary.getJsonObj(obj.awsEc2Cost) + : undefined, + "attachedEbsVolumesCost": obj.attachedEbsVolumesCost + ? model.MonthlyCostSummary.getJsonObj(obj.attachedEbsVolumesCost) + : undefined + } + }; + + return jsonObj; + } + export const assetType = "AWS_EC2"; + export function getDeserializedJsonObj( + obj: CreateAwsEc2AssetDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateAssetDetails.getDeserializedJsonObj(obj) as CreateAwsEc2AssetDetails)), + ...{ + "compute": obj.compute + ? model.ComputeProperties.getDeserializedJsonObj(obj.compute) + : undefined, + "vm": obj.vm ? model.VmProperties.getDeserializedJsonObj(obj.vm) : undefined, + "awsEc2": obj.awsEc2 + ? model.AwsEc2Properties.getDeserializedJsonObj(obj.awsEc2) + : undefined, + "awsEc2Cost": obj.awsEc2Cost + ? model.MonthlyCostSummary.getDeserializedJsonObj(obj.awsEc2Cost) + : undefined, + "attachedEbsVolumesCost": obj.attachedEbsVolumesCost + ? model.MonthlyCostSummary.getDeserializedJsonObj(obj.attachedEbsVolumesCost) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/create-vm-ware-asset-source-details.ts b/lib/cloudbridge/lib/model/create-vm-ware-asset-source-details.ts index cabace0eea..78f0a26a3c 100644 --- a/lib/cloudbridge/lib/model/create-vm-ware-asset-source-details.ts +++ b/lib/cloudbridge/lib/model/create-vm-ware-asset-source-details.ts @@ -15,7 +15,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Description of an asset source. + * VMware asset source creation request. */ export interface CreateVmWareAssetSourceDetails extends model.CreateAssetSourceDetails { /** diff --git a/lib/cloudbridge/lib/model/create-vmware-vm-asset-details.ts b/lib/cloudbridge/lib/model/create-vmware-vm-asset-details.ts index c29013b595..6674cb8537 100644 --- a/lib/cloudbridge/lib/model/create-vmware-vm-asset-details.ts +++ b/lib/cloudbridge/lib/model/create-vmware-vm-asset-details.ts @@ -18,10 +18,10 @@ import common = require("oci-common"); * Create VMware VM type of asset. */ export interface CreateVmwareVmAssetDetails extends model.CreateAssetDetails { - "compute"?: model.ComputeProperties; - "vm"?: model.VmProperties; - "vmwareVm"?: model.VmwareVmProperties; - "vmwareVCenter"?: model.VmwareVCenterProperties; + "compute": model.ComputeProperties; + "vm": model.VmProperties; + "vmwareVm": model.VmwareVmProperties; + "vmwareVCenter": model.VmwareVCenterProperties; "assetType": string; } diff --git a/lib/cloudbridge/lib/model/group-identifier.ts b/lib/cloudbridge/lib/model/group-identifier.ts new file mode 100644 index 0000000000..4af27440a4 --- /dev/null +++ b/lib/cloudbridge/lib/model/group-identifier.ts @@ -0,0 +1,42 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Describes a security group. + */ +export interface GroupIdentifier { + /** + * The ID of the security group. + */ + "groupKey"?: string; + /** + * The name of the security group. + */ + "groupName"?: string; +} + +export namespace GroupIdentifier { + export function getJsonObj(obj: GroupIdentifier): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: GroupIdentifier): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/import-inventory-via-assets-details.ts b/lib/cloudbridge/lib/model/import-inventory-via-assets-details.ts index 5857b00c52..902be86c73 100644 --- a/lib/cloudbridge/lib/model/import-inventory-via-assets-details.ts +++ b/lib/cloudbridge/lib/model/import-inventory-via-assets-details.ts @@ -21,11 +21,11 @@ export interface ImportInventoryViaAssetsDetails extends model.ImportInventoryDe /** * The file body to be sent in the request. */ - "data"?: string; + "data": string; /** * The type of asset. */ - "assetType"?: model.AssetType; + "assetType": model.AssetType; "resourceType": string; } diff --git a/lib/cloudbridge/lib/model/index.ts b/lib/cloudbridge/lib/model/index.ts index e169295598..7e155daee3 100644 --- a/lib/cloudbridge/lib/model/index.ts +++ b/lib/cloudbridge/lib/model/index.ts @@ -65,6 +65,10 @@ import * as AssetSummary from "./asset-summary"; export import AssetSummary = AssetSummary.AssetSummary; import * as AssetType from "./asset-type"; export import AssetType = AssetType.AssetType; +import * as AwsEbsProperties from "./aws-ebs-properties"; +export import AwsEbsProperties = AwsEbsProperties.AwsEbsProperties; +import * as AwsEc2Properties from "./aws-ec2-properties"; +export import AwsEc2Properties = AwsEc2Properties.AwsEc2Properties; import * as ChangeAgentCompartmentDetails from "./change-agent-compartment-details"; export import ChangeAgentCompartmentDetails = ChangeAgentCompartmentDetails.ChangeAgentCompartmentDetails; import * as ChangeAgentDependencyCompartmentDetails from "./change-agent-dependency-compartment-details"; @@ -115,6 +119,8 @@ import * as EnvironmentSummary from "./environment-summary"; export import EnvironmentSummary = EnvironmentSummary.EnvironmentSummary; import * as GpuDevice from "./gpu-device"; export import GpuDevice = GpuDevice.GpuDevice; +import * as GroupIdentifier from "./group-identifier"; +export import GroupIdentifier = GroupIdentifier.GroupIdentifier; import * as HistoricalMetric from "./historical-metric"; export import HistoricalMetric = HistoricalMetric.HistoricalMetric; import * as HistoricalMetricCollection from "./historical-metric-collection"; @@ -123,12 +129,24 @@ import * as HistoricalMetricSummary from "./historical-metric-summary"; export import HistoricalMetricSummary = HistoricalMetricSummary.HistoricalMetricSummary; import * as ImportInventoryDetails from "./import-inventory-details"; export import ImportInventoryDetails = ImportInventoryDetails.ImportInventoryDetails; +import * as InstanceNetworkInterface from "./instance-network-interface"; +export import InstanceNetworkInterface = InstanceNetworkInterface.InstanceNetworkInterface; +import * as InstanceNetworkInterfaceAssociation from "./instance-network-interface-association"; +export import InstanceNetworkInterfaceAssociation = InstanceNetworkInterfaceAssociation.InstanceNetworkInterfaceAssociation; +import * as InstanceNetworkInterfaceAttachment from "./instance-network-interface-attachment"; +export import InstanceNetworkInterfaceAttachment = InstanceNetworkInterfaceAttachment.InstanceNetworkInterfaceAttachment; +import * as InstancePrivateIpAddress from "./instance-private-ip-address"; +export import InstancePrivateIpAddress = InstancePrivateIpAddress.InstancePrivateIpAddress; +import * as InstanceState from "./instance-state"; +export import InstanceState = InstanceState.InstanceState; import * as Inventory from "./inventory"; export import Inventory = Inventory.Inventory; import * as InventoryCollection from "./inventory-collection"; export import InventoryCollection = InventoryCollection.InventoryCollection; import * as InventorySummary from "./inventory-summary"; export import InventorySummary = InventorySummary.InventorySummary; +import * as MonthlyCostSummary from "./monthly-cost-summary"; +export import MonthlyCostSummary = MonthlyCostSummary.MonthlyCostSummary; import * as Nic from "./nic"; export import Nic = Nic.Nic; import * as Nvdimm from "./nvdimm"; @@ -139,6 +157,8 @@ import * as OperationStatus from "./operation-status"; export import OperationStatus = OperationStatus.OperationStatus; import * as OperationType from "./operation-type"; export import OperationType = OperationType.OperationType; +import * as Placement from "./placement"; +export import Placement = Placement.Placement; import * as Plugin from "./plugin"; export import Plugin = Plugin.Plugin; import * as PluginSummary from "./plugin-summary"; @@ -151,6 +171,14 @@ import * as SortOrders from "./sort-orders"; export import SortOrders = SortOrders.SortOrders; import * as SubmitHistoricalMetricsDetails from "./submit-historical-metrics-details"; export import SubmitHistoricalMetricsDetails = SubmitHistoricalMetricsDetails.SubmitHistoricalMetricsDetails; +import * as SupportedCloudRegionCollection from "./supported-cloud-region-collection"; +export import SupportedCloudRegionCollection = SupportedCloudRegionCollection.SupportedCloudRegionCollection; +import * as SupportedCloudRegionLifecycleState from "./supported-cloud-region-lifecycle-state"; +export import SupportedCloudRegionLifecycleState = SupportedCloudRegionLifecycleState.SupportedCloudRegionLifecycleState; +import * as SupportedCloudRegionSummary from "./supported-cloud-region-summary"; +export import SupportedCloudRegionSummary = SupportedCloudRegionSummary.SupportedCloudRegionSummary; +import * as Tag from "./tag"; +export import Tag = Tag.Tag; import * as UpdateAgentDependencyDetails from "./update-agent-dependency-details"; export import UpdateAgentDependencyDetails = UpdateAgentDependencyDetails.UpdateAgentDependencyDetails; import * as UpdateAgentDetails from "./update-agent-details"; @@ -165,14 +193,14 @@ import * as UpdateEnvironmentDetails from "./update-environment-details"; export import UpdateEnvironmentDetails = UpdateEnvironmentDetails.UpdateEnvironmentDetails; import * as UpdateInventoryDetails from "./update-inventory-details"; export import UpdateInventoryDetails = UpdateInventoryDetails.UpdateInventoryDetails; -import * as UpdatePluginDetails from "./update-plugin-details"; -export import UpdatePluginDetails = UpdatePluginDetails.UpdatePluginDetails; import * as VmProperties from "./vm-properties"; export import VmProperties = VmProperties.VmProperties; import * as VmwareVCenterProperties from "./vmware-vcenter-properties"; export import VmwareVCenterProperties = VmwareVCenterProperties.VmwareVCenterProperties; import * as VmwareVmProperties from "./vmware-vm-properties"; export import VmwareVmProperties = VmwareVmProperties.VmwareVmProperties; +import * as VolumeAttachment from "./volume-attachment"; +export import VolumeAttachment = VolumeAttachment.VolumeAttachment; import * as WorkRequest from "./work-request"; export import WorkRequest = WorkRequest.WorkRequest; import * as WorkRequestError from "./work-request-error"; @@ -192,12 +220,32 @@ export import WorkRequestSummary = WorkRequestSummary.WorkRequestSummary; import * as WorkRequestSummaryCollection from "./work-request-summary-collection"; export import WorkRequestSummaryCollection = WorkRequestSummaryCollection.WorkRequestSummaryCollection; +import * as AwsAssetSource from "./aws-asset-source"; +export import AwsAssetSource = AwsAssetSource.AwsAssetSource; +import * as AwsAssetSourceSummary from "./aws-asset-source-summary"; +export import AwsAssetSourceSummary = AwsAssetSourceSummary.AwsAssetSourceSummary; +import * as AwsEbsAsset from "./aws-ebs-asset"; +export import AwsEbsAsset = AwsEbsAsset.AwsEbsAsset; +import * as AwsEc2Asset from "./aws-ec2-asset"; +export import AwsEc2Asset = AwsEc2Asset.AwsEc2Asset; +import * as CreateAwsAssetSourceDetails from "./create-aws-asset-source-details"; +export import CreateAwsAssetSourceDetails = CreateAwsAssetSourceDetails.CreateAwsAssetSourceDetails; +import * as CreateAwsEbsAssetDetails from "./create-aws-ebs-asset-details"; +export import CreateAwsEbsAssetDetails = CreateAwsEbsAssetDetails.CreateAwsEbsAssetDetails; +import * as CreateAwsEc2AssetDetails from "./create-aws-ec2-asset-details"; +export import CreateAwsEc2AssetDetails = CreateAwsEc2AssetDetails.CreateAwsEc2AssetDetails; import * as CreateVmWareAssetSourceDetails from "./create-vm-ware-asset-source-details"; export import CreateVmWareAssetSourceDetails = CreateVmWareAssetSourceDetails.CreateVmWareAssetSourceDetails; import * as CreateVmwareVmAssetDetails from "./create-vmware-vm-asset-details"; export import CreateVmwareVmAssetDetails = CreateVmwareVmAssetDetails.CreateVmwareVmAssetDetails; import * as ImportInventoryViaAssetsDetails from "./import-inventory-via-assets-details"; export import ImportInventoryViaAssetsDetails = ImportInventoryViaAssetsDetails.ImportInventoryViaAssetsDetails; +import * as UpdateAwsAssetSourceDetails from "./update-aws-asset-source-details"; +export import UpdateAwsAssetSourceDetails = UpdateAwsAssetSourceDetails.UpdateAwsAssetSourceDetails; +import * as UpdateAwsEbsAssetDetails from "./update-aws-ebs-asset-details"; +export import UpdateAwsEbsAssetDetails = UpdateAwsEbsAssetDetails.UpdateAwsEbsAssetDetails; +import * as UpdateAwsEc2AssetDetails from "./update-aws-ec2-asset-details"; +export import UpdateAwsEc2AssetDetails = UpdateAwsEc2AssetDetails.UpdateAwsEc2AssetDetails; import * as UpdateVmAssetDetails from "./update-vm-asset-details"; export import UpdateVmAssetDetails = UpdateVmAssetDetails.UpdateVmAssetDetails; import * as UpdateVmWareAssetSourceDetails from "./update-vm-ware-asset-source-details"; diff --git a/lib/cloudbridge/lib/model/instance-network-interface-association.ts b/lib/cloudbridge/lib/model/instance-network-interface-association.ts new file mode 100644 index 0000000000..905fc8d25e --- /dev/null +++ b/lib/cloudbridge/lib/model/instance-network-interface-association.ts @@ -0,0 +1,54 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Describes association information for an Elastic IP address (IPv4). + */ +export interface InstanceNetworkInterfaceAssociation { + /** + * The carrier IP address associated with the network interface. + */ + "carrierIp"?: string; + /** + * The customer-owned IP address associated with the network interface. + */ + "customerOwnedIp"?: string; + /** + * The ID of the owner of the Elastic IP address. + */ + "ipOwnerKey"?: string; + /** + * The public DNS name. + */ + "publicDnsName"?: string; + /** + * The public IP address or Elastic IP address bound to the network interface. + */ + "publicIp"?: string; +} + +export namespace InstanceNetworkInterfaceAssociation { + export function getJsonObj(obj: InstanceNetworkInterfaceAssociation): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: InstanceNetworkInterfaceAssociation): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/instance-network-interface-attachment.ts b/lib/cloudbridge/lib/model/instance-network-interface-attachment.ts new file mode 100644 index 0000000000..4323534238 --- /dev/null +++ b/lib/cloudbridge/lib/model/instance-network-interface-attachment.ts @@ -0,0 +1,58 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Describes a network interface attachment. + */ +export interface InstanceNetworkInterfaceAttachment { + /** + * The ID of the network interface attachment. + */ + "attachmentKey"?: string; + /** + * The timestamp when the attachment initiated. + */ + "timeAttach"?: Date; + /** + * Indicates whether the network interface is deleted when the instance is terminated. + */ + "isDeleteOnTermination"?: boolean; + /** + * The index of the device on the instance for the network interface attachment. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "deviceIndex"?: number; + /** + * The index of the network card. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "networkCardIndex"?: number; + /** + * The attachment state. + */ + "status"?: string; +} + +export namespace InstanceNetworkInterfaceAttachment { + export function getJsonObj(obj: InstanceNetworkInterfaceAttachment): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: InstanceNetworkInterfaceAttachment): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/instance-network-interface.ts b/lib/cloudbridge/lib/model/instance-network-interface.ts new file mode 100644 index 0000000000..e2ebd0285e --- /dev/null +++ b/lib/cloudbridge/lib/model/instance-network-interface.ts @@ -0,0 +1,132 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Describes a network interface. + */ +export interface InstanceNetworkInterface { + "association"?: model.InstanceNetworkInterfaceAssociation; + "attachment"?: model.InstanceNetworkInterfaceAttachment; + /** + * The description. + */ + "description"?: string; + /** + * The security groups. + */ + "securityGroups"?: Array; + /** + * The type of network interface. + */ + "interfaceType"?: string; + /** + * The IPv4 delegated prefixes that are assigned to the network interface. + */ + "ipv4Prefixes"?: Array; + /** + * The IPv6 addresses associated with the network interface. + */ + "ipv6Addresses"?: Array; + /** + * The IPv6 delegated prefixes that are assigned to the network interface. + */ + "ipv6Prefixes"?: Array; + /** + * The MAC address. + */ + "macAddress"?: string; + /** + * The ID of the network interface. + */ + "networkInterfaceKey"?: string; + /** + * The ID of the AWS account that created the network interface. + */ + "ownerKey"?: string; + /** + * The private IPv4 addresses associated with the network interface. + */ + "privateIpAddresses"?: Array; + /** + * Indicates whether source/destination checking is enabled. + */ + "isSourceDestCheck"?: boolean; + /** + * The status of the network interface. + */ + "status"?: string; + /** + * The ID of the subnet. + */ + "subnetKey"?: string; +} + +export namespace InstanceNetworkInterface { + export function getJsonObj(obj: InstanceNetworkInterface): object { + const jsonObj = { + ...obj, + ...{ + "association": obj.association + ? model.InstanceNetworkInterfaceAssociation.getJsonObj(obj.association) + : undefined, + "attachment": obj.attachment + ? model.InstanceNetworkInterfaceAttachment.getJsonObj(obj.attachment) + : undefined, + + "securityGroups": obj.securityGroups + ? obj.securityGroups.map(item => { + return model.GroupIdentifier.getJsonObj(item); + }) + : undefined, + + "privateIpAddresses": obj.privateIpAddresses + ? obj.privateIpAddresses.map(item => { + return model.InstancePrivateIpAddress.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: InstanceNetworkInterface): object { + const jsonObj = { + ...obj, + ...{ + "association": obj.association + ? model.InstanceNetworkInterfaceAssociation.getDeserializedJsonObj(obj.association) + : undefined, + "attachment": obj.attachment + ? model.InstanceNetworkInterfaceAttachment.getDeserializedJsonObj(obj.attachment) + : undefined, + + "securityGroups": obj.securityGroups + ? obj.securityGroups.map(item => { + return model.GroupIdentifier.getDeserializedJsonObj(item); + }) + : undefined, + + "privateIpAddresses": obj.privateIpAddresses + ? obj.privateIpAddresses.map(item => { + return model.InstancePrivateIpAddress.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/instance-private-ip-address.ts b/lib/cloudbridge/lib/model/instance-private-ip-address.ts new file mode 100644 index 0000000000..d98e18abd8 --- /dev/null +++ b/lib/cloudbridge/lib/model/instance-private-ip-address.ts @@ -0,0 +1,61 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Describes a private IPv4 address. + */ +export interface InstancePrivateIpAddress { + "association"?: model.InstanceNetworkInterfaceAssociation; + /** + * Indicates whether this IPv4 address is the primary private IP address of the network interface. + */ + "isPrimary"?: boolean; + /** + * The private IPv4 DNS name. + */ + "privateDnsName"?: string; + /** + * The private IPv4 address of the network interface. + */ + "privateIpAddress"?: string; +} + +export namespace InstancePrivateIpAddress { + export function getJsonObj(obj: InstancePrivateIpAddress): object { + const jsonObj = { + ...obj, + ...{ + "association": obj.association + ? model.InstanceNetworkInterfaceAssociation.getJsonObj(obj.association) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: InstancePrivateIpAddress): object { + const jsonObj = { + ...obj, + ...{ + "association": obj.association + ? model.InstanceNetworkInterfaceAssociation.getDeserializedJsonObj(obj.association) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/instance-state.ts b/lib/cloudbridge/lib/model/instance-state.ts new file mode 100644 index 0000000000..386fecc3c3 --- /dev/null +++ b/lib/cloudbridge/lib/model/instance-state.ts @@ -0,0 +1,42 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Describes the current state of an instance. + */ +export interface InstanceState { + /** + * The state of the instance as a 16-bit unsigned integer. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "code"?: number; + /** + * The current state of the instance. + */ + "name"?: string; +} + +export namespace InstanceState { + export function getJsonObj(obj: InstanceState): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: InstanceState): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/monthly-cost-summary.ts b/lib/cloudbridge/lib/model/monthly-cost-summary.ts new file mode 100644 index 0000000000..9a3359aca3 --- /dev/null +++ b/lib/cloudbridge/lib/model/monthly-cost-summary.ts @@ -0,0 +1,42 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Cost information for monthly maintenance. + */ +export interface MonthlyCostSummary { + /** + * Monthly costs for maintenance of this asset. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "amount": number; + /** + * Currency code as defined by ISO-4217. + */ + "currencyCode": string; +} + +export namespace MonthlyCostSummary { + export function getJsonObj(obj: MonthlyCostSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: MonthlyCostSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/operation-type.ts b/lib/cloudbridge/lib/model/operation-type.ts index 5279c1452b..312e5ca023 100644 --- a/lib/cloudbridge/lib/model/operation-type.ts +++ b/lib/cloudbridge/lib/model/operation-type.ts @@ -37,6 +37,9 @@ export enum OperationType { RefreshAssetSource = "REFRESH_ASSET_SOURCE", CreateAssetSource = "CREATE_ASSET_SOURCE", UpdateAssetSource = "UPDATE_ASSET_SOURCE", + CloudAwsDiscovery = "CLOUD_AWS_DISCOVERY", + CollectAwsRealtimeMetrics = "COLLECT_AWS_REALTIME_METRICS", + CollectAwsHistoricalMetrics = "COLLECT_AWS_HISTORICAL_METRICS", /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/lib/cloudbridge/lib/model/placement.ts b/lib/cloudbridge/lib/model/placement.ts new file mode 100644 index 0000000000..d8ff3bd163 --- /dev/null +++ b/lib/cloudbridge/lib/model/placement.ts @@ -0,0 +1,66 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Describes the placement of an instance. + */ +export interface Placement { + /** + * The affinity setting for the instance on the Dedicated Host. + */ + "affinity"?: string; + /** + * The Availability Zone of the instance. + */ + "availabilityZone"?: string; + /** + * The name of the placement group the instance is in. + */ + "groupName"?: string; + /** + * The ID of the Dedicated Host on which the instance resides. + */ + "hostKey"?: string; + /** + * The ARN of the host resource group in which to launch the instances. + */ + "hostResourceGroupArn"?: string; + /** + * The number of the partition that the instance is in. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "partitionNumber"?: number; + /** + * Reserved for future use. + */ + "spreadDomain"?: string; + /** + * The tenancy of the instance (if the instance is running in a VPC). + */ + "tenancy"?: string; +} + +export namespace Placement { + export function getJsonObj(obj: Placement): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Placement): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/supported-cloud-region-collection.ts b/lib/cloudbridge/lib/model/supported-cloud-region-collection.ts new file mode 100644 index 0000000000..cd70fe1838 --- /dev/null +++ b/lib/cloudbridge/lib/model/supported-cloud-region-collection.ts @@ -0,0 +1,56 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Collection of supported cloud regions. + */ +export interface SupportedCloudRegionCollection { + /** + * List of supported cloud regions. + */ + "items": Array; +} + +export namespace SupportedCloudRegionCollection { + export function getJsonObj(obj: SupportedCloudRegionCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.SupportedCloudRegionSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SupportedCloudRegionCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.SupportedCloudRegionSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/supported-cloud-region-lifecycle-state.ts b/lib/cloudbridge/lib/model/supported-cloud-region-lifecycle-state.ts new file mode 100644 index 0000000000..0a72461304 --- /dev/null +++ b/lib/cloudbridge/lib/model/supported-cloud-region-lifecycle-state.ts @@ -0,0 +1,42 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Lifecycle state of the supported cloud region. + **/ +export enum SupportedCloudRegionLifecycleState { + Active = "ACTIVE", + Inactive = "INACTIVE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace SupportedCloudRegionLifecycleState { + export function getJsonObj( + obj: SupportedCloudRegionLifecycleState + ): SupportedCloudRegionLifecycleState { + return obj; + } + export function getDeserializedJsonObj( + obj: SupportedCloudRegionLifecycleState + ): SupportedCloudRegionLifecycleState { + return obj; + } +} diff --git a/lib/cloudbridge/lib/model/supported-cloud-region-summary.ts b/lib/cloudbridge/lib/model/supported-cloud-region-summary.ts new file mode 100644 index 0000000000..11ba6baae1 --- /dev/null +++ b/lib/cloudbridge/lib/model/supported-cloud-region-summary.ts @@ -0,0 +1,60 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the supported cloud region. + */ +export interface SupportedCloudRegionSummary { + /** + * The asset source type associated with the supported cloud region. + */ + "assetSourceType": model.AssetSourceType; + /** + * The supported cloud region name. + */ + "name": string; + /** + * The current state of the supported cloud region. + */ + "lifecycleState": model.SupportedCloudRegionLifecycleState; + /** + * The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no + * predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {\"Department\": \"Finance\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * Example: {@code {\"Operations\": {\"CostCenter\": \"42\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace SupportedCloudRegionSummary { + export function getJsonObj(obj: SupportedCloudRegionSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SupportedCloudRegionSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/update-plugin-details.ts b/lib/cloudbridge/lib/model/tag.ts similarity index 69% rename from lib/cloudbridge/lib/model/update-plugin-details.ts rename to lib/cloudbridge/lib/model/tag.ts index 5e667f6f06..93415439a3 100644 --- a/lib/cloudbridge/lib/model/update-plugin-details.ts +++ b/lib/cloudbridge/lib/model/tag.ts @@ -15,22 +15,26 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The information to be updated. + * Describes a tag. */ -export interface UpdatePluginDetails { +export interface Tag { /** - * State to which the customer wants the plugin to move to. + * The key of the tag. */ - "desiredState"?: string; + "key"?: string; + /** + * The value of the tag. + */ + "value"?: string; } -export namespace UpdatePluginDetails { - export function getJsonObj(obj: UpdatePluginDetails): object { +export namespace Tag { + export function getJsonObj(obj: Tag): object { const jsonObj = { ...obj, ...{} }; return jsonObj; } - export function getDeserializedJsonObj(obj: UpdatePluginDetails): object { + export function getDeserializedJsonObj(obj: Tag): object { const jsonObj = { ...obj, ...{} }; return jsonObj; diff --git a/lib/cloudbridge/lib/model/update-asset-details.ts b/lib/cloudbridge/lib/model/update-asset-details.ts index a0bc448ae4..0cce07c179 100644 --- a/lib/cloudbridge/lib/model/update-asset-details.ts +++ b/lib/cloudbridge/lib/model/update-asset-details.ts @@ -55,11 +55,21 @@ export namespace UpdateAssetDetails { (jsonObj), true ); + case "AWS_EBS": + return model.UpdateAwsEbsAssetDetails.getJsonObj( + (jsonObj), + true + ); case "VMWARE_VM": return model.UpdateVmwareVmAssetDetails.getJsonObj( (jsonObj), true ); + case "AWS_EC2": + return model.UpdateAwsEc2AssetDetails.getJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.assetType}`); } @@ -76,11 +86,21 @@ export namespace UpdateAssetDetails { (jsonObj), true ); + case "AWS_EBS": + return model.UpdateAwsEbsAssetDetails.getDeserializedJsonObj( + (jsonObj), + true + ); case "VMWARE_VM": return model.UpdateVmwareVmAssetDetails.getDeserializedJsonObj( (jsonObj), true ); + case "AWS_EC2": + return model.UpdateAwsEc2AssetDetails.getDeserializedJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.assetType}`); } diff --git a/lib/cloudbridge/lib/model/update-asset-source-details.ts b/lib/cloudbridge/lib/model/update-asset-source-details.ts index f383390f72..c402b53a03 100644 --- a/lib/cloudbridge/lib/model/update-asset-source-details.ts +++ b/lib/cloudbridge/lib/model/update-asset-source-details.ts @@ -15,7 +15,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The information about the new asset source. + * Asset source update request. */ export interface UpdateAssetSourceDetails { /** @@ -28,6 +28,10 @@ export interface UpdateAssetSourceDetails { * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that is going to be used to create assets. */ "assetsCompartmentId"?: string; + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the discovery schedule that is going to be assigned to an asset source. + */ + "discoveryScheduleId"?: string; /** * The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no * predefined name, type, or namespace/scope. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -64,6 +68,11 @@ export namespace UpdateAssetSourceDetails { (jsonObj), true ); + case "AWS": + return model.UpdateAwsAssetSourceDetails.getJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); } @@ -80,6 +89,11 @@ export namespace UpdateAssetSourceDetails { (jsonObj), true ); + case "AWS": + return model.UpdateAwsAssetSourceDetails.getDeserializedJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); } diff --git a/lib/cloudbridge/lib/model/update-aws-asset-source-details.ts b/lib/cloudbridge/lib/model/update-aws-asset-source-details.ts new file mode 100644 index 0000000000..f6d967285d --- /dev/null +++ b/lib/cloudbridge/lib/model/update-aws-asset-source-details.ts @@ -0,0 +1,80 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * AWS asset source update request. + */ +export interface UpdateAwsAssetSourceDetails extends model.UpdateAssetSourceDetails { + "discoveryCredentials"?: model.AssetSourceCredentials; + "replicationCredentials"?: model.AssetSourceCredentials; + /** + * Flag indicating whether historical metrics are collected for assets, originating from this asset source. + */ + "areHistoricalMetricsCollected"?: boolean; + /** + * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. + */ + "areRealtimeMetricsCollected"?: boolean; + /** + * Flag indicating whether cost data collection is enabled for assets, originating from this asset source. + */ + "isCostInformationCollected"?: boolean; + + "type": string; +} + +export namespace UpdateAwsAssetSourceDetails { + export function getJsonObj(obj: UpdateAwsAssetSourceDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateAssetSourceDetails.getJsonObj(obj) as UpdateAwsAssetSourceDetails)), + ...{ + "discoveryCredentials": obj.discoveryCredentials + ? model.AssetSourceCredentials.getJsonObj(obj.discoveryCredentials) + : undefined, + "replicationCredentials": obj.replicationCredentials + ? model.AssetSourceCredentials.getJsonObj(obj.replicationCredentials) + : undefined + } + }; + + return jsonObj; + } + export const type = "AWS"; + export function getDeserializedJsonObj( + obj: UpdateAwsAssetSourceDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateAssetSourceDetails.getDeserializedJsonObj( + obj + ) as UpdateAwsAssetSourceDetails)), + ...{ + "discoveryCredentials": obj.discoveryCredentials + ? model.AssetSourceCredentials.getDeserializedJsonObj(obj.discoveryCredentials) + : undefined, + "replicationCredentials": obj.replicationCredentials + ? model.AssetSourceCredentials.getDeserializedJsonObj(obj.replicationCredentials) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/update-aws-ebs-asset-details.ts b/lib/cloudbridge/lib/model/update-aws-ebs-asset-details.ts new file mode 100644 index 0000000000..aff8c36dc5 --- /dev/null +++ b/lib/cloudbridge/lib/model/update-aws-ebs-asset-details.ts @@ -0,0 +1,55 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information of AWS EBS asset to be updated. + */ +export interface UpdateAwsEbsAssetDetails extends model.UpdateAssetDetails { + "awsEbs"?: model.AwsEbsProperties; + + "assetType": string; +} + +export namespace UpdateAwsEbsAssetDetails { + export function getJsonObj(obj: UpdateAwsEbsAssetDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateAssetDetails.getJsonObj(obj) as UpdateAwsEbsAssetDetails)), + ...{ + "awsEbs": obj.awsEbs ? model.AwsEbsProperties.getJsonObj(obj.awsEbs) : undefined + } + }; + + return jsonObj; + } + export const assetType = "AWS_EBS"; + export function getDeserializedJsonObj( + obj: UpdateAwsEbsAssetDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateAssetDetails.getDeserializedJsonObj(obj) as UpdateAwsEbsAssetDetails)), + ...{ + "awsEbs": obj.awsEbs ? model.AwsEbsProperties.getDeserializedJsonObj(obj.awsEbs) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/update-aws-ec2-asset-details.ts b/lib/cloudbridge/lib/model/update-aws-ec2-asset-details.ts new file mode 100644 index 0000000000..5cd8f217f8 --- /dev/null +++ b/lib/cloudbridge/lib/model/update-aws-ec2-asset-details.ts @@ -0,0 +1,79 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information of AWS VM asset to be updated. + */ +export interface UpdateAwsEc2AssetDetails extends model.UpdateAssetDetails { + "compute"?: model.ComputeProperties; + "vm"?: model.VmProperties; + "awsEc2"?: model.AwsEc2Properties; + "awsEc2Cost"?: model.MonthlyCostSummary; + "attachedEbsVolumesCost"?: model.MonthlyCostSummary; + + "assetType": string; +} + +export namespace UpdateAwsEc2AssetDetails { + export function getJsonObj(obj: UpdateAwsEc2AssetDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateAssetDetails.getJsonObj(obj) as UpdateAwsEc2AssetDetails)), + ...{ + "compute": obj.compute ? model.ComputeProperties.getJsonObj(obj.compute) : undefined, + "vm": obj.vm ? model.VmProperties.getJsonObj(obj.vm) : undefined, + "awsEc2": obj.awsEc2 ? model.AwsEc2Properties.getJsonObj(obj.awsEc2) : undefined, + "awsEc2Cost": obj.awsEc2Cost + ? model.MonthlyCostSummary.getJsonObj(obj.awsEc2Cost) + : undefined, + "attachedEbsVolumesCost": obj.attachedEbsVolumesCost + ? model.MonthlyCostSummary.getJsonObj(obj.attachedEbsVolumesCost) + : undefined + } + }; + + return jsonObj; + } + export const assetType = "AWS_EC2"; + export function getDeserializedJsonObj( + obj: UpdateAwsEc2AssetDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateAssetDetails.getDeserializedJsonObj(obj) as UpdateAwsEc2AssetDetails)), + ...{ + "compute": obj.compute + ? model.ComputeProperties.getDeserializedJsonObj(obj.compute) + : undefined, + "vm": obj.vm ? model.VmProperties.getDeserializedJsonObj(obj.vm) : undefined, + "awsEc2": obj.awsEc2 + ? model.AwsEc2Properties.getDeserializedJsonObj(obj.awsEc2) + : undefined, + "awsEc2Cost": obj.awsEc2Cost + ? model.MonthlyCostSummary.getDeserializedJsonObj(obj.awsEc2Cost) + : undefined, + "attachedEbsVolumesCost": obj.attachedEbsVolumesCost + ? model.MonthlyCostSummary.getDeserializedJsonObj(obj.attachedEbsVolumesCost) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/model/update-vm-ware-asset-source-details.ts b/lib/cloudbridge/lib/model/update-vm-ware-asset-source-details.ts index cf7ae2adb6..6d907368ba 100644 --- a/lib/cloudbridge/lib/model/update-vm-ware-asset-source-details.ts +++ b/lib/cloudbridge/lib/model/update-vm-ware-asset-source-details.ts @@ -15,7 +15,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Asset source update details. + * VMware asset source update request. */ export interface UpdateVmWareAssetSourceDetails extends model.UpdateAssetSourceDetails { /** @@ -32,10 +32,6 @@ export interface UpdateVmWareAssetSourceDetails extends model.UpdateAssetSourceD * Flag indicating whether real-time metrics are collected for assets, originating from this asset source. */ "areRealtimeMetricsCollected"?: boolean; - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the discovery schedule that is going to be assigned to an asset source. - */ - "discoveryScheduleId"?: string; "type": string; } diff --git a/lib/cloudbridge/lib/model/vm-asset.ts b/lib/cloudbridge/lib/model/vm-asset.ts index 25adac72d3..36220de5a0 100644 --- a/lib/cloudbridge/lib/model/vm-asset.ts +++ b/lib/cloudbridge/lib/model/vm-asset.ts @@ -18,8 +18,8 @@ import common = require("oci-common"); * VM type of asset. */ export interface VmAsset extends model.Asset { - "compute"?: model.ComputeProperties; - "vm"?: model.VmProperties; + "compute": model.ComputeProperties; + "vm": model.VmProperties; "assetType": string; } diff --git a/lib/cloudbridge/lib/model/vm-ware-asset-source-summary.ts b/lib/cloudbridge/lib/model/vm-ware-asset-source-summary.ts index 8b9a08acab..4ea9e1d31f 100644 --- a/lib/cloudbridge/lib/model/vm-ware-asset-source-summary.ts +++ b/lib/cloudbridge/lib/model/vm-ware-asset-source-summary.ts @@ -15,7 +15,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Description of an asset source. + * Summary of an VMware asset source provided in the list. */ export interface VmWareAssetSourceSummary extends model.AssetSourceSummary { /** diff --git a/lib/cloudbridge/lib/model/vm-ware-asset-source.ts b/lib/cloudbridge/lib/model/vm-ware-asset-source.ts index 4341b9c609..c66d372501 100644 --- a/lib/cloudbridge/lib/model/vm-ware-asset-source.ts +++ b/lib/cloudbridge/lib/model/vm-ware-asset-source.ts @@ -15,7 +15,8 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Description of an asset source. + * VMware asset source. Used for discovery of virtual machines (VMs) registered in the VMware vCenter installation. + * */ export interface VmWareAssetSource extends model.AssetSource { /** diff --git a/lib/cloudbridge/lib/model/vmware-vm-asset.ts b/lib/cloudbridge/lib/model/vmware-vm-asset.ts index dd28fafc30..8d85ac98ad 100644 --- a/lib/cloudbridge/lib/model/vmware-vm-asset.ts +++ b/lib/cloudbridge/lib/model/vmware-vm-asset.ts @@ -18,10 +18,10 @@ import common = require("oci-common"); * VMware VM type of asset. */ export interface VmwareVmAsset extends model.Asset { - "compute"?: model.ComputeProperties; - "vm"?: model.VmProperties; - "vmwareVm"?: model.VmwareVmProperties; - "vmwareVCenter"?: model.VmwareVCenterProperties; + "compute": model.ComputeProperties; + "vm": model.VmProperties; + "vmwareVm": model.VmwareVmProperties; + "vmwareVCenter": model.VmwareVCenterProperties; "assetType": string; } diff --git a/lib/cloudbridge/lib/model/volume-attachment.ts b/lib/cloudbridge/lib/model/volume-attachment.ts new file mode 100644 index 0000000000..bcf4fd7dea --- /dev/null +++ b/lib/cloudbridge/lib/model/volume-attachment.ts @@ -0,0 +1,54 @@ +/** + * Oracle Cloud Bridge API + * API for Oracle Cloud Bridge service. + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Describes volume attachment details. + */ +export interface VolumeAttachment { + /** + * Indicates whether the EBS volume is deleted on instance termination. + */ + "isDeleteOnTermination"?: boolean; + /** + * The device name. + */ + "device"?: string; + /** + * The ID of the instance. + */ + "instanceKey"?: string; + /** + * The attachment state of the volume. + */ + "status"?: string; + /** + * The ID of the volume. + */ + "volumeKey"?: string; +} + +export namespace VolumeAttachment { + export function getJsonObj(obj: VolumeAttachment): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: VolumeAttachment): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/cloudbridge/lib/request/create-asset-request.ts b/lib/cloudbridge/lib/request/create-asset-request.ts index 60f8909662..81b0fbce61 100644 --- a/lib/cloudbridge/lib/request/create-asset-request.ts +++ b/lib/cloudbridge/lib/request/create-asset-request.ts @@ -21,7 +21,10 @@ export interface CreateAssetRequest extends common.BaseRequest { /** * The information to be updated. */ - "createAssetDetails": model.CreateVmwareVmAssetDetails; + "createAssetDetails": + | model.CreateAwsEbsAssetDetails + | model.CreateVmwareVmAssetDetails + | model.CreateAwsEc2AssetDetails; /** * The client request ID for tracing. */ diff --git a/lib/cloudbridge/lib/request/create-asset-source-request.ts b/lib/cloudbridge/lib/request/create-asset-source-request.ts index 312fb38e72..aae8ade32a 100644 --- a/lib/cloudbridge/lib/request/create-asset-source-request.ts +++ b/lib/cloudbridge/lib/request/create-asset-source-request.ts @@ -21,7 +21,9 @@ export interface CreateAssetSourceRequest extends common.BaseRequest { /** * Details for the new asset source. */ - "createAssetSourceDetails": model.CreateVmWareAssetSourceDetails; + "createAssetSourceDetails": + | model.CreateVmWareAssetSourceDetails + | model.CreateAwsAssetSourceDetails; /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing the same action again. Retry tokens expire after 24 diff --git a/lib/cloudbridge/lib/request/index.ts b/lib/cloudbridge/lib/request/index.ts index 8a49a9b14b..c1c2e84338 100644 --- a/lib/cloudbridge/lib/request/index.ts +++ b/lib/cloudbridge/lib/request/index.ts @@ -43,6 +43,8 @@ import * as ListAssetSourcesRequest from "./list-asset-sources-request"; export import ListAssetSourcesRequest = ListAssetSourcesRequest.ListAssetSourcesRequest; import * as ListDiscoverySchedulesRequest from "./list-discovery-schedules-request"; export import ListDiscoverySchedulesRequest = ListDiscoverySchedulesRequest.ListDiscoverySchedulesRequest; +import * as ListSupportedCloudRegionsRequest from "./list-supported-cloud-regions-request"; +export import ListSupportedCloudRegionsRequest = ListSupportedCloudRegionsRequest.ListSupportedCloudRegionsRequest; import * as RefreshAssetSourceRequest from "./refresh-asset-source-request"; export import RefreshAssetSourceRequest = RefreshAssetSourceRequest.RefreshAssetSourceRequest; import * as UpdateAssetSourceRequest from "./update-asset-source-request"; @@ -125,5 +127,3 @@ import * as UpdateAgentDependencyRequest from "./update-agent-dependency-request export import UpdateAgentDependencyRequest = UpdateAgentDependencyRequest.UpdateAgentDependencyRequest; import * as UpdateEnvironmentRequest from "./update-environment-request"; export import UpdateEnvironmentRequest = UpdateEnvironmentRequest.UpdateEnvironmentRequest; -import * as UpdatePluginRequest from "./update-plugin-request"; -export import UpdatePluginRequest = UpdatePluginRequest.UpdatePluginRequest; diff --git a/lib/cloudbridge/lib/request/list-supported-cloud-regions-request.ts b/lib/cloudbridge/lib/request/list-supported-cloud-regions-request.ts new file mode 100644 index 0000000000..d71cfad61c --- /dev/null +++ b/lib/cloudbridge/lib/request/list-supported-cloud-regions-request.ts @@ -0,0 +1,56 @@ +/** + * + * + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/cloudbridge/ListSupportedCloudRegions.ts.html |here} to see how to use ListSupportedCloudRegionsRequest. + */ +export interface ListSupportedCloudRegionsRequest extends common.BaseRequest { + /** + * The asset source type. + */ + "assetSourceType"?: model.AssetSourceType; + /** + * A filter to return only supported cloud regions which name contains given nameContains as sub-string. + */ + "nameContains"?: string; + /** + * The field to sort by. Only one sort order may be provided. By default, name is in ascending order. + * + */ + "sortBy"?: ListSupportedCloudRegionsRequest.SortBy; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrders; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListSupportedCloudRegionsRequest { + export enum SortBy { + Name = "name" + } +} diff --git a/lib/cloudbridge/lib/request/update-asset-request.ts b/lib/cloudbridge/lib/request/update-asset-request.ts index 5a69acd45a..c0fac80a46 100644 --- a/lib/cloudbridge/lib/request/update-asset-request.ts +++ b/lib/cloudbridge/lib/request/update-asset-request.ts @@ -25,7 +25,11 @@ export interface UpdateAssetRequest extends common.BaseRequest { /** * The information to be updated. */ - "updateAssetDetails": model.UpdateVmAssetDetails | model.UpdateVmwareVmAssetDetails; + "updateAssetDetails": + | model.UpdateVmAssetDetails + | model.UpdateAwsEbsAssetDetails + | model.UpdateVmwareVmAssetDetails + | model.UpdateAwsEc2AssetDetails; /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the diff --git a/lib/cloudbridge/lib/request/update-asset-source-request.ts b/lib/cloudbridge/lib/request/update-asset-source-request.ts index 7e19bf750b..0dc0769d46 100644 --- a/lib/cloudbridge/lib/request/update-asset-source-request.ts +++ b/lib/cloudbridge/lib/request/update-asset-source-request.ts @@ -25,7 +25,9 @@ export interface UpdateAssetSourceRequest extends common.BaseRequest { /** * Asset source information to be updated. */ - "updateAssetSourceDetails": model.UpdateVmWareAssetSourceDetails; + "updateAssetSourceDetails": + | model.UpdateVmWareAssetSourceDetails + | model.UpdateAwsAssetSourceDetails; /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the diff --git a/lib/cloudbridge/lib/response/index.ts b/lib/cloudbridge/lib/response/index.ts index 9f1c0ebba0..bb7ee5ed9f 100644 --- a/lib/cloudbridge/lib/response/index.ts +++ b/lib/cloudbridge/lib/response/index.ts @@ -43,6 +43,8 @@ import * as ListAssetSourcesResponse from "./list-asset-sources-response"; export import ListAssetSourcesResponse = ListAssetSourcesResponse.ListAssetSourcesResponse; import * as ListDiscoverySchedulesResponse from "./list-discovery-schedules-response"; export import ListDiscoverySchedulesResponse = ListDiscoverySchedulesResponse.ListDiscoverySchedulesResponse; +import * as ListSupportedCloudRegionsResponse from "./list-supported-cloud-regions-response"; +export import ListSupportedCloudRegionsResponse = ListSupportedCloudRegionsResponse.ListSupportedCloudRegionsResponse; import * as RefreshAssetSourceResponse from "./refresh-asset-source-response"; export import RefreshAssetSourceResponse = RefreshAssetSourceResponse.RefreshAssetSourceResponse; import * as UpdateAssetSourceResponse from "./update-asset-source-response"; @@ -125,5 +127,3 @@ import * as UpdateAgentDependencyResponse from "./update-agent-dependency-respon export import UpdateAgentDependencyResponse = UpdateAgentDependencyResponse.UpdateAgentDependencyResponse; import * as UpdateEnvironmentResponse from "./update-environment-response"; export import UpdateEnvironmentResponse = UpdateEnvironmentResponse.UpdateEnvironmentResponse; -import * as UpdatePluginResponse from "./update-plugin-response"; -export import UpdatePluginResponse = UpdatePluginResponse.UpdatePluginResponse; diff --git a/lib/cloudbridge/lib/response/list-supported-cloud-regions-response.ts b/lib/cloudbridge/lib/response/list-supported-cloud-regions-response.ts new file mode 100644 index 0000000000..5fe489db0a --- /dev/null +++ b/lib/cloudbridge/lib/response/list-supported-cloud-regions-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20220509 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListSupportedCloudRegionsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.SupportedCloudRegionCollection instance. + */ + "supportedCloudRegionCollection": model.SupportedCloudRegionCollection; +} diff --git a/lib/cloudbridge/package.json b/lib/cloudbridge/package.json index 2370147a68..d3f64a1fdf 100644 --- a/lib/cloudbridge/package.json +++ b/lib/cloudbridge/package.json @@ -1,6 +1,6 @@ { "name": "oci-cloudbridge", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Cloud Bridge Service", "repository": { "type": "git", diff --git a/lib/cloudguard/package.json b/lib/cloudguard/package.json index 0bf0e41761..22f3a9da1e 100644 --- a/lib/cloudguard/package.json +++ b/lib/cloudguard/package.json @@ -1,6 +1,6 @@ { "name": "oci-cloudguard", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Cloud Guard Service", "repository": { "type": "git", diff --git a/lib/cloudmigrations/package.json b/lib/cloudmigrations/package.json index 915d185144..cee1e4d31a 100644 --- a/lib/cloudmigrations/package.json +++ b/lib/cloudmigrations/package.json @@ -1,6 +1,6 @@ { "name": "oci-cloudmigrations", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Cloud Migrations Service", "repository": { "type": "git", diff --git a/lib/clusterplacementgroups/package.json b/lib/clusterplacementgroups/package.json index 6a209be7b5..eeab7bc9cf 100644 --- a/lib/clusterplacementgroups/package.json +++ b/lib/clusterplacementgroups/package.json @@ -1,6 +1,6 @@ { "name": "oci-clusterplacementgroups", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Cluster Placement Groups Service", "repository": { "type": "git", diff --git a/lib/common/package.json b/lib/common/package.json index ad5ff5158d..b2ef55b27f 100644 --- a/lib/common/package.json +++ b/lib/common/package.json @@ -1,6 +1,6 @@ { "name": "oci-common", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI Common module for NodeJS", "repository": { "type": "git", diff --git a/lib/computecloudatcustomer/package.json b/lib/computecloudatcustomer/package.json index 0a6297b5bc..13abf198ea 100644 --- a/lib/computecloudatcustomer/package.json +++ b/lib/computecloudatcustomer/package.json @@ -1,6 +1,6 @@ { "name": "oci-computecloudatcustomer", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Compute Cloud At Customer Service", "repository": { "type": "git", diff --git a/lib/computeinstanceagent/package.json b/lib/computeinstanceagent/package.json index 94afa2a7cf..2a89f9e355 100644 --- a/lib/computeinstanceagent/package.json +++ b/lib/computeinstanceagent/package.json @@ -1,6 +1,6 @@ { "name": "oci-computeinstanceagent", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Compute Instance Agent Service", "repository": { "type": "git", diff --git a/lib/containerengine/package.json b/lib/containerengine/package.json index 80f256ac97..19dce3b3a2 100644 --- a/lib/containerengine/package.json +++ b/lib/containerengine/package.json @@ -1,6 +1,6 @@ { "name": "oci-containerengine", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Container Engine", "repository": { "type": "git", diff --git a/lib/containerinstances/package.json b/lib/containerinstances/package.json index c33ad15671..09e8d76330 100644 --- a/lib/containerinstances/package.json +++ b/lib/containerinstances/package.json @@ -1,6 +1,6 @@ { "name": "oci-containerinstances", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Container Instances Service", "repository": { "type": "git", diff --git a/lib/core/lib/model/index.ts b/lib/core/lib/model/index.ts index fbf0c176df..f9729950ad 100644 --- a/lib/core/lib/model/index.ts +++ b/lib/core/lib/model/index.ts @@ -1000,6 +1000,8 @@ import * as VirtualCircuitIpMtu from "./virtual-circuit-ip-mtu"; export import VirtualCircuitIpMtu = VirtualCircuitIpMtu.VirtualCircuitIpMtu; import * as VirtualCircuitPublicPrefix from "./virtual-circuit-public-prefix"; export import VirtualCircuitPublicPrefix = VirtualCircuitPublicPrefix.VirtualCircuitPublicPrefix; +import * as VirtualCircuitRedundancyMetadata from "./virtual-circuit-redundancy-metadata"; +export import VirtualCircuitRedundancyMetadata = VirtualCircuitRedundancyMetadata.VirtualCircuitRedundancyMetadata; import * as Vlan from "./vlan"; export import Vlan = Vlan.Vlan; import * as Vnic from "./vnic"; diff --git a/lib/core/lib/model/virtual-circuit-redundancy-metadata.ts b/lib/core/lib/model/virtual-circuit-redundancy-metadata.ts new file mode 100644 index 0000000000..e390046957 --- /dev/null +++ b/lib/core/lib/model/virtual-circuit-redundancy-metadata.ts @@ -0,0 +1,89 @@ +/** + * Core Services API + * Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +compute instances, and block storage volumes. For more information, see the console +documentation for the [Networking](/iaas/Content/Network/Concepts/overview.htm), +[Compute](/iaas/Content/Compute/Concepts/computeoverview.htm), and +[Block Volume](/iaas/Content/Block/Concepts/overview.htm) services. +The required permissions are documented in the +[Details for the Core Services](/iaas/Content/Identity/Reference/corepolicyreference.htm) article. + + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Redundancy level details of the virtual circuit + * + */ +export interface VirtualCircuitRedundancyMetadata { + /** + * The configured redundancy level of the virtual circuit + */ + "configuredRedundancyLevel"?: VirtualCircuitRedundancyMetadata.ConfiguredRedundancyLevel; + /** + * IPV4 BGP redundancy status indicates if the configured redundancy level is met + */ + "ipv4bgpSessionRedundancyStatus"?: VirtualCircuitRedundancyMetadata.Ipv4bgpSessionRedundancyStatus; + /** + * IPV6 BGP redundancy status indicates if the configured redundancy level is met + */ + "ipv6bgpSessionRedundancyStatus"?: VirtualCircuitRedundancyMetadata.Ipv6bgpSessionRedundancyStatus; +} + +export namespace VirtualCircuitRedundancyMetadata { + export enum ConfiguredRedundancyLevel { + Device = "DEVICE", + Pop = "POP", + Region = "REGION", + NonRedundant = "NON_REDUNDANT", + Pending = "PENDING", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum Ipv4bgpSessionRedundancyStatus { + ConfigurationMatch = "CONFIGURATION_MATCH", + ConfigurationMismatch = "CONFIGURATION_MISMATCH", + NotMetSla = "NOT_MET_SLA", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum Ipv6bgpSessionRedundancyStatus { + ConfigurationMatch = "CONFIGURATION_MATCH", + ConfigurationMismatch = "CONFIGURATION_MISMATCH", + NotMetSla = "NOT_MET_SLA", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: VirtualCircuitRedundancyMetadata): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: VirtualCircuitRedundancyMetadata): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/core/lib/model/virtual-circuit.ts b/lib/core/lib/model/virtual-circuit.ts index c95402197a..3ef754334d 100644 --- a/lib/core/lib/model/virtual-circuit.ts +++ b/lib/core/lib/model/virtual-circuit.ts @@ -230,6 +230,7 @@ Example: {@code 2016-08-25T21:10:29.600Z} * The layer 3 IP MTU to use on this virtual circuit. */ "ipMtu"?: model.VirtualCircuitIpMtu; + "virtualCircuitRedundancyMetadata"?: model.VirtualCircuitRedundancyMetadata; } export namespace VirtualCircuit { @@ -341,6 +342,10 @@ export namespace VirtualCircuit { ? obj.crossConnectMappings.map(item => { return model.CrossConnectMapping.getJsonObj(item); }) + : undefined, + + "virtualCircuitRedundancyMetadata": obj.virtualCircuitRedundancyMetadata + ? model.VirtualCircuitRedundancyMetadata.getJsonObj(obj.virtualCircuitRedundancyMetadata) : undefined } }; @@ -355,6 +360,12 @@ export namespace VirtualCircuit { ? obj.crossConnectMappings.map(item => { return model.CrossConnectMapping.getDeserializedJsonObj(item); }) + : undefined, + + "virtualCircuitRedundancyMetadata": obj.virtualCircuitRedundancyMetadata + ? model.VirtualCircuitRedundancyMetadata.getDeserializedJsonObj( + obj.virtualCircuitRedundancyMetadata + ) : undefined } }; diff --git a/lib/core/package.json b/lib/core/package.json index fef94c3dec..8e166724f6 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -1,6 +1,6 @@ { "name": "oci-core", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Core", "repository": { "type": "git", diff --git a/lib/dashboardservice/package.json b/lib/dashboardservice/package.json index 08b67390fd..4457a881b9 100644 --- a/lib/dashboardservice/package.json +++ b/lib/dashboardservice/package.json @@ -1,6 +1,6 @@ { "name": "oci-dashboardservice", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Dashboard Service Service", "repository": { "type": "git", diff --git a/lib/database/lib/model/autonomous-database-encryption-key-details.ts b/lib/database/lib/model/autonomous-database-encryption-key-details.ts new file mode 100644 index 0000000000..38ec908a07 --- /dev/null +++ b/lib/database/lib/model/autonomous-database-encryption-key-details.ts @@ -0,0 +1,86 @@ +/** + * Database Service API + * The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see [Overview of the Database Service](/iaas/Content/Database/Concepts/databaseoverview.htm). + + * OpenAPI spec version: 20160918 + * Contact: sic_dbaas_cp_us_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the Autonomous Database encryption key. + */ +export interface AutonomousDatabaseEncryptionKeyDetails { + "provider": string; +} + +export namespace AutonomousDatabaseEncryptionKeyDetails { + export function getJsonObj(obj: AutonomousDatabaseEncryptionKeyDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "provider" in obj && obj.provider) { + switch (obj.provider) { + case "OKV": + return model.OkvKeyDetails.getJsonObj((jsonObj), true); + case "AZURE": + return model.AzureKeyDetails.getJsonObj((jsonObj), true); + case "AWS": + return model.AwsKeyDetails.getJsonObj((jsonObj), true); + case "OCI": + return model.OciKeyDetails.getJsonObj((jsonObj), true); + case "ORACLE_MANAGED": + return model.OracleManagedKeyDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.provider}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: AutonomousDatabaseEncryptionKeyDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "provider" in obj && obj.provider) { + switch (obj.provider) { + case "OKV": + return model.OkvKeyDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "AZURE": + return model.AzureKeyDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "AWS": + return model.AwsKeyDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "OCI": + return model.OciKeyDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "ORACLE_MANAGED": + return model.OracleManagedKeyDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.provider}`); + } + } + return jsonObj; + } +} diff --git a/lib/database/lib/model/autonomous-database-encryption-key-history-entry.ts b/lib/database/lib/model/autonomous-database-encryption-key-history-entry.ts new file mode 100644 index 0000000000..85407167ae --- /dev/null +++ b/lib/database/lib/model/autonomous-database-encryption-key-history-entry.ts @@ -0,0 +1,59 @@ +/** + * Database Service API + * The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see [Overview of the Database Service](/iaas/Content/Database/Concepts/databaseoverview.htm). + + * OpenAPI spec version: 20160918 + * Contact: sic_dbaas_cp_us_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The Autonomous Database encryption key history entry. + */ +export interface AutonomousDatabaseEncryptionKeyHistoryEntry { + "encryptionKey"?: + | model.OkvKeyDetails + | model.AzureKeyDetails + | model.AwsKeyDetails + | model.OciKeyDetails + | model.OracleManagedKeyDetails; + /** + * The date and time the encryption key was activated. + */ + "timeActivated"?: Date; +} + +export namespace AutonomousDatabaseEncryptionKeyHistoryEntry { + export function getJsonObj(obj: AutonomousDatabaseEncryptionKeyHistoryEntry): object { + const jsonObj = { + ...obj, + ...{ + "encryptionKey": obj.encryptionKey + ? model.AutonomousDatabaseEncryptionKeyDetails.getJsonObj(obj.encryptionKey) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: AutonomousDatabaseEncryptionKeyHistoryEntry): object { + const jsonObj = { + ...obj, + ...{ + "encryptionKey": obj.encryptionKey + ? model.AutonomousDatabaseEncryptionKeyDetails.getDeserializedJsonObj(obj.encryptionKey) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/database/lib/model/autonomous-database-summary.ts b/lib/database/lib/model/autonomous-database-summary.ts index 6f56b77a7a..43d9bfbec2 100644 --- a/lib/database/lib/model/autonomous-database-summary.ts +++ b/lib/database/lib/model/autonomous-database-summary.ts @@ -54,6 +54,12 @@ export interface AutonomousDatabaseSummary { * KMS key lifecycle details. */ "kmsKeyLifecycleDetails"?: string; + "encryptionKey"?: + | model.OkvKeyDetails + | model.AzureKeyDetails + | model.AwsKeyDetails + | model.OciKeyDetails + | model.OracleManagedKeyDetails; /** * The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances. * @@ -117,6 +123,10 @@ This cannot be updated in parallel with any of the following: licenseModel, dbEd * Key History Entry. */ "keyHistoryEntry"?: Array; + /** + * Key History Entry. + */ + "encryptionKeyHistoryEntry"?: Array; /** * The number of CPU cores to be made available to the database. When the ECPU is selected, the value for cpuCoreCount is 0. For Autonomous Database on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See [Characteristics of Infrastructure Shapes](https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. *

@@ -872,6 +882,10 @@ export namespace AutonomousDatabaseSummary { const jsonObj = { ...obj, ...{ + "encryptionKey": obj.encryptionKey + ? model.AutonomousDatabaseEncryptionKeyDetails.getJsonObj(obj.encryptionKey) + : undefined, + "longTermBackupSchedule": obj.longTermBackupSchedule ? model.LongTermBackUpScheduleDetails.getJsonObj(obj.longTermBackupSchedule) : undefined, @@ -884,6 +898,11 @@ export namespace AutonomousDatabaseSummary { return model.AutonomousDatabaseKeyHistoryEntry.getJsonObj(item); }) : undefined, + "encryptionKeyHistoryEntry": obj.encryptionKeyHistoryEntry + ? obj.encryptionKeyHistoryEntry.map(item => { + return model.AutonomousDatabaseEncryptionKeyHistoryEntry.getJsonObj(item); + }) + : undefined, "connectionStrings": obj.connectionStrings ? model.AutonomousDatabaseConnectionStrings.getJsonObj(obj.connectionStrings) @@ -941,6 +960,10 @@ export namespace AutonomousDatabaseSummary { const jsonObj = { ...obj, ...{ + "encryptionKey": obj.encryptionKey + ? model.AutonomousDatabaseEncryptionKeyDetails.getDeserializedJsonObj(obj.encryptionKey) + : undefined, + "longTermBackupSchedule": obj.longTermBackupSchedule ? model.LongTermBackUpScheduleDetails.getDeserializedJsonObj(obj.longTermBackupSchedule) : undefined, @@ -953,6 +976,11 @@ export namespace AutonomousDatabaseSummary { return model.AutonomousDatabaseKeyHistoryEntry.getDeserializedJsonObj(item); }) : undefined, + "encryptionKeyHistoryEntry": obj.encryptionKeyHistoryEntry + ? obj.encryptionKeyHistoryEntry.map(item => { + return model.AutonomousDatabaseEncryptionKeyHistoryEntry.getDeserializedJsonObj(item); + }) + : undefined, "connectionStrings": obj.connectionStrings ? model.AutonomousDatabaseConnectionStrings.getDeserializedJsonObj(obj.connectionStrings) diff --git a/lib/database/lib/model/autonomous-database.ts b/lib/database/lib/model/autonomous-database.ts index a447bdbfd9..f6fc31d679 100644 --- a/lib/database/lib/model/autonomous-database.ts +++ b/lib/database/lib/model/autonomous-database.ts @@ -52,6 +52,12 @@ export interface AutonomousDatabase { * KMS key lifecycle details. */ "kmsKeyLifecycleDetails"?: string; + "encryptionKey"?: + | model.OkvKeyDetails + | model.AzureKeyDetails + | model.AwsKeyDetails + | model.OciKeyDetails + | model.OracleManagedKeyDetails; /** * The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances. * @@ -115,6 +121,10 @@ This cannot be updated in parallel with any of the following: licenseModel, dbEd * Key History Entry. */ "keyHistoryEntry"?: Array; + /** + * Key History Entry. + */ + "encryptionKeyHistoryEntry"?: Array; /** * The number of CPU cores to be made available to the database. When the ECPU is selected, the value for cpuCoreCount is 0. For Autonomous Database on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See [Characteristics of Infrastructure Shapes](https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. *

@@ -870,6 +880,10 @@ export namespace AutonomousDatabase { const jsonObj = { ...obj, ...{ + "encryptionKey": obj.encryptionKey + ? model.AutonomousDatabaseEncryptionKeyDetails.getJsonObj(obj.encryptionKey) + : undefined, + "longTermBackupSchedule": obj.longTermBackupSchedule ? model.LongTermBackUpScheduleDetails.getJsonObj(obj.longTermBackupSchedule) : undefined, @@ -882,6 +896,11 @@ export namespace AutonomousDatabase { return model.AutonomousDatabaseKeyHistoryEntry.getJsonObj(item); }) : undefined, + "encryptionKeyHistoryEntry": obj.encryptionKeyHistoryEntry + ? obj.encryptionKeyHistoryEntry.map(item => { + return model.AutonomousDatabaseEncryptionKeyHistoryEntry.getJsonObj(item); + }) + : undefined, "connectionStrings": obj.connectionStrings ? model.AutonomousDatabaseConnectionStrings.getJsonObj(obj.connectionStrings) @@ -939,6 +958,10 @@ export namespace AutonomousDatabase { const jsonObj = { ...obj, ...{ + "encryptionKey": obj.encryptionKey + ? model.AutonomousDatabaseEncryptionKeyDetails.getDeserializedJsonObj(obj.encryptionKey) + : undefined, + "longTermBackupSchedule": obj.longTermBackupSchedule ? model.LongTermBackUpScheduleDetails.getDeserializedJsonObj(obj.longTermBackupSchedule) : undefined, @@ -951,6 +974,11 @@ export namespace AutonomousDatabase { return model.AutonomousDatabaseKeyHistoryEntry.getDeserializedJsonObj(item); }) : undefined, + "encryptionKeyHistoryEntry": obj.encryptionKeyHistoryEntry + ? obj.encryptionKeyHistoryEntry.map(item => { + return model.AutonomousDatabaseEncryptionKeyHistoryEntry.getDeserializedJsonObj(item); + }) + : undefined, "connectionStrings": obj.connectionStrings ? model.AutonomousDatabaseConnectionStrings.getDeserializedJsonObj(obj.connectionStrings) diff --git a/lib/database/lib/model/aws-key-details.ts b/lib/database/lib/model/aws-key-details.ts new file mode 100644 index 0000000000..54bb1f7c0a --- /dev/null +++ b/lib/database/lib/model/aws-key-details.ts @@ -0,0 +1,66 @@ +/** + * Database Service API + * The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see [Overview of the Database Service](/iaas/Content/Database/Concepts/databaseoverview.htm). + + * OpenAPI spec version: 20160918 + * Contact: sic_dbaas_cp_us_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for AWS encryption key. + */ +export interface AwsKeyDetails extends model.AutonomousDatabaseEncryptionKeyDetails { + /** + * AWS key service endpoint URI + */ + "serviceEndpointUri": string; + /** + * AWS key ARN + */ + "keyArn": string; + /** + * AWS ARN role + */ + "arnRole"?: string; + /** + * AWS external ID + */ + "externalId"?: string; + + "provider": string; +} + +export namespace AwsKeyDetails { + export function getJsonObj(obj: AwsKeyDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AutonomousDatabaseEncryptionKeyDetails.getJsonObj(obj) as AwsKeyDetails)), + ...{} + }; + + return jsonObj; + } + export const provider = "AWS"; + export function getDeserializedJsonObj(obj: AwsKeyDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AutonomousDatabaseEncryptionKeyDetails.getDeserializedJsonObj( + obj + ) as AwsKeyDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/database/lib/model/azure-key-details.ts b/lib/database/lib/model/azure-key-details.ts new file mode 100644 index 0000000000..49e18a939b --- /dev/null +++ b/lib/database/lib/model/azure-key-details.ts @@ -0,0 +1,58 @@ +/** + * Database Service API + * The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see [Overview of the Database Service](/iaas/Content/Database/Concepts/databaseoverview.htm). + + * OpenAPI spec version: 20160918 + * Contact: sic_dbaas_cp_us_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for Azure encryption key. + */ +export interface AzureKeyDetails extends model.AutonomousDatabaseEncryptionKeyDetails { + /** + * Azure vault URI + */ + "vaultUri": string; + /** + * Azure key name + */ + "keyName": string; + + "provider": string; +} + +export namespace AzureKeyDetails { + export function getJsonObj(obj: AzureKeyDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AutonomousDatabaseEncryptionKeyDetails.getJsonObj(obj) as AzureKeyDetails)), + ...{} + }; + + return jsonObj; + } + export const provider = "AZURE"; + export function getDeserializedJsonObj(obj: AzureKeyDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AutonomousDatabaseEncryptionKeyDetails.getDeserializedJsonObj( + obj + ) as AzureKeyDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/database/lib/model/create-autonomous-database-base.ts b/lib/database/lib/model/create-autonomous-database-base.ts index a8a8226a35..b30f2a03b2 100644 --- a/lib/database/lib/model/create-autonomous-database-base.ts +++ b/lib/database/lib/model/create-autonomous-database-base.ts @@ -134,6 +134,12 @@ This cannot be updated in parallel with any of the following: licenseModel, dbEd * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and {@code secretId} are required for Customer Managed Keys. */ "vaultId"?: string; + "encryptionKey"?: + | model.OkvKeyDetails + | model.AzureKeyDetails + | model.AwsKeyDetails + | model.OciKeyDetails + | model.OracleManagedKeyDetails; /** * **Important** The {@code adminPassword} or {@code secretId} must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (\") or the username \"admin\", regardless of casing. *

@@ -404,6 +410,10 @@ export namespace CreateAutonomousDatabaseBase { const jsonObj = { ...obj, ...{ + "encryptionKey": obj.encryptionKey + ? model.AutonomousDatabaseEncryptionKeyDetails.getJsonObj(obj.encryptionKey) + : undefined, + "customerContacts": obj.customerContacts ? obj.customerContacts.map(item => { return model.CustomerContact.getJsonObj(item); @@ -485,6 +495,10 @@ export namespace CreateAutonomousDatabaseBase { const jsonObj = { ...obj, ...{ + "encryptionKey": obj.encryptionKey + ? model.AutonomousDatabaseEncryptionKeyDetails.getDeserializedJsonObj(obj.encryptionKey) + : undefined, + "customerContacts": obj.customerContacts ? obj.customerContacts.map(item => { return model.CustomerContact.getDeserializedJsonObj(item); diff --git a/lib/database/lib/model/index.ts b/lib/database/lib/model/index.ts index 03e54b8383..34d7d7e1bc 100644 --- a/lib/database/lib/model/index.ts +++ b/lib/database/lib/model/index.ts @@ -74,6 +74,10 @@ import * as AutonomousDatabaseConsoleTokenDetails from "./autonomous-database-co export import AutonomousDatabaseConsoleTokenDetails = AutonomousDatabaseConsoleTokenDetails.AutonomousDatabaseConsoleTokenDetails; import * as AutonomousDatabaseDataguardAssociation from "./autonomous-database-dataguard-association"; export import AutonomousDatabaseDataguardAssociation = AutonomousDatabaseDataguardAssociation.AutonomousDatabaseDataguardAssociation; +import * as AutonomousDatabaseEncryptionKeyDetails from "./autonomous-database-encryption-key-details"; +export import AutonomousDatabaseEncryptionKeyDetails = AutonomousDatabaseEncryptionKeyDetails.AutonomousDatabaseEncryptionKeyDetails; +import * as AutonomousDatabaseEncryptionKeyHistoryEntry from "./autonomous-database-encryption-key-history-entry"; +export import AutonomousDatabaseEncryptionKeyHistoryEntry = AutonomousDatabaseEncryptionKeyHistoryEntry.AutonomousDatabaseEncryptionKeyHistoryEntry; import * as AutonomousDatabaseKeyHistoryEntry from "./autonomous-database-key-history-entry"; export import AutonomousDatabaseKeyHistoryEntry = AutonomousDatabaseKeyHistoryEntry.AutonomousDatabaseKeyHistoryEntry; import * as AutonomousDatabaseManualRefreshDetails from "./autonomous-database-manual-refresh-details"; @@ -823,6 +827,10 @@ export import WorkloadType = WorkloadType.WorkloadType; import * as AutomatedMountDetails from "./automated-mount-details"; export import AutomatedMountDetails = AutomatedMountDetails.AutomatedMountDetails; +import * as AwsKeyDetails from "./aws-key-details"; +export import AwsKeyDetails = AwsKeyDetails.AwsKeyDetails; +import * as AzureKeyDetails from "./azure-key-details"; +export import AzureKeyDetails = AzureKeyDetails.AzureKeyDetails; import * as CreateAutonomousDatabaseCloneDetails from "./create-autonomous-database-clone-details"; export import CreateAutonomousDatabaseCloneDetails = CreateAutonomousDatabaseCloneDetails.CreateAutonomousDatabaseCloneDetails; import * as CreateAutonomousDatabaseDetails from "./create-autonomous-database-details"; @@ -897,8 +905,14 @@ import * as LaunchDbSystemFromDatabaseDetails from "./launch-db-system-from-data export import LaunchDbSystemFromDatabaseDetails = LaunchDbSystemFromDatabaseDetails.LaunchDbSystemFromDatabaseDetails; import * as LaunchDbSystemFromDbSystemDetails from "./launch-db-system-from-db-system-details"; export import LaunchDbSystemFromDbSystemDetails = LaunchDbSystemFromDbSystemDetails.LaunchDbSystemFromDbSystemDetails; +import * as OciKeyDetails from "./oci-key-details"; +export import OciKeyDetails = OciKeyDetails.OciKeyDetails; import * as OciProviderSetKeyVersionDetails from "./oci-provider-set-key-version-details"; export import OciProviderSetKeyVersionDetails = OciProviderSetKeyVersionDetails.OciProviderSetKeyVersionDetails; +import * as OkvKeyDetails from "./okv-key-details"; +export import OkvKeyDetails = OkvKeyDetails.OkvKeyDetails; +import * as OracleManagedKeyDetails from "./oracle-managed-key-details"; +export import OracleManagedKeyDetails = OracleManagedKeyDetails.OracleManagedKeyDetails; import * as PdbConversionToNewDatabaseDetails from "./pdb-conversion-to-new-database-details"; export import PdbConversionToNewDatabaseDetails = PdbConversionToNewDatabaseDetails.PdbConversionToNewDatabaseDetails; import * as SelfMountDetails from "./self-mount-details"; diff --git a/lib/database/lib/model/oci-key-details.ts b/lib/database/lib/model/oci-key-details.ts new file mode 100644 index 0000000000..c7ff409603 --- /dev/null +++ b/lib/database/lib/model/oci-key-details.ts @@ -0,0 +1,58 @@ +/** + * Database Service API + * The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see [Overview of the Database Service](/iaas/Content/Database/Concepts/databaseoverview.htm). + + * OpenAPI spec version: 20160918 + * Contact: sic_dbaas_cp_us_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for OCI encryption key. + */ +export interface OciKeyDetails extends model.AutonomousDatabaseEncryptionKeyDetails { + /** + * The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. + */ + "kmsKeyId": string; + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and {@code secretId} are required for Customer Managed Keys. + */ + "vaultId": string; + + "provider": string; +} + +export namespace OciKeyDetails { + export function getJsonObj(obj: OciKeyDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AutonomousDatabaseEncryptionKeyDetails.getJsonObj(obj) as OciKeyDetails)), + ...{} + }; + + return jsonObj; + } + export const provider = "OCI"; + export function getDeserializedJsonObj(obj: OciKeyDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AutonomousDatabaseEncryptionKeyDetails.getDeserializedJsonObj( + obj + ) as OciKeyDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/database/lib/model/okv-key-details.ts b/lib/database/lib/model/okv-key-details.ts new file mode 100644 index 0000000000..9418b94b1c --- /dev/null +++ b/lib/database/lib/model/okv-key-details.ts @@ -0,0 +1,70 @@ +/** + * Database Service API + * The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see [Overview of the Database Service](/iaas/Content/Database/Concepts/databaseoverview.htm). + + * OpenAPI spec version: 20160918 + * Contact: sic_dbaas_cp_us_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for OKV encryption key. + */ +export interface OkvKeyDetails extends model.AutonomousDatabaseEncryptionKeyDetails { + /** + * URI of OKV server + */ + "okvUri": string; + /** + * UUID of OKV KMS Key + */ + "okvKmsKey": string; + /** + * OKV wallet directory name + */ + "directoryName": string; + /** + * OKV certificate directory name + */ + "certificateDirectoryName": string; + /** + * OKV certificate id + */ + "certificateId"?: string; + + "provider": string; +} + +export namespace OkvKeyDetails { + export function getJsonObj(obj: OkvKeyDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AutonomousDatabaseEncryptionKeyDetails.getJsonObj(obj) as OkvKeyDetails)), + ...{} + }; + + return jsonObj; + } + export const provider = "OKV"; + export function getDeserializedJsonObj(obj: OkvKeyDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AutonomousDatabaseEncryptionKeyDetails.getDeserializedJsonObj( + obj + ) as OkvKeyDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/database/lib/model/oracle-managed-key-details.ts b/lib/database/lib/model/oracle-managed-key-details.ts new file mode 100644 index 0000000000..63f99d99f2 --- /dev/null +++ b/lib/database/lib/model/oracle-managed-key-details.ts @@ -0,0 +1,54 @@ +/** + * Database Service API + * The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see [Overview of the Database Service](/iaas/Content/Database/Concepts/databaseoverview.htm). + + * OpenAPI spec version: 20160918 + * Contact: sic_dbaas_cp_us_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for Oracle-managed encryption key. + */ +export interface OracleManagedKeyDetails extends model.AutonomousDatabaseEncryptionKeyDetails { + "provider": string; +} + +export namespace OracleManagedKeyDetails { + export function getJsonObj(obj: OracleManagedKeyDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AutonomousDatabaseEncryptionKeyDetails.getJsonObj( + obj + ) as OracleManagedKeyDetails)), + ...{} + }; + + return jsonObj; + } + export const provider = "ORACLE_MANAGED"; + export function getDeserializedJsonObj( + obj: OracleManagedKeyDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AutonomousDatabaseEncryptionKeyDetails.getDeserializedJsonObj( + obj + ) as OracleManagedKeyDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/database/lib/model/update-autonomous-database-details.ts b/lib/database/lib/model/update-autonomous-database-details.ts index d57db47ce0..c64e5ee5a1 100644 --- a/lib/database/lib/model/update-autonomous-database-details.ts +++ b/lib/database/lib/model/update-autonomous-database-details.ts @@ -401,6 +401,12 @@ This cannot be updated in parallel with any of the following: licenseModel, dbEd * The version of the vault secret. If no version is specified, the latest version will be used. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "secretVersionNumber"?: number; + "encryptionKey"?: + | model.OkvKeyDetails + | model.AzureKeyDetails + | model.AwsKeyDetails + | model.OciKeyDetails + | model.OracleManagedKeyDetails; } export namespace UpdateAutonomousDatabaseDetails { @@ -463,6 +469,10 @@ export namespace UpdateAutonomousDatabaseDetails { ? obj.dbToolsDetails.map(item => { return model.DatabaseTool.getJsonObj(item); }) + : undefined, + + "encryptionKey": obj.encryptionKey + ? model.AutonomousDatabaseEncryptionKeyDetails.getJsonObj(obj.encryptionKey) : undefined } }; @@ -496,6 +506,10 @@ export namespace UpdateAutonomousDatabaseDetails { ? obj.dbToolsDetails.map(item => { return model.DatabaseTool.getDeserializedJsonObj(item); }) + : undefined, + + "encryptionKey": obj.encryptionKey + ? model.AutonomousDatabaseEncryptionKeyDetails.getDeserializedJsonObj(obj.encryptionKey) : undefined } }; diff --git a/lib/database/package.json b/lib/database/package.json index 4fa0ed797a..6437c7a74c 100644 --- a/lib/database/package.json +++ b/lib/database/package.json @@ -1,6 +1,6 @@ { "name": "oci-database", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Database", "repository": { "type": "git", diff --git a/lib/databasemanagement/package.json b/lib/databasemanagement/package.json index 162dab03df..decf0d8d6d 100644 --- a/lib/databasemanagement/package.json +++ b/lib/databasemanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-databasemanagement", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Database Management Service", "repository": { "type": "git", diff --git a/lib/databasemigration/package.json b/lib/databasemigration/package.json index a10561f911..6cb99230e6 100644 --- a/lib/databasemigration/package.json +++ b/lib/databasemigration/package.json @@ -1,6 +1,6 @@ { "name": "oci-databasemigration", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Database Migration Service", "repository": { "type": "git", diff --git a/lib/databasetools/package.json b/lib/databasetools/package.json index 497417f8ee..6dc14fab68 100644 --- a/lib/databasetools/package.json +++ b/lib/databasetools/package.json @@ -1,6 +1,6 @@ { "name": "oci-databasetools", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Database Tools Service", "repository": { "type": "git", diff --git a/lib/datacatalog/package.json b/lib/datacatalog/package.json index 75bd3c8e3a..803a0fa21d 100644 --- a/lib/datacatalog/package.json +++ b/lib/datacatalog/package.json @@ -1,6 +1,6 @@ { "name": "oci-datacatalog", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Data catalogue Service", "repository": { "type": "git", diff --git a/lib/dataflow/package.json b/lib/dataflow/package.json index b35cc59756..fac350c87b 100644 --- a/lib/dataflow/package.json +++ b/lib/dataflow/package.json @@ -1,6 +1,6 @@ { "name": "oci-dataflow", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Dataflow service", "repository": { "type": "git", diff --git a/lib/dataintegration/package.json b/lib/dataintegration/package.json index fd5e1ce5b1..735bc6064e 100644 --- a/lib/dataintegration/package.json +++ b/lib/dataintegration/package.json @@ -1,6 +1,6 @@ { "name": "oci-dataintegration", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Data Integration Service", "repository": { "type": "git", diff --git a/lib/datalabelingservice/package.json b/lib/datalabelingservice/package.json index 01e5aedf89..41e76fbf85 100644 --- a/lib/datalabelingservice/package.json +++ b/lib/datalabelingservice/package.json @@ -1,6 +1,6 @@ { "name": "oci-datalabelingservice", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Data Labeling Service Service", "repository": { "type": "git", diff --git a/lib/datalabelingservicedataplane/package.json b/lib/datalabelingservicedataplane/package.json index 052aed7a50..1bb9fad157 100644 --- a/lib/datalabelingservicedataplane/package.json +++ b/lib/datalabelingservicedataplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-datalabelingservicedataplane", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Data Labeling Service Dataplane Service", "repository": { "type": "git", diff --git a/lib/datasafe/package.json b/lib/datasafe/package.json index 7d000b1a9c..2fdd1fdf32 100644 --- a/lib/datasafe/package.json +++ b/lib/datasafe/package.json @@ -1,6 +1,6 @@ { "name": "oci-datasafe", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Data Safe ", "repository": { "type": "git", diff --git a/lib/datascience/lib/client.ts b/lib/datascience/lib/client.ts index 76bf51874f..adbcbe1134 100644 --- a/lib/datascience/lib/client.ts +++ b/lib/datascience/lib/client.ts @@ -7549,6 +7549,79 @@ export class DataScienceClient { return paginateResponses(request, req => this.listWorkRequests(req)); } + /** + * Restore archived model artifact + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param RestoreArchivedModelArtifactRequest + * @return RestoreArchivedModelArtifactResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/RestoreArchivedModelArtifact.ts.html |here} to see how to use RestoreArchivedModelArtifact API. + */ + public async restoreArchivedModelArtifact( + restoreArchivedModelArtifactRequest: requests.RestoreArchivedModelArtifactRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataScienceClient#restoreArchivedModelArtifact."); + const operationName = "restoreArchivedModelArtifact"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/data-science/20190101/Model/RestoreArchivedModelArtifact"; + const pathParams = { + "{modelId}": restoreArchivedModelArtifactRequest.modelId + }; + + const queryParams = { + "restoreModelForHoursSpecified": + restoreArchivedModelArtifactRequest.restoreModelForHoursSpecified + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": restoreArchivedModelArtifactRequest.opcRequestId, + "opc-retry-token": restoreArchivedModelArtifactRequest.opcRetryToken, + "if-match": restoreArchivedModelArtifactRequest.ifMatch + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + restoreArchivedModelArtifactRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/models/{modelId}/actions/restore", + method: "POST", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + /** * Updates a private endpoint using a `privateEndpointId`. If changes to a private endpoint match * a previously defined private endpoint, then a 409 status code is returned. This indicates diff --git a/lib/datascience/lib/model/backup-operation-details.ts b/lib/datascience/lib/model/backup-operation-details.ts new file mode 100644 index 0000000000..1543bc6a4a --- /dev/null +++ b/lib/datascience/lib/model/backup-operation-details.ts @@ -0,0 +1,47 @@ +/** + * Data Science API + * Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see [Data Science](https://docs.oracle.com/iaas/data-science/using/data-science.htm). + + * OpenAPI spec version: 20190101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Backup operation details of the model. + */ +export interface BackupOperationDetails { + /** + * The last backup execution time of the model. + */ + "timeLastBackup"?: Date; + /** + * The backup status of the model. + */ + "backupState": model.ModelSettingActionState; + /** + * The backup execution status details of the model. + */ + "backupStateDetails": string; +} + +export namespace BackupOperationDetails { + export function getJsonObj(obj: BackupOperationDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: BackupOperationDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/datascience/lib/model/backup-setting.ts b/lib/datascience/lib/model/backup-setting.ts new file mode 100644 index 0000000000..82f6a8f39a --- /dev/null +++ b/lib/datascience/lib/model/backup-setting.ts @@ -0,0 +1,47 @@ +/** + * Data Science API + * Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see [Data Science](https://docs.oracle.com/iaas/data-science/using/data-science.htm). + + * OpenAPI spec version: 20190101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Back up setting details of the model. + */ +export interface BackupSetting { + /** + * Boolean flag representing whether backup needs to be enabled/disabled for the model. + */ + "isBackupEnabled": boolean; + /** + * OCI backup region for the model. + */ + "backupRegion": string; + /** + * Customer notification on backup success/failure events. + */ + "customerNotificationType"?: model.ModelSettingCustomerNotificationType; +} + +export namespace BackupSetting { + export function getJsonObj(obj: BackupSetting): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: BackupSetting): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/datascience/lib/model/create-model-details.ts b/lib/datascience/lib/model/create-model-details.ts index 0efcef2816..5b7499257d 100644 --- a/lib/datascience/lib/model/create-model-details.ts +++ b/lib/datascience/lib/model/create-model-details.ts @@ -73,6 +73,8 @@ export interface CreateModelDetails { * The version label can add an additional description of the lifecycle state of the model or the application using/training the model. */ "versionLabel"?: string; + "retentionSetting"?: model.RetentionSetting; + "backupSetting"?: model.BackupSetting; } export namespace CreateModelDetails { @@ -89,6 +91,13 @@ export namespace CreateModelDetails { ? obj.definedMetadataList.map(item => { return model.Metadata.getJsonObj(item); }) + : undefined, + + "retentionSetting": obj.retentionSetting + ? model.RetentionSetting.getJsonObj(obj.retentionSetting) + : undefined, + "backupSetting": obj.backupSetting + ? model.BackupSetting.getJsonObj(obj.backupSetting) : undefined } }; @@ -108,6 +117,13 @@ export namespace CreateModelDetails { ? obj.definedMetadataList.map(item => { return model.Metadata.getDeserializedJsonObj(item); }) + : undefined, + + "retentionSetting": obj.retentionSetting + ? model.RetentionSetting.getDeserializedJsonObj(obj.retentionSetting) + : undefined, + "backupSetting": obj.backupSetting + ? model.BackupSetting.getDeserializedJsonObj(obj.backupSetting) : undefined } }; diff --git a/lib/datascience/lib/model/index.ts b/lib/datascience/lib/model/index.ts index 91b197edd2..96bc539e17 100644 --- a/lib/datascience/lib/model/index.ts +++ b/lib/datascience/lib/model/index.ts @@ -20,6 +20,10 @@ import * as ArtifactSourceType from "./artifact-source-type"; export import ArtifactSourceType = ArtifactSourceType.ArtifactSourceType; import * as AutoScalingPolicyDetails from "./auto-scaling-policy-details"; export import AutoScalingPolicyDetails = AutoScalingPolicyDetails.AutoScalingPolicyDetails; +import * as BackupOperationDetails from "./backup-operation-details"; +export import BackupOperationDetails = BackupOperationDetails.BackupOperationDetails; +import * as BackupSetting from "./backup-setting"; +export import BackupSetting = BackupSetting.BackupSetting; import * as CategoryLogDetails from "./category-log-details"; export import CategoryLogDetails = CategoryLogDetails.CategoryLogDetails; import * as ChangeDataSciencePrivateEndpointCompartmentDetails from "./change-data-science-private-endpoint-compartment-details"; @@ -142,6 +146,10 @@ import * as ModelLifecycleState from "./model-lifecycle-state"; export import ModelLifecycleState = ModelLifecycleState.ModelLifecycleState; import * as ModelProvenance from "./model-provenance"; export import ModelProvenance = ModelProvenance.ModelProvenance; +import * as ModelSettingActionState from "./model-setting-action-state"; +export import ModelSettingActionState = ModelSettingActionState.ModelSettingActionState; +import * as ModelSettingCustomerNotificationType from "./model-setting-customer-notification-type"; +export import ModelSettingCustomerNotificationType = ModelSettingCustomerNotificationType.ModelSettingCustomerNotificationType; import * as ModelSummary from "./model-summary"; export import ModelSummary = ModelSummary.ModelSummary; import * as ModelVersionSet from "./model-version-set"; @@ -212,6 +220,10 @@ import * as ProjectLifecycleState from "./project-lifecycle-state"; export import ProjectLifecycleState = ProjectLifecycleState.ProjectLifecycleState; import * as ProjectSummary from "./project-summary"; export import ProjectSummary = ProjectSummary.ProjectSummary; +import * as RetentionOperationDetails from "./retention-operation-details"; +export import RetentionOperationDetails = RetentionOperationDetails.RetentionOperationDetails; +import * as RetentionSetting from "./retention-setting"; +export import RetentionSetting = RetentionSetting.RetentionSetting; import * as ScalingConfiguration from "./scaling-configuration"; export import ScalingConfiguration = ScalingConfiguration.ScalingConfiguration; import * as ScalingPolicy from "./scaling-policy"; diff --git a/lib/datascience/lib/model/model-setting-action-state.ts b/lib/datascience/lib/model/model-setting-action-state.ts new file mode 100644 index 0000000000..d4ff1223fc --- /dev/null +++ b/lib/datascience/lib/model/model-setting-action-state.ts @@ -0,0 +1,40 @@ +/** + * Data Science API + * Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see [Data Science](https://docs.oracle.com/iaas/data-science/using/data-science.htm). + + * OpenAPI spec version: 20190101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Represents the state of the model for backup, archival and deletion. + **/ +export enum ModelSettingActionState { + Pending = "PENDING", + Failed = "FAILED", + Succeeded = "SUCCEEDED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace ModelSettingActionState { + export function getJsonObj(obj: ModelSettingActionState): ModelSettingActionState { + return obj; + } + export function getDeserializedJsonObj(obj: ModelSettingActionState): ModelSettingActionState { + return obj; + } +} diff --git a/lib/datascience/lib/model/model-setting-customer-notification-type.ts b/lib/datascience/lib/model/model-setting-customer-notification-type.ts new file mode 100644 index 0000000000..ce10b09d60 --- /dev/null +++ b/lib/datascience/lib/model/model-setting-customer-notification-type.ts @@ -0,0 +1,45 @@ +/** + * Data Science API + * Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see [Data Science](https://docs.oracle.com/iaas/data-science/using/data-science.htm). + + * OpenAPI spec version: 20190101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Customer notification type based on setting action events for backup, archival and deletion. + **/ +export enum ModelSettingCustomerNotificationType { + None = "NONE", + All = "ALL", + OnFailure = "ON_FAILURE", + OnSuccess = "ON_SUCCESS", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace ModelSettingCustomerNotificationType { + export function getJsonObj( + obj: ModelSettingCustomerNotificationType + ): ModelSettingCustomerNotificationType { + return obj; + } + export function getDeserializedJsonObj( + obj: ModelSettingCustomerNotificationType + ): ModelSettingCustomerNotificationType { + return obj; + } +} diff --git a/lib/datascience/lib/model/model-summary.ts b/lib/datascience/lib/model/model-summary.ts index 88f3646994..e5b7ce23ba 100644 --- a/lib/datascience/lib/model/model-summary.ts +++ b/lib/datascience/lib/model/model-summary.ts @@ -49,6 +49,10 @@ export interface ModelSummary { * The state of the model. */ "lifecycleState": model.ModelLifecycleState; + /** + * Details about the lifecycle state of the model. + */ + "lifecycleDetails"?: string; /** * The OCID of the model version set that the model is associated to. */ diff --git a/lib/datascience/lib/model/model.ts b/lib/datascience/lib/model/model.ts index 693cf3d757..4bdbed03b1 100644 --- a/lib/datascience/lib/model/model.ts +++ b/lib/datascience/lib/model/model.ts @@ -43,6 +43,10 @@ export interface Model { * The state of the model. */ "lifecycleState": model.ModelLifecycleState; + /** + * Details about the lifecycle state of the model. + */ + "lifecycleDetails": string; /** * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: 2019-08-25T21:10:29.41Z @@ -97,6 +101,10 @@ export interface Model { * The version label can add an additional description of the lifecycle state of the model or the application using and training the model. */ "versionLabel": string; + "retentionSetting": model.RetentionSetting; + "backupSetting": model.BackupSetting; + "retentionOperationDetails": model.RetentionOperationDetails; + "backupOperationDetails": model.BackupOperationDetails; } export namespace Model { @@ -113,6 +121,19 @@ export namespace Model { ? obj.definedMetadataList.map(item => { return model.Metadata.getJsonObj(item); }) + : undefined, + + "retentionSetting": obj.retentionSetting + ? model.RetentionSetting.getJsonObj(obj.retentionSetting) + : undefined, + "backupSetting": obj.backupSetting + ? model.BackupSetting.getJsonObj(obj.backupSetting) + : undefined, + "retentionOperationDetails": obj.retentionOperationDetails + ? model.RetentionOperationDetails.getJsonObj(obj.retentionOperationDetails) + : undefined, + "backupOperationDetails": obj.backupOperationDetails + ? model.BackupOperationDetails.getJsonObj(obj.backupOperationDetails) : undefined } }; @@ -132,6 +153,19 @@ export namespace Model { ? obj.definedMetadataList.map(item => { return model.Metadata.getDeserializedJsonObj(item); }) + : undefined, + + "retentionSetting": obj.retentionSetting + ? model.RetentionSetting.getDeserializedJsonObj(obj.retentionSetting) + : undefined, + "backupSetting": obj.backupSetting + ? model.BackupSetting.getDeserializedJsonObj(obj.backupSetting) + : undefined, + "retentionOperationDetails": obj.retentionOperationDetails + ? model.RetentionOperationDetails.getDeserializedJsonObj(obj.retentionOperationDetails) + : undefined, + "backupOperationDetails": obj.backupOperationDetails + ? model.BackupOperationDetails.getDeserializedJsonObj(obj.backupOperationDetails) : undefined } }; diff --git a/lib/datascience/lib/model/retention-operation-details.ts b/lib/datascience/lib/model/retention-operation-details.ts new file mode 100644 index 0000000000..02d1f567a8 --- /dev/null +++ b/lib/datascience/lib/model/retention-operation-details.ts @@ -0,0 +1,59 @@ +/** + * Data Science API + * Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see [Data Science](https://docs.oracle.com/iaas/data-science/using/data-science.htm). + + * OpenAPI spec version: 20190101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Retention operation details for the model. + */ +export interface RetentionOperationDetails { + /** + * The archival status of model. + */ + "archiveState": model.ModelSettingActionState; + /** + * The archival state details of the model. + */ + "archiveStateDetails": string; + /** + * The estimated archival time of the model based on the provided retention setting. + */ + "timeArchivalScheduled": Date; + /** + * The deletion status of the archived model. + */ + "deleteState": model.ModelSettingActionState; + /** + * The deletion status details of the archived model. + */ + "deleteStateDetails": string; + /** + * The estimated deletion time of the model based on the provided retention setting. + */ + "timeDeletionScheduled": Date; +} + +export namespace RetentionOperationDetails { + export function getJsonObj(obj: RetentionOperationDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: RetentionOperationDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/datascience/lib/model/retention-setting.ts b/lib/datascience/lib/model/retention-setting.ts new file mode 100644 index 0000000000..cc93b32bc6 --- /dev/null +++ b/lib/datascience/lib/model/retention-setting.ts @@ -0,0 +1,47 @@ +/** + * Data Science API + * Use the Data Science API to organize your data science work, access data and computing resources, and build, train, deploy and manage models and model deployments. For more information, see [Data Science](https://docs.oracle.com/iaas/data-science/using/data-science.htm). + + * OpenAPI spec version: 20190101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Retention setting details of the model. + */ +export interface RetentionSetting { + /** + * Number of days after which the model will be archived. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "archiveAfterDays": number; + /** + * Number of days after which the archived model will be deleted. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "deleteAfterDays"?: number; + /** + * Customer notification options on success/failure of archival, deletion events. + */ + "customerNotificationType"?: model.ModelSettingCustomerNotificationType; +} + +export namespace RetentionSetting { + export function getJsonObj(obj: RetentionSetting): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: RetentionSetting): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/datascience/lib/model/update-model-details.ts b/lib/datascience/lib/model/update-model-details.ts index b73c62ae00..1e1a2dd287 100644 --- a/lib/datascience/lib/model/update-model-details.ts +++ b/lib/datascience/lib/model/update-model-details.ts @@ -58,6 +58,8 @@ export interface UpdateModelDetails { * The version label can add an additional description of the lifecycle state of the model or the application using/training the model. */ "versionLabel"?: string; + "retentionSetting"?: model.RetentionSetting; + "backupSetting"?: model.BackupSetting; } export namespace UpdateModelDetails { @@ -74,6 +76,13 @@ export namespace UpdateModelDetails { ? obj.definedMetadataList.map(item => { return model.Metadata.getJsonObj(item); }) + : undefined, + + "retentionSetting": obj.retentionSetting + ? model.RetentionSetting.getJsonObj(obj.retentionSetting) + : undefined, + "backupSetting": obj.backupSetting + ? model.BackupSetting.getJsonObj(obj.backupSetting) : undefined } }; @@ -93,6 +102,13 @@ export namespace UpdateModelDetails { ? obj.definedMetadataList.map(item => { return model.Metadata.getDeserializedJsonObj(item); }) + : undefined, + + "retentionSetting": obj.retentionSetting + ? model.RetentionSetting.getDeserializedJsonObj(obj.retentionSetting) + : undefined, + "backupSetting": obj.backupSetting + ? model.BackupSetting.getDeserializedJsonObj(obj.backupSetting) : undefined } }; diff --git a/lib/datascience/lib/model/work-request-operation-type.ts b/lib/datascience/lib/model/work-request-operation-type.ts index a7c9a2220a..62dda744c3 100644 --- a/lib/datascience/lib/model/work-request-operation-type.ts +++ b/lib/datascience/lib/model/work-request-operation-type.ts @@ -43,6 +43,7 @@ export enum WorkRequestOperationType { PrivateEndpointDelete = "PRIVATE_ENDPOINT_DELETE", PrivateEndpointMove = "PRIVATE_ENDPOINT_MOVE", PrivateEndpointUpdate = "PRIVATE_ENDPOINT_UPDATE", + RestoreArchivedModel = "RESTORE_ARCHIVED_MODEL", /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/lib/datascience/lib/request/index.ts b/lib/datascience/lib/request/index.ts index e82bc17d38..cb0ad0ed1d 100644 --- a/lib/datascience/lib/request/index.ts +++ b/lib/datascience/lib/request/index.ts @@ -172,6 +172,8 @@ import * as ListWorkRequestLogsRequest from "./list-work-request-logs-request"; export import ListWorkRequestLogsRequest = ListWorkRequestLogsRequest.ListWorkRequestLogsRequest; import * as ListWorkRequestsRequest from "./list-work-requests-request"; export import ListWorkRequestsRequest = ListWorkRequestsRequest.ListWorkRequestsRequest; +import * as RestoreArchivedModelArtifactRequest from "./restore-archived-model-artifact-request"; +export import RestoreArchivedModelArtifactRequest = RestoreArchivedModelArtifactRequest.RestoreArchivedModelArtifactRequest; import * as UpdateDataSciencePrivateEndpointRequest from "./update-data-science-private-endpoint-request"; export import UpdateDataSciencePrivateEndpointRequest = UpdateDataSciencePrivateEndpointRequest.UpdateDataSciencePrivateEndpointRequest; import * as UpdateJobRequest from "./update-job-request"; diff --git a/lib/datascience/lib/request/list-work-requests-request.ts b/lib/datascience/lib/request/list-work-requests-request.ts index ee7c4bb926..d5393f4fe6 100644 --- a/lib/datascience/lib/request/list-work-requests-request.ts +++ b/lib/datascience/lib/request/list-work-requests-request.ts @@ -95,7 +95,8 @@ export namespace ListWorkRequestsRequest { PrivateEndpointCreate = "PRIVATE_ENDPOINT_CREATE", PrivateEndpointDelete = "PRIVATE_ENDPOINT_DELETE", PrivateEndpointMove = "PRIVATE_ENDPOINT_MOVE", - PrivateEndpointUpdate = "PRIVATE_ENDPOINT_UPDATE" + PrivateEndpointUpdate = "PRIVATE_ENDPOINT_UPDATE", + RestoreArchivedModel = "RESTORE_ARCHIVED_MODEL" } export enum Status { diff --git a/lib/datascience/lib/request/restore-archived-model-artifact-request.ts b/lib/datascience/lib/request/restore-archived-model-artifact-request.ts new file mode 100644 index 0000000000..e33bacb61c --- /dev/null +++ b/lib/datascience/lib/request/restore-archived-model-artifact-request.ts @@ -0,0 +1,48 @@ +/** + * + * + * OpenAPI spec version: 20190101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datascience/RestoreArchivedModelArtifact.ts.html |here} to see how to use RestoreArchivedModelArtifactRequest. + */ +export interface RestoreArchivedModelArtifactRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the model. + */ + "modelId": string; + /** + * Duration in hours for which the archived model is available for access. + */ + "restoreModelForHoursSpecified"?: number; + /** + * Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource is updated or deleted only if the {@code etag} you + * provide matches the resource's current {@code etag} value. + * + */ + "ifMatch"?: string; +} diff --git a/lib/datascience/lib/response/index.ts b/lib/datascience/lib/response/index.ts index 5ba65305b5..3064c51601 100644 --- a/lib/datascience/lib/response/index.ts +++ b/lib/datascience/lib/response/index.ts @@ -172,6 +172,8 @@ import * as ListWorkRequestLogsResponse from "./list-work-request-logs-response" export import ListWorkRequestLogsResponse = ListWorkRequestLogsResponse.ListWorkRequestLogsResponse; import * as ListWorkRequestsResponse from "./list-work-requests-response"; export import ListWorkRequestsResponse = ListWorkRequestsResponse.ListWorkRequestsResponse; +import * as RestoreArchivedModelArtifactResponse from "./restore-archived-model-artifact-response"; +export import RestoreArchivedModelArtifactResponse = RestoreArchivedModelArtifactResponse.RestoreArchivedModelArtifactResponse; import * as UpdateDataSciencePrivateEndpointResponse from "./update-data-science-private-endpoint-response"; export import UpdateDataSciencePrivateEndpointResponse = UpdateDataSciencePrivateEndpointResponse.UpdateDataSciencePrivateEndpointResponse; import * as UpdateJobResponse from "./update-job-response"; diff --git a/lib/datascience/lib/response/restore-archived-model-artifact-response.ts b/lib/datascience/lib/response/restore-archived-model-artifact-response.ts new file mode 100644 index 0000000000..ccd12cda94 --- /dev/null +++ b/lib/datascience/lib/response/restore-archived-model-artifact-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20190101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface RestoreArchivedModelArtifactResponse { + /** + * Unique Oracle assigned identifier for the request. If you need to contact + * Oracle about a particular request, then provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/datascience/package.json b/lib/datascience/package.json index f8b0c1cb06..b312bc3523 100644 --- a/lib/datascience/package.json +++ b/lib/datascience/package.json @@ -1,6 +1,6 @@ { "name": "oci-datascience", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Data Science Service", "repository": { "type": "git", diff --git a/lib/delegateaccesscontrol/package.json b/lib/delegateaccesscontrol/package.json index fb0c7c6a30..cc3974fb8e 100644 --- a/lib/delegateaccesscontrol/package.json +++ b/lib/delegateaccesscontrol/package.json @@ -1,6 +1,6 @@ { "name": "oci-delegateaccesscontrol", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Delegate Access Control Service", "repository": { "type": "git", diff --git a/lib/demandsignal/package.json b/lib/demandsignal/package.json index d1ea75e128..1debd502c1 100644 --- a/lib/demandsignal/package.json +++ b/lib/demandsignal/package.json @@ -1,6 +1,6 @@ { "name": "oci-demandsignal", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Demand Signal Service", "repository": { "type": "git", diff --git a/lib/desktops/package.json b/lib/desktops/package.json index bdaaa8e349..44a2d29396 100644 --- a/lib/desktops/package.json +++ b/lib/desktops/package.json @@ -1,6 +1,6 @@ { "name": "oci-desktops", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Desktops Service", "repository": { "type": "git", diff --git a/lib/devops/package.json b/lib/devops/package.json index 0065c1c81b..7a23cfbe43 100644 --- a/lib/devops/package.json +++ b/lib/devops/package.json @@ -1,6 +1,6 @@ { "name": "oci-devops", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Devops Service", "repository": { "type": "git", diff --git a/lib/disasterrecovery/package.json b/lib/disasterrecovery/package.json index 621ccb8c36..d74f82a4f1 100644 --- a/lib/disasterrecovery/package.json +++ b/lib/disasterrecovery/package.json @@ -1,6 +1,6 @@ { "name": "oci-disasterrecovery", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Disaster Recovery Service", "repository": { "type": "git", diff --git a/lib/dns/package.json b/lib/dns/package.json index a401c0180c..66560ed7e4 100644 --- a/lib/dns/package.json +++ b/lib/dns/package.json @@ -1,6 +1,6 @@ { "name": "oci-dns", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for DNS", "repository": { "type": "git", diff --git a/lib/dts/package.json b/lib/dts/package.json index 123c08e71e..1d692c20e9 100644 --- a/lib/dts/package.json +++ b/lib/dts/package.json @@ -1,6 +1,6 @@ { "name": "oci-dts", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Dts Service", "repository": { "type": "git", diff --git a/lib/email/package.json b/lib/email/package.json index e9927db6cd..e665cc0487 100644 --- a/lib/email/package.json +++ b/lib/email/package.json @@ -1,6 +1,6 @@ { "name": "oci-email", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Email", "repository": { "type": "git", diff --git a/lib/emaildataplane/package.json b/lib/emaildataplane/package.json index f96e00f353..a565145ca5 100644 --- a/lib/emaildataplane/package.json +++ b/lib/emaildataplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-emaildataplane", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Email Data Plane Service", "repository": { "type": "git", diff --git a/lib/emwarehouse/package.json b/lib/emwarehouse/package.json index da9eb1ce93..aa04d59b5c 100644 --- a/lib/emwarehouse/package.json +++ b/lib/emwarehouse/package.json @@ -1,6 +1,6 @@ { "name": "oci-emwarehouse", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Em Warehouse Service", "repository": { "type": "git", diff --git a/lib/events/package.json b/lib/events/package.json index 501a76eb2f..aba7863d26 100644 --- a/lib/events/package.json +++ b/lib/events/package.json @@ -1,6 +1,6 @@ { "name": "oci-events", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Events Service", "repository": { "type": "git", diff --git a/lib/filestorage/lib/client.ts b/lib/filestorage/lib/client.ts index e42bac38b2..cd5d4d49dd 100644 --- a/lib/filestorage/lib/client.ts +++ b/lib/filestorage/lib/client.ts @@ -225,46 +225,49 @@ export class FileStorageClient { } /** - * Cancel scheduled downgrade shape request for mount target. - * + * Adds a lock to a resource. * This operation does not retry by default if the user has not defined a retry configuration. - * @param CancelDowngradeShapeMountTargetRequest - * @return CancelDowngradeShapeMountTargetResponse + * @param AddExportLockRequest + * @return AddExportLockResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CancelDowngradeShapeMountTarget.ts.html |here} to see how to use CancelDowngradeShapeMountTarget API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddExportLock.ts.html |here} to see how to use AddExportLock API. */ - public async cancelDowngradeShapeMountTarget( - cancelDowngradeShapeMountTargetRequest: requests.CancelDowngradeShapeMountTargetRequest - ): Promise { - if (this.logger) - this.logger.debug("Calling operation FileStorageClient#cancelDowngradeShapeMountTarget."); - const operationName = "cancelDowngradeShapeMountTarget"; + public async addExportLock( + addExportLockRequest: requests.AddExportLockRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#addExportLock."); + const operationName = "addExportLock"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CancelDowngradeShapeMountTarget"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/AddExportLock"; const pathParams = { - "{mountTargetId}": cancelDowngradeShapeMountTargetRequest.mountTargetId + "{exportId}": addExportLockRequest.exportId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": cancelDowngradeShapeMountTargetRequest.ifMatch, - "opc-request-id": cancelDowngradeShapeMountTargetRequest.opcRequestId + "if-match": addExportLockRequest.ifMatch, + "opc-request-id": addExportLockRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - cancelDowngradeShapeMountTargetRequest.retryConfiguration, + addExportLockRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/mountTargets/{mountTargetId}/actions/cancelShapeDowngrade", + path: "/exports/{exportId}/actions/addLock", method: "POST", + bodyContent: common.ObjectSerializer.serialize( + addExportLockRequest.addExportLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -278,11 +281,11 @@ export class FileStorageClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "mountTarget", - bodyModel: model.MountTarget, - type: "model.MountTarget", + bodyKey: "export", + bodyModel: model.Export, + type: "model.Export", responseHeaders: [ { value: response.headers.get("etag"), @@ -304,50 +307,48 @@ export class FileStorageClient { } /** - * Moves a file system and its associated snapshots into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) - * + * Adds a lock to a resource. * This operation does not retry by default if the user has not defined a retry configuration. - * @param ChangeFileSystemCompartmentRequest - * @return ChangeFileSystemCompartmentResponse + * @param AddFileSystemLockRequest + * @return AddFileSystemLockResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ChangeFileSystemCompartment.ts.html |here} to see how to use ChangeFileSystemCompartment API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddFileSystemLock.ts.html |here} to see how to use AddFileSystemLock API. */ - public async changeFileSystemCompartment( - changeFileSystemCompartmentRequest: requests.ChangeFileSystemCompartmentRequest - ): Promise { - if (this.logger) - this.logger.debug("Calling operation FileStorageClient#changeFileSystemCompartment."); - const operationName = "changeFileSystemCompartment"; + public async addFileSystemLock( + addFileSystemLockRequest: requests.AddFileSystemLockRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#addFileSystemLock."); + const operationName = "addFileSystemLock"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/ChangeFileSystemCompartment"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/AddFileSystemLock"; const pathParams = { - "{fileSystemId}": changeFileSystemCompartmentRequest.fileSystemId + "{fileSystemId}": addFileSystemLockRequest.fileSystemId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": changeFileSystemCompartmentRequest.ifMatch, - "opc-request-id": changeFileSystemCompartmentRequest.opcRequestId + "if-match": addFileSystemLockRequest.ifMatch, + "opc-request-id": addFileSystemLockRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - changeFileSystemCompartmentRequest.retryConfiguration, + addFileSystemLockRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/fileSystems/{fileSystemId}/actions/changeCompartment", + path: "/fileSystems/{fileSystemId}/actions/addLock", method: "POST", bodyContent: common.ObjectSerializer.serialize( - changeFileSystemCompartmentRequest.changeFileSystemCompartmentDetails, - "ChangeFileSystemCompartmentDetails", - model.ChangeFileSystemCompartmentDetails.getJsonObj + addFileSystemLockRequest.addFileSystemLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -362,8 +363,17 @@ export class FileStorageClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "fileSystem", + bodyModel: model.FileSystem, + type: "model.FileSystem", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -379,53 +389,50 @@ export class FileStorageClient { } /** - * Moves a file system snapshot policy into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). - * + * Adds a lock to a resource. * This operation does not retry by default if the user has not defined a retry configuration. - * @param ChangeFilesystemSnapshotPolicyCompartmentRequest - * @return ChangeFilesystemSnapshotPolicyCompartmentResponse + * @param AddFilesystemSnapshotPolicyLockRequest + * @return AddFilesystemSnapshotPolicyLockResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ChangeFilesystemSnapshotPolicyCompartment.ts.html |here} to see how to use ChangeFilesystemSnapshotPolicyCompartment API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddFilesystemSnapshotPolicyLock.ts.html |here} to see how to use AddFilesystemSnapshotPolicyLock API. */ - public async changeFilesystemSnapshotPolicyCompartment( - changeFilesystemSnapshotPolicyCompartmentRequest: requests.ChangeFilesystemSnapshotPolicyCompartmentRequest - ): Promise { + public async addFilesystemSnapshotPolicyLock( + addFilesystemSnapshotPolicyLockRequest: requests.AddFilesystemSnapshotPolicyLockRequest + ): Promise { if (this.logger) - this.logger.debug( - "Calling operation FileStorageClient#changeFilesystemSnapshotPolicyCompartment." - ); - const operationName = "changeFilesystemSnapshotPolicyCompartment"; + this.logger.debug("Calling operation FileStorageClient#addFilesystemSnapshotPolicyLock."); + const operationName = "addFilesystemSnapshotPolicyLock"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/ChangeFilesystemSnapshotPolicyCompartment"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/AddFilesystemSnapshotPolicyLock"; const pathParams = { "{filesystemSnapshotPolicyId}": - changeFilesystemSnapshotPolicyCompartmentRequest.filesystemSnapshotPolicyId + addFilesystemSnapshotPolicyLockRequest.filesystemSnapshotPolicyId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": changeFilesystemSnapshotPolicyCompartmentRequest.ifMatch, - "opc-request-id": changeFilesystemSnapshotPolicyCompartmentRequest.opcRequestId + "if-match": addFilesystemSnapshotPolicyLockRequest.ifMatch, + "opc-request-id": addFilesystemSnapshotPolicyLockRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - changeFilesystemSnapshotPolicyCompartmentRequest.retryConfiguration, + addFilesystemSnapshotPolicyLockRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/changeCompartment", + path: "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/addLock", method: "POST", bodyContent: common.ObjectSerializer.serialize( - changeFilesystemSnapshotPolicyCompartmentRequest.changeFilesystemSnapshotPolicyCompartmentDetails, - "ChangeFilesystemSnapshotPolicyCompartmentDetails", - model.ChangeFilesystemSnapshotPolicyCompartmentDetails.getJsonObj + addFilesystemSnapshotPolicyLockRequest.addFilesystemSnapshotPolicyLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -440,8 +447,17 @@ export class FileStorageClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "filesystemSnapshotPolicy", + bodyModel: model.FilesystemSnapshotPolicy, + type: "model.FilesystemSnapshotPolicy", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -457,50 +473,48 @@ export class FileStorageClient { } /** - * Moves a mount target and its associated export set or share set into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) - * + * Adds a lock to a resource. * This operation does not retry by default if the user has not defined a retry configuration. - * @param ChangeMountTargetCompartmentRequest - * @return ChangeMountTargetCompartmentResponse + * @param AddMountTargetLockRequest + * @return AddMountTargetLockResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ChangeMountTargetCompartment.ts.html |here} to see how to use ChangeMountTargetCompartment API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddMountTargetLock.ts.html |here} to see how to use AddMountTargetLock API. */ - public async changeMountTargetCompartment( - changeMountTargetCompartmentRequest: requests.ChangeMountTargetCompartmentRequest - ): Promise { - if (this.logger) - this.logger.debug("Calling operation FileStorageClient#changeMountTargetCompartment."); - const operationName = "changeMountTargetCompartment"; + public async addMountTargetLock( + addMountTargetLockRequest: requests.AddMountTargetLockRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#addMountTargetLock."); + const operationName = "addMountTargetLock"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/ChangeMountTargetCompartment"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/AddMountTargetLock"; const pathParams = { - "{mountTargetId}": changeMountTargetCompartmentRequest.mountTargetId + "{mountTargetId}": addMountTargetLockRequest.mountTargetId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": changeMountTargetCompartmentRequest.ifMatch, - "opc-request-id": changeMountTargetCompartmentRequest.opcRequestId + "if-match": addMountTargetLockRequest.ifMatch, + "opc-request-id": addMountTargetLockRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - changeMountTargetCompartmentRequest.retryConfiguration, + addMountTargetLockRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/mountTargets/{mountTargetId}/actions/changeCompartment", + path: "/mountTargets/{mountTargetId}/actions/addLock", method: "POST", bodyContent: common.ObjectSerializer.serialize( - changeMountTargetCompartmentRequest.changeMountTargetCompartmentDetails, - "ChangeMountTargetCompartmentDetails", - model.ChangeMountTargetCompartmentDetails.getJsonObj + addMountTargetLockRequest.addMountTargetLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -515,8 +529,17 @@ export class FileStorageClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "mountTarget", + bodyModel: model.MountTarget, + type: "model.MountTarget", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -532,52 +555,49 @@ export class FileStorageClient { } /** - * Moves an outbound connector into a different compartment within the same tenancy. - * For information about moving resources between compartments, see - * [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) - * + * Adds a lock to a resource. * This operation does not retry by default if the user has not defined a retry configuration. - * @param ChangeOutboundConnectorCompartmentRequest - * @return ChangeOutboundConnectorCompartmentResponse + * @param AddOutboundConnectorLockRequest + * @return AddOutboundConnectorLockResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ChangeOutboundConnectorCompartment.ts.html |here} to see how to use ChangeOutboundConnectorCompartment API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddOutboundConnectorLock.ts.html |here} to see how to use AddOutboundConnectorLock API. */ - public async changeOutboundConnectorCompartment( - changeOutboundConnectorCompartmentRequest: requests.ChangeOutboundConnectorCompartmentRequest - ): Promise { + public async addOutboundConnectorLock( + addOutboundConnectorLockRequest: requests.AddOutboundConnectorLockRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FileStorageClient#changeOutboundConnectorCompartment."); - const operationName = "changeOutboundConnectorCompartment"; + this.logger.debug("Calling operation FileStorageClient#addOutboundConnectorLock."); + const operationName = "addOutboundConnectorLock"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/ChangeOutboundConnectorCompartment"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/AddOutboundConnectorLock"; const pathParams = { - "{outboundConnectorId}": changeOutboundConnectorCompartmentRequest.outboundConnectorId + "{outboundConnectorId}": addOutboundConnectorLockRequest.outboundConnectorId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": changeOutboundConnectorCompartmentRequest.ifMatch, - "opc-request-id": changeOutboundConnectorCompartmentRequest.opcRequestId + "if-match": addOutboundConnectorLockRequest.ifMatch, + "opc-request-id": addOutboundConnectorLockRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - changeOutboundConnectorCompartmentRequest.retryConfiguration, + addOutboundConnectorLockRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/outboundConnectors/{outboundConnectorId}/actions/changeCompartment", + path: "/outboundConnectors/{outboundConnectorId}/actions/addLock", method: "POST", bodyContent: common.ObjectSerializer.serialize( - changeOutboundConnectorCompartmentRequest.changeOutboundConnectorCompartmentDetails, - "ChangeOutboundConnectorCompartmentDetails", - model.ChangeOutboundConnectorCompartmentDetails.getJsonObj + addOutboundConnectorLockRequest.addOutboundConnectorLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -592,8 +612,17 @@ export class FileStorageClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "outboundConnector", + bodyModel: model.OutboundConnector, + type: "model.OutboundConnector", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -609,51 +638,48 @@ export class FileStorageClient { } /** - * Moves a replication and its replication target into a different compartment within the same tenancy. - * For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). - * + * Adds a lock to a resource. * This operation does not retry by default if the user has not defined a retry configuration. - * @param ChangeReplicationCompartmentRequest - * @return ChangeReplicationCompartmentResponse + * @param AddReplicationLockRequest + * @return AddReplicationLockResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ChangeReplicationCompartment.ts.html |here} to see how to use ChangeReplicationCompartment API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddReplicationLock.ts.html |here} to see how to use AddReplicationLock API. */ - public async changeReplicationCompartment( - changeReplicationCompartmentRequest: requests.ChangeReplicationCompartmentRequest - ): Promise { - if (this.logger) - this.logger.debug("Calling operation FileStorageClient#changeReplicationCompartment."); - const operationName = "changeReplicationCompartment"; + public async addReplicationLock( + addReplicationLockRequest: requests.AddReplicationLockRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#addReplicationLock."); + const operationName = "addReplicationLock"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/ChangeReplicationCompartment"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/AddReplicationLock"; const pathParams = { - "{replicationId}": changeReplicationCompartmentRequest.replicationId + "{replicationId}": addReplicationLockRequest.replicationId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": changeReplicationCompartmentRequest.ifMatch, - "opc-request-id": changeReplicationCompartmentRequest.opcRequestId + "if-match": addReplicationLockRequest.ifMatch, + "opc-request-id": addReplicationLockRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - changeReplicationCompartmentRequest.retryConfiguration, + addReplicationLockRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/replications/{replicationId}/actions/changeCompartment", + path: "/replications/{replicationId}/actions/addLock", method: "POST", bodyContent: common.ObjectSerializer.serialize( - changeReplicationCompartmentRequest.changeReplicationCompartmentDetails, - "ChangeReplicationCompartmentDetails", - model.ChangeReplicationCompartmentDetails.getJsonObj + addReplicationLockRequest.addReplicationLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -668,8 +694,17 @@ export class FileStorageClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "replication", + bodyModel: model.Replication, + type: "model.Replication", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -685,48 +720,48 @@ export class FileStorageClient { } /** - * Creates a new export in the specified export set, path, and - * file system. - * + * Adds a lock to a resource. * This operation does not retry by default if the user has not defined a retry configuration. - * @param CreateExportRequest - * @return CreateExportResponse + * @param AddSnapshotLockRequest + * @return AddSnapshotLockResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateExport.ts.html |here} to see how to use CreateExport API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddSnapshotLock.ts.html |here} to see how to use AddSnapshotLock API. */ - public async createExport( - createExportRequest: requests.CreateExportRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#createExport."); - const operationName = "createExport"; + public async addSnapshotLock( + addSnapshotLockRequest: requests.AddSnapshotLockRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#addSnapshotLock."); + const operationName = "addSnapshotLock"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/CreateExport"; - const pathParams = {}; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/AddSnapshotLock"; + const pathParams = { + "{snapshotId}": addSnapshotLockRequest.snapshotId + }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-retry-token": createExportRequest.opcRetryToken, - "opc-request-id": createExportRequest.opcRequestId + "if-match": addSnapshotLockRequest.ifMatch, + "opc-request-id": addSnapshotLockRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - createExportRequest.retryConfiguration, + addSnapshotLockRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/exports", + path: "/snapshots/{snapshotId}/actions/addLock", method: "POST", bodyContent: common.ObjectSerializer.serialize( - createExportRequest.createExportDetails, - "CreateExportDetails", - model.CreateExportDetails.getJsonObj + addSnapshotLockRequest.addSnapshotLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -741,11 +776,11 @@ export class FileStorageClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "export", - bodyModel: model.Export, - type: "model.Export", + bodyKey: "snapshot", + bodyModel: model.Snapshot, + type: "model.Snapshot", responseHeaders: [ { value: response.headers.get("etag"), @@ -767,76 +802,46 @@ export class FileStorageClient { } /** - * Creates a new file system in the specified compartment and -* availability domain. Instances can mount file systems in -* another availability domain, but doing so might increase -* latency when compared to mounting instances in the same -* availability domain. -*

-After you create a file system, you can associate it with a mount -* target. Instances can then mount the file system by connecting to the -* mount target's IP address. You can associate a file system with -* more than one mount target at a time. -*

-For information about access control and compartments, see -* [Overview of the IAM Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -*

-For information about Network Security Groups access control, see -* [Network Security Groups](https://docs.cloud.oracle.com/Content/Network/Concepts/networksecuritygroups.htm). -*

-For information about availability domains, see [Regions and -* Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -* To get a list of availability domains, use the -* `ListAvailabilityDomains` operation in the Identity and Access -* Management Service API. -*

-All Oracle Cloud Infrastructure resources, including -* file systems, get an Oracle-assigned, unique ID called an Oracle -* Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -* When you create a resource, you can find its OCID in the response. -* You can also retrieve a resource's OCID by using a List API operation on that resource -* type or by viewing the resource in the Console. -* - * This operation does not retry by default if the user has not defined a retry configuration. - * @param CreateFileSystemRequest - * @return CreateFileSystemResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateFileSystem.ts.html |here} to see how to use CreateFileSystem API. - */ - public async createFileSystem( - createFileSystemRequest: requests.CreateFileSystemRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#createFileSystem."); - const operationName = "createFileSystem"; - const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/CreateFileSystem"; - const pathParams = {}; - - const queryParams = {}; - - let headerParams = { + * Cancel scheduled downgrade shape request for mount target. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CancelDowngradeShapeMountTargetRequest + * @return CancelDowngradeShapeMountTargetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CancelDowngradeShapeMountTarget.ts.html |here} to see how to use CancelDowngradeShapeMountTarget API. + */ + public async cancelDowngradeShapeMountTarget( + cancelDowngradeShapeMountTargetRequest: requests.CancelDowngradeShapeMountTargetRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#cancelDowngradeShapeMountTarget."); + const operationName = "cancelDowngradeShapeMountTarget"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CancelDowngradeShapeMountTarget"; + const pathParams = { + "{mountTargetId}": cancelDowngradeShapeMountTargetRequest.mountTargetId + }; + + const queryParams = {}; + + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-retry-token": createFileSystemRequest.opcRetryToken, - "opc-request-id": createFileSystemRequest.opcRequestId + "if-match": cancelDowngradeShapeMountTargetRequest.ifMatch, + "opc-request-id": cancelDowngradeShapeMountTargetRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - createFileSystemRequest.retryConfiguration, + cancelDowngradeShapeMountTargetRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/fileSystems", + path: "/mountTargets/{mountTargetId}/actions/cancelShapeDowngrade", method: "POST", - bodyContent: common.ObjectSerializer.serialize( - createFileSystemRequest.createFileSystemDetails, - "CreateFileSystemDetails", - model.CreateFileSystemDetails.getJsonObj - ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -850,11 +855,11 @@ All Oracle Cloud Infrastructure resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "fileSystem", - bodyModel: model.FileSystem, - type: "model.FileSystem", + bodyKey: "mountTarget", + bodyModel: model.MountTarget, + type: "model.MountTarget", responseHeaders: [ { value: response.headers.get("etag"), @@ -876,52 +881,52 @@ All Oracle Cloud Infrastructure resources, including } /** - * Creates a new file system snapshot policy in the specified compartment and -* availability domain. -*

-After you create a file system snapshot policy, you can associate it with -* file systems. -* - * This operation does not retry by default if the user has not defined a retry configuration. - * @param CreateFilesystemSnapshotPolicyRequest - * @return CreateFilesystemSnapshotPolicyResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateFilesystemSnapshotPolicy.ts.html |here} to see how to use CreateFilesystemSnapshotPolicy API. - */ - public async createFilesystemSnapshotPolicy( - createFilesystemSnapshotPolicyRequest: requests.CreateFilesystemSnapshotPolicyRequest - ): Promise { + * Moves a file system and its associated snapshots into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ChangeFileSystemCompartmentRequest + * @return ChangeFileSystemCompartmentResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ChangeFileSystemCompartment.ts.html |here} to see how to use ChangeFileSystemCompartment API. + */ + public async changeFileSystemCompartment( + changeFileSystemCompartmentRequest: requests.ChangeFileSystemCompartmentRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FileStorageClient#createFilesystemSnapshotPolicy."); - const operationName = "createFilesystemSnapshotPolicy"; + this.logger.debug("Calling operation FileStorageClient#changeFileSystemCompartment."); + const operationName = "changeFileSystemCompartment"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/CreateFilesystemSnapshotPolicy"; - const pathParams = {}; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/ChangeFileSystemCompartment"; + const pathParams = { + "{fileSystemId}": changeFileSystemCompartmentRequest.fileSystemId + }; - const queryParams = {}; + const queryParams = { + "isLockOverride": changeFileSystemCompartmentRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-retry-token": createFilesystemSnapshotPolicyRequest.opcRetryToken, - "opc-request-id": createFilesystemSnapshotPolicyRequest.opcRequestId + "if-match": changeFileSystemCompartmentRequest.ifMatch, + "opc-request-id": changeFileSystemCompartmentRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - createFilesystemSnapshotPolicyRequest.retryConfiguration, + changeFileSystemCompartmentRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/filesystemSnapshotPolicies", + path: "/fileSystems/{fileSystemId}/actions/changeCompartment", method: "POST", bodyContent: common.ObjectSerializer.serialize( - createFilesystemSnapshotPolicyRequest.createFilesystemSnapshotPolicyDetails, - "CreateFilesystemSnapshotPolicyDetails", - model.CreateFilesystemSnapshotPolicyDetails.getJsonObj + changeFileSystemCompartmentRequest.changeFileSystemCompartmentDetails, + "ChangeFileSystemCompartmentDetails", + model.ChangeFileSystemCompartmentDetails.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -936,17 +941,8 @@ After you create a file system snapshot policy, you can associate it with apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "filesystemSnapshotPolicy", - bodyModel: model.FilesystemSnapshotPolicy, - type: "model.FilesystemSnapshotPolicy", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -962,78 +958,55 @@ After you create a file system snapshot policy, you can associate it with } /** - * Creates a new mount target in the specified compartment and -* subnet. You can associate a file system with a mount -* target only when they exist in the same availability domain. Instances -* can connect to mount targets in another availablity domain, but -* you might see higher latency than with instances in the same -* availability domain as the mount target. -*

-Mount targets have one or more private IP addresses that you can -* provide as the host portion of remote target parameters in -* client mount commands. These private IP addresses are listed -* in the privateIpIds property of the mount target and are highly available. Mount -* targets also consume additional IP addresses in their subnet. -* Do not use /30 or smaller subnets for mount target creation because they -* do not have sufficient available IP addresses. -* Allow at least three IP addresses for each mount target. -*

-For information about access control and compartments, see -* [Overview of the IAM -* Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -*

-For information about availability domains, see [Regions and -* Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -* To get a list of availability domains, use the -* `ListAvailabilityDomains` operation in the Identity and Access -* Management Service API. -*

-All Oracle Cloud Infrastructure Services resources, including -* mount targets, get an Oracle-assigned, unique ID called an -* Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -* When you create a resource, you can find its OCID in the response. -* You can also retrieve a resource's OCID by using a List API operation on that resource -* type, or by viewing the resource in the Console. -* - * This operation does not retry by default if the user has not defined a retry configuration. - * @param CreateMountTargetRequest - * @return CreateMountTargetResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateMountTarget.ts.html |here} to see how to use CreateMountTarget API. - */ - public async createMountTarget( - createMountTargetRequest: requests.CreateMountTargetRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#createMountTarget."); - const operationName = "createMountTarget"; + * Moves a file system snapshot policy into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ChangeFilesystemSnapshotPolicyCompartmentRequest + * @return ChangeFilesystemSnapshotPolicyCompartmentResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ChangeFilesystemSnapshotPolicyCompartment.ts.html |here} to see how to use ChangeFilesystemSnapshotPolicyCompartment API. + */ + public async changeFilesystemSnapshotPolicyCompartment( + changeFilesystemSnapshotPolicyCompartmentRequest: requests.ChangeFilesystemSnapshotPolicyCompartmentRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FileStorageClient#changeFilesystemSnapshotPolicyCompartment." + ); + const operationName = "changeFilesystemSnapshotPolicyCompartment"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CreateMountTarget"; - const pathParams = {}; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/ChangeFilesystemSnapshotPolicyCompartment"; + const pathParams = { + "{filesystemSnapshotPolicyId}": + changeFilesystemSnapshotPolicyCompartmentRequest.filesystemSnapshotPolicyId + }; - const queryParams = {}; + const queryParams = { + "isLockOverride": changeFilesystemSnapshotPolicyCompartmentRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-retry-token": createMountTargetRequest.opcRetryToken, - "opc-request-id": createMountTargetRequest.opcRequestId + "if-match": changeFilesystemSnapshotPolicyCompartmentRequest.ifMatch, + "opc-request-id": changeFilesystemSnapshotPolicyCompartmentRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - createMountTargetRequest.retryConfiguration, + changeFilesystemSnapshotPolicyCompartmentRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/mountTargets", + path: "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/changeCompartment", method: "POST", bodyContent: common.ObjectSerializer.serialize( - createMountTargetRequest.createMountTargetDetails, - "CreateMountTargetDetails", - model.CreateMountTargetDetails.getJsonObj + changeFilesystemSnapshotPolicyCompartmentRequest.changeFilesystemSnapshotPolicyCompartmentDetails, + "ChangeFilesystemSnapshotPolicyCompartmentDetails", + model.ChangeFilesystemSnapshotPolicyCompartmentDetails.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -1048,17 +1021,8 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "mountTarget", - bodyModel: model.MountTarget, - type: "model.MountTarget", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -1074,67 +1038,52 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Creates a new outbound connector in the specified compartment. -* You can associate an outbound connector with a mount target only when -* they exist in the same availability domain. -*

-For information about access control and compartments, see -* [Overview of the IAM -* Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -*

-For information about availability domains, see [Regions and -* Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -* To get a list of availability domains, use the -* `ListAvailabilityDomains` operation in the Identity and Access -* Management Service API. -*

-All Oracle Cloud Infrastructure Services resources, including -* outbound connectors, get an Oracle-assigned, unique ID called an -* Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -* When you create a resource, you can find its OCID in the response. -* You can also retrieve a resource's OCID by using a List API operation on that resource -* type, or by viewing the resource in the Console. -* - * This operation does not retry by default if the user has not defined a retry configuration. - * @param CreateOutboundConnectorRequest - * @return CreateOutboundConnectorResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateOutboundConnector.ts.html |here} to see how to use CreateOutboundConnector API. - */ - public async createOutboundConnector( - createOutboundConnectorRequest: requests.CreateOutboundConnectorRequest - ): Promise { + * Moves a mount target and its associated export set or share set into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ChangeMountTargetCompartmentRequest + * @return ChangeMountTargetCompartmentResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ChangeMountTargetCompartment.ts.html |here} to see how to use ChangeMountTargetCompartment API. + */ + public async changeMountTargetCompartment( + changeMountTargetCompartmentRequest: requests.ChangeMountTargetCompartmentRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FileStorageClient#createOutboundConnector."); - const operationName = "createOutboundConnector"; + this.logger.debug("Calling operation FileStorageClient#changeMountTargetCompartment."); + const operationName = "changeMountTargetCompartment"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/CreateOutboundConnector"; - const pathParams = {}; - - const queryParams = {}; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/ChangeMountTargetCompartment"; + const pathParams = { + "{mountTargetId}": changeMountTargetCompartmentRequest.mountTargetId + }; + + const queryParams = { + "isLockOverride": changeMountTargetCompartmentRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-retry-token": createOutboundConnectorRequest.opcRetryToken, - "opc-request-id": createOutboundConnectorRequest.opcRequestId + "if-match": changeMountTargetCompartmentRequest.ifMatch, + "opc-request-id": changeMountTargetCompartmentRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - createOutboundConnectorRequest.retryConfiguration, + changeMountTargetCompartmentRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/outboundConnectors", + path: "/mountTargets/{mountTargetId}/actions/changeCompartment", method: "POST", bodyContent: common.ObjectSerializer.serialize( - createOutboundConnectorRequest.createOutboundConnectorDetails, - "CreateOutboundConnectorDetails", - model.CreateOutboundConnectorDetails.getJsonObj + changeMountTargetCompartmentRequest.changeMountTargetCompartmentDetails, + "ChangeMountTargetCompartmentDetails", + model.ChangeMountTargetCompartmentDetails.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -1149,17 +1098,8 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "outboundConnector", - bodyModel: model.OutboundConnector, - type: "model.OutboundConnector", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -1175,73 +1115,54 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Creates a new replication in the specified compartment. -* Replications are the primary resource that governs the policy of cross-region replication between source -* and target file systems. Replications are associated with a secondary resource called a {@link ReplicationTarget} -* located in another availability domain. -* The associated replication target resource is automatically created along with the replication resource. -* The replication retrieves the delta of data between two snapshots of a source file system -* and sends it to the associated `ReplicationTarget`, which retrieves the delta and applies it to the target -* file system. -* Only unexported file systems can be used as target file systems. -* For more information, see [Using Replication](https://docs.cloud.oracle.com/iaas/Content/File/Tasks/FSreplication.htm). -*

-For information about access control and compartments, see -* [Overview of the IAM -* Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -*

-For information about availability domains, see [Regions and -* Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -* To get a list of availability domains, use the -* `ListAvailabilityDomains` operation in the Identity and Access -* Management Service API. -*

-All Oracle Cloud Infrastructure Services resources, including -* replications, get an Oracle-assigned, unique ID called an -* Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -* When you create a resource, you can find its OCID in the response. -* You can also retrieve a resource's OCID by using a List API operation on that resource -* type, or by viewing the resource in the Console. -* - * This operation does not retry by default if the user has not defined a retry configuration. - * @param CreateReplicationRequest - * @return CreateReplicationResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateReplication.ts.html |here} to see how to use CreateReplication API. - */ - public async createReplication( - createReplicationRequest: requests.CreateReplicationRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#createReplication."); - const operationName = "createReplication"; + * Moves an outbound connector into a different compartment within the same tenancy. + * For information about moving resources between compartments, see + * [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ChangeOutboundConnectorCompartmentRequest + * @return ChangeOutboundConnectorCompartmentResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ChangeOutboundConnectorCompartment.ts.html |here} to see how to use ChangeOutboundConnectorCompartment API. + */ + public async changeOutboundConnectorCompartment( + changeOutboundConnectorCompartmentRequest: requests.ChangeOutboundConnectorCompartmentRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#changeOutboundConnectorCompartment."); + const operationName = "changeOutboundConnectorCompartment"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/CreateReplication"; - const pathParams = {}; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/ChangeOutboundConnectorCompartment"; + const pathParams = { + "{outboundConnectorId}": changeOutboundConnectorCompartmentRequest.outboundConnectorId + }; - const queryParams = {}; + const queryParams = { + "isLockOverride": changeOutboundConnectorCompartmentRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-retry-token": createReplicationRequest.opcRetryToken, - "opc-request-id": createReplicationRequest.opcRequestId + "if-match": changeOutboundConnectorCompartmentRequest.ifMatch, + "opc-request-id": changeOutboundConnectorCompartmentRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - createReplicationRequest.retryConfiguration, + changeOutboundConnectorCompartmentRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/replications", + path: "/outboundConnectors/{outboundConnectorId}/actions/changeCompartment", method: "POST", bodyContent: common.ObjectSerializer.serialize( - createReplicationRequest.createReplicationDetails, - "CreateReplicationDetails", - model.CreateReplicationDetails.getJsonObj + changeOutboundConnectorCompartmentRequest.changeOutboundConnectorCompartmentDetails, + "ChangeOutboundConnectorCompartmentDetails", + model.ChangeOutboundConnectorCompartmentDetails.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -1256,17 +1177,8 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "replication", - bodyModel: model.Replication, - type: "model.Replication", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -1282,48 +1194,53 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Creates a new snapshot of the specified file system. You - * can access the snapshot at `.snapshot/`. + * Moves a replication and its replication target into a different compartment within the same tenancy. + * For information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * * This operation does not retry by default if the user has not defined a retry configuration. - * @param CreateSnapshotRequest - * @return CreateSnapshotResponse + * @param ChangeReplicationCompartmentRequest + * @return ChangeReplicationCompartmentResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateSnapshot.ts.html |here} to see how to use CreateSnapshot API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ChangeReplicationCompartment.ts.html |here} to see how to use ChangeReplicationCompartment API. */ - public async createSnapshot( - createSnapshotRequest: requests.CreateSnapshotRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#createSnapshot."); - const operationName = "createSnapshot"; + public async changeReplicationCompartment( + changeReplicationCompartmentRequest: requests.ChangeReplicationCompartmentRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#changeReplicationCompartment."); + const operationName = "changeReplicationCompartment"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/CreateSnapshot"; - const pathParams = {}; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/ChangeReplicationCompartment"; + const pathParams = { + "{replicationId}": changeReplicationCompartmentRequest.replicationId + }; - const queryParams = {}; + const queryParams = { + "isLockOverride": changeReplicationCompartmentRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-retry-token": createSnapshotRequest.opcRetryToken, - "opc-request-id": createSnapshotRequest.opcRequestId + "if-match": changeReplicationCompartmentRequest.ifMatch, + "opc-request-id": changeReplicationCompartmentRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - createSnapshotRequest.retryConfiguration, + changeReplicationCompartmentRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/snapshots", + path: "/replications/{replicationId}/actions/changeCompartment", method: "POST", bodyContent: common.ObjectSerializer.serialize( - createSnapshotRequest.createSnapshotDetails, - "CreateSnapshotDetails", - model.CreateSnapshotDetails.getJsonObj + changeReplicationCompartmentRequest.changeReplicationCompartmentDetails, + "ChangeReplicationCompartmentDetails", + model.ChangeReplicationCompartmentDetails.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -1338,17 +1255,8 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "snapshot", - bodyModel: model.Snapshot, - type: "model.Snapshot", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -1364,45 +1272,49 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Deletes the specified export. + * Creates a new export in the specified export set, path, and + * file system. * * This operation does not retry by default if the user has not defined a retry configuration. - * @param DeleteExportRequest - * @return DeleteExportResponse + * @param CreateExportRequest + * @return CreateExportResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteExport.ts.html |here} to see how to use DeleteExport API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateExport.ts.html |here} to see how to use CreateExport API. */ - public async deleteExport( - deleteExportRequest: requests.DeleteExportRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#deleteExport."); - const operationName = "deleteExport"; + public async createExport( + createExportRequest: requests.CreateExportRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#createExport."); + const operationName = "createExport"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/DeleteExport"; - const pathParams = { - "{exportId}": deleteExportRequest.exportId - }; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/CreateExport"; + const pathParams = {}; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deleteExportRequest.ifMatch, - "opc-request-id": deleteExportRequest.opcRequestId + "opc-retry-token": createExportRequest.opcRetryToken, + "opc-request-id": createExportRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deleteExportRequest.retryConfiguration, + createExportRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/exports/{exportId}", - method: "DELETE", + path: "/exports", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createExportRequest.createExportDetails, + "CreateExportDetails", + model.CreateExportDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -1416,8 +1328,17 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "export", + bodyModel: model.Export, + type: "model.Export", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -1433,49 +1354,76 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Deletes the specified file system. Before you delete the file system, - * verify that no remaining export resources still reference it. Deleting a - * file system also deletes all of its snapshots. - * - * This operation does not retry by default if the user has not defined a retry configuration. - * @param DeleteFileSystemRequest - * @return DeleteFileSystemResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteFileSystem.ts.html |here} to see how to use DeleteFileSystem API. - */ - public async deleteFileSystem( - deleteFileSystemRequest: requests.DeleteFileSystemRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#deleteFileSystem."); - const operationName = "deleteFileSystem"; - const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DeleteFileSystem"; - const pathParams = { - "{fileSystemId}": deleteFileSystemRequest.fileSystemId - }; - - const queryParams = { - "canDetachChildFileSystem": deleteFileSystemRequest.canDetachChildFileSystem - }; - - let headerParams = { - "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deleteFileSystemRequest.ifMatch, - "opc-request-id": deleteFileSystemRequest.opcRequestId - }; - - const specRetryConfiguration = common.NoRetryConfigurationDetails; - const retrier = GenericRetrier.createPreferredRetrier( + * Creates a new file system in the specified compartment and +* availability domain. Instances can mount file systems in +* another availability domain, but doing so might increase +* latency when compared to mounting instances in the same +* availability domain. +*

+After you create a file system, you can associate it with a mount +* target. Instances can then mount the file system by connecting to the +* mount target's IP address. You can associate a file system with +* more than one mount target at a time. +*

+For information about access control and compartments, see +* [Overview of the IAM Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +*

+For information about Network Security Groups access control, see +* [Network Security Groups](https://docs.cloud.oracle.com/Content/Network/Concepts/networksecuritygroups.htm). +*

+For information about availability domains, see [Regions and +* Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +* To get a list of availability domains, use the +* `ListAvailabilityDomains` operation in the Identity and Access +* Management Service API. +*

+All Oracle Cloud Infrastructure resources, including +* file systems, get an Oracle-assigned, unique ID called an Oracle +* Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +* When you create a resource, you can find its OCID in the response. +* You can also retrieve a resource's OCID by using a List API operation on that resource +* type or by viewing the resource in the Console. +* + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateFileSystemRequest + * @return CreateFileSystemResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateFileSystem.ts.html |here} to see how to use CreateFileSystem API. + */ + public async createFileSystem( + createFileSystemRequest: requests.CreateFileSystemRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#createFileSystem."); + const operationName = "createFileSystem"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/CreateFileSystem"; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createFileSystemRequest.opcRetryToken, + "opc-request-id": createFileSystemRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deleteFileSystemRequest.retryConfiguration, + createFileSystemRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/fileSystems/{fileSystemId}", - method: "DELETE", + path: "/fileSystems", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createFileSystemRequest.createFileSystemDetails, + "CreateFileSystemDetails", + model.CreateFileSystemDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -1489,8 +1437,17 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "fileSystem", + bodyModel: model.FileSystem, + type: "model.FileSystem", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -1506,47 +1463,53 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Deletes the specified file system snapshot policy. - * - * This operation does not retry by default if the user has not defined a retry configuration. - * @param DeleteFilesystemSnapshotPolicyRequest - * @return DeleteFilesystemSnapshotPolicyResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteFilesystemSnapshotPolicy.ts.html |here} to see how to use DeleteFilesystemSnapshotPolicy API. - */ - public async deleteFilesystemSnapshotPolicy( - deleteFilesystemSnapshotPolicyRequest: requests.DeleteFilesystemSnapshotPolicyRequest - ): Promise { + * Creates a new file system snapshot policy in the specified compartment and +* availability domain. +*

+After you create a file system snapshot policy, you can associate it with +* file systems. +* + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateFilesystemSnapshotPolicyRequest + * @return CreateFilesystemSnapshotPolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateFilesystemSnapshotPolicy.ts.html |here} to see how to use CreateFilesystemSnapshotPolicy API. + */ + public async createFilesystemSnapshotPolicy( + createFilesystemSnapshotPolicyRequest: requests.CreateFilesystemSnapshotPolicyRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FileStorageClient#deleteFilesystemSnapshotPolicy."); - const operationName = "deleteFilesystemSnapshotPolicy"; + this.logger.debug("Calling operation FileStorageClient#createFilesystemSnapshotPolicy."); + const operationName = "createFilesystemSnapshotPolicy"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/DeleteFilesystemSnapshotPolicy"; - const pathParams = { - "{filesystemSnapshotPolicyId}": - deleteFilesystemSnapshotPolicyRequest.filesystemSnapshotPolicyId - }; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/CreateFilesystemSnapshotPolicy"; + const pathParams = {}; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deleteFilesystemSnapshotPolicyRequest.ifMatch, - "opc-request-id": deleteFilesystemSnapshotPolicyRequest.opcRequestId + "opc-retry-token": createFilesystemSnapshotPolicyRequest.opcRetryToken, + "opc-request-id": createFilesystemSnapshotPolicyRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deleteFilesystemSnapshotPolicyRequest.retryConfiguration, + createFilesystemSnapshotPolicyRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}", - method: "DELETE", + path: "/filesystemSnapshotPolicies", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createFilesystemSnapshotPolicyRequest.createFilesystemSnapshotPolicyDetails, + "CreateFilesystemSnapshotPolicyDetails", + model.CreateFilesystemSnapshotPolicyDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -1560,8 +1523,17 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "filesystemSnapshotPolicy", + bodyModel: model.FilesystemSnapshotPolicy, + type: "model.FilesystemSnapshotPolicy", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -1577,46 +1549,81 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Deletes the specified mount target. This operation also deletes the - * mount target's VNICs. - * - * This operation does not retry by default if the user has not defined a retry configuration. - * @param DeleteMountTargetRequest - * @return DeleteMountTargetResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteMountTarget.ts.html |here} to see how to use DeleteMountTarget API. - */ - public async deleteMountTarget( - deleteMountTargetRequest: requests.DeleteMountTargetRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#deleteMountTarget."); - const operationName = "deleteMountTarget"; + * Creates a new mount target in the specified compartment and +* subnet. You can associate a file system with a mount +* target only when they exist in the same availability domain. Instances +* can connect to mount targets in another availablity domain, but +* you might see higher latency than with instances in the same +* availability domain as the mount target. +*

+Mount targets have one or more private IP addresses that you can +* provide as the host portion of remote target parameters in +* client mount commands. These private IP addresses are listed +* in the privateIpIds property of the mount target and are highly available. Mount +* targets also consume additional IP addresses in their subnet. +* Do not use /30 or smaller subnets for mount target creation because they +* do not have sufficient available IP addresses. +* Allow at least three IP addresses for each mount target. +*

+For information about access control and compartments, see +* [Overview of the IAM +* Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +*

+For information about availability domains, see [Regions and +* Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +* To get a list of availability domains, use the +* `ListAvailabilityDomains` operation in the Identity and Access +* Management Service API. +*

+All Oracle Cloud Infrastructure Services resources, including +* mount targets, get an Oracle-assigned, unique ID called an +* Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +* When you create a resource, you can find its OCID in the response. +* You can also retrieve a resource's OCID by using a List API operation on that resource +* type, or by viewing the resource in the Console. +* + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateMountTargetRequest + * @return CreateMountTargetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateMountTarget.ts.html |here} to see how to use CreateMountTarget API. + */ + public async createMountTarget( + createMountTargetRequest: requests.CreateMountTargetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#createMountTarget."); + const operationName = "createMountTarget"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/DeleteMountTarget"; - const pathParams = { - "{mountTargetId}": deleteMountTargetRequest.mountTargetId - }; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CreateMountTarget"; + const pathParams = {}; - const queryParams = {}; + const queryParams = { + "isLockOverride": createMountTargetRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deleteMountTargetRequest.ifMatch, - "opc-request-id": deleteMountTargetRequest.opcRequestId + "opc-retry-token": createMountTargetRequest.opcRetryToken, + "opc-request-id": createMountTargetRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deleteMountTargetRequest.retryConfiguration, + createMountTargetRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/mountTargets/{mountTargetId}", - method: "DELETE", + path: "/mountTargets", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createMountTargetRequest.createMountTargetDetails, + "CreateMountTargetDetails", + model.CreateMountTargetDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -1630,8 +1637,17 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "mountTarget", + bodyModel: model.MountTarget, + type: "model.MountTarget", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -1647,46 +1663,68 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Deletes the specified outbound connector. - * - * This operation does not retry by default if the user has not defined a retry configuration. - * @param DeleteOutboundConnectorRequest - * @return DeleteOutboundConnectorResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteOutboundConnector.ts.html |here} to see how to use DeleteOutboundConnector API. - */ - public async deleteOutboundConnector( - deleteOutboundConnectorRequest: requests.DeleteOutboundConnectorRequest - ): Promise { - if (this.logger) - this.logger.debug("Calling operation FileStorageClient#deleteOutboundConnector."); - const operationName = "deleteOutboundConnector"; - const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/DeleteOutboundConnector"; - const pathParams = { - "{outboundConnectorId}": deleteOutboundConnectorRequest.outboundConnectorId - }; - - const queryParams = {}; - - let headerParams = { + * Creates a new outbound connector in the specified compartment. +* You can associate an outbound connector with a mount target only when +* they exist in the same availability domain. +*

+For information about access control and compartments, see +* [Overview of the IAM +* Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +*

+For information about availability domains, see [Regions and +* Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +* To get a list of availability domains, use the +* `ListAvailabilityDomains` operation in the Identity and Access +* Management Service API. +*

+All Oracle Cloud Infrastructure Services resources, including +* outbound connectors, get an Oracle-assigned, unique ID called an +* Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +* When you create a resource, you can find its OCID in the response. +* You can also retrieve a resource's OCID by using a List API operation on that resource +* type, or by viewing the resource in the Console. +* + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateOutboundConnectorRequest + * @return CreateOutboundConnectorResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateOutboundConnector.ts.html |here} to see how to use CreateOutboundConnector API. + */ + public async createOutboundConnector( + createOutboundConnectorRequest: requests.CreateOutboundConnectorRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#createOutboundConnector."); + const operationName = "createOutboundConnector"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/CreateOutboundConnector"; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deleteOutboundConnectorRequest.ifMatch, - "opc-request-id": deleteOutboundConnectorRequest.opcRequestId + "opc-retry-token": createOutboundConnectorRequest.opcRetryToken, + "opc-request-id": createOutboundConnectorRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deleteOutboundConnectorRequest.retryConfiguration, + createOutboundConnectorRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/outboundConnectors/{outboundConnectorId}", - method: "DELETE", + path: "/outboundConnectors", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createOutboundConnectorRequest.createOutboundConnectorDetails, + "CreateOutboundConnectorDetails", + model.CreateOutboundConnectorDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -1700,8 +1738,17 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "outboundConnector", + bodyModel: model.OutboundConnector, + type: "model.OutboundConnector", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -1717,47 +1764,74 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Deletes the specified replication and the the associated replication target. - * - * This operation does not retry by default if the user has not defined a retry configuration. - * @param DeleteReplicationRequest - * @return DeleteReplicationResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteReplication.ts.html |here} to see how to use DeleteReplication API. - */ - public async deleteReplication( - deleteReplicationRequest: requests.DeleteReplicationRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#deleteReplication."); - const operationName = "deleteReplication"; + * Creates a new replication in the specified compartment. +* Replications are the primary resource that governs the policy of cross-region replication between source +* and target file systems. Replications are associated with a secondary resource called a {@link ReplicationTarget} +* located in another availability domain. +* The associated replication target resource is automatically created along with the replication resource. +* The replication retrieves the delta of data between two snapshots of a source file system +* and sends it to the associated `ReplicationTarget`, which retrieves the delta and applies it to the target +* file system. +* Only unexported file systems can be used as target file systems. +* For more information, see [Using Replication](https://docs.cloud.oracle.com/iaas/Content/File/Tasks/FSreplication.htm). +*

+For information about access control and compartments, see +* [Overview of the IAM +* Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +*

+For information about availability domains, see [Regions and +* Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +* To get a list of availability domains, use the +* `ListAvailabilityDomains` operation in the Identity and Access +* Management Service API. +*

+All Oracle Cloud Infrastructure Services resources, including +* replications, get an Oracle-assigned, unique ID called an +* Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +* When you create a resource, you can find its OCID in the response. +* You can also retrieve a resource's OCID by using a List API operation on that resource +* type, or by viewing the resource in the Console. +* + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateReplicationRequest + * @return CreateReplicationResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateReplication.ts.html |here} to see how to use CreateReplication API. + */ + public async createReplication( + createReplicationRequest: requests.CreateReplicationRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#createReplication."); + const operationName = "createReplication"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/DeleteReplication"; - const pathParams = { - "{replicationId}": deleteReplicationRequest.replicationId - }; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/CreateReplication"; + const pathParams = {}; - const queryParams = { - "deleteMode": deleteReplicationRequest.deleteMode - }; + const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deleteReplicationRequest.ifMatch, - "opc-request-id": deleteReplicationRequest.opcRequestId + "opc-retry-token": createReplicationRequest.opcRetryToken, + "opc-request-id": createReplicationRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deleteReplicationRequest.retryConfiguration, + createReplicationRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/replications/{replicationId}", - method: "DELETE", + path: "/replications", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createReplicationRequest.createReplicationDetails, + "CreateReplicationDetails", + model.CreateReplicationDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -1771,8 +1845,17 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "replication", + bodyModel: model.Replication, + type: "model.Replication", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -1788,49 +1871,49 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Deletes the specified replication target. - * This operation causes the immediate release of the target file system if there are currently no delta application operations. - * If there is any current delta being applied the delete operation is blocked until the current - * delta has been completely applied. + * Creates a new snapshot of the specified file system. You + * can access the snapshot at `.snapshot/`. * * This operation does not retry by default if the user has not defined a retry configuration. - * @param DeleteReplicationTargetRequest - * @return DeleteReplicationTargetResponse + * @param CreateSnapshotRequest + * @return CreateSnapshotResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteReplicationTarget.ts.html |here} to see how to use DeleteReplicationTarget API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/CreateSnapshot.ts.html |here} to see how to use CreateSnapshot API. */ - public async deleteReplicationTarget( - deleteReplicationTargetRequest: requests.DeleteReplicationTargetRequest - ): Promise { - if (this.logger) - this.logger.debug("Calling operation FileStorageClient#deleteReplicationTarget."); - const operationName = "deleteReplicationTarget"; + public async createSnapshot( + createSnapshotRequest: requests.CreateSnapshotRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#createSnapshot."); + const operationName = "createSnapshot"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/DeleteReplicationTarget"; - const pathParams = { - "{replicationTargetId}": deleteReplicationTargetRequest.replicationTargetId - }; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/CreateSnapshot"; + const pathParams = {}; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deleteReplicationTargetRequest.ifMatch, - "opc-request-id": deleteReplicationTargetRequest.opcRequestId + "opc-retry-token": createSnapshotRequest.opcRetryToken, + "opc-request-id": createSnapshotRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deleteReplicationTargetRequest.retryConfiguration, + createSnapshotRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/replicationTargets/{replicationTargetId}", - method: "DELETE", + path: "/snapshots", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createSnapshotRequest.createSnapshotDetails, + "CreateSnapshotDetails", + model.CreateSnapshotDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -1844,8 +1927,17 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "snapshot", + bodyModel: model.Snapshot, + type: "model.Snapshot", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -1861,44 +1953,46 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Deletes the specified snapshot. + * Deletes the specified export. * * This operation does not retry by default if the user has not defined a retry configuration. - * @param DeleteSnapshotRequest - * @return DeleteSnapshotResponse + * @param DeleteExportRequest + * @return DeleteExportResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteSnapshot.ts.html |here} to see how to use DeleteSnapshot API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteExport.ts.html |here} to see how to use DeleteExport API. */ - public async deleteSnapshot( - deleteSnapshotRequest: requests.DeleteSnapshotRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#deleteSnapshot."); - const operationName = "deleteSnapshot"; + public async deleteExport( + deleteExportRequest: requests.DeleteExportRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#deleteExport."); + const operationName = "deleteExport"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/DeleteSnapshot"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/DeleteExport"; const pathParams = { - "{snapshotId}": deleteSnapshotRequest.snapshotId + "{exportId}": deleteExportRequest.exportId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": deleteExportRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deleteSnapshotRequest.ifMatch, - "opc-request-id": deleteSnapshotRequest.opcRequestId + "if-match": deleteExportRequest.ifMatch, + "opc-request-id": deleteExportRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deleteSnapshotRequest.retryConfiguration, + deleteExportRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/snapshots/{snapshotId}", + path: "/exports/{exportId}", method: "DELETE", pathParams: pathParams, headerParams: headerParams, @@ -1913,7 +2007,7 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, responseHeaders: [ { value: response.headers.get("opc-request-id"), @@ -1930,45 +2024,50 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Detaches the file system from its parent file system + * Deletes the specified file system. Before you delete the file system, + * verify that no remaining export resources still reference it. Deleting a + * file system also deletes all of its snapshots. * * This operation does not retry by default if the user has not defined a retry configuration. - * @param DetachCloneRequest - * @return DetachCloneResponse + * @param DeleteFileSystemRequest + * @return DeleteFileSystemResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DetachClone.ts.html |here} to see how to use DetachClone API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteFileSystem.ts.html |here} to see how to use DeleteFileSystem API. */ - public async detachClone( - detachCloneRequest: requests.DetachCloneRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#detachClone."); - const operationName = "detachClone"; + public async deleteFileSystem( + deleteFileSystemRequest: requests.DeleteFileSystemRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#deleteFileSystem."); + const operationName = "deleteFileSystem"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DetachClone"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DeleteFileSystem"; const pathParams = { - "{fileSystemId}": detachCloneRequest.fileSystemId + "{fileSystemId}": deleteFileSystemRequest.fileSystemId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": deleteFileSystemRequest.isLockOverride, + "canDetachChildFileSystem": deleteFileSystemRequest.canDetachChildFileSystem + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": detachCloneRequest.ifMatch, - "opc-request-id": detachCloneRequest.opcRequestId + "if-match": deleteFileSystemRequest.ifMatch, + "opc-request-id": deleteFileSystemRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - detachCloneRequest.retryConfiguration, + deleteFileSystemRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/fileSystems/{fileSystemId}/actions/detachClone", - method: "POST", + path: "/fileSystems/{fileSystemId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -1982,7 +2081,7 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, responseHeaders: [ { value: response.headers.get("opc-request-id"), @@ -1999,47 +2098,49 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Provides estimates for replication created using specific file system. + * Deletes the specified file system snapshot policy. * * This operation does not retry by default if the user has not defined a retry configuration. - * @param EstimateReplicationRequest - * @return EstimateReplicationResponse + * @param DeleteFilesystemSnapshotPolicyRequest + * @return DeleteFilesystemSnapshotPolicyResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/EstimateReplication.ts.html |here} to see how to use EstimateReplication API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteFilesystemSnapshotPolicy.ts.html |here} to see how to use DeleteFilesystemSnapshotPolicy API. */ - public async estimateReplication( - estimateReplicationRequest: requests.EstimateReplicationRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#estimateReplication."); - const operationName = "estimateReplication"; + public async deleteFilesystemSnapshotPolicy( + deleteFilesystemSnapshotPolicyRequest: requests.DeleteFilesystemSnapshotPolicyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#deleteFilesystemSnapshotPolicy."); + const operationName = "deleteFilesystemSnapshotPolicy"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/EstimateReplication"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/DeleteFilesystemSnapshotPolicy"; const pathParams = { - "{fileSystemId}": estimateReplicationRequest.fileSystemId + "{filesystemSnapshotPolicyId}": + deleteFilesystemSnapshotPolicyRequest.filesystemSnapshotPolicyId }; const queryParams = { - "changeRateInMBps": estimateReplicationRequest.changeRateInMBps + "isLockOverride": deleteFilesystemSnapshotPolicyRequest.isLockOverride }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": estimateReplicationRequest.ifMatch, - "opc-request-id": estimateReplicationRequest.opcRequestId + "if-match": deleteFilesystemSnapshotPolicyRequest.ifMatch, + "opc-request-id": deleteFilesystemSnapshotPolicyRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - estimateReplicationRequest.retryConfiguration, + deleteFilesystemSnapshotPolicyRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/fileSystems/{fileSystemId}/actions/estimateReplication", - method: "POST", + path: "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -2053,17 +2154,8 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "replicationEstimate", - bodyModel: model.ReplicationEstimate, - type: "model.ReplicationEstimate", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -2079,43 +2171,48 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Gets the specified export's information. + * Deletes the specified mount target. This operation also deletes the + * mount target's VNICs. + * * This operation does not retry by default if the user has not defined a retry configuration. - * @param GetExportRequest - * @return GetExportResponse + * @param DeleteMountTargetRequest + * @return DeleteMountTargetResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetExport.ts.html |here} to see how to use GetExport API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteMountTarget.ts.html |here} to see how to use DeleteMountTarget API. */ - public async getExport( - getExportRequest: requests.GetExportRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#getExport."); - const operationName = "getExport"; + public async deleteMountTarget( + deleteMountTargetRequest: requests.DeleteMountTargetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#deleteMountTarget."); + const operationName = "deleteMountTarget"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/GetExport"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/DeleteMountTarget"; const pathParams = { - "{exportId}": getExportRequest.exportId + "{mountTargetId}": deleteMountTargetRequest.mountTargetId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": deleteMountTargetRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getExportRequest.opcRequestId + "if-match": deleteMountTargetRequest.ifMatch, + "opc-request-id": deleteMountTargetRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getExportRequest.retryConfiguration, + deleteMountTargetRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/exports/{exportId}", - method: "GET", + path: "/mountTargets/{mountTargetId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -2129,17 +2226,8 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "export", - bodyModel: model.Export, - type: "model.Export", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -2155,43 +2243,48 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Gets the specified export set's information. + * Deletes the specified outbound connector. + * * This operation does not retry by default if the user has not defined a retry configuration. - * @param GetExportSetRequest - * @return GetExportSetResponse + * @param DeleteOutboundConnectorRequest + * @return DeleteOutboundConnectorResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetExportSet.ts.html |here} to see how to use GetExportSet API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteOutboundConnector.ts.html |here} to see how to use DeleteOutboundConnector API. */ - public async getExportSet( - getExportSetRequest: requests.GetExportSetRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#getExportSet."); - const operationName = "getExportSet"; + public async deleteOutboundConnector( + deleteOutboundConnectorRequest: requests.DeleteOutboundConnectorRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#deleteOutboundConnector."); + const operationName = "deleteOutboundConnector"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSet/GetExportSet"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/DeleteOutboundConnector"; const pathParams = { - "{exportSetId}": getExportSetRequest.exportSetId + "{outboundConnectorId}": deleteOutboundConnectorRequest.outboundConnectorId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": deleteOutboundConnectorRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getExportSetRequest.opcRequestId + "if-match": deleteOutboundConnectorRequest.ifMatch, + "opc-request-id": deleteOutboundConnectorRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getExportSetRequest.retryConfiguration, + deleteOutboundConnectorRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/exportSets/{exportSetId}", - method: "GET", + path: "/outboundConnectors/{outboundConnectorId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -2205,17 +2298,8 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "exportSet", - bodyModel: model.ExportSet, - type: "model.ExportSet", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -2231,43 +2315,48 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Gets the specified file system's information. + * Deletes the specified replication and the the associated replication target. + * * This operation does not retry by default if the user has not defined a retry configuration. - * @param GetFileSystemRequest - * @return GetFileSystemResponse + * @param DeleteReplicationRequest + * @return DeleteReplicationResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetFileSystem.ts.html |here} to see how to use GetFileSystem API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteReplication.ts.html |here} to see how to use DeleteReplication API. */ - public async getFileSystem( - getFileSystemRequest: requests.GetFileSystemRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#getFileSystem."); - const operationName = "getFileSystem"; + public async deleteReplication( + deleteReplicationRequest: requests.DeleteReplicationRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#deleteReplication."); + const operationName = "deleteReplication"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/GetFileSystem"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/DeleteReplication"; const pathParams = { - "{fileSystemId}": getFileSystemRequest.fileSystemId + "{replicationId}": deleteReplicationRequest.replicationId }; - const queryParams = {}; + const queryParams = { + "deleteMode": deleteReplicationRequest.deleteMode, + "isLockOverride": deleteReplicationRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getFileSystemRequest.opcRequestId + "if-match": deleteReplicationRequest.ifMatch, + "opc-request-id": deleteReplicationRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getFileSystemRequest.retryConfiguration, + deleteReplicationRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/fileSystems/{fileSystemId}", - method: "GET", + path: "/replications/{replicationId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -2281,17 +2370,8 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "fileSystem", - bodyModel: model.FileSystem, - type: "model.FileSystem", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -2307,44 +2387,51 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Gets the specified file system snapshot policy's information. + * Deletes the specified replication target. + * This operation causes the immediate release of the target file system if there are currently no delta application operations. + * If there is any current delta being applied the delete operation is blocked until the current + * delta has been completely applied. + * * This operation does not retry by default if the user has not defined a retry configuration. - * @param GetFilesystemSnapshotPolicyRequest - * @return GetFilesystemSnapshotPolicyResponse + * @param DeleteReplicationTargetRequest + * @return DeleteReplicationTargetResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetFilesystemSnapshotPolicy.ts.html |here} to see how to use GetFilesystemSnapshotPolicy API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteReplicationTarget.ts.html |here} to see how to use DeleteReplicationTarget API. */ - public async getFilesystemSnapshotPolicy( - getFilesystemSnapshotPolicyRequest: requests.GetFilesystemSnapshotPolicyRequest - ): Promise { + public async deleteReplicationTarget( + deleteReplicationTargetRequest: requests.DeleteReplicationTargetRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FileStorageClient#getFilesystemSnapshotPolicy."); - const operationName = "getFilesystemSnapshotPolicy"; + this.logger.debug("Calling operation FileStorageClient#deleteReplicationTarget."); + const operationName = "deleteReplicationTarget"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/GetFilesystemSnapshotPolicy"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/DeleteReplicationTarget"; const pathParams = { - "{filesystemSnapshotPolicyId}": getFilesystemSnapshotPolicyRequest.filesystemSnapshotPolicyId + "{replicationTargetId}": deleteReplicationTargetRequest.replicationTargetId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": deleteReplicationTargetRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getFilesystemSnapshotPolicyRequest.opcRequestId + "if-match": deleteReplicationTargetRequest.ifMatch, + "opc-request-id": deleteReplicationTargetRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getFilesystemSnapshotPolicyRequest.retryConfiguration, + deleteReplicationTargetRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}", - method: "GET", + path: "/replicationTargets/{replicationTargetId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -2358,17 +2445,8 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "filesystemSnapshotPolicy", - bodyModel: model.FilesystemSnapshotPolicy, - type: "model.FilesystemSnapshotPolicy", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -2384,43 +2462,47 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Gets the specified mount target's information. + * Deletes the specified snapshot. + * * This operation does not retry by default if the user has not defined a retry configuration. - * @param GetMountTargetRequest - * @return GetMountTargetResponse + * @param DeleteSnapshotRequest + * @return DeleteSnapshotResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetMountTarget.ts.html |here} to see how to use GetMountTarget API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DeleteSnapshot.ts.html |here} to see how to use DeleteSnapshot API. */ - public async getMountTarget( - getMountTargetRequest: requests.GetMountTargetRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#getMountTarget."); - const operationName = "getMountTarget"; + public async deleteSnapshot( + deleteSnapshotRequest: requests.DeleteSnapshotRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#deleteSnapshot."); + const operationName = "deleteSnapshot"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/GetMountTarget"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/DeleteSnapshot"; const pathParams = { - "{mountTargetId}": getMountTargetRequest.mountTargetId + "{snapshotId}": deleteSnapshotRequest.snapshotId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": deleteSnapshotRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getMountTargetRequest.opcRequestId + "if-match": deleteSnapshotRequest.ifMatch, + "opc-request-id": deleteSnapshotRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getMountTargetRequest.retryConfiguration, + deleteSnapshotRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/mountTargets/{mountTargetId}", - method: "GET", + path: "/snapshots/{snapshotId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -2434,17 +2516,8 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "mountTarget", - bodyModel: model.MountTarget, - type: "model.MountTarget", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -2460,43 +2533,45 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Gets the specified outbound connector's information. + * Detaches the file system from its parent file system + * * This operation does not retry by default if the user has not defined a retry configuration. - * @param GetOutboundConnectorRequest - * @return GetOutboundConnectorResponse + * @param DetachCloneRequest + * @return DetachCloneResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetOutboundConnector.ts.html |here} to see how to use GetOutboundConnector API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/DetachClone.ts.html |here} to see how to use DetachClone API. */ - public async getOutboundConnector( - getOutboundConnectorRequest: requests.GetOutboundConnectorRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#getOutboundConnector."); - const operationName = "getOutboundConnector"; + public async detachClone( + detachCloneRequest: requests.DetachCloneRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#detachClone."); + const operationName = "detachClone"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/GetOutboundConnector"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DetachClone"; const pathParams = { - "{outboundConnectorId}": getOutboundConnectorRequest.outboundConnectorId + "{fileSystemId}": detachCloneRequest.fileSystemId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getOutboundConnectorRequest.opcRequestId + "if-match": detachCloneRequest.ifMatch, + "opc-request-id": detachCloneRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getOutboundConnectorRequest.retryConfiguration, + detachCloneRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/outboundConnectors/{outboundConnectorId}", - method: "GET", + path: "/fileSystems/{fileSystemId}/actions/detachClone", + method: "POST", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -2510,17 +2585,8 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "outboundConnector", - bodyModel: model.OutboundConnector, - type: "model.OutboundConnector", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -2536,43 +2602,47 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Gets the specified replication's information. + * Provides estimates for replication created using specific file system. + * * This operation does not retry by default if the user has not defined a retry configuration. - * @param GetReplicationRequest - * @return GetReplicationResponse + * @param EstimateReplicationRequest + * @return EstimateReplicationResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetReplication.ts.html |here} to see how to use GetReplication API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/EstimateReplication.ts.html |here} to see how to use EstimateReplication API. */ - public async getReplication( - getReplicationRequest: requests.GetReplicationRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#getReplication."); - const operationName = "getReplication"; + public async estimateReplication( + estimateReplicationRequest: requests.EstimateReplicationRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#estimateReplication."); + const operationName = "estimateReplication"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/GetReplication"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/EstimateReplication"; const pathParams = { - "{replicationId}": getReplicationRequest.replicationId + "{fileSystemId}": estimateReplicationRequest.fileSystemId }; - const queryParams = {}; + const queryParams = { + "changeRateInMBps": estimateReplicationRequest.changeRateInMBps + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getReplicationRequest.opcRequestId + "if-match": estimateReplicationRequest.ifMatch, + "opc-request-id": estimateReplicationRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getReplicationRequest.retryConfiguration, + estimateReplicationRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/replications/{replicationId}", - method: "GET", + path: "/fileSystems/{fileSystemId}/actions/estimateReplication", + method: "POST", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -2586,11 +2656,11 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "replication", - bodyModel: model.Replication, - type: "model.Replication", + bodyKey: "replicationEstimate", + bodyModel: model.ReplicationEstimate, + type: "model.ReplicationEstimate", responseHeaders: [ { value: response.headers.get("etag"), @@ -2612,42 +2682,42 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Gets the specified replication target's information. + * Gets the specified export's information. * This operation does not retry by default if the user has not defined a retry configuration. - * @param GetReplicationTargetRequest - * @return GetReplicationTargetResponse + * @param GetExportRequest + * @return GetExportResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetReplicationTarget.ts.html |here} to see how to use GetReplicationTarget API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetExport.ts.html |here} to see how to use GetExport API. */ - public async getReplicationTarget( - getReplicationTargetRequest: requests.GetReplicationTargetRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#getReplicationTarget."); - const operationName = "getReplicationTarget"; + public async getExport( + getExportRequest: requests.GetExportRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#getExport."); + const operationName = "getExport"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/GetReplicationTarget"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/GetExport"; const pathParams = { - "{replicationTargetId}": getReplicationTargetRequest.replicationTargetId + "{exportId}": getExportRequest.exportId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getReplicationTargetRequest.opcRequestId + "opc-request-id": getExportRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getReplicationTargetRequest.retryConfiguration, + getExportRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/replicationTargets/{replicationTargetId}", + path: "/exports/{exportId}", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -2662,11 +2732,11 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "replicationTarget", - bodyModel: model.ReplicationTarget, - type: "model.ReplicationTarget", + bodyKey: "export", + bodyModel: model.Export, + type: "model.Export", responseHeaders: [ { value: response.headers.get("etag"), @@ -2688,42 +2758,42 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Gets the specified snapshot's information. + * Gets the specified export set's information. * This operation does not retry by default if the user has not defined a retry configuration. - * @param GetSnapshotRequest - * @return GetSnapshotResponse + * @param GetExportSetRequest + * @return GetExportSetResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetSnapshot.ts.html |here} to see how to use GetSnapshot API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetExportSet.ts.html |here} to see how to use GetExportSet API. */ - public async getSnapshot( - getSnapshotRequest: requests.GetSnapshotRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#getSnapshot."); - const operationName = "getSnapshot"; + public async getExportSet( + getExportSetRequest: requests.GetExportSetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#getExportSet."); + const operationName = "getExportSet"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/GetSnapshot"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSet/GetExportSet"; const pathParams = { - "{snapshotId}": getSnapshotRequest.snapshotId + "{exportSetId}": getExportSetRequest.exportSetId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getSnapshotRequest.opcRequestId + "opc-request-id": getExportSetRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getSnapshotRequest.retryConfiguration, + getExportSetRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/snapshots/{snapshotId}", + path: "/exportSets/{exportSetId}", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -2738,11 +2808,11 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "snapshot", - bodyModel: model.Snapshot, - type: "model.Snapshot", + bodyKey: "exportSet", + bodyModel: model.ExportSet, + type: "model.ExportSet", responseHeaders: [ { value: response.headers.get("etag"), @@ -2764,51 +2834,42 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * Lists the export set resources in the specified compartment. - * + * Gets the specified file system's information. * This operation does not retry by default if the user has not defined a retry configuration. - * @param ListExportSetsRequest - * @return ListExportSetsResponse + * @param GetFileSystemRequest + * @return GetFileSystemResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListExportSets.ts.html |here} to see how to use ListExportSets API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetFileSystem.ts.html |here} to see how to use GetFileSystem API. */ - public async listExportSets( - listExportSetsRequest: requests.ListExportSetsRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#listExportSets."); - const operationName = "listExportSets"; + public async getFileSystem( + getFileSystemRequest: requests.GetFileSystemRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#getFileSystem."); + const operationName = "getFileSystem"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSetSummary/ListExportSets"; - const pathParams = {}; - - const queryParams = { - "compartmentId": listExportSetsRequest.compartmentId, - "availabilityDomain": listExportSetsRequest.availabilityDomain, - "limit": listExportSetsRequest.limit, - "page": listExportSetsRequest.page, - "displayName": listExportSetsRequest.displayName, - "lifecycleState": listExportSetsRequest.lifecycleState, - "id": listExportSetsRequest.id, - "sortBy": listExportSetsRequest.sortBy, - "sortOrder": listExportSetsRequest.sortOrder + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/GetFileSystem"; + const pathParams = { + "{fileSystemId}": getFileSystemRequest.fileSystemId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listExportSetsRequest.opcRequestId + "opc-request-id": getFileSystemRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listExportSetsRequest.retryConfiguration, + getFileSystemRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/exportSets", + path: "/fileSystems/{fileSystemId}", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -2823,15 +2884,15 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "items", - bodyModel: model.ExportSetSummary, - type: "Array", + bodyKey: "fileSystem", + bodyModel: model.FileSystem, + type: "model.FileSystem", responseHeaders: [ { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { @@ -2849,105 +2910,43 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * NOTE: This function is deprecated in favor of listExportSetsRecordIterator function. - * Creates a new async iterator which will iterate over the models.ExportSetSummary objects - * contained in responses from the listExportSets operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllExportSets( - request: requests.ListExportSetsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listExportSets(req)); - } - - /** - * NOTE: This function is deprecated in favor of listExportSetsResponseIterator function. - * Creates a new async iterator which will iterate over the responses received from the listExportSets operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllExportSetsResponses( - request: requests.ListExportSetsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listExportSets(req)); - } - - /** - * Creates a new async iterator which will iterate over the models.ExportSetSummary objects - * contained in responses from the listExportSets operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listExportSetsRecordIterator( - request: requests.ListExportSetsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listExportSets(req)); - } - - /** - * Creates a new async iterator which will iterate over the responses received from the listExportSets operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listExportSetsResponseIterator( - request: requests.ListExportSetsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listExportSets(req)); - } - - /** - * Lists export resources by compartment, file system, or export - * set. You must specify an export set ID, a file system ID, and - * / or a compartment ID. - * + * Gets the specified file system snapshot policy's information. * This operation does not retry by default if the user has not defined a retry configuration. - * @param ListExportsRequest - * @return ListExportsResponse + * @param GetFilesystemSnapshotPolicyRequest + * @return GetFilesystemSnapshotPolicyResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListExports.ts.html |here} to see how to use ListExports API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetFilesystemSnapshotPolicy.ts.html |here} to see how to use GetFilesystemSnapshotPolicy API. */ - public async listExports( - listExportsRequest: requests.ListExportsRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#listExports."); - const operationName = "listExports"; + public async getFilesystemSnapshotPolicy( + getFilesystemSnapshotPolicyRequest: requests.GetFilesystemSnapshotPolicyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#getFilesystemSnapshotPolicy."); + const operationName = "getFilesystemSnapshotPolicy"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSummary/ListExports"; - const pathParams = {}; - - const queryParams = { - "compartmentId": listExportsRequest.compartmentId, - "limit": listExportsRequest.limit, - "page": listExportsRequest.page, - "exportSetId": listExportsRequest.exportSetId, - "fileSystemId": listExportsRequest.fileSystemId, - "lifecycleState": listExportsRequest.lifecycleState, - "id": listExportsRequest.id, - "sortBy": listExportsRequest.sortBy, - "sortOrder": listExportsRequest.sortOrder + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/GetFilesystemSnapshotPolicy"; + const pathParams = { + "{filesystemSnapshotPolicyId}": getFilesystemSnapshotPolicyRequest.filesystemSnapshotPolicyId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listExportsRequest.opcRequestId + "opc-request-id": getFilesystemSnapshotPolicyRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listExportsRequest.retryConfiguration, + getFilesystemSnapshotPolicyRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/exports", + path: "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -2962,15 +2961,15 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "items", - bodyModel: model.ExportSummary, - type: "Array", + bodyKey: "filesystemSnapshotPolicy", + bodyModel: model.FilesystemSnapshotPolicy, + type: "model.FilesystemSnapshotPolicy", responseHeaders: [ { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { @@ -2988,107 +2987,42 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * NOTE: This function is deprecated in favor of listExportsRecordIterator function. - * Creates a new async iterator which will iterate over the models.ExportSummary objects - * contained in responses from the listExports operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllExports( - request: requests.ListExportsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listExports(req)); - } - - /** - * NOTE: This function is deprecated in favor of listExportsResponseIterator function. - * Creates a new async iterator which will iterate over the responses received from the listExports operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllExportsResponses( - request: requests.ListExportsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listExports(req)); - } - - /** - * Creates a new async iterator which will iterate over the models.ExportSummary objects - * contained in responses from the listExports operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listExportsRecordIterator( - request: requests.ListExportsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listExports(req)); - } - - /** - * Creates a new async iterator which will iterate over the responses received from the listExports operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listExportsResponseIterator( - request: requests.ListExportsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listExports(req)); - } - - /** - * Lists the file system resources in the specified compartment, or by the specified compartment and - * file system snapshot policy. - * + * Gets the specified mount target's information. * This operation does not retry by default if the user has not defined a retry configuration. - * @param ListFileSystemsRequest - * @return ListFileSystemsResponse + * @param GetMountTargetRequest + * @return GetMountTargetResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListFileSystems.ts.html |here} to see how to use ListFileSystems API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetMountTarget.ts.html |here} to see how to use GetMountTarget API. */ - public async listFileSystems( - listFileSystemsRequest: requests.ListFileSystemsRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#listFileSystems."); - const operationName = "listFileSystems"; + public async getMountTarget( + getMountTargetRequest: requests.GetMountTargetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#getMountTarget."); + const operationName = "getMountTarget"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystemSummary/ListFileSystems"; - const pathParams = {}; - - const queryParams = { - "compartmentId": listFileSystemsRequest.compartmentId, - "availabilityDomain": listFileSystemsRequest.availabilityDomain, - "limit": listFileSystemsRequest.limit, - "page": listFileSystemsRequest.page, - "displayName": listFileSystemsRequest.displayName, - "lifecycleState": listFileSystemsRequest.lifecycleState, - "id": listFileSystemsRequest.id, - "sourceSnapshotId": listFileSystemsRequest.sourceSnapshotId, - "parentFileSystemId": listFileSystemsRequest.parentFileSystemId, - "filesystemSnapshotPolicyId": listFileSystemsRequest.filesystemSnapshotPolicyId, - "sortBy": listFileSystemsRequest.sortBy, - "sortOrder": listFileSystemsRequest.sortOrder + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/GetMountTarget"; + const pathParams = { + "{mountTargetId}": getMountTargetRequest.mountTargetId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listFileSystemsRequest.opcRequestId + "opc-request-id": getMountTargetRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listFileSystemsRequest.retryConfiguration, + getMountTargetRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/fileSystems", + path: "/mountTargets/{mountTargetId}", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -3103,15 +3037,15 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "items", - bodyModel: model.FileSystemSummary, - type: "Array", + bodyKey: "mountTarget", + bodyModel: model.MountTarget, + type: "model.MountTarget", responseHeaders: [ { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { @@ -3129,104 +3063,118 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * NOTE: This function is deprecated in favor of listFileSystemsRecordIterator function. - * Creates a new async iterator which will iterate over the models.FileSystemSummary objects - * contained in responses from the listFileSystems operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllFileSystems( - request: requests.ListFileSystemsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listFileSystems(req)); - } - - /** - * NOTE: This function is deprecated in favor of listFileSystemsResponseIterator function. - * Creates a new async iterator which will iterate over the responses received from the listFileSystems operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation + * Gets the specified outbound connector's information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetOutboundConnectorRequest + * @return GetOutboundConnectorResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetOutboundConnector.ts.html |here} to see how to use GetOutboundConnector API. */ - public listAllFileSystemsResponses( - request: requests.ListFileSystemsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listFileSystems(req)); - } + public async getOutboundConnector( + getOutboundConnectorRequest: requests.GetOutboundConnectorRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#getOutboundConnector."); + const operationName = "getOutboundConnector"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/GetOutboundConnector"; + const pathParams = { + "{outboundConnectorId}": getOutboundConnectorRequest.outboundConnectorId + }; - /** - * Creates a new async iterator which will iterate over the models.FileSystemSummary objects - * contained in responses from the listFileSystems operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listFileSystemsRecordIterator( - request: requests.ListFileSystemsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listFileSystems(req)); - } + const queryParams = {}; - /** - * Creates a new async iterator which will iterate over the responses received from the listFileSystems operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listFileSystemsResponseIterator( - request: requests.ListFileSystemsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listFileSystems(req)); + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getOutboundConnectorRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getOutboundConnectorRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/outboundConnectors/{outboundConnectorId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "outboundConnector", + bodyModel: model.OutboundConnector, + type: "model.OutboundConnector", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } } /** - * Lists file system snapshot policies in the specified compartment. - * + * Gets the specified replication's information. * This operation does not retry by default if the user has not defined a retry configuration. - * @param ListFilesystemSnapshotPoliciesRequest - * @return ListFilesystemSnapshotPoliciesResponse + * @param GetReplicationRequest + * @return GetReplicationResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListFilesystemSnapshotPolicies.ts.html |here} to see how to use ListFilesystemSnapshotPolicies API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetReplication.ts.html |here} to see how to use GetReplication API. */ - public async listFilesystemSnapshotPolicies( - listFilesystemSnapshotPoliciesRequest: requests.ListFilesystemSnapshotPoliciesRequest - ): Promise { - if (this.logger) - this.logger.debug("Calling operation FileStorageClient#listFilesystemSnapshotPolicies."); - const operationName = "listFilesystemSnapshotPolicies"; + public async getReplication( + getReplicationRequest: requests.GetReplicationRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#getReplication."); + const operationName = "getReplication"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicySummary/ListFilesystemSnapshotPolicies"; - const pathParams = {}; - - const queryParams = { - "compartmentId": listFilesystemSnapshotPoliciesRequest.compartmentId, - "availabilityDomain": listFilesystemSnapshotPoliciesRequest.availabilityDomain, - "limit": listFilesystemSnapshotPoliciesRequest.limit, - "page": listFilesystemSnapshotPoliciesRequest.page, - "displayName": listFilesystemSnapshotPoliciesRequest.displayName, - "lifecycleState": listFilesystemSnapshotPoliciesRequest.lifecycleState, - "id": listFilesystemSnapshotPoliciesRequest.id, - "sortBy": listFilesystemSnapshotPoliciesRequest.sortBy, - "sortOrder": listFilesystemSnapshotPoliciesRequest.sortOrder + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/GetReplication"; + const pathParams = { + "{replicationId}": getReplicationRequest.replicationId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listFilesystemSnapshotPoliciesRequest.opcRequestId + "opc-request-id": getReplicationRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listFilesystemSnapshotPoliciesRequest.retryConfiguration, + getReplicationRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/filesystemSnapshotPolicies", + path: "/replications/{replicationId}", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -3241,15 +3189,15 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "items", - bodyModel: model.FilesystemSnapshotPolicySummary, - type: "Array", + bodyKey: "replication", + bodyModel: model.Replication, + type: "model.Replication", responseHeaders: [ { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { @@ -3267,104 +3215,42 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * NOTE: This function is deprecated in favor of listFilesystemSnapshotPoliciesRecordIterator function. - * Creates a new async iterator which will iterate over the models.FilesystemSnapshotPolicySummary objects - * contained in responses from the listFilesystemSnapshotPolicies operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllFilesystemSnapshotPolicies( - request: requests.ListFilesystemSnapshotPoliciesRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listFilesystemSnapshotPolicies(req)); - } - - /** - * NOTE: This function is deprecated in favor of listFilesystemSnapshotPoliciesResponseIterator function. - * Creates a new async iterator which will iterate over the responses received from the listFilesystemSnapshotPolicies operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllFilesystemSnapshotPoliciesResponses( - request: requests.ListFilesystemSnapshotPoliciesRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listFilesystemSnapshotPolicies(req)); - } - - /** - * Creates a new async iterator which will iterate over the models.FilesystemSnapshotPolicySummary objects - * contained in responses from the listFilesystemSnapshotPolicies operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listFilesystemSnapshotPoliciesRecordIterator( - request: requests.ListFilesystemSnapshotPoliciesRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listFilesystemSnapshotPolicies(req)); - } - - /** - * Creates a new async iterator which will iterate over the responses received from the listFilesystemSnapshotPolicies operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listFilesystemSnapshotPoliciesResponseIterator( - request: requests.ListFilesystemSnapshotPoliciesRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listFilesystemSnapshotPolicies(req)); - } - - /** - * Lists the mount target resources in the specified compartment. - * + * Gets the specified replication target's information. * This operation does not retry by default if the user has not defined a retry configuration. - * @param ListMountTargetsRequest - * @return ListMountTargetsResponse + * @param GetReplicationTargetRequest + * @return GetReplicationTargetResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListMountTargets.ts.html |here} to see how to use ListMountTargets API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetReplicationTarget.ts.html |here} to see how to use GetReplicationTarget API. */ - public async listMountTargets( - listMountTargetsRequest: requests.ListMountTargetsRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#listMountTargets."); - const operationName = "listMountTargets"; + public async getReplicationTarget( + getReplicationTargetRequest: requests.GetReplicationTargetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#getReplicationTarget."); + const operationName = "getReplicationTarget"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTargetSummary/ListMountTargets"; - const pathParams = {}; - - const queryParams = { - "compartmentId": listMountTargetsRequest.compartmentId, - "availabilityDomain": listMountTargetsRequest.availabilityDomain, - "limit": listMountTargetsRequest.limit, - "page": listMountTargetsRequest.page, - "displayName": listMountTargetsRequest.displayName, - "exportSetId": listMountTargetsRequest.exportSetId, - "lifecycleState": listMountTargetsRequest.lifecycleState, - "id": listMountTargetsRequest.id, - "sortBy": listMountTargetsRequest.sortBy, - "sortOrder": listMountTargetsRequest.sortOrder + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/GetReplicationTarget"; + const pathParams = { + "{replicationTargetId}": getReplicationTargetRequest.replicationTargetId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listMountTargetsRequest.opcRequestId + "opc-request-id": getReplicationTargetRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listMountTargetsRequest.retryConfiguration, + getReplicationTargetRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/mountTargets", + path: "/replicationTargets/{replicationTargetId}", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -3379,15 +3265,15 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "items", - bodyModel: model.MountTargetSummary, - type: "Array", + bodyKey: "replicationTarget", + bodyModel: model.ReplicationTarget, + type: "model.ReplicationTarget", responseHeaders: [ { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { @@ -3405,104 +3291,42 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * NOTE: This function is deprecated in favor of listMountTargetsRecordIterator function. - * Creates a new async iterator which will iterate over the models.MountTargetSummary objects - * contained in responses from the listMountTargets operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllMountTargets( - request: requests.ListMountTargetsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listMountTargets(req)); - } - - /** - * NOTE: This function is deprecated in favor of listMountTargetsResponseIterator function. - * Creates a new async iterator which will iterate over the responses received from the listMountTargets operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllMountTargetsResponses( - request: requests.ListMountTargetsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listMountTargets(req)); - } - - /** - * Creates a new async iterator which will iterate over the models.MountTargetSummary objects - * contained in responses from the listMountTargets operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listMountTargetsRecordIterator( - request: requests.ListMountTargetsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listMountTargets(req)); - } - - /** - * Creates a new async iterator which will iterate over the responses received from the listMountTargets operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listMountTargetsResponseIterator( - request: requests.ListMountTargetsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listMountTargets(req)); - } - - /** - * Lists the outbound connector resources in the specified compartment. - * + * Gets the specified snapshot's information. * This operation does not retry by default if the user has not defined a retry configuration. - * @param ListOutboundConnectorsRequest - * @return ListOutboundConnectorsResponse + * @param GetSnapshotRequest + * @return GetSnapshotResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListOutboundConnectors.ts.html |here} to see how to use ListOutboundConnectors API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/GetSnapshot.ts.html |here} to see how to use GetSnapshot API. */ - public async listOutboundConnectors( - listOutboundConnectorsRequest: requests.ListOutboundConnectorsRequest - ): Promise { - if (this.logger) - this.logger.debug("Calling operation FileStorageClient#listOutboundConnectors."); - const operationName = "listOutboundConnectors"; + public async getSnapshot( + getSnapshotRequest: requests.GetSnapshotRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#getSnapshot."); + const operationName = "getSnapshot"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnectorSummary/ListOutboundConnectors"; - const pathParams = {}; - - const queryParams = { - "compartmentId": listOutboundConnectorsRequest.compartmentId, - "availabilityDomain": listOutboundConnectorsRequest.availabilityDomain, - "limit": listOutboundConnectorsRequest.limit, - "page": listOutboundConnectorsRequest.page, - "lifecycleState": listOutboundConnectorsRequest.lifecycleState, - "displayName": listOutboundConnectorsRequest.displayName, - "id": listOutboundConnectorsRequest.id, - "sortBy": listOutboundConnectorsRequest.sortBy, - "sortOrder": listOutboundConnectorsRequest.sortOrder + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/GetSnapshot"; + const pathParams = { + "{snapshotId}": getSnapshotRequest.snapshotId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listOutboundConnectorsRequest.opcRequestId + "opc-request-id": getSnapshotRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listOutboundConnectorsRequest.retryConfiguration, + getSnapshotRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/outboundConnectors", + path: "/snapshots/{snapshotId}", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -3517,15 +3341,15 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "items", - bodyModel: model.OutboundConnectorSummary, - type: "Array", + bodyKey: "snapshot", + bodyModel: model.Snapshot, + type: "model.Snapshot", responseHeaders: [ { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { @@ -3543,104 +3367,51 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * NOTE: This function is deprecated in favor of listOutboundConnectorsRecordIterator function. - * Creates a new async iterator which will iterate over the models.OutboundConnectorSummary objects - * contained in responses from the listOutboundConnectors operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllOutboundConnectors( - request: requests.ListOutboundConnectorsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listOutboundConnectors(req)); - } - - /** - * NOTE: This function is deprecated in favor of listOutboundConnectorsResponseIterator function. - * Creates a new async iterator which will iterate over the responses received from the listOutboundConnectors operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllOutboundConnectorsResponses( - request: requests.ListOutboundConnectorsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listOutboundConnectors(req)); - } - - /** - * Creates a new async iterator which will iterate over the models.OutboundConnectorSummary objects - * contained in responses from the listOutboundConnectors operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listOutboundConnectorsRecordIterator( - request: requests.ListOutboundConnectorsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listOutboundConnectors(req)); - } - - /** - * Creates a new async iterator which will iterate over the responses received from the listOutboundConnectors operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listOutboundConnectorsResponseIterator( - request: requests.ListOutboundConnectorsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listOutboundConnectors(req)); - } - - /** - * Lists the replication target resources in the specified compartment. + * Lists the export set resources in the specified compartment. * * This operation does not retry by default if the user has not defined a retry configuration. - * @param ListReplicationTargetsRequest - * @return ListReplicationTargetsResponse + * @param ListExportSetsRequest + * @return ListExportSetsResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListReplicationTargets.ts.html |here} to see how to use ListReplicationTargets API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListExportSets.ts.html |here} to see how to use ListExportSets API. */ - public async listReplicationTargets( - listReplicationTargetsRequest: requests.ListReplicationTargetsRequest - ): Promise { - if (this.logger) - this.logger.debug("Calling operation FileStorageClient#listReplicationTargets."); - const operationName = "listReplicationTargets"; + public async listExportSets( + listExportSetsRequest: requests.ListExportSetsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#listExportSets."); + const operationName = "listExportSets"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTargetSummary/ListReplicationTargets"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSetSummary/ListExportSets"; const pathParams = {}; const queryParams = { - "compartmentId": listReplicationTargetsRequest.compartmentId, - "availabilityDomain": listReplicationTargetsRequest.availabilityDomain, - "limit": listReplicationTargetsRequest.limit, - "page": listReplicationTargetsRequest.page, - "lifecycleState": listReplicationTargetsRequest.lifecycleState, - "displayName": listReplicationTargetsRequest.displayName, - "id": listReplicationTargetsRequest.id, - "sortBy": listReplicationTargetsRequest.sortBy, - "sortOrder": listReplicationTargetsRequest.sortOrder + "compartmentId": listExportSetsRequest.compartmentId, + "availabilityDomain": listExportSetsRequest.availabilityDomain, + "limit": listExportSetsRequest.limit, + "page": listExportSetsRequest.page, + "displayName": listExportSetsRequest.displayName, + "lifecycleState": listExportSetsRequest.lifecycleState, + "id": listExportSetsRequest.id, + "sortBy": listExportSetsRequest.sortBy, + "sortOrder": listExportSetsRequest.sortOrder }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listReplicationTargetsRequest.opcRequestId + "opc-request-id": listExportSetsRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listReplicationTargetsRequest.retryConfiguration, + listExportSetsRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/replicationTargets", + path: "/exportSets", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -3655,11 +3426,11 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), bodyKey: "items", - bodyModel: model.ReplicationTargetSummary, - type: "Array", + bodyModel: model.ExportSetSummary, + type: "Array", responseHeaders: [ { value: response.headers.get("opc-next-page"), @@ -3681,105 +3452,1632 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * NOTE: This function is deprecated in favor of listReplicationTargetsRecordIterator function. - * Creates a new async iterator which will iterate over the models.ReplicationTargetSummary objects - * contained in responses from the listReplicationTargets operation. This iterator will fetch more data from the + * NOTE: This function is deprecated in favor of listExportSetsRecordIterator function. + * Creates a new async iterator which will iterate over the models.ExportSetSummary objects + * contained in responses from the listExportSets operation. This iterator will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation */ - public listAllReplicationTargets( - request: requests.ListReplicationTargetsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listReplicationTargets(req)); + public listAllExportSets( + request: requests.ListExportSetsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listExportSets(req)); } /** - * NOTE: This function is deprecated in favor of listReplicationTargetsResponseIterator function. - * Creates a new async iterator which will iterate over the responses received from the listReplicationTargets operation. This iterator + * NOTE: This function is deprecated in favor of listExportSetsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listExportSets operation. This iterator * will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation */ - public listAllReplicationTargetsResponses( - request: requests.ListReplicationTargetsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listReplicationTargets(req)); + public listAllExportSetsResponses( + request: requests.ListExportSetsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listExportSets(req)); } /** - * Creates a new async iterator which will iterate over the models.ReplicationTargetSummary objects - * contained in responses from the listReplicationTargets operation. This iterator will fetch more data from the + * Creates a new async iterator which will iterate over the models.ExportSetSummary objects + * contained in responses from the listExportSets operation. This iterator will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation */ - public listReplicationTargetsRecordIterator( - request: requests.ListReplicationTargetsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listReplicationTargets(req)); + public listExportSetsRecordIterator( + request: requests.ListExportSetsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listExportSets(req)); } /** - * Creates a new async iterator which will iterate over the responses received from the listReplicationTargets operation. This iterator + * Creates a new async iterator which will iterate over the responses received from the listExportSets operation. This iterator * will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation */ - public listReplicationTargetsResponseIterator( - request: requests.ListReplicationTargetsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listReplicationTargets(req)); - } - + public listExportSetsResponseIterator( + request: requests.ListExportSetsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listExportSets(req)); + } + /** - * Lists the replication resources in the specified compartment. + * Lists export resources by compartment, file system, or export + * set. You must specify an export set ID, a file system ID, and + * / or a compartment ID. * * This operation does not retry by default if the user has not defined a retry configuration. - * @param ListReplicationsRequest - * @return ListReplicationsResponse + * @param ListExportsRequest + * @return ListExportsResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListReplications.ts.html |here} to see how to use ListReplications API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListExports.ts.html |here} to see how to use ListExports API. */ - public async listReplications( - listReplicationsRequest: requests.ListReplicationsRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#listReplications."); - const operationName = "listReplications"; + public async listExports( + listExportsRequest: requests.ListExportsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#listExports."); + const operationName = "listExports"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationSummary/ListReplications"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSummary/ListExports"; const pathParams = {}; const queryParams = { - "compartmentId": listReplicationsRequest.compartmentId, - "availabilityDomain": listReplicationsRequest.availabilityDomain, - "limit": listReplicationsRequest.limit, - "page": listReplicationsRequest.page, - "lifecycleState": listReplicationsRequest.lifecycleState, - "displayName": listReplicationsRequest.displayName, - "id": listReplicationsRequest.id, - "sortBy": listReplicationsRequest.sortBy, - "sortOrder": listReplicationsRequest.sortOrder, - "fileSystemId": listReplicationsRequest.fileSystemId + "compartmentId": listExportsRequest.compartmentId, + "limit": listExportsRequest.limit, + "page": listExportsRequest.page, + "exportSetId": listExportsRequest.exportSetId, + "fileSystemId": listExportsRequest.fileSystemId, + "lifecycleState": listExportsRequest.lifecycleState, + "id": listExportsRequest.id, + "sortBy": listExportsRequest.sortBy, + "sortOrder": listExportsRequest.sortOrder + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listExportsRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listExportsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/exports", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: model.ExportSummary, + type: "Array", + responseHeaders: [ + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * NOTE: This function is deprecated in favor of listExportsRecordIterator function. + * Creates a new async iterator which will iterate over the models.ExportSummary objects + * contained in responses from the listExports operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllExports( + request: requests.ListExportsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listExports(req)); + } + + /** + * NOTE: This function is deprecated in favor of listExportsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listExports operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllExportsResponses( + request: requests.ListExportsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listExports(req)); + } + + /** + * Creates a new async iterator which will iterate over the models.ExportSummary objects + * contained in responses from the listExports operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listExportsRecordIterator( + request: requests.ListExportsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listExports(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listExports operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listExportsResponseIterator( + request: requests.ListExportsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listExports(req)); + } + + /** + * Lists the file system resources in the specified compartment, or by the specified compartment and + * file system snapshot policy. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListFileSystemsRequest + * @return ListFileSystemsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListFileSystems.ts.html |here} to see how to use ListFileSystems API. + */ + public async listFileSystems( + listFileSystemsRequest: requests.ListFileSystemsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#listFileSystems."); + const operationName = "listFileSystems"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystemSummary/ListFileSystems"; + const pathParams = {}; + + const queryParams = { + "compartmentId": listFileSystemsRequest.compartmentId, + "availabilityDomain": listFileSystemsRequest.availabilityDomain, + "limit": listFileSystemsRequest.limit, + "page": listFileSystemsRequest.page, + "displayName": listFileSystemsRequest.displayName, + "lifecycleState": listFileSystemsRequest.lifecycleState, + "id": listFileSystemsRequest.id, + "sourceSnapshotId": listFileSystemsRequest.sourceSnapshotId, + "parentFileSystemId": listFileSystemsRequest.parentFileSystemId, + "filesystemSnapshotPolicyId": listFileSystemsRequest.filesystemSnapshotPolicyId, + "sortBy": listFileSystemsRequest.sortBy, + "sortOrder": listFileSystemsRequest.sortOrder + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listFileSystemsRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listFileSystemsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fileSystems", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: model.FileSystemSummary, + type: "Array", + responseHeaders: [ + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * NOTE: This function is deprecated in favor of listFileSystemsRecordIterator function. + * Creates a new async iterator which will iterate over the models.FileSystemSummary objects + * contained in responses from the listFileSystems operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllFileSystems( + request: requests.ListFileSystemsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listFileSystems(req)); + } + + /** + * NOTE: This function is deprecated in favor of listFileSystemsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listFileSystems operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllFileSystemsResponses( + request: requests.ListFileSystemsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listFileSystems(req)); + } + + /** + * Creates a new async iterator which will iterate over the models.FileSystemSummary objects + * contained in responses from the listFileSystems operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listFileSystemsRecordIterator( + request: requests.ListFileSystemsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listFileSystems(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listFileSystems operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listFileSystemsResponseIterator( + request: requests.ListFileSystemsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listFileSystems(req)); + } + + /** + * Lists file system snapshot policies in the specified compartment. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListFilesystemSnapshotPoliciesRequest + * @return ListFilesystemSnapshotPoliciesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListFilesystemSnapshotPolicies.ts.html |here} to see how to use ListFilesystemSnapshotPolicies API. + */ + public async listFilesystemSnapshotPolicies( + listFilesystemSnapshotPoliciesRequest: requests.ListFilesystemSnapshotPoliciesRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#listFilesystemSnapshotPolicies."); + const operationName = "listFilesystemSnapshotPolicies"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicySummary/ListFilesystemSnapshotPolicies"; + const pathParams = {}; + + const queryParams = { + "compartmentId": listFilesystemSnapshotPoliciesRequest.compartmentId, + "availabilityDomain": listFilesystemSnapshotPoliciesRequest.availabilityDomain, + "limit": listFilesystemSnapshotPoliciesRequest.limit, + "page": listFilesystemSnapshotPoliciesRequest.page, + "displayName": listFilesystemSnapshotPoliciesRequest.displayName, + "lifecycleState": listFilesystemSnapshotPoliciesRequest.lifecycleState, + "id": listFilesystemSnapshotPoliciesRequest.id, + "sortBy": listFilesystemSnapshotPoliciesRequest.sortBy, + "sortOrder": listFilesystemSnapshotPoliciesRequest.sortOrder + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listFilesystemSnapshotPoliciesRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listFilesystemSnapshotPoliciesRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/filesystemSnapshotPolicies", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: model.FilesystemSnapshotPolicySummary, + type: "Array", + responseHeaders: [ + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * NOTE: This function is deprecated in favor of listFilesystemSnapshotPoliciesRecordIterator function. + * Creates a new async iterator which will iterate over the models.FilesystemSnapshotPolicySummary objects + * contained in responses from the listFilesystemSnapshotPolicies operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllFilesystemSnapshotPolicies( + request: requests.ListFilesystemSnapshotPoliciesRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listFilesystemSnapshotPolicies(req)); + } + + /** + * NOTE: This function is deprecated in favor of listFilesystemSnapshotPoliciesResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listFilesystemSnapshotPolicies operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllFilesystemSnapshotPoliciesResponses( + request: requests.ListFilesystemSnapshotPoliciesRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listFilesystemSnapshotPolicies(req)); + } + + /** + * Creates a new async iterator which will iterate over the models.FilesystemSnapshotPolicySummary objects + * contained in responses from the listFilesystemSnapshotPolicies operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listFilesystemSnapshotPoliciesRecordIterator( + request: requests.ListFilesystemSnapshotPoliciesRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listFilesystemSnapshotPolicies(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listFilesystemSnapshotPolicies operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listFilesystemSnapshotPoliciesResponseIterator( + request: requests.ListFilesystemSnapshotPoliciesRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listFilesystemSnapshotPolicies(req)); + } + + /** + * Lists the mount target resources in the specified compartment. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListMountTargetsRequest + * @return ListMountTargetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListMountTargets.ts.html |here} to see how to use ListMountTargets API. + */ + public async listMountTargets( + listMountTargetsRequest: requests.ListMountTargetsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#listMountTargets."); + const operationName = "listMountTargets"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTargetSummary/ListMountTargets"; + const pathParams = {}; + + const queryParams = { + "compartmentId": listMountTargetsRequest.compartmentId, + "availabilityDomain": listMountTargetsRequest.availabilityDomain, + "limit": listMountTargetsRequest.limit, + "page": listMountTargetsRequest.page, + "displayName": listMountTargetsRequest.displayName, + "exportSetId": listMountTargetsRequest.exportSetId, + "lifecycleState": listMountTargetsRequest.lifecycleState, + "id": listMountTargetsRequest.id, + "sortBy": listMountTargetsRequest.sortBy, + "sortOrder": listMountTargetsRequest.sortOrder + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listMountTargetsRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listMountTargetsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/mountTargets", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: model.MountTargetSummary, + type: "Array", + responseHeaders: [ + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * NOTE: This function is deprecated in favor of listMountTargetsRecordIterator function. + * Creates a new async iterator which will iterate over the models.MountTargetSummary objects + * contained in responses from the listMountTargets operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllMountTargets( + request: requests.ListMountTargetsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listMountTargets(req)); + } + + /** + * NOTE: This function is deprecated in favor of listMountTargetsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listMountTargets operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllMountTargetsResponses( + request: requests.ListMountTargetsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listMountTargets(req)); + } + + /** + * Creates a new async iterator which will iterate over the models.MountTargetSummary objects + * contained in responses from the listMountTargets operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listMountTargetsRecordIterator( + request: requests.ListMountTargetsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listMountTargets(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listMountTargets operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listMountTargetsResponseIterator( + request: requests.ListMountTargetsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listMountTargets(req)); + } + + /** + * Lists the outbound connector resources in the specified compartment. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListOutboundConnectorsRequest + * @return ListOutboundConnectorsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListOutboundConnectors.ts.html |here} to see how to use ListOutboundConnectors API. + */ + public async listOutboundConnectors( + listOutboundConnectorsRequest: requests.ListOutboundConnectorsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#listOutboundConnectors."); + const operationName = "listOutboundConnectors"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnectorSummary/ListOutboundConnectors"; + const pathParams = {}; + + const queryParams = { + "compartmentId": listOutboundConnectorsRequest.compartmentId, + "availabilityDomain": listOutboundConnectorsRequest.availabilityDomain, + "limit": listOutboundConnectorsRequest.limit, + "page": listOutboundConnectorsRequest.page, + "lifecycleState": listOutboundConnectorsRequest.lifecycleState, + "displayName": listOutboundConnectorsRequest.displayName, + "id": listOutboundConnectorsRequest.id, + "sortBy": listOutboundConnectorsRequest.sortBy, + "sortOrder": listOutboundConnectorsRequest.sortOrder + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listOutboundConnectorsRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listOutboundConnectorsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/outboundConnectors", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: model.OutboundConnectorSummary, + type: "Array", + responseHeaders: [ + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * NOTE: This function is deprecated in favor of listOutboundConnectorsRecordIterator function. + * Creates a new async iterator which will iterate over the models.OutboundConnectorSummary objects + * contained in responses from the listOutboundConnectors operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllOutboundConnectors( + request: requests.ListOutboundConnectorsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listOutboundConnectors(req)); + } + + /** + * NOTE: This function is deprecated in favor of listOutboundConnectorsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listOutboundConnectors operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllOutboundConnectorsResponses( + request: requests.ListOutboundConnectorsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listOutboundConnectors(req)); + } + + /** + * Creates a new async iterator which will iterate over the models.OutboundConnectorSummary objects + * contained in responses from the listOutboundConnectors operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listOutboundConnectorsRecordIterator( + request: requests.ListOutboundConnectorsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listOutboundConnectors(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listOutboundConnectors operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listOutboundConnectorsResponseIterator( + request: requests.ListOutboundConnectorsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listOutboundConnectors(req)); + } + + /** + * Lists the replication target resources in the specified compartment. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListReplicationTargetsRequest + * @return ListReplicationTargetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListReplicationTargets.ts.html |here} to see how to use ListReplicationTargets API. + */ + public async listReplicationTargets( + listReplicationTargetsRequest: requests.ListReplicationTargetsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#listReplicationTargets."); + const operationName = "listReplicationTargets"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTargetSummary/ListReplicationTargets"; + const pathParams = {}; + + const queryParams = { + "compartmentId": listReplicationTargetsRequest.compartmentId, + "availabilityDomain": listReplicationTargetsRequest.availabilityDomain, + "limit": listReplicationTargetsRequest.limit, + "page": listReplicationTargetsRequest.page, + "lifecycleState": listReplicationTargetsRequest.lifecycleState, + "displayName": listReplicationTargetsRequest.displayName, + "id": listReplicationTargetsRequest.id, + "sortBy": listReplicationTargetsRequest.sortBy, + "sortOrder": listReplicationTargetsRequest.sortOrder + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listReplicationTargetsRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listReplicationTargetsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/replicationTargets", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: model.ReplicationTargetSummary, + type: "Array", + responseHeaders: [ + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * NOTE: This function is deprecated in favor of listReplicationTargetsRecordIterator function. + * Creates a new async iterator which will iterate over the models.ReplicationTargetSummary objects + * contained in responses from the listReplicationTargets operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllReplicationTargets( + request: requests.ListReplicationTargetsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listReplicationTargets(req)); + } + + /** + * NOTE: This function is deprecated in favor of listReplicationTargetsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listReplicationTargets operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllReplicationTargetsResponses( + request: requests.ListReplicationTargetsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listReplicationTargets(req)); + } + + /** + * Creates a new async iterator which will iterate over the models.ReplicationTargetSummary objects + * contained in responses from the listReplicationTargets operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listReplicationTargetsRecordIterator( + request: requests.ListReplicationTargetsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listReplicationTargets(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listReplicationTargets operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listReplicationTargetsResponseIterator( + request: requests.ListReplicationTargetsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listReplicationTargets(req)); + } + + /** + * Lists the replication resources in the specified compartment. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListReplicationsRequest + * @return ListReplicationsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListReplications.ts.html |here} to see how to use ListReplications API. + */ + public async listReplications( + listReplicationsRequest: requests.ListReplicationsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#listReplications."); + const operationName = "listReplications"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationSummary/ListReplications"; + const pathParams = {}; + + const queryParams = { + "compartmentId": listReplicationsRequest.compartmentId, + "availabilityDomain": listReplicationsRequest.availabilityDomain, + "limit": listReplicationsRequest.limit, + "page": listReplicationsRequest.page, + "lifecycleState": listReplicationsRequest.lifecycleState, + "displayName": listReplicationsRequest.displayName, + "id": listReplicationsRequest.id, + "sortBy": listReplicationsRequest.sortBy, + "sortOrder": listReplicationsRequest.sortOrder, + "fileSystemId": listReplicationsRequest.fileSystemId + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listReplicationsRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listReplicationsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/replications", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: model.ReplicationSummary, + type: "Array", + responseHeaders: [ + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * NOTE: This function is deprecated in favor of listReplicationsRecordIterator function. + * Creates a new async iterator which will iterate over the models.ReplicationSummary objects + * contained in responses from the listReplications operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllReplications( + request: requests.ListReplicationsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listReplications(req)); + } + + /** + * NOTE: This function is deprecated in favor of listReplicationsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listReplications operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllReplicationsResponses( + request: requests.ListReplicationsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listReplications(req)); + } + + /** + * Creates a new async iterator which will iterate over the models.ReplicationSummary objects + * contained in responses from the listReplications operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listReplicationsRecordIterator( + request: requests.ListReplicationsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listReplications(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listReplications operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listReplicationsResponseIterator( + request: requests.ListReplicationsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listReplications(req)); + } + + /** + * Lists snapshots of the specified file system, or by file system snapshot policy and compartment, +* or by file system snapshot policy and file system. +*

+If file system ID is not specified, a file system snapshot policy ID and compartment ID must be specified. +*

+Users can only sort by time created when listing snapshots by file system snapshot policy ID and compartment ID +* (sort by name is NOT supported for listing snapshots by policy and compartment). +* + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListSnapshotsRequest + * @return ListSnapshotsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListSnapshots.ts.html |here} to see how to use ListSnapshots API. + */ + public async listSnapshots( + listSnapshotsRequest: requests.ListSnapshotsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#listSnapshots."); + const operationName = "listSnapshots"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/SnapshotSummary/ListSnapshots"; + const pathParams = {}; + + const queryParams = { + "limit": listSnapshotsRequest.limit, + "page": listSnapshotsRequest.page, + "lifecycleState": listSnapshotsRequest.lifecycleState, + "id": listSnapshotsRequest.id, + "filesystemSnapshotPolicyId": listSnapshotsRequest.filesystemSnapshotPolicyId, + "compartmentId": listSnapshotsRequest.compartmentId, + "fileSystemId": listSnapshotsRequest.fileSystemId, + "sortOrder": listSnapshotsRequest.sortOrder + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listSnapshotsRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listSnapshotsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/snapshots", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: model.SnapshotSummary, + type: "Array", + responseHeaders: [ + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * NOTE: This function is deprecated in favor of listSnapshotsRecordIterator function. + * Creates a new async iterator which will iterate over the models.SnapshotSummary objects + * contained in responses from the listSnapshots operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllSnapshots( + request: requests.ListSnapshotsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listSnapshots(req)); + } + + /** + * NOTE: This function is deprecated in favor of listSnapshotsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listSnapshots operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listAllSnapshotsResponses( + request: requests.ListSnapshotsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listSnapshots(req)); + } + + /** + * Creates a new async iterator which will iterate over the models.SnapshotSummary objects + * contained in responses from the listSnapshots operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listSnapshotsRecordIterator( + request: requests.ListSnapshotsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listSnapshots(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listSnapshots operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + public listSnapshotsResponseIterator( + request: requests.ListSnapshotsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listSnapshots(req)); + } + + /** + * This operation pauses the scheduled snapshot creation and snapshot deletion of the policy and updates the lifecycle state of the file system +* snapshot policy from ACTIVE to INACTIVE. When a file system snapshot policy is paused, file systems that are associated with the +* policy will not have scheduled snapshots created or deleted. +*

+If the policy is already paused, or in the INACTIVE state, you cannot pause it again. You can't pause a policy +* that is in a DELETING, DELETED, FAILED, CREATING or INACTIVE state; attempts to pause a policy in these states result in a 409 conflict error. +* + * This operation does not retry by default if the user has not defined a retry configuration. + * @param PauseFilesystemSnapshotPolicyRequest + * @return PauseFilesystemSnapshotPolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/PauseFilesystemSnapshotPolicy.ts.html |here} to see how to use PauseFilesystemSnapshotPolicy API. + */ + public async pauseFilesystemSnapshotPolicy( + pauseFilesystemSnapshotPolicyRequest: requests.PauseFilesystemSnapshotPolicyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#pauseFilesystemSnapshotPolicy."); + const operationName = "pauseFilesystemSnapshotPolicy"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/PauseFilesystemSnapshotPolicy"; + const pathParams = { + "{filesystemSnapshotPolicyId}": + pauseFilesystemSnapshotPolicyRequest.filesystemSnapshotPolicyId + }; + + const queryParams = { + "isLockOverride": pauseFilesystemSnapshotPolicyRequest.isLockOverride + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": pauseFilesystemSnapshotPolicyRequest.ifMatch, + "opc-request-id": pauseFilesystemSnapshotPolicyRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + pauseFilesystemSnapshotPolicyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/pause", + method: "POST", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "filesystemSnapshotPolicy", + bodyModel: model.FilesystemSnapshotPolicy, + type: "model.FilesystemSnapshotPolicy", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Removes a lock to a resource. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param RemoveExportLockRequest + * @return RemoveExportLockResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveExportLock.ts.html |here} to see how to use RemoveExportLock API. + */ + public async removeExportLock( + removeExportLockRequest: requests.RemoveExportLockRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#removeExportLock."); + const operationName = "removeExportLock"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/RemoveExportLock"; + const pathParams = { + "{exportId}": removeExportLockRequest.exportId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": removeExportLockRequest.ifMatch, + "opc-request-id": removeExportLockRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + removeExportLockRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/exports/{exportId}/actions/removeLock", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + removeExportLockRequest.removeExportLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "export", + bodyModel: model.Export, + type: "model.Export", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Removes a lock to a resource. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param RemoveFileSystemLockRequest + * @return RemoveFileSystemLockResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveFileSystemLock.ts.html |here} to see how to use RemoveFileSystemLock API. + */ + public async removeFileSystemLock( + removeFileSystemLockRequest: requests.RemoveFileSystemLockRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#removeFileSystemLock."); + const operationName = "removeFileSystemLock"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/RemoveFileSystemLock"; + const pathParams = { + "{fileSystemId}": removeFileSystemLockRequest.fileSystemId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": removeFileSystemLockRequest.ifMatch, + "opc-request-id": removeFileSystemLockRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + removeFileSystemLockRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fileSystems/{fileSystemId}/actions/removeLock", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + removeFileSystemLockRequest.removeFileSystemLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fileSystem", + bodyModel: model.FileSystem, + type: "model.FileSystem", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Removes a lock to a resource. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param RemoveFilesystemSnapshotPolicyLockRequest + * @return RemoveFilesystemSnapshotPolicyLockResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveFilesystemSnapshotPolicyLock.ts.html |here} to see how to use RemoveFilesystemSnapshotPolicyLock API. + */ + public async removeFilesystemSnapshotPolicyLock( + removeFilesystemSnapshotPolicyLockRequest: requests.RemoveFilesystemSnapshotPolicyLockRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#removeFilesystemSnapshotPolicyLock."); + const operationName = "removeFilesystemSnapshotPolicyLock"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/RemoveFilesystemSnapshotPolicyLock"; + const pathParams = { + "{filesystemSnapshotPolicyId}": + removeFilesystemSnapshotPolicyLockRequest.filesystemSnapshotPolicyId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": removeFilesystemSnapshotPolicyLockRequest.ifMatch, + "opc-request-id": removeFilesystemSnapshotPolicyLockRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + removeFilesystemSnapshotPolicyLockRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/removeLock", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + removeFilesystemSnapshotPolicyLockRequest.removeFilesystemSnapshotPolicyLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "filesystemSnapshotPolicy", + bodyModel: model.FilesystemSnapshotPolicy, + type: "model.FilesystemSnapshotPolicy", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Removes a lock to a resource. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param RemoveMountTargetLockRequest + * @return RemoveMountTargetLockResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveMountTargetLock.ts.html |here} to see how to use RemoveMountTargetLock API. + */ + public async removeMountTargetLock( + removeMountTargetLockRequest: requests.RemoveMountTargetLockRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#removeMountTargetLock."); + const operationName = "removeMountTargetLock"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/RemoveMountTargetLock"; + const pathParams = { + "{mountTargetId}": removeMountTargetLockRequest.mountTargetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": removeMountTargetLockRequest.ifMatch, + "opc-request-id": removeMountTargetLockRequest.opcRequestId + }; + + const specRetryConfiguration = common.NoRetryConfigurationDetails; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + removeMountTargetLockRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/mountTargets/{mountTargetId}/actions/removeLock", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + removeMountTargetLockRequest.removeMountTargetLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "mountTarget", + bodyModel: model.MountTarget, + type: "model.MountTarget", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Removes a lock to a resource. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param RemoveOutboundConnectorLockRequest + * @return RemoveOutboundConnectorLockResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveOutboundConnectorLock.ts.html |here} to see how to use RemoveOutboundConnectorLock API. + */ + public async removeOutboundConnectorLock( + removeOutboundConnectorLockRequest: requests.RemoveOutboundConnectorLockRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#removeOutboundConnectorLock."); + const operationName = "removeOutboundConnectorLock"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/RemoveOutboundConnectorLock"; + const pathParams = { + "{outboundConnectorId}": removeOutboundConnectorLockRequest.outboundConnectorId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listReplicationsRequest.opcRequestId + "if-match": removeOutboundConnectorLockRequest.ifMatch, + "opc-request-id": removeOutboundConnectorLockRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listReplicationsRequest.retryConfiguration, + removeOutboundConnectorLockRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/replications", - method: "GET", + path: "/outboundConnectors/{outboundConnectorId}/actions/removeLock", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + removeOutboundConnectorLockRequest.removeOutboundConnectorLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -3793,15 +5091,15 @@ All Oracle Cloud Infrastructure Services resources, including apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "items", - bodyModel: model.ReplicationSummary, - type: "Array", + bodyKey: "outboundConnector", + bodyModel: model.OutboundConnector, + type: "model.OutboundConnector", responseHeaders: [ { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { @@ -3819,109 +5117,50 @@ All Oracle Cloud Infrastructure Services resources, including } /** - * NOTE: This function is deprecated in favor of listReplicationsRecordIterator function. - * Creates a new async iterator which will iterate over the models.ReplicationSummary objects - * contained in responses from the listReplications operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllReplications( - request: requests.ListReplicationsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listReplications(req)); - } - - /** - * NOTE: This function is deprecated in favor of listReplicationsResponseIterator function. - * Creates a new async iterator which will iterate over the responses received from the listReplications operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllReplicationsResponses( - request: requests.ListReplicationsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listReplications(req)); - } - - /** - * Creates a new async iterator which will iterate over the models.ReplicationSummary objects - * contained in responses from the listReplications operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listReplicationsRecordIterator( - request: requests.ListReplicationsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listReplications(req)); - } - - /** - * Creates a new async iterator which will iterate over the responses received from the listReplications operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation + * Removes a lock to a resource. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param RemoveReplicationLockRequest + * @return RemoveReplicationLockResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveReplicationLock.ts.html |here} to see how to use RemoveReplicationLock API. */ - public listReplicationsResponseIterator( - request: requests.ListReplicationsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listReplications(req)); - } - - /** - * Lists snapshots of the specified file system, or by file system snapshot policy and compartment, -* or by file system snapshot policy and file system. -*

-If file system ID is not specified, a file system snapshot policy ID and compartment ID must be specified. -*

-Users can only sort by time created when listing snapshots by file system snapshot policy ID and compartment ID -* (sort by name is NOT supported for listing snapshots by policy and compartment). -* - * This operation does not retry by default if the user has not defined a retry configuration. - * @param ListSnapshotsRequest - * @return ListSnapshotsResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/ListSnapshots.ts.html |here} to see how to use ListSnapshots API. - */ - public async listSnapshots( - listSnapshotsRequest: requests.ListSnapshotsRequest - ): Promise { - if (this.logger) this.logger.debug("Calling operation FileStorageClient#listSnapshots."); - const operationName = "listSnapshots"; + public async removeReplicationLock( + removeReplicationLockRequest: requests.RemoveReplicationLockRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FileStorageClient#removeReplicationLock."); + const operationName = "removeReplicationLock"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/SnapshotSummary/ListSnapshots"; - const pathParams = {}; - - const queryParams = { - "limit": listSnapshotsRequest.limit, - "page": listSnapshotsRequest.page, - "lifecycleState": listSnapshotsRequest.lifecycleState, - "id": listSnapshotsRequest.id, - "filesystemSnapshotPolicyId": listSnapshotsRequest.filesystemSnapshotPolicyId, - "compartmentId": listSnapshotsRequest.compartmentId, - "fileSystemId": listSnapshotsRequest.fileSystemId, - "sortOrder": listSnapshotsRequest.sortOrder + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/RemoveReplicationLock"; + const pathParams = { + "{replicationId}": removeReplicationLockRequest.replicationId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listSnapshotsRequest.opcRequestId + "if-match": removeReplicationLockRequest.ifMatch, + "opc-request-id": removeReplicationLockRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listSnapshotsRequest.retryConfiguration, + removeReplicationLockRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/snapshots", - method: "GET", + path: "/replications/{replicationId}/actions/removeLock", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + removeReplicationLockRequest.removeReplicationLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -3935,15 +5174,15 @@ Users can only sort by time created when listing snapshots by file system snapsh apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "items", - bodyModel: model.SnapshotSummary, - type: "Array", + bodyKey: "replication", + bodyModel: model.Replication, + type: "model.Replication", responseHeaders: [ { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { @@ -3961,104 +5200,49 @@ Users can only sort by time created when listing snapshots by file system snapsh } /** - * NOTE: This function is deprecated in favor of listSnapshotsRecordIterator function. - * Creates a new async iterator which will iterate over the models.SnapshotSummary objects - * contained in responses from the listSnapshots operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllSnapshots( - request: requests.ListSnapshotsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listSnapshots(req)); - } - - /** - * NOTE: This function is deprecated in favor of listSnapshotsResponseIterator function. - * Creates a new async iterator which will iterate over the responses received from the listSnapshots operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listAllSnapshotsResponses( - request: requests.ListSnapshotsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listSnapshots(req)); - } - - /** - * Creates a new async iterator which will iterate over the models.SnapshotSummary objects - * contained in responses from the listSnapshots operation. This iterator will fetch more data from the - * server as needed. - * - * @param request a request which can be sent to the service operation - */ - public listSnapshotsRecordIterator( - request: requests.ListSnapshotsRequest - ): AsyncIterableIterator { - return paginateRecords(request, req => this.listSnapshots(req)); - } - - /** - * Creates a new async iterator which will iterate over the responses received from the listSnapshots operation. This iterator - * will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation + * Removes a lock to a resource. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param RemoveSnapshotLockRequest + * @return RemoveSnapshotLockResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveSnapshotLock.ts.html |here} to see how to use RemoveSnapshotLock API. */ - public listSnapshotsResponseIterator( - request: requests.ListSnapshotsRequest - ): AsyncIterableIterator { - return paginateResponses(request, req => this.listSnapshots(req)); - } - - /** - * This operation pauses the scheduled snapshot creation and snapshot deletion of the policy and updates the lifecycle state of the file system -* snapshot policy from ACTIVE to INACTIVE. When a file system snapshot policy is paused, file systems that are associated with the -* policy will not have scheduled snapshots created or deleted. -*

-If the policy is already paused, or in the INACTIVE state, you cannot pause it again. You can't pause a policy -* that is in a DELETING, DELETED, FAILED, CREATING or INACTIVE state; attempts to pause a policy in these states result in a 409 conflict error. -* - * This operation does not retry by default if the user has not defined a retry configuration. - * @param PauseFilesystemSnapshotPolicyRequest - * @return PauseFilesystemSnapshotPolicyResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/PauseFilesystemSnapshotPolicy.ts.html |here} to see how to use PauseFilesystemSnapshotPolicy API. - */ - public async pauseFilesystemSnapshotPolicy( - pauseFilesystemSnapshotPolicyRequest: requests.PauseFilesystemSnapshotPolicyRequest - ): Promise { - if (this.logger) - this.logger.debug("Calling operation FileStorageClient#pauseFilesystemSnapshotPolicy."); - const operationName = "pauseFilesystemSnapshotPolicy"; + public async removeSnapshotLock( + removeSnapshotLockRequest: requests.RemoveSnapshotLockRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FileStorageClient#removeSnapshotLock."); + const operationName = "removeSnapshotLock"; const apiReferenceLink = - "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/PauseFilesystemSnapshotPolicy"; + "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/RemoveSnapshotLock"; const pathParams = { - "{filesystemSnapshotPolicyId}": - pauseFilesystemSnapshotPolicyRequest.filesystemSnapshotPolicyId + "{snapshotId}": removeSnapshotLockRequest.snapshotId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": pauseFilesystemSnapshotPolicyRequest.ifMatch, - "opc-request-id": pauseFilesystemSnapshotPolicyRequest.opcRequestId + "if-match": removeSnapshotLockRequest.ifMatch, + "opc-request-id": removeSnapshotLockRequest.opcRequestId }; const specRetryConfiguration = common.NoRetryConfigurationDetails; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - pauseFilesystemSnapshotPolicyRequest.retryConfiguration, + removeSnapshotLockRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/pause", + path: "/snapshots/{snapshotId}/actions/removeLock", method: "POST", + bodyContent: common.ObjectSerializer.serialize( + removeSnapshotLockRequest.removeSnapshotLockDetails, + "ResourceLock", + model.ResourceLock.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -4072,20 +5256,20 @@ If the policy is already paused, or in the INACTIVE state, you cannot pause it a apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "filesystemSnapshotPolicy", - bodyModel: model.FilesystemSnapshotPolicy, - type: "model.FilesystemSnapshotPolicy", + bodyKey: "snapshot", + bodyModel: model.Snapshot, + type: "model.Snapshot", responseHeaders: [ { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { - value: response.headers.get("etag"), - key: "etag", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" } ] @@ -4207,7 +5391,9 @@ If the policy is already in the ACTIVE state, you cannot unpause it. You can't u unpauseFilesystemSnapshotPolicyRequest.filesystemSnapshotPolicyId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": unpauseFilesystemSnapshotPolicyRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, @@ -4284,7 +5470,9 @@ If the policy is already in the ACTIVE state, you cannot unpause it. You can't u "{exportId}": updateExportRequest.exportId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": updateExportRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, @@ -4450,7 +5638,9 @@ If the policy is already in the ACTIVE state, you cannot unpause it. You can't u "{fileSystemId}": updateFileSystemRequest.fileSystemId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": updateFileSystemRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, @@ -4534,7 +5724,9 @@ If the policy is already in the ACTIVE state, you cannot unpause it. You can't u updateFilesystemSnapshotPolicyRequest.filesystemSnapshotPolicyId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": updateFilesystemSnapshotPolicyRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, @@ -4616,7 +5808,9 @@ If the policy is already in the ACTIVE state, you cannot unpause it. You can't u "{mountTargetId}": updateMountTargetRequest.mountTargetId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": updateMountTargetRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, @@ -4699,7 +5893,9 @@ If the policy is already in the ACTIVE state, you cannot unpause it. You can't u "{outboundConnectorId}": updateOutboundConnectorRequest.outboundConnectorId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": updateOutboundConnectorRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, @@ -4782,7 +5978,9 @@ If the policy is already in the ACTIVE state, you cannot unpause it. You can't u "{replicationId}": updateReplicationRequest.replicationId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": updateReplicationRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, @@ -4864,7 +6062,9 @@ If the policy is already in the ACTIVE state, you cannot unpause it. You can't u "{snapshotId}": updateSnapshotRequest.snapshotId }; - const queryParams = {}; + const queryParams = { + "isLockOverride": updateSnapshotRequest.isLockOverride + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, diff --git a/lib/filestorage/lib/model/create-export-details.ts b/lib/filestorage/lib/model/create-export-details.ts index 4c29e7181a..2d262a2359 100644 --- a/lib/filestorage/lib/model/create-export-details.ts +++ b/lib/filestorage/lib/model/create-export-details.ts @@ -72,6 +72,10 @@ Example: {@code /mediafiles} * */ "path": string; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Whether or not the export should use ID mapping for Unix groups rather than the group list provided within an NFS request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable, or cannot be used to determine a list of secondary groups then an empty secondary group list is used for authorization. If the number of groups exceeds the limit of 256 groups, the list retrieved from LDAP is truncated to the first 256 groups read. */ @@ -87,6 +91,12 @@ export namespace CreateExportDetails { ? obj.exportOptions.map(item => { return model.ClientOptions.getJsonObj(item); }) + : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) : undefined } }; @@ -101,6 +111,12 @@ export namespace CreateExportDetails { ? obj.exportOptions.map(item => { return model.ClientOptions.getDeserializedJsonObj(item); }) + : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) : undefined } }; diff --git a/lib/filestorage/lib/model/create-file-system-details.ts b/lib/filestorage/lib/model/create-file-system-details.ts index 8519dd119d..a89bce72d1 100644 --- a/lib/filestorage/lib/model/create-file-system-details.ts +++ b/lib/filestorage/lib/model/create-file-system-details.ts @@ -54,6 +54,10 @@ Example: {@code My file system} * */ "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KMS key used to encrypt the encryption keys associated with this file system. * @@ -89,12 +93,30 @@ export namespace CreateFileSystemDetails { } export function getJsonObj(obj: CreateFileSystemDetails): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: CreateFileSystemDetails): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/filestorage/lib/model/create-filesystem-snapshot-policy-details.ts b/lib/filestorage/lib/model/create-filesystem-snapshot-policy-details.ts index 0dc90bf804..dbc7ee91fc 100644 --- a/lib/filestorage/lib/model/create-filesystem-snapshot-policy-details.ts +++ b/lib/filestorage/lib/model/create-filesystem-snapshot-policy-details.ts @@ -72,6 +72,10 @@ If using the CLI, provide the schedule as a list of JSON strings, with the list * */ "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * Locks associated with this resource. + */ + "locks"?: Array; } export namespace CreateFilesystemSnapshotPolicyDetails { @@ -83,6 +87,12 @@ export namespace CreateFilesystemSnapshotPolicyDetails { ? obj.schedules.map(item => { return model.SnapshotSchedule.getJsonObj(item); }) + : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) : undefined } }; @@ -97,6 +107,12 @@ export namespace CreateFilesystemSnapshotPolicyDetails { ? obj.schedules.map(item => { return model.SnapshotSchedule.getDeserializedJsonObj(item); }) + : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) : undefined } }; diff --git a/lib/filestorage/lib/model/create-mount-target-details.ts b/lib/filestorage/lib/model/create-mount-target-details.ts index 05c519ddeb..3cbdd9fe72 100644 --- a/lib/filestorage/lib/model/create-mount-target-details.ts +++ b/lib/filestorage/lib/model/create-mount-target-details.ts @@ -106,6 +106,10 @@ Example: {@code 10.0.3.3} * */ "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Throughput for mount target in Gbps. Currently only 1 Gbps of requestedThroughput is supported during create MountTarget. * Available shapes and corresponding throughput are listed at [Mount Target Performance](https://docs.oracle.com/iaas/Content/File/Tasks/managingmounttargets.htm#performance). @@ -123,7 +127,13 @@ export namespace CreateMountTargetDetails { ? model.CreateLdapIdmapDetails.getJsonObj(obj.ldapIdmap) : undefined, - "kerberos": obj.kerberos ? model.CreateKerberosDetails.getJsonObj(obj.kerberos) : undefined + "kerberos": obj.kerberos ? model.CreateKerberosDetails.getJsonObj(obj.kerberos) : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined } }; @@ -139,6 +149,12 @@ export namespace CreateMountTargetDetails { "kerberos": obj.kerberos ? model.CreateKerberosDetails.getDeserializedJsonObj(obj.kerberos) + : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) : undefined } }; diff --git a/lib/filestorage/lib/model/create-outbound-connector-details.ts b/lib/filestorage/lib/model/create-outbound-connector-details.ts index 9ff387a3b6..b620065db4 100644 --- a/lib/filestorage/lib/model/create-outbound-connector-details.ts +++ b/lib/filestorage/lib/model/create-outbound-connector-details.ts @@ -55,13 +55,26 @@ Example: {@code My outbound connector} * */ "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * Locks associated with this resource. + */ + "locks"?: Array; "connectorType": string; } export namespace CreateOutboundConnectorDetails { export function getJsonObj(obj: CreateOutboundConnectorDetails): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; if (obj && "connectorType" in obj && obj.connectorType) { switch (obj.connectorType) { @@ -77,7 +90,16 @@ export namespace CreateOutboundConnectorDetails { return jsonObj; } export function getDeserializedJsonObj(obj: CreateOutboundConnectorDetails): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; if (obj && "connectorType" in obj && obj.connectorType) { switch (obj.connectorType) { diff --git a/lib/filestorage/lib/model/create-replication-details.ts b/lib/filestorage/lib/model/create-replication-details.ts index 0cfef1979d..cf6edbebfe 100644 --- a/lib/filestorage/lib/model/create-replication-details.ts +++ b/lib/filestorage/lib/model/create-replication-details.ts @@ -61,16 +61,38 @@ export interface CreateReplicationDetails { * */ "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * Locks associated with this resource. + */ + "locks"?: Array; } export namespace CreateReplicationDetails { export function getJsonObj(obj: CreateReplicationDetails): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: CreateReplicationDetails): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/filestorage/lib/model/create-snapshot-details.ts b/lib/filestorage/lib/model/create-snapshot-details.ts index 26ad837056..21d7c577e6 100644 --- a/lib/filestorage/lib/model/create-snapshot-details.ts +++ b/lib/filestorage/lib/model/create-snapshot-details.ts @@ -54,16 +54,38 @@ Example: {@code Sunday} * */ "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * Locks associated with this resource. + */ + "locks"?: Array; } export namespace CreateSnapshotDetails { export function getJsonObj(obj: CreateSnapshotDetails): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: CreateSnapshotDetails): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/filestorage/lib/model/export-summary.ts b/lib/filestorage/lib/model/export-summary.ts index 548f8b7d17..afb4edf333 100644 --- a/lib/filestorage/lib/model/export-summary.ts +++ b/lib/filestorage/lib/model/export-summary.ts @@ -58,6 +58,10 @@ Example: {@code 2016-08-25T21:10:29.600Z} * */ "timeCreated": Date; + /** + * Locks associated with this resource. + */ + "locks"?: Array; } export namespace ExportSummary { @@ -74,12 +78,30 @@ export namespace ExportSummary { } export function getJsonObj(obj: ExportSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: ExportSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/filestorage/lib/model/export.ts b/lib/filestorage/lib/model/export.ts index c61226c08c..0718b6c855 100644 --- a/lib/filestorage/lib/model/export.ts +++ b/lib/filestorage/lib/model/export.ts @@ -119,6 +119,10 @@ Example: {@code 2016-08-25T21:10:29.600Z} * */ "timeCreated": Date; + /** + * Locks associated with this resource. + */ + "locks"?: Array; } export namespace Export { @@ -142,6 +146,12 @@ export namespace Export { ? obj.exportOptions.map(item => { return model.ClientOptions.getJsonObj(item); }) + : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) : undefined } }; @@ -156,6 +166,12 @@ export namespace Export { ? obj.exportOptions.map(item => { return model.ClientOptions.getDeserializedJsonObj(item); }) + : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) : undefined } }; diff --git a/lib/filestorage/lib/model/file-system-summary.ts b/lib/filestorage/lib/model/file-system-summary.ts index e270cda599..55708d6ce4 100644 --- a/lib/filestorage/lib/model/file-system-summary.ts +++ b/lib/filestorage/lib/model/file-system-summary.ts @@ -65,6 +65,10 @@ Example: {@code 2016-08-25T21:10:29.600Z} * */ "timeCreated": Date; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -140,6 +144,12 @@ export namespace FileSystemSummary { const jsonObj = { ...obj, ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined, + "sourceDetails": obj.sourceDetails ? model.SourceDetails.getJsonObj(obj.sourceDetails) : undefined @@ -152,6 +162,12 @@ export namespace FileSystemSummary { const jsonObj = { ...obj, ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined, + "sourceDetails": obj.sourceDetails ? model.SourceDetails.getDeserializedJsonObj(obj.sourceDetails) : undefined diff --git a/lib/filestorage/lib/model/file-system.ts b/lib/filestorage/lib/model/file-system.ts index faa0554904..bec6aace2a 100644 --- a/lib/filestorage/lib/model/file-system.ts +++ b/lib/filestorage/lib/model/file-system.ts @@ -118,6 +118,10 @@ Example: {@code 2016-08-25T21:10:29.600Z} * Specifies whether the file system is attached to its parent file system. */ "cloneAttachStatus"?: FileSystem.CloneAttachStatus; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Additional information about the current 'lifecycleState'. */ @@ -174,6 +178,12 @@ export namespace FileSystem { ...{ "sourceDetails": obj.sourceDetails ? model.SourceDetails.getJsonObj(obj.sourceDetails) + : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) : undefined } }; @@ -186,6 +196,12 @@ export namespace FileSystem { ...{ "sourceDetails": obj.sourceDetails ? model.SourceDetails.getDeserializedJsonObj(obj.sourceDetails) + : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) : undefined } }; diff --git a/lib/filestorage/lib/model/filesystem-snapshot-policy-summary.ts b/lib/filestorage/lib/model/filesystem-snapshot-policy-summary.ts index cef90f06df..d298917405 100644 --- a/lib/filestorage/lib/model/filesystem-snapshot-policy-summary.ts +++ b/lib/filestorage/lib/model/filesystem-snapshot-policy-summary.ts @@ -55,6 +55,10 @@ Example: {@code My Filesystem Snapshot Policy} * */ "timeCreated": Date; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * The prefix to apply to all snapshots created by this policy. *

@@ -95,12 +99,30 @@ export namespace FilesystemSnapshotPolicySummary { } export function getJsonObj(obj: FilesystemSnapshotPolicySummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: FilesystemSnapshotPolicySummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/filestorage/lib/model/filesystem-snapshot-policy.ts b/lib/filestorage/lib/model/filesystem-snapshot-policy.ts index 9e661b3da0..e9b2b18fa6 100644 --- a/lib/filestorage/lib/model/filesystem-snapshot-policy.ts +++ b/lib/filestorage/lib/model/filesystem-snapshot-policy.ts @@ -74,6 +74,10 @@ Example: {@code acme} * */ "schedules"?: Array; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -114,6 +118,11 @@ export namespace FilesystemSnapshotPolicy { ? obj.schedules.map(item => { return model.SnapshotSchedule.getJsonObj(item); }) + : undefined, + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) : undefined } }; @@ -128,6 +137,11 @@ export namespace FilesystemSnapshotPolicy { ? obj.schedules.map(item => { return model.SnapshotSchedule.getDeserializedJsonObj(item); }) + : undefined, + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) : undefined } }; diff --git a/lib/filestorage/lib/model/index.ts b/lib/filestorage/lib/model/index.ts index 9c2e485365..16ff0bf86c 100644 --- a/lib/filestorage/lib/model/index.ts +++ b/lib/filestorage/lib/model/index.ts @@ -87,6 +87,8 @@ import * as ReplicationTarget from "./replication-target"; export import ReplicationTarget = ReplicationTarget.ReplicationTarget; import * as ReplicationTargetSummary from "./replication-target-summary"; export import ReplicationTargetSummary = ReplicationTargetSummary.ReplicationTargetSummary; +import * as ResourceLock from "./resource-lock"; +export import ResourceLock = ResourceLock.ResourceLock; import * as ScheduleDowngradeShapeMountTargetDetails from "./schedule-downgrade-shape-mount-target-details"; export import ScheduleDowngradeShapeMountTargetDetails = ScheduleDowngradeShapeMountTargetDetails.ScheduleDowngradeShapeMountTargetDetails; import * as Snapshot from "./snapshot"; diff --git a/lib/filestorage/lib/model/mount-target-summary.ts b/lib/filestorage/lib/model/mount-target-summary.ts index 70497eea19..1c97de4f53 100644 --- a/lib/filestorage/lib/model/mount-target-summary.ts +++ b/lib/filestorage/lib/model/mount-target-summary.ts @@ -106,6 +106,10 @@ Example: {@code 2016-08-25T21:10:29.600Z} * */ "timeCreated": Date; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -139,12 +143,30 @@ export namespace MountTargetSummary { } export function getJsonObj(obj: MountTargetSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: MountTargetSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/filestorage/lib/model/mount-target.ts b/lib/filestorage/lib/model/mount-target.ts index 6382a7efac..1937842f48 100644 --- a/lib/filestorage/lib/model/mount-target.ts +++ b/lib/filestorage/lib/model/mount-target.ts @@ -117,6 +117,10 @@ Example: {@code 2016-08-25T21:10:29.600Z} * */ "timeCreated": Date; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -165,7 +169,13 @@ export namespace MountTarget { ...{ "ldapIdmap": obj.ldapIdmap ? model.LdapIdmap.getJsonObj(obj.ldapIdmap) : undefined, - "kerberos": obj.kerberos ? model.Kerberos.getJsonObj(obj.kerberos) : undefined + "kerberos": obj.kerberos ? model.Kerberos.getJsonObj(obj.kerberos) : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined } }; @@ -179,7 +189,13 @@ export namespace MountTarget { ? model.LdapIdmap.getDeserializedJsonObj(obj.ldapIdmap) : undefined, - "kerberos": obj.kerberos ? model.Kerberos.getDeserializedJsonObj(obj.kerberos) : undefined + "kerberos": obj.kerberos ? model.Kerberos.getDeserializedJsonObj(obj.kerberos) : undefined, + + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined } }; diff --git a/lib/filestorage/lib/model/outbound-connector-summary.ts b/lib/filestorage/lib/model/outbound-connector-summary.ts index 91fa9fe095..1b8e5895f4 100644 --- a/lib/filestorage/lib/model/outbound-connector-summary.ts +++ b/lib/filestorage/lib/model/outbound-connector-summary.ts @@ -56,6 +56,10 @@ Example: {@code My outbound connector} * */ "timeCreated": Date; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -89,7 +93,16 @@ export namespace OutboundConnectorSummary { } export function getJsonObj(obj: OutboundConnectorSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; if (obj && "connectorType" in obj && obj.connectorType) { switch (obj.connectorType) { @@ -105,7 +118,16 @@ export namespace OutboundConnectorSummary { return jsonObj; } export function getDeserializedJsonObj(obj: OutboundConnectorSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; if (obj && "connectorType" in obj && obj.connectorType) { switch (obj.connectorType) { diff --git a/lib/filestorage/lib/model/outbound-connector.ts b/lib/filestorage/lib/model/outbound-connector.ts index e40c86b2f2..deb22ec1b6 100644 --- a/lib/filestorage/lib/model/outbound-connector.ts +++ b/lib/filestorage/lib/model/outbound-connector.ts @@ -58,6 +58,10 @@ Example: {@code 2016-08-25T21:10:29.600Z} * */ "timeCreated": Date; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -91,7 +95,16 @@ export namespace OutboundConnector { } export function getJsonObj(obj: OutboundConnector): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; if (obj && "connectorType" in obj && obj.connectorType) { switch (obj.connectorType) { @@ -104,7 +117,16 @@ export namespace OutboundConnector { return jsonObj; } export function getDeserializedJsonObj(obj: OutboundConnector): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; if (obj && "connectorType" in obj && obj.connectorType) { switch (obj.connectorType) { diff --git a/lib/filestorage/lib/model/replication-summary.ts b/lib/filestorage/lib/model/replication-summary.ts index f3e24c6412..d3e5a70570 100644 --- a/lib/filestorage/lib/model/replication-summary.ts +++ b/lib/filestorage/lib/model/replication-summary.ts @@ -55,6 +55,10 @@ export interface ReplicationSummary { * */ "timeCreated": Date; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Duration in minutes between replication snapshots. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ @@ -102,12 +106,30 @@ export namespace ReplicationSummary { } export function getJsonObj(obj: ReplicationSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: ReplicationSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/filestorage/lib/model/replication.ts b/lib/filestorage/lib/model/replication.ts index 23a3e8b4bb..04072bec8b 100644 --- a/lib/filestorage/lib/model/replication.ts +++ b/lib/filestorage/lib/model/replication.ts @@ -105,6 +105,10 @@ Example: {@code 2021-01-04T20:01:29.100Z} * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "deltaProgress"?: number; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -152,12 +156,30 @@ export namespace Replication { } export function getJsonObj(obj: Replication): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: Replication): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/filestorage/lib/model/resource-lock.ts b/lib/filestorage/lib/model/resource-lock.ts new file mode 100644 index 0000000000..5a73e2f51e --- /dev/null +++ b/lib/filestorage/lib/model/resource-lock.ts @@ -0,0 +1,68 @@ +/** + * File Storage API + * Use the File Storage service API to manage file systems, mount targets, and snapshots. +For more information, see [Overview of File Storage](/iaas/Content/File/Concepts/filestorageoverview.htm). + + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Resource locks are used to prevent certain APIs from being called for the resource. + * A full lock prevents both updating the resource and deleting the resource. A delete + * lock prevents deleting the resource. + * + */ +export interface ResourceLock { + /** + * Type of the lock. + */ + "type": ResourceLock.Type; + /** + * The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock. + * + */ + "relatedResourceId"?: string; + /** + * A message added by the creator of the lock. This is typically used to give an + * indication of why the resource is locked. + * + */ + "message"?: string; + /** + * When the lock was created. + */ + "timeCreated"?: Date; +} + +export namespace ResourceLock { + export enum Type { + Full = "FULL", + Delete = "DELETE", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: ResourceLock): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ResourceLock): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/filestorage/lib/model/snapshot-summary.ts b/lib/filestorage/lib/model/snapshot-summary.ts index 7960d1c8cc..d85675f089 100644 --- a/lib/filestorage/lib/model/snapshot-summary.ts +++ b/lib/filestorage/lib/model/snapshot-summary.ts @@ -51,6 +51,10 @@ Example: {@code 2016-08-25T21:10:29.600Z} * */ "timeCreated": Date; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Specifies the generation type of the snapshot. * @@ -133,12 +137,30 @@ export namespace SnapshotSummary { } export function getJsonObj(obj: SnapshotSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: SnapshotSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/filestorage/lib/model/snapshot.ts b/lib/filestorage/lib/model/snapshot.ts index da4f830ed4..83dfafea8f 100644 --- a/lib/filestorage/lib/model/snapshot.ts +++ b/lib/filestorage/lib/model/snapshot.ts @@ -88,6 +88,10 @@ Example: {@code 2020-08-25T21:10:29.600Z} * Additional information about the current {@code lifecycleState}. */ "lifecycleDetails"?: string; + /** + * Locks associated with this resource. + */ + "locks"?: Array; /** * Free-form tags for this resource. Each tag is a simple key-value pair * with no predefined name, type, or namespace. @@ -139,12 +143,30 @@ export namespace Snapshot { } export function getJsonObj(obj: Snapshot): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: Snapshot): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "locks": obj.locks + ? obj.locks.map(item => { + return model.ResourceLock.getDeserializedJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/filestorage/lib/request/add-export-lock-request.ts b/lib/filestorage/lib/request/add-export-lock-request.ts new file mode 100644 index 0000000000..f7931c2ade --- /dev/null +++ b/lib/filestorage/lib/request/add-export-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddExportLock.ts.html |here} to see how to use AddExportLockRequest. + */ +export interface AddExportLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export. + */ + "exportId": string; + /** + * The details to be updated for the AddLock. + */ + "addExportLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/add-file-system-lock-request.ts b/lib/filestorage/lib/request/add-file-system-lock-request.ts new file mode 100644 index 0000000000..33d81a3ffa --- /dev/null +++ b/lib/filestorage/lib/request/add-file-system-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddFileSystemLock.ts.html |here} to see how to use AddFileSystemLockRequest. + */ +export interface AddFileSystemLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + */ + "fileSystemId": string; + /** + * The details to be updated for the AddLock. + */ + "addFileSystemLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/add-filesystem-snapshot-policy-lock-request.ts b/lib/filestorage/lib/request/add-filesystem-snapshot-policy-lock-request.ts new file mode 100644 index 0000000000..de39b2904b --- /dev/null +++ b/lib/filestorage/lib/request/add-filesystem-snapshot-policy-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddFilesystemSnapshotPolicyLock.ts.html |here} to see how to use AddFilesystemSnapshotPolicyLockRequest. + */ +export interface AddFilesystemSnapshotPolicyLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. + */ + "filesystemSnapshotPolicyId": string; + /** + * The details to be updated for the AddLock. + */ + "addFilesystemSnapshotPolicyLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/add-mount-target-lock-request.ts b/lib/filestorage/lib/request/add-mount-target-lock-request.ts new file mode 100644 index 0000000000..0e4f8ea5fa --- /dev/null +++ b/lib/filestorage/lib/request/add-mount-target-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddMountTargetLock.ts.html |here} to see how to use AddMountTargetLockRequest. + */ +export interface AddMountTargetLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + */ + "mountTargetId": string; + /** + * The details to be updated for the AddLock. + */ + "addMountTargetLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/add-outbound-connector-lock-request.ts b/lib/filestorage/lib/request/add-outbound-connector-lock-request.ts new file mode 100644 index 0000000000..fd693c9ca5 --- /dev/null +++ b/lib/filestorage/lib/request/add-outbound-connector-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddOutboundConnectorLock.ts.html |here} to see how to use AddOutboundConnectorLockRequest. + */ +export interface AddOutboundConnectorLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. + */ + "outboundConnectorId": string; + /** + * The details to be updated for the AddLock. + */ + "addOutboundConnectorLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/add-replication-lock-request.ts b/lib/filestorage/lib/request/add-replication-lock-request.ts new file mode 100644 index 0000000000..7dfd03c93d --- /dev/null +++ b/lib/filestorage/lib/request/add-replication-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddReplicationLock.ts.html |here} to see how to use AddReplicationLockRequest. + */ +export interface AddReplicationLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + */ + "replicationId": string; + /** + * The details to be updated for the AddLock. + */ + "addReplicationLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/add-snapshot-lock-request.ts b/lib/filestorage/lib/request/add-snapshot-lock-request.ts new file mode 100644 index 0000000000..232e7f1589 --- /dev/null +++ b/lib/filestorage/lib/request/add-snapshot-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/AddSnapshotLock.ts.html |here} to see how to use AddSnapshotLockRequest. + */ +export interface AddSnapshotLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. + */ + "snapshotId": string; + /** + * The details to be updated for the AddLock. + */ + "addSnapshotLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/change-file-system-compartment-request.ts b/lib/filestorage/lib/request/change-file-system-compartment-request.ts index c8f63b68de..291c4e61db 100644 --- a/lib/filestorage/lib/request/change-file-system-compartment-request.ts +++ b/lib/filestorage/lib/request/change-file-system-compartment-request.ts @@ -41,4 +41,8 @@ export interface ChangeFileSystemCompartmentRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/change-filesystem-snapshot-policy-compartment-request.ts b/lib/filestorage/lib/request/change-filesystem-snapshot-policy-compartment-request.ts index 5b632e901d..70371e452d 100644 --- a/lib/filestorage/lib/request/change-filesystem-snapshot-policy-compartment-request.ts +++ b/lib/filestorage/lib/request/change-filesystem-snapshot-policy-compartment-request.ts @@ -41,4 +41,8 @@ export interface ChangeFilesystemSnapshotPolicyCompartmentRequest extends common * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/change-mount-target-compartment-request.ts b/lib/filestorage/lib/request/change-mount-target-compartment-request.ts index e7e04b9ef2..ae80ba578a 100644 --- a/lib/filestorage/lib/request/change-mount-target-compartment-request.ts +++ b/lib/filestorage/lib/request/change-mount-target-compartment-request.ts @@ -41,4 +41,8 @@ export interface ChangeMountTargetCompartmentRequest extends common.BaseRequest * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/change-outbound-connector-compartment-request.ts b/lib/filestorage/lib/request/change-outbound-connector-compartment-request.ts index 20f3c6cf64..a705fa4fd2 100644 --- a/lib/filestorage/lib/request/change-outbound-connector-compartment-request.ts +++ b/lib/filestorage/lib/request/change-outbound-connector-compartment-request.ts @@ -41,4 +41,8 @@ export interface ChangeOutboundConnectorCompartmentRequest extends common.BaseRe * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/change-replication-compartment-request.ts b/lib/filestorage/lib/request/change-replication-compartment-request.ts index 8699950140..1a56a28a43 100644 --- a/lib/filestorage/lib/request/change-replication-compartment-request.ts +++ b/lib/filestorage/lib/request/change-replication-compartment-request.ts @@ -41,4 +41,8 @@ export interface ChangeReplicationCompartmentRequest extends common.BaseRequest * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/create-mount-target-request.ts b/lib/filestorage/lib/request/create-mount-target-request.ts index ef85d1b980..8c76134e8f 100644 --- a/lib/filestorage/lib/request/create-mount-target-request.ts +++ b/lib/filestorage/lib/request/create-mount-target-request.ts @@ -37,4 +37,8 @@ export interface CreateMountTargetRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/delete-export-request.ts b/lib/filestorage/lib/request/delete-export-request.ts index b7cf8c1225..7077f9f9f7 100644 --- a/lib/filestorage/lib/request/delete-export-request.ts +++ b/lib/filestorage/lib/request/delete-export-request.ts @@ -37,4 +37,8 @@ export interface DeleteExportRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/delete-file-system-request.ts b/lib/filestorage/lib/request/delete-file-system-request.ts index 7c5acdd21b..544e9c60c8 100644 --- a/lib/filestorage/lib/request/delete-file-system-request.ts +++ b/lib/filestorage/lib/request/delete-file-system-request.ts @@ -37,6 +37,10 @@ export interface DeleteFileSystemRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; /** * If the value is set to true, then the file system will be deleted by detaching its child file system, turning * the child file system into an independent File System. diff --git a/lib/filestorage/lib/request/delete-filesystem-snapshot-policy-request.ts b/lib/filestorage/lib/request/delete-filesystem-snapshot-policy-request.ts index 680c3afcb7..5853b6fb2a 100644 --- a/lib/filestorage/lib/request/delete-filesystem-snapshot-policy-request.ts +++ b/lib/filestorage/lib/request/delete-filesystem-snapshot-policy-request.ts @@ -37,4 +37,8 @@ export interface DeleteFilesystemSnapshotPolicyRequest extends common.BaseReques * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/delete-mount-target-request.ts b/lib/filestorage/lib/request/delete-mount-target-request.ts index b5d93dce47..097daaac75 100644 --- a/lib/filestorage/lib/request/delete-mount-target-request.ts +++ b/lib/filestorage/lib/request/delete-mount-target-request.ts @@ -37,4 +37,8 @@ export interface DeleteMountTargetRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/delete-outbound-connector-request.ts b/lib/filestorage/lib/request/delete-outbound-connector-request.ts index d32df6b20a..8836df7d18 100644 --- a/lib/filestorage/lib/request/delete-outbound-connector-request.ts +++ b/lib/filestorage/lib/request/delete-outbound-connector-request.ts @@ -37,4 +37,8 @@ export interface DeleteOutboundConnectorRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/delete-replication-request.ts b/lib/filestorage/lib/request/delete-replication-request.ts index 4c902b0a3b..2ef4956b56 100644 --- a/lib/filestorage/lib/request/delete-replication-request.ts +++ b/lib/filestorage/lib/request/delete-replication-request.ts @@ -45,6 +45,10 @@ export interface DeleteReplicationRequest extends common.BaseRequest { * */ "deleteMode"?: DeleteReplicationRequest.DeleteMode; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } export namespace DeleteReplicationRequest { diff --git a/lib/filestorage/lib/request/delete-replication-target-request.ts b/lib/filestorage/lib/request/delete-replication-target-request.ts index 08d987e205..0320d9c1a3 100644 --- a/lib/filestorage/lib/request/delete-replication-target-request.ts +++ b/lib/filestorage/lib/request/delete-replication-target-request.ts @@ -37,4 +37,8 @@ export interface DeleteReplicationTargetRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/delete-snapshot-request.ts b/lib/filestorage/lib/request/delete-snapshot-request.ts index bfc6eac351..99f05a6cd5 100644 --- a/lib/filestorage/lib/request/delete-snapshot-request.ts +++ b/lib/filestorage/lib/request/delete-snapshot-request.ts @@ -37,4 +37,8 @@ export interface DeleteSnapshotRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/index.ts b/lib/filestorage/lib/request/index.ts index 05753f868c..7bb1fb1c91 100644 --- a/lib/filestorage/lib/request/index.ts +++ b/lib/filestorage/lib/request/index.ts @@ -13,6 +13,20 @@ For more information, see [Overview of File Storage](/iaas/Content/File/Concepts * 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. */ +import * as AddExportLockRequest from "./add-export-lock-request"; +export import AddExportLockRequest = AddExportLockRequest.AddExportLockRequest; +import * as AddFileSystemLockRequest from "./add-file-system-lock-request"; +export import AddFileSystemLockRequest = AddFileSystemLockRequest.AddFileSystemLockRequest; +import * as AddFilesystemSnapshotPolicyLockRequest from "./add-filesystem-snapshot-policy-lock-request"; +export import AddFilesystemSnapshotPolicyLockRequest = AddFilesystemSnapshotPolicyLockRequest.AddFilesystemSnapshotPolicyLockRequest; +import * as AddMountTargetLockRequest from "./add-mount-target-lock-request"; +export import AddMountTargetLockRequest = AddMountTargetLockRequest.AddMountTargetLockRequest; +import * as AddOutboundConnectorLockRequest from "./add-outbound-connector-lock-request"; +export import AddOutboundConnectorLockRequest = AddOutboundConnectorLockRequest.AddOutboundConnectorLockRequest; +import * as AddReplicationLockRequest from "./add-replication-lock-request"; +export import AddReplicationLockRequest = AddReplicationLockRequest.AddReplicationLockRequest; +import * as AddSnapshotLockRequest from "./add-snapshot-lock-request"; +export import AddSnapshotLockRequest = AddSnapshotLockRequest.AddSnapshotLockRequest; import * as CancelDowngradeShapeMountTargetRequest from "./cancel-downgrade-shape-mount-target-request"; export import CancelDowngradeShapeMountTargetRequest = CancelDowngradeShapeMountTargetRequest.CancelDowngradeShapeMountTargetRequest; import * as ChangeFileSystemCompartmentRequest from "./change-file-system-compartment-request"; @@ -97,6 +111,20 @@ import * as ListSnapshotsRequest from "./list-snapshots-request"; export import ListSnapshotsRequest = ListSnapshotsRequest.ListSnapshotsRequest; import * as PauseFilesystemSnapshotPolicyRequest from "./pause-filesystem-snapshot-policy-request"; export import PauseFilesystemSnapshotPolicyRequest = PauseFilesystemSnapshotPolicyRequest.PauseFilesystemSnapshotPolicyRequest; +import * as RemoveExportLockRequest from "./remove-export-lock-request"; +export import RemoveExportLockRequest = RemoveExportLockRequest.RemoveExportLockRequest; +import * as RemoveFileSystemLockRequest from "./remove-file-system-lock-request"; +export import RemoveFileSystemLockRequest = RemoveFileSystemLockRequest.RemoveFileSystemLockRequest; +import * as RemoveFilesystemSnapshotPolicyLockRequest from "./remove-filesystem-snapshot-policy-lock-request"; +export import RemoveFilesystemSnapshotPolicyLockRequest = RemoveFilesystemSnapshotPolicyLockRequest.RemoveFilesystemSnapshotPolicyLockRequest; +import * as RemoveMountTargetLockRequest from "./remove-mount-target-lock-request"; +export import RemoveMountTargetLockRequest = RemoveMountTargetLockRequest.RemoveMountTargetLockRequest; +import * as RemoveOutboundConnectorLockRequest from "./remove-outbound-connector-lock-request"; +export import RemoveOutboundConnectorLockRequest = RemoveOutboundConnectorLockRequest.RemoveOutboundConnectorLockRequest; +import * as RemoveReplicationLockRequest from "./remove-replication-lock-request"; +export import RemoveReplicationLockRequest = RemoveReplicationLockRequest.RemoveReplicationLockRequest; +import * as RemoveSnapshotLockRequest from "./remove-snapshot-lock-request"; +export import RemoveSnapshotLockRequest = RemoveSnapshotLockRequest.RemoveSnapshotLockRequest; import * as ScheduleDowngradeShapeMountTargetRequest from "./schedule-downgrade-shape-mount-target-request"; export import ScheduleDowngradeShapeMountTargetRequest = ScheduleDowngradeShapeMountTargetRequest.ScheduleDowngradeShapeMountTargetRequest; import * as UnpauseFilesystemSnapshotPolicyRequest from "./unpause-filesystem-snapshot-policy-request"; diff --git a/lib/filestorage/lib/request/pause-filesystem-snapshot-policy-request.ts b/lib/filestorage/lib/request/pause-filesystem-snapshot-policy-request.ts index 0abce8f341..5616de5753 100644 --- a/lib/filestorage/lib/request/pause-filesystem-snapshot-policy-request.ts +++ b/lib/filestorage/lib/request/pause-filesystem-snapshot-policy-request.ts @@ -37,4 +37,8 @@ export interface PauseFilesystemSnapshotPolicyRequest extends common.BaseRequest * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/remove-export-lock-request.ts b/lib/filestorage/lib/request/remove-export-lock-request.ts new file mode 100644 index 0000000000..839fe45f5f --- /dev/null +++ b/lib/filestorage/lib/request/remove-export-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveExportLock.ts.html |here} to see how to use RemoveExportLockRequest. + */ +export interface RemoveExportLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export. + */ + "exportId": string; + /** + * The details to be updated for the RemoveLock. + */ + "removeExportLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/remove-file-system-lock-request.ts b/lib/filestorage/lib/request/remove-file-system-lock-request.ts new file mode 100644 index 0000000000..585ad12110 --- /dev/null +++ b/lib/filestorage/lib/request/remove-file-system-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveFileSystemLock.ts.html |here} to see how to use RemoveFileSystemLockRequest. + */ +export interface RemoveFileSystemLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + */ + "fileSystemId": string; + /** + * The details to be updated for the RemoveLock. + */ + "removeFileSystemLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/remove-filesystem-snapshot-policy-lock-request.ts b/lib/filestorage/lib/request/remove-filesystem-snapshot-policy-lock-request.ts new file mode 100644 index 0000000000..74c7fb7672 --- /dev/null +++ b/lib/filestorage/lib/request/remove-filesystem-snapshot-policy-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveFilesystemSnapshotPolicyLock.ts.html |here} to see how to use RemoveFilesystemSnapshotPolicyLockRequest. + */ +export interface RemoveFilesystemSnapshotPolicyLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system snapshot policy. + */ + "filesystemSnapshotPolicyId": string; + /** + * The details to be updated for the RemoveLock. + */ + "removeFilesystemSnapshotPolicyLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/remove-mount-target-lock-request.ts b/lib/filestorage/lib/request/remove-mount-target-lock-request.ts new file mode 100644 index 0000000000..1e6ae1d869 --- /dev/null +++ b/lib/filestorage/lib/request/remove-mount-target-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveMountTargetLock.ts.html |here} to see how to use RemoveMountTargetLockRequest. + */ +export interface RemoveMountTargetLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + */ + "mountTargetId": string; + /** + * The details to be updated for the RemoveLock. + */ + "removeMountTargetLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/remove-outbound-connector-lock-request.ts b/lib/filestorage/lib/request/remove-outbound-connector-lock-request.ts new file mode 100644 index 0000000000..4086bf2177 --- /dev/null +++ b/lib/filestorage/lib/request/remove-outbound-connector-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveOutboundConnectorLock.ts.html |here} to see how to use RemoveOutboundConnectorLockRequest. + */ +export interface RemoveOutboundConnectorLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. + */ + "outboundConnectorId": string; + /** + * The details to be updated for the RemoveLock. + */ + "removeOutboundConnectorLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/remove-replication-lock-request.ts b/lib/filestorage/lib/request/remove-replication-lock-request.ts new file mode 100644 index 0000000000..8ac72997a6 --- /dev/null +++ b/lib/filestorage/lib/request/remove-replication-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveReplicationLock.ts.html |here} to see how to use RemoveReplicationLockRequest. + */ +export interface RemoveReplicationLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + */ + "replicationId": string; + /** + * The details to be updated for the RemoveLock. + */ + "removeReplicationLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/remove-snapshot-lock-request.ts b/lib/filestorage/lib/request/remove-snapshot-lock-request.ts new file mode 100644 index 0000000000..67a46197cd --- /dev/null +++ b/lib/filestorage/lib/request/remove-snapshot-lock-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/filestorage/RemoveSnapshotLock.ts.html |here} to see how to use RemoveSnapshotLockRequest. + */ +export interface RemoveSnapshotLockRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. + */ + "snapshotId": string; + /** + * The details to be updated for the RemoveLock. + */ + "removeSnapshotLockDetails": model.ResourceLock; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/filestorage/lib/request/unpause-filesystem-snapshot-policy-request.ts b/lib/filestorage/lib/request/unpause-filesystem-snapshot-policy-request.ts index 91dadadbe5..b32633cddf 100644 --- a/lib/filestorage/lib/request/unpause-filesystem-snapshot-policy-request.ts +++ b/lib/filestorage/lib/request/unpause-filesystem-snapshot-policy-request.ts @@ -37,4 +37,8 @@ export interface UnpauseFilesystemSnapshotPolicyRequest extends common.BaseReque * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/update-export-request.ts b/lib/filestorage/lib/request/update-export-request.ts index 0ae60b65bc..c7aa0e6b9a 100644 --- a/lib/filestorage/lib/request/update-export-request.ts +++ b/lib/filestorage/lib/request/update-export-request.ts @@ -41,4 +41,8 @@ export interface UpdateExportRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/update-file-system-request.ts b/lib/filestorage/lib/request/update-file-system-request.ts index 1898003d95..66c24ac516 100644 --- a/lib/filestorage/lib/request/update-file-system-request.ts +++ b/lib/filestorage/lib/request/update-file-system-request.ts @@ -41,4 +41,8 @@ export interface UpdateFileSystemRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/update-filesystem-snapshot-policy-request.ts b/lib/filestorage/lib/request/update-filesystem-snapshot-policy-request.ts index 457f5f8ba1..466eefc9f7 100644 --- a/lib/filestorage/lib/request/update-filesystem-snapshot-policy-request.ts +++ b/lib/filestorage/lib/request/update-filesystem-snapshot-policy-request.ts @@ -41,4 +41,8 @@ export interface UpdateFilesystemSnapshotPolicyRequest extends common.BaseReques * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/update-mount-target-request.ts b/lib/filestorage/lib/request/update-mount-target-request.ts index 6d08db4376..a0c55a47ce 100644 --- a/lib/filestorage/lib/request/update-mount-target-request.ts +++ b/lib/filestorage/lib/request/update-mount-target-request.ts @@ -41,4 +41,8 @@ export interface UpdateMountTargetRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/update-outbound-connector-request.ts b/lib/filestorage/lib/request/update-outbound-connector-request.ts index f346be9987..c52e975189 100644 --- a/lib/filestorage/lib/request/update-outbound-connector-request.ts +++ b/lib/filestorage/lib/request/update-outbound-connector-request.ts @@ -41,4 +41,8 @@ export interface UpdateOutboundConnectorRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/update-replication-request.ts b/lib/filestorage/lib/request/update-replication-request.ts index a87a13d971..2eb60d9068 100644 --- a/lib/filestorage/lib/request/update-replication-request.ts +++ b/lib/filestorage/lib/request/update-replication-request.ts @@ -41,4 +41,8 @@ export interface UpdateReplicationRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/request/update-snapshot-request.ts b/lib/filestorage/lib/request/update-snapshot-request.ts index c3b8568a2f..71d1d2cb0f 100644 --- a/lib/filestorage/lib/request/update-snapshot-request.ts +++ b/lib/filestorage/lib/request/update-snapshot-request.ts @@ -41,4 +41,8 @@ export interface UpdateSnapshotRequest extends common.BaseRequest { * */ "opcRequestId"?: string; + /** + * Whether to override locks (if any exist). + */ + "isLockOverride"?: boolean; } diff --git a/lib/filestorage/lib/response/add-export-lock-response.ts b/lib/filestorage/lib/response/add-export-lock-response.ts new file mode 100644 index 0000000000..3d7b109948 --- /dev/null +++ b/lib/filestorage/lib/response/add-export-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface AddExportLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Export instance. + */ + "export": model.Export; +} diff --git a/lib/filestorage/lib/response/add-file-system-lock-response.ts b/lib/filestorage/lib/response/add-file-system-lock-response.ts new file mode 100644 index 0000000000..549dfafccb --- /dev/null +++ b/lib/filestorage/lib/response/add-file-system-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface AddFileSystemLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.FileSystem instance. + */ + "fileSystem": model.FileSystem; +} diff --git a/lib/filestorage/lib/response/add-filesystem-snapshot-policy-lock-response.ts b/lib/filestorage/lib/response/add-filesystem-snapshot-policy-lock-response.ts new file mode 100644 index 0000000000..4364e1c689 --- /dev/null +++ b/lib/filestorage/lib/response/add-filesystem-snapshot-policy-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface AddFilesystemSnapshotPolicyLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.FilesystemSnapshotPolicy instance. + */ + "filesystemSnapshotPolicy": model.FilesystemSnapshotPolicy; +} diff --git a/lib/filestorage/lib/response/add-mount-target-lock-response.ts b/lib/filestorage/lib/response/add-mount-target-lock-response.ts new file mode 100644 index 0000000000..accbc3157a --- /dev/null +++ b/lib/filestorage/lib/response/add-mount-target-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface AddMountTargetLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.MountTarget instance. + */ + "mountTarget": model.MountTarget; +} diff --git a/lib/filestorage/lib/response/add-outbound-connector-lock-response.ts b/lib/filestorage/lib/response/add-outbound-connector-lock-response.ts new file mode 100644 index 0000000000..6aed352c1b --- /dev/null +++ b/lib/filestorage/lib/response/add-outbound-connector-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface AddOutboundConnectorLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.OutboundConnector instance. + */ + "outboundConnector": model.OutboundConnector; +} diff --git a/lib/filestorage/lib/response/add-replication-lock-response.ts b/lib/filestorage/lib/response/add-replication-lock-response.ts new file mode 100644 index 0000000000..1a75d0d3db --- /dev/null +++ b/lib/filestorage/lib/response/add-replication-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface AddReplicationLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Replication instance. + */ + "replication": model.Replication; +} diff --git a/lib/filestorage/lib/response/add-snapshot-lock-response.ts b/lib/filestorage/lib/response/add-snapshot-lock-response.ts new file mode 100644 index 0000000000..7d23ca63f9 --- /dev/null +++ b/lib/filestorage/lib/response/add-snapshot-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface AddSnapshotLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Snapshot instance. + */ + "snapshot": model.Snapshot; +} diff --git a/lib/filestorage/lib/response/index.ts b/lib/filestorage/lib/response/index.ts index 71f600be08..bb5276d3b0 100644 --- a/lib/filestorage/lib/response/index.ts +++ b/lib/filestorage/lib/response/index.ts @@ -13,6 +13,20 @@ For more information, see [Overview of File Storage](/iaas/Content/File/Concepts * 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. */ +import * as AddExportLockResponse from "./add-export-lock-response"; +export import AddExportLockResponse = AddExportLockResponse.AddExportLockResponse; +import * as AddFileSystemLockResponse from "./add-file-system-lock-response"; +export import AddFileSystemLockResponse = AddFileSystemLockResponse.AddFileSystemLockResponse; +import * as AddFilesystemSnapshotPolicyLockResponse from "./add-filesystem-snapshot-policy-lock-response"; +export import AddFilesystemSnapshotPolicyLockResponse = AddFilesystemSnapshotPolicyLockResponse.AddFilesystemSnapshotPolicyLockResponse; +import * as AddMountTargetLockResponse from "./add-mount-target-lock-response"; +export import AddMountTargetLockResponse = AddMountTargetLockResponse.AddMountTargetLockResponse; +import * as AddOutboundConnectorLockResponse from "./add-outbound-connector-lock-response"; +export import AddOutboundConnectorLockResponse = AddOutboundConnectorLockResponse.AddOutboundConnectorLockResponse; +import * as AddReplicationLockResponse from "./add-replication-lock-response"; +export import AddReplicationLockResponse = AddReplicationLockResponse.AddReplicationLockResponse; +import * as AddSnapshotLockResponse from "./add-snapshot-lock-response"; +export import AddSnapshotLockResponse = AddSnapshotLockResponse.AddSnapshotLockResponse; import * as CancelDowngradeShapeMountTargetResponse from "./cancel-downgrade-shape-mount-target-response"; export import CancelDowngradeShapeMountTargetResponse = CancelDowngradeShapeMountTargetResponse.CancelDowngradeShapeMountTargetResponse; import * as ChangeFileSystemCompartmentResponse from "./change-file-system-compartment-response"; @@ -97,6 +111,20 @@ import * as ListSnapshotsResponse from "./list-snapshots-response"; export import ListSnapshotsResponse = ListSnapshotsResponse.ListSnapshotsResponse; import * as PauseFilesystemSnapshotPolicyResponse from "./pause-filesystem-snapshot-policy-response"; export import PauseFilesystemSnapshotPolicyResponse = PauseFilesystemSnapshotPolicyResponse.PauseFilesystemSnapshotPolicyResponse; +import * as RemoveExportLockResponse from "./remove-export-lock-response"; +export import RemoveExportLockResponse = RemoveExportLockResponse.RemoveExportLockResponse; +import * as RemoveFileSystemLockResponse from "./remove-file-system-lock-response"; +export import RemoveFileSystemLockResponse = RemoveFileSystemLockResponse.RemoveFileSystemLockResponse; +import * as RemoveFilesystemSnapshotPolicyLockResponse from "./remove-filesystem-snapshot-policy-lock-response"; +export import RemoveFilesystemSnapshotPolicyLockResponse = RemoveFilesystemSnapshotPolicyLockResponse.RemoveFilesystemSnapshotPolicyLockResponse; +import * as RemoveMountTargetLockResponse from "./remove-mount-target-lock-response"; +export import RemoveMountTargetLockResponse = RemoveMountTargetLockResponse.RemoveMountTargetLockResponse; +import * as RemoveOutboundConnectorLockResponse from "./remove-outbound-connector-lock-response"; +export import RemoveOutboundConnectorLockResponse = RemoveOutboundConnectorLockResponse.RemoveOutboundConnectorLockResponse; +import * as RemoveReplicationLockResponse from "./remove-replication-lock-response"; +export import RemoveReplicationLockResponse = RemoveReplicationLockResponse.RemoveReplicationLockResponse; +import * as RemoveSnapshotLockResponse from "./remove-snapshot-lock-response"; +export import RemoveSnapshotLockResponse = RemoveSnapshotLockResponse.RemoveSnapshotLockResponse; import * as ScheduleDowngradeShapeMountTargetResponse from "./schedule-downgrade-shape-mount-target-response"; export import ScheduleDowngradeShapeMountTargetResponse = ScheduleDowngradeShapeMountTargetResponse.ScheduleDowngradeShapeMountTargetResponse; import * as UnpauseFilesystemSnapshotPolicyResponse from "./unpause-filesystem-snapshot-policy-response"; diff --git a/lib/filestorage/lib/response/remove-export-lock-response.ts b/lib/filestorage/lib/response/remove-export-lock-response.ts new file mode 100644 index 0000000000..3ef358ac43 --- /dev/null +++ b/lib/filestorage/lib/response/remove-export-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface RemoveExportLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Export instance. + */ + "export": model.Export; +} diff --git a/lib/filestorage/lib/response/remove-file-system-lock-response.ts b/lib/filestorage/lib/response/remove-file-system-lock-response.ts new file mode 100644 index 0000000000..64fd384682 --- /dev/null +++ b/lib/filestorage/lib/response/remove-file-system-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface RemoveFileSystemLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.FileSystem instance. + */ + "fileSystem": model.FileSystem; +} diff --git a/lib/filestorage/lib/response/remove-filesystem-snapshot-policy-lock-response.ts b/lib/filestorage/lib/response/remove-filesystem-snapshot-policy-lock-response.ts new file mode 100644 index 0000000000..5271f380b4 --- /dev/null +++ b/lib/filestorage/lib/response/remove-filesystem-snapshot-policy-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface RemoveFilesystemSnapshotPolicyLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.FilesystemSnapshotPolicy instance. + */ + "filesystemSnapshotPolicy": model.FilesystemSnapshotPolicy; +} diff --git a/lib/filestorage/lib/response/remove-mount-target-lock-response.ts b/lib/filestorage/lib/response/remove-mount-target-lock-response.ts new file mode 100644 index 0000000000..7ce8ba5d28 --- /dev/null +++ b/lib/filestorage/lib/response/remove-mount-target-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface RemoveMountTargetLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.MountTarget instance. + */ + "mountTarget": model.MountTarget; +} diff --git a/lib/filestorage/lib/response/remove-outbound-connector-lock-response.ts b/lib/filestorage/lib/response/remove-outbound-connector-lock-response.ts new file mode 100644 index 0000000000..90225a42bd --- /dev/null +++ b/lib/filestorage/lib/response/remove-outbound-connector-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface RemoveOutboundConnectorLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.OutboundConnector instance. + */ + "outboundConnector": model.OutboundConnector; +} diff --git a/lib/filestorage/lib/response/remove-replication-lock-response.ts b/lib/filestorage/lib/response/remove-replication-lock-response.ts new file mode 100644 index 0000000000..471f526bf2 --- /dev/null +++ b/lib/filestorage/lib/response/remove-replication-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface RemoveReplicationLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Replication instance. + */ + "replication": model.Replication; +} diff --git a/lib/filestorage/lib/response/remove-snapshot-lock-response.ts b/lib/filestorage/lib/response/remove-snapshot-lock-response.ts new file mode 100644 index 0000000000..6b3d58df32 --- /dev/null +++ b/lib/filestorage/lib/response/remove-snapshot-lock-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20171215 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface RemoveSnapshotLockResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Snapshot instance. + */ + "snapshot": model.Snapshot; +} diff --git a/lib/filestorage/package.json b/lib/filestorage/package.json index 748c3203b6..a4049b55b2 100644 --- a/lib/filestorage/package.json +++ b/lib/filestorage/package.json @@ -1,6 +1,6 @@ { "name": "oci-filestorage", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for File Storage", "repository": { "type": "git", diff --git a/lib/fleetappsmanagement/index.ts b/lib/fleetappsmanagement/index.ts index e2799ad098..34c0184d2a 100644 --- a/lib/fleetappsmanagement/index.ts +++ b/lib/fleetappsmanagement/index.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/client.ts b/lib/fleetappsmanagement/lib/client.ts index 7d16658dd7..3872699000 100644 --- a/lib/fleetappsmanagement/lib/client.ts +++ b/lib/fleetappsmanagement/lib/client.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -229,7 +228,7 @@ export class FleetAppsManagementClient { } /** - * Check if FAMS tags can be added for the resources + * Check if Fleet Application Management tags can be added to the resources. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param CheckResourceTaggingRequest @@ -310,7 +309,8 @@ export class FleetAppsManagementClient { } /** - * Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by FAMS + * Confirm targets to be managed for a Fleet. + * Only targets that are confirmed will be managed by Fleet Application Management * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param ConfirmTargetsRequest @@ -389,8 +389,7 @@ export class FleetAppsManagementClient { } /** - * Creates a new fleet instance that includes fleet resources and properties. - * For more information, please see the documentation. + * Create a product, environment, group, or generic type of fleet in Fleet Application Management. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param CreateFleetRequest @@ -485,7 +484,7 @@ export class FleetAppsManagementClient { } /** - * Creates a new FleetCredential. + * Add credentials to a fleet in Fleet Application Management. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param CreateFleetCredentialRequest @@ -583,7 +582,7 @@ export class FleetAppsManagementClient { } /** - * Creates a new FleetProperty. + * Add an existing global property to a fleet in Fleet Application Management. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param CreateFleetPropertyRequest @@ -666,7 +665,7 @@ export class FleetAppsManagementClient { } /** - * Creates a new FleetResource. + * Add resource to a fleet in\u00A0Fleet Application Management. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param CreateFleetResourceRequest @@ -764,7 +763,7 @@ export class FleetAppsManagementClient { } /** - * Deletes a Fleet resource by identifier + * Delete a fleet in Fleet Application Management. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param DeleteFleetRequest * @return DeleteFleetResponse @@ -836,7 +835,7 @@ export class FleetAppsManagementClient { } /** - * Deletes a FleetCredential resource by identifier + * Delete a credential associated with a fleet product or application in\u00A0Fleet Application Management. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param DeleteFleetCredentialRequest * @return DeleteFleetCredentialResponse @@ -910,7 +909,7 @@ export class FleetAppsManagementClient { } /** - * Deletes a FleetProperty resource by identifier + * Delete a property associated with a fleet in Fleet Application Management. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param DeleteFleetPropertyRequest * @return DeleteFleetPropertyResponse @@ -979,7 +978,7 @@ export class FleetAppsManagementClient { } /** - * Deletes a FleetResource resource by identifier + * Removes a resource from the fleet in Fleet Application Management. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param DeleteFleetResourceRequest * @return DeleteFleetResourceResponse @@ -1053,7 +1052,7 @@ export class FleetAppsManagementClient { } /** - * Request to generate compliance report for a Fleet + * Generate compliance reports for a Fleet. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param GenerateComplianceReportRequest @@ -1132,7 +1131,7 @@ export class FleetAppsManagementClient { } /** - * Retrieve compiane report for a Fleet + * Retrieve compliance report for a fleet. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param GetComplianceReportRequest * @return GetComplianceReportResponse @@ -1209,7 +1208,7 @@ export class FleetAppsManagementClient { } /** - * Gets a Fleet by identifier + * Get the details of a fleet in Fleet Application Management. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param GetFleetRequest * @return GetFleetResponse @@ -1284,7 +1283,7 @@ export class FleetAppsManagementClient { } /** - * Gets a FleetCredential by identifier + * Gets a FleetCredential by identifier. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param GetFleetCredentialRequest * @return GetFleetCredentialResponse @@ -1361,7 +1360,7 @@ export class FleetAppsManagementClient { } /** - * Gets a FleetProperty by identifier + * Gets a Fleet Property by identifier. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param GetFleetPropertyRequest * @return GetFleetPropertyResponse @@ -1438,7 +1437,7 @@ export class FleetAppsManagementClient { } /** - * Gets a FleetResource by identifier + * Gets a Fleet Resource by identifier. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param GetFleetResourceRequest * @return GetFleetResourceResponse @@ -1596,7 +1595,7 @@ export class FleetAppsManagementClient { } /** - * Return a list of AnnouncementSummary items + * Return a list of AnnouncementSummary items. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param ListAnnouncementsRequest * @return ListAnnouncementsResponse @@ -1677,7 +1676,7 @@ export class FleetAppsManagementClient { } /** - * Returns a list of FleetCredentials. + * List credentials in Fleet Application Management. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param ListFleetCredentialsRequest @@ -1700,6 +1699,8 @@ export class FleetAppsManagementClient { "compartmentId": listFleetCredentialsRequest.compartmentId, "lifecycleState": listFleetCredentialsRequest.lifecycleState, "displayName": listFleetCredentialsRequest.displayName, + "resourceId": listFleetCredentialsRequest.resourceId, + "target": listFleetCredentialsRequest.target, "credentialLevel": listFleetCredentialsRequest.credentialLevel, "id": listFleetCredentialsRequest.id, "limit": listFleetCredentialsRequest.limit, @@ -1764,7 +1765,7 @@ export class FleetAppsManagementClient { } /** - * Returns a list of FleetProducts. + * Returns a list of products associated with the confirmed targets. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param ListFleetProductsRequest @@ -1850,7 +1851,7 @@ export class FleetAppsManagementClient { } /** - * Returns a list of FleetProperties. + * List fleet properties in Fleet Application Management. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param ListFleetPropertiesRequest @@ -1936,7 +1937,7 @@ export class FleetAppsManagementClient { } /** - * Returns a list of FleetResources. + * List resources for a fleet in Fleet Application Management. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param ListFleetResourcesRequest @@ -2023,7 +2024,7 @@ export class FleetAppsManagementClient { } /** - * Returns a list of FleetTargets. + * Returns the list of all confirmed targets within a fleet. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param ListFleetTargetsRequest @@ -2290,7 +2291,8 @@ export class FleetAppsManagementClient { } /** - * Returns a list of FleetTargets. + * Return all targets belonging to the resources within a fleet. + * It will include both confirmed and unconfirmed targets. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param ListTargetsRequest @@ -2620,7 +2622,7 @@ export class FleetAppsManagementClient { } /** - * Request validation for resources with in a fleet + * Request validation for resources within a fleet. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param RequestResourceValidationRequest @@ -2699,7 +2701,8 @@ export class FleetAppsManagementClient { } /** - * Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by FAMS + * Confirm targets to be managed for a Fleet. + * Only targets that are confirmed will be managed by Fleet Application Management * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param RequestTargetDiscoveryRequest @@ -2778,7 +2781,7 @@ export class FleetAppsManagementClient { } /** - * Updates the Fleet + * Update fleet information in Fleet Application Management. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param UpdateFleetRequest * @return UpdateFleetResponse @@ -2859,7 +2862,7 @@ export class FleetAppsManagementClient { } /** - * Updates the FleetCredential + * Edit credentials associated with a product or application in\u00A0Fleet Application Management. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param UpdateFleetCredentialRequest * @return UpdateFleetCredentialResponse @@ -2938,7 +2941,7 @@ export class FleetAppsManagementClient { } /** - * Updates the FleetProperty + * Edit a property associated with a fleet in Fleet Application Management. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param UpdateFleetPropertyRequest * @return UpdateFleetPropertyResponse @@ -3021,7 +3024,7 @@ export class FleetAppsManagementClient { } /** - * Updates the FleetResource + * Updates the FleetResource. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param UpdateFleetResourceRequest * @return UpdateFleetResourceResponse @@ -3294,20 +3297,22 @@ export class FleetAppsManagementAdminClient { } /** - * Onboard a tenant to Fleet Application Management Service + * Creates a CompliancePolicyRule. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param CreateOnboardingRequest - * @return CreateOnboardingResponse + * @param CreateCompliancePolicyRuleRequest + * @return CreateCompliancePolicyRuleResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateOnboarding.ts.html |here} to see how to use CreateOnboarding API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateCompliancePolicyRule.ts.html |here} to see how to use CreateCompliancePolicyRule API. */ - public async createOnboarding( - createOnboardingRequest: requests.CreateOnboardingRequest - ): Promise { + public async createCompliancePolicyRule( + createCompliancePolicyRuleRequest: requests.CreateCompliancePolicyRuleRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementAdminClient#createOnboarding."); - const operationName = "createOnboarding"; + this.logger.debug( + "Calling operation FleetAppsManagementAdminClient#createCompliancePolicyRule." + ); + const operationName = "createCompliancePolicyRule"; const apiReferenceLink = ""; const pathParams = {}; @@ -3315,26 +3320,26 @@ export class FleetAppsManagementAdminClient { let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-retry-token": createOnboardingRequest.opcRetryToken, - "opc-request-id": createOnboardingRequest.opcRequestId + "opc-retry-token": createCompliancePolicyRuleRequest.opcRetryToken, + "opc-request-id": createCompliancePolicyRuleRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - createOnboardingRequest.retryConfiguration, + createCompliancePolicyRuleRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/Onboardings", + path: "/compliancePolicyRules", method: "POST", bodyContent: common.ObjectSerializer.serialize( - createOnboardingRequest.createOnboardingDetails, - "CreateOnboardingDetails", - model.CreateOnboardingDetails.getJsonObj + createCompliancePolicyRuleRequest.createCompliancePolicyRuleDetails, + "CreateCompliancePolicyRuleDetails", + model.CreateCompliancePolicyRuleDetails.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -3349,11 +3354,11 @@ export class FleetAppsManagementAdminClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "onboarding", - bodyModel: model.Onboarding, - type: "model.Onboarding", + bodyKey: "compliancePolicyRule", + bodyModel: model.CompliancePolicyRule, + type: "model.CompliancePolicyRule", responseHeaders: [ { value: response.headers.get("location"), @@ -3390,20 +3395,21 @@ export class FleetAppsManagementAdminClient { } /** - * Creates a new Property. + * Onboard a tenant to Fleet Application Management. + * The onboarding process lets Fleet Application Management create a few required policies that you need to start using it and its features. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param CreatePropertyRequest - * @return CreatePropertyResponse + * @param CreateOnboardingRequest + * @return CreateOnboardingResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateProperty.ts.html |here} to see how to use CreateProperty API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateOnboarding.ts.html |here} to see how to use CreateOnboarding API. */ - public async createProperty( - createPropertyRequest: requests.CreatePropertyRequest - ): Promise { + public async createOnboarding( + createOnboardingRequest: requests.CreateOnboardingRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementAdminClient#createProperty."); - const operationName = "createProperty"; + this.logger.debug("Calling operation FleetAppsManagementAdminClient#createOnboarding."); + const operationName = "createOnboarding"; const apiReferenceLink = ""; const pathParams = {}; @@ -3411,26 +3417,26 @@ export class FleetAppsManagementAdminClient { let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-retry-token": createPropertyRequest.opcRetryToken, - "opc-request-id": createPropertyRequest.opcRequestId + "opc-retry-token": createOnboardingRequest.opcRetryToken, + "opc-request-id": createOnboardingRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - createPropertyRequest.retryConfiguration, + createOnboardingRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/properties", + path: "/Onboardings", method: "POST", bodyContent: common.ObjectSerializer.serialize( - createPropertyRequest.createPropertyDetails, - "CreatePropertyDetails", - model.CreatePropertyDetails.getJsonObj + createOnboardingRequest.createOnboardingDetails, + "CreateOnboardingDetails", + model.CreateOnboardingDetails.getJsonObj ), pathParams: pathParams, headerParams: headerParams, @@ -3445,17 +3451,32 @@ export class FleetAppsManagementAdminClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "property", - bodyModel: model.Property, - type: "model.Property", + bodyKey: "onboarding", + bodyModel: model.Onboarding, + type: "model.Onboarding", responseHeaders: [ + { + value: response.headers.get("location"), + key: "location", + dataType: "string" + }, + { + value: response.headers.get("content-location"), + key: "contentLocation", + dataType: "string" + }, { value: response.headers.get("etag"), key: "etag", dataType: "string" }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -3471,44 +3492,50 @@ export class FleetAppsManagementAdminClient { } /** - * Deletes a Property resource by identifier + * Creates a new PlatformConfiguration. + * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param DeletePropertyRequest - * @return DeletePropertyResponse + * @param CreatePlatformConfigurationRequest + * @return CreatePlatformConfigurationResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteProperty.ts.html |here} to see how to use DeleteProperty API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreatePlatformConfiguration.ts.html |here} to see how to use CreatePlatformConfiguration API. */ - public async deleteProperty( - deletePropertyRequest: requests.DeletePropertyRequest - ): Promise { + public async createPlatformConfiguration( + createPlatformConfigurationRequest: requests.CreatePlatformConfigurationRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementAdminClient#deleteProperty."); - const operationName = "deleteProperty"; + this.logger.debug( + "Calling operation FleetAppsManagementAdminClient#createPlatformConfiguration." + ); + const operationName = "createPlatformConfiguration"; const apiReferenceLink = ""; - const pathParams = { - "{propertyId}": deletePropertyRequest.propertyId - }; + const pathParams = {}; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deletePropertyRequest.ifMatch, - "opc-request-id": deletePropertyRequest.opcRequestId + "opc-retry-token": createPlatformConfigurationRequest.opcRetryToken, + "opc-request-id": createPlatformConfigurationRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deletePropertyRequest.retryConfiguration, + createPlatformConfigurationRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/properties/{propertyId}", - method: "DELETE", + path: "/platformConfigurations", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createPlatformConfigurationRequest.createPlatformConfigurationDetails, + "CreatePlatformConfigurationDetails", + model.CreatePlatformConfigurationDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -3522,8 +3549,17 @@ export class FleetAppsManagementAdminClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "platformConfiguration", + bodyModel: model.PlatformConfiguration, + type: "model.PlatformConfiguration", responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -3539,43 +3575,48 @@ export class FleetAppsManagementAdminClient { } /** - * Gets a Property by identifier + * Create a business-specific metadata property in Fleet Application Management and capture the business metadata classifications. + * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param GetPropertyRequest - * @return GetPropertyResponse + * @param CreatePropertyRequest + * @return CreatePropertyResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetProperty.ts.html |here} to see how to use GetProperty API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateProperty.ts.html |here} to see how to use CreateProperty API. */ - public async getProperty( - getPropertyRequest: requests.GetPropertyRequest - ): Promise { + public async createProperty( + createPropertyRequest: requests.CreatePropertyRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementAdminClient#getProperty."); - const operationName = "getProperty"; + this.logger.debug("Calling operation FleetAppsManagementAdminClient#createProperty."); + const operationName = "createProperty"; const apiReferenceLink = ""; - const pathParams = { - "{propertyId}": getPropertyRequest.propertyId - }; + const pathParams = {}; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getPropertyRequest.opcRequestId + "opc-retry-token": createPropertyRequest.opcRetryToken, + "opc-request-id": createPropertyRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getPropertyRequest.retryConfiguration, + createPropertyRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/properties/{propertyId}", - method: "GET", + path: "/properties", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createPropertyRequest.createPropertyDetails, + "CreatePropertyDetails", + model.CreatePropertyDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -3589,7 +3630,7 @@ export class FleetAppsManagementAdminClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), bodyKey: "property", bodyModel: model.Property, @@ -3615,47 +3656,46 @@ export class FleetAppsManagementAdminClient { } /** - * Returns a list of onboarding policy information for FAMS. - * + * Deletes a CompliancePolicyRule. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param ListOnboardingPoliciesRequest - * @return ListOnboardingPoliciesResponse + * @param DeleteCompliancePolicyRuleRequest + * @return DeleteCompliancePolicyRuleResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListOnboardingPolicies.ts.html |here} to see how to use ListOnboardingPolicies API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteCompliancePolicyRule.ts.html |here} to see how to use DeleteCompliancePolicyRule API. */ - public async listOnboardingPolicies( - listOnboardingPoliciesRequest: requests.ListOnboardingPoliciesRequest - ): Promise { + public async deleteCompliancePolicyRule( + deleteCompliancePolicyRuleRequest: requests.DeleteCompliancePolicyRuleRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementAdminClient#listOnboardingPolicies."); - const operationName = "listOnboardingPolicies"; + this.logger.debug( + "Calling operation FleetAppsManagementAdminClient#deleteCompliancePolicyRule." + ); + const operationName = "deleteCompliancePolicyRule"; const apiReferenceLink = ""; - const pathParams = {}; - - const queryParams = { - "limit": listOnboardingPoliciesRequest.limit, - "page": listOnboardingPoliciesRequest.page, - "sortOrder": listOnboardingPoliciesRequest.sortOrder, - "sortBy": listOnboardingPoliciesRequest.sortBy + const pathParams = { + "{compliancePolicyRuleId}": deleteCompliancePolicyRuleRequest.compliancePolicyRuleId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listOnboardingPoliciesRequest.opcRequestId + "if-match": deleteCompliancePolicyRuleRequest.ifMatch, + "opc-request-id": deleteCompliancePolicyRuleRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listOnboardingPoliciesRequest.retryConfiguration, + deleteCompliancePolicyRuleRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/OnboardingPolicies", - method: "GET", + path: "/compliancePolicyRules/{compliancePolicyRuleId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -3669,20 +3709,16 @@ export class FleetAppsManagementAdminClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "onboardingPolicyCollection", - bodyModel: model.OnboardingPolicyCollection, - type: "model.OnboardingPolicyCollection", + responseObject: {}, responseHeaders: [ { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", dataType: "string" }, { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" } ] @@ -3695,50 +3731,44 @@ export class FleetAppsManagementAdminClient { } /** - * Returns a list of onboarding information for the Tenancy. - * + * Deletes Fleet Application Management onboarding resource by identifier * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param ListOnboardingsRequest - * @return ListOnboardingsResponse + * @param DeleteOnboardingRequest + * @return DeleteOnboardingResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListOnboardings.ts.html |here} to see how to use ListOnboardings API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteOnboarding.ts.html |here} to see how to use DeleteOnboarding API. */ - public async listOnboardings( - listOnboardingsRequest: requests.ListOnboardingsRequest - ): Promise { + public async deleteOnboarding( + deleteOnboardingRequest: requests.DeleteOnboardingRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementAdminClient#listOnboardings."); - const operationName = "listOnboardings"; + this.logger.debug("Calling operation FleetAppsManagementAdminClient#deleteOnboarding."); + const operationName = "deleteOnboarding"; const apiReferenceLink = ""; - const pathParams = {}; - - const queryParams = { - "compartmentId": listOnboardingsRequest.compartmentId, - "lifecycleState": listOnboardingsRequest.lifecycleState, - "id": listOnboardingsRequest.id, - "limit": listOnboardingsRequest.limit, - "page": listOnboardingsRequest.page, - "sortOrder": listOnboardingsRequest.sortOrder, - "sortBy": listOnboardingsRequest.sortBy + const pathParams = { + "{onboardingId}": deleteOnboardingRequest.onboardingId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listOnboardingsRequest.opcRequestId + "if-match": deleteOnboardingRequest.ifMatch, + "opc-request-id": deleteOnboardingRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listOnboardingsRequest.retryConfiguration, + deleteOnboardingRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/Onboardings", - method: "GET", + path: "/Onboardings/{onboardingId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -3752,20 +3782,16 @@ export class FleetAppsManagementAdminClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "onboardingCollection", - bodyModel: model.OnboardingCollection, - type: "model.OnboardingCollection", + responseObject: {}, responseHeaders: [ { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", dataType: "string" }, { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" } ] @@ -3778,52 +3804,46 @@ export class FleetAppsManagementAdminClient { } /** - * Returns a list of Properties for Tenancy. - * + * Deletes a PlatformConfiguration resource by identifier * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param ListPropertiesRequest - * @return ListPropertiesResponse + * @param DeletePlatformConfigurationRequest + * @return DeletePlatformConfigurationResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListProperties.ts.html |here} to see how to use ListProperties API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeletePlatformConfiguration.ts.html |here} to see how to use DeletePlatformConfiguration API. */ - public async listProperties( - listPropertiesRequest: requests.ListPropertiesRequest - ): Promise { + public async deletePlatformConfiguration( + deletePlatformConfigurationRequest: requests.DeletePlatformConfigurationRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementAdminClient#listProperties."); - const operationName = "listProperties"; + this.logger.debug( + "Calling operation FleetAppsManagementAdminClient#deletePlatformConfiguration." + ); + const operationName = "deletePlatformConfiguration"; const apiReferenceLink = ""; - const pathParams = {}; - - const queryParams = { - "compartmentId": listPropertiesRequest.compartmentId, - "lifecycleState": listPropertiesRequest.lifecycleState, - "displayName": listPropertiesRequest.displayName, - "id": listPropertiesRequest.id, - "scope": listPropertiesRequest.scope, - "limit": listPropertiesRequest.limit, - "page": listPropertiesRequest.page, - "sortOrder": listPropertiesRequest.sortOrder, - "sortBy": listPropertiesRequest.sortBy + const pathParams = { + "{platformConfigurationId}": deletePlatformConfigurationRequest.platformConfigurationId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listPropertiesRequest.opcRequestId + "if-match": deletePlatformConfigurationRequest.ifMatch, + "opc-request-id": deletePlatformConfigurationRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listPropertiesRequest.retryConfiguration, + deletePlatformConfigurationRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/properties", - method: "GET", + path: "/platformConfigurations/{platformConfigurationId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -3837,20 +3857,16 @@ export class FleetAppsManagementAdminClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "propertyCollection", - bodyModel: model.PropertyCollection, - type: "model.PropertyCollection", + responseObject: {}, responseHeaders: [ { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", dataType: "string" }, { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" } ] @@ -3863,36 +3879,36 @@ export class FleetAppsManagementAdminClient { } /** - * Updates the Property + * Delete a property in Fleet Application Management. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param UpdatePropertyRequest - * @return UpdatePropertyResponse + * @param DeletePropertyRequest + * @return DeletePropertyResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateProperty.ts.html |here} to see how to use UpdateProperty API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteProperty.ts.html |here} to see how to use DeleteProperty API. */ - public async updateProperty( - updatePropertyRequest: requests.UpdatePropertyRequest - ): Promise { + public async deleteProperty( + deletePropertyRequest: requests.DeletePropertyRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementAdminClient#updateProperty."); - const operationName = "updateProperty"; + this.logger.debug("Calling operation FleetAppsManagementAdminClient#deleteProperty."); + const operationName = "deleteProperty"; const apiReferenceLink = ""; const pathParams = { - "{propertyId}": updatePropertyRequest.propertyId + "{propertyId}": deletePropertyRequest.propertyId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": updatePropertyRequest.ifMatch, - "opc-request-id": updatePropertyRequest.opcRequestId + "if-match": deletePropertyRequest.ifMatch, + "opc-request-id": deletePropertyRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - updatePropertyRequest.retryConfiguration, + deletePropertyRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; @@ -3900,12 +3916,7 @@ export class FleetAppsManagementAdminClient { baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, path: "/properties/{propertyId}", - method: "PUT", - bodyContent: common.ObjectSerializer.serialize( - updatePropertyRequest.updatePropertyDetails, - "UpdatePropertyDetails", - model.UpdatePropertyDetails.getJsonObj - ), + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -3919,17 +3930,8 @@ export class FleetAppsManagementAdminClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "property", - bodyModel: model.Property, - type: "model.Property", + responseObject: {}, responseHeaders: [ - { - value: response.headers.get("etag"), - key: "etag", - dataType: "string" - }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -3943,250 +3945,197 @@ export class FleetAppsManagementAdminClient { throw err; } } -} -export enum FleetAppsManagementMaintenanceWindowApiKeys {} -/** - * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. - */ -export class FleetAppsManagementMaintenanceWindowClient { - protected static serviceEndpointTemplate = "https://fams.{region}.oci.{secondLevelDomain}"; - protected static endpointServiceName = ""; - protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined; - protected "_endpoint": string = ""; - protected "_defaultHeaders": any = {}; - protected "_waiters": FleetAppsManagementMaintenanceWindowWaiter; - protected "_clientConfiguration": common.ClientConfiguration; - protected _circuitBreaker: typeof Breaker | null = null; - protected _httpOptions: any = undefined; - protected _bodyDuplexMode: any = undefined; - public targetService = "FleetAppsManagementMaintenanceWindow"; - protected _regionId: string = ""; - protected "_region": common.Region; - protected _lastSetRegionOrRegionId: string = ""; - protected _httpClient: common.HttpClient; + /** + * Enable Policies for a newer version of Fleet Application Management + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param EnableLatestPolicyRequest + * @return EnableLatestPolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/EnableLatestPolicy.ts.html |here} to see how to use EnableLatestPolicy API. + */ + public async enableLatestPolicy( + enableLatestPolicyRequest: requests.EnableLatestPolicyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#enableLatestPolicy."); + const operationName = "enableLatestPolicy"; + const apiReferenceLink = ""; + const pathParams = { + "{onboardingId}": enableLatestPolicyRequest.onboardingId + }; - constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) { - const requestSigner = params.authenticationDetailsProvider - ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) - : null; - if (clientConfiguration) { - this._clientConfiguration = clientConfiguration; - this._circuitBreaker = clientConfiguration.circuitBreaker - ? clientConfiguration.circuitBreaker!.circuit - : null; - this._httpOptions = clientConfiguration.httpOptions - ? clientConfiguration.httpOptions - : undefined; - this._bodyDuplexMode = clientConfiguration.bodyDuplexMode - ? clientConfiguration.bodyDuplexMode - : undefined; - } + const queryParams = {}; - if (!developerToolConfiguration.isServiceEnabled("fleetappsmanagement")) { - let errmsg = - "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : "; - throw errmsg.concat("fleetappsmanagement"); - } + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": enableLatestPolicyRequest.ifMatch, + "opc-request-id": enableLatestPolicyRequest.opcRequestId, + "opc-retry-token": enableLatestPolicyRequest.opcRetryToken + }; - // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker - const specCircuitBreakerEnabled = true; - if ( - !this._circuitBreaker && - common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && - (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden) - ) { - this._circuitBreaker = new common.CircuitBreaker().circuit; - } - this._httpClient = - params.httpClient || - new common.FetchHttpClient( - requestSigner, - this._circuitBreaker, - this._httpOptions, - this._bodyDuplexMode + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + enableLatestPolicyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/Onboardings/{onboardingId}/actions/enableLatestPolicy", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + enableLatestPolicyRequest.enableLatestPolicyDetails, + "EnableLatestPolicyDetails", + model.EnableLatestPolicyDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); - if ( - params.authenticationDetailsProvider && - common.isRegionProvider(params.authenticationDetailsProvider) - ) { - const provider: common.RegionProvider = params.authenticationDetailsProvider; - if (provider.getRegion()) { - this.region = provider.getRegion(); - } + return sdkResponse; + } catch (err) { + throw err; } } /** - * Get the endpoint that is being used to call (ex, https://www.example.com). - */ - public get endpoint() { - return this._endpoint; - } - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the service. + * Gets information about a CompliancePolicy. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetCompliancePolicyRequest + * @return GetCompliancePolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetCompliancePolicy.ts.html |here} to see how to use GetCompliancePolicy API. */ - public set endpoint(endpoint: string) { - this._endpoint = endpoint; - this._endpoint = this._endpoint + "/20230831"; + public async getCompliancePolicy( + getCompliancePolicyRequest: requests.GetCompliancePolicyRequest + ): Promise { if (this.logger) - this.logger.info( - `FleetAppsManagementMaintenanceWindowClient endpoint set to ${this._endpoint}` + this.logger.debug("Calling operation FleetAppsManagementAdminClient#getCompliancePolicy."); + const operationName = "getCompliancePolicy"; + const apiReferenceLink = ""; + const pathParams = { + "{compliancePolicyId}": getCompliancePolicyRequest.compliancePolicyId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getCompliancePolicyRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getCompliancePolicyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/compliancePolicies/{compliancePolicyId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink ); - } + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "compliancePolicy", + bodyModel: model.CompliancePolicy, + type: "model.CompliancePolicy", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); - public get logger() { - return common.LOG.logger; + return sdkResponse; + } catch (err) { + throw err; + } } /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + * Gets information about a CompliancePolicyRule. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetCompliancePolicyRuleRequest + * @return GetCompliancePolicyRuleResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetCompliancePolicyRule.ts.html |here} to see how to use GetCompliancePolicyRule API. */ - public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) { - this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled; + public async getCompliancePolicyRule( + getCompliancePolicyRuleRequest: requests.GetCompliancePolicyRuleRequest + ): Promise { if (this.logger) - this.logger.info( - `realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}` - ); - if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) { - this.endpoint = common.EndpointBuilder.createEndpointFromRegion( - FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, - this._region, - FleetAppsManagementMaintenanceWindowClient.endpointServiceName - ); - } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) { - this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( - FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, - this._regionId, - FleetAppsManagementMaintenanceWindowClient.endpointServiceName + this.logger.debug( + "Calling operation FleetAppsManagementAdminClient#getCompliancePolicyRule." ); - } - } - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. - * @param region The region of the service. - */ - public set region(region: common.Region) { - this._region = region; - this.endpoint = common.EndpointBuilder.createEndpointFromRegion( - FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, - region, - FleetAppsManagementMaintenanceWindowClient.endpointServiceName - ); - this._lastSetRegionOrRegionId = common.Region.REGION_STRING; - } - - /** - * Sets the regionId to call (ex, 'us-phoenix-1'). - * - * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. - * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 - * and then call {@link #endpoint(String) endpoint}. - * @param regionId The public region ID. - */ - public set regionId(regionId: string) { - this._regionId = regionId; - this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( - FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, - regionId, - FleetAppsManagementMaintenanceWindowClient.endpointServiceName - ); - this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING; - } - - /** - * Creates a new FleetAppsManagementMaintenanceWindowWaiter for resources for this service. - * - * @param config The waiter configuration for termination and delay strategy - * @return The service waiters. - */ - public createWaiters( - config?: common.WaiterConfiguration - ): FleetAppsManagementMaintenanceWindowWaiter { - this._waiters = new FleetAppsManagementMaintenanceWindowWaiter(this, config); - return this._waiters; - } - - /** - * Gets the waiters available for resources for this service. - * - * @return The service waiters. - */ - public getWaiters(): FleetAppsManagementMaintenanceWindowWaiter { - if (this._waiters) { - return this._waiters; - } - throw Error("Waiters do not exist. Please create waiters."); - } - - /** - * Shutdown the circuit breaker used by the client when it is no longer needed - */ - public shutdownCircuitBreaker() { - if (this._circuitBreaker) { - this._circuitBreaker.shutdown(); - } - } - - /** - * Close the client once it is no longer needed - */ - public close() { - this.shutdownCircuitBreaker(); - } - - /** - * Creates a new MaintenanceWindow. - * - * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param CreateMaintenanceWindowRequest - * @return CreateMaintenanceWindowResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateMaintenanceWindow.ts.html |here} to see how to use CreateMaintenanceWindow API. - */ - public async createMaintenanceWindow( - createMaintenanceWindowRequest: requests.CreateMaintenanceWindowRequest - ): Promise { - if (this.logger) - this.logger.debug( - "Calling operation FleetAppsManagementMaintenanceWindowClient#createMaintenanceWindow." - ); - const operationName = "createMaintenanceWindow"; + const operationName = "getCompliancePolicyRule"; const apiReferenceLink = ""; - const pathParams = {}; + const pathParams = { + "{compliancePolicyRuleId}": getCompliancePolicyRuleRequest.compliancePolicyRuleId + }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-retry-token": createMaintenanceWindowRequest.opcRetryToken, - "opc-request-id": createMaintenanceWindowRequest.opcRequestId + "opc-request-id": getCompliancePolicyRuleRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - createMaintenanceWindowRequest.retryConfiguration, + getCompliancePolicyRuleRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/maintenanceWindows", - method: "POST", - bodyContent: common.ObjectSerializer.serialize( - createMaintenanceWindowRequest.createMaintenanceWindowDetails, - "CreateMaintenanceWindowDetails", - model.CreateMaintenanceWindowDetails.getJsonObj - ), + path: "/compliancePolicyRules/{compliancePolicyRuleId}", + method: "GET", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -4200,11 +4149,11 @@ export class FleetAppsManagementMaintenanceWindowClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "maintenanceWindow", - bodyModel: model.MaintenanceWindow, - type: "model.MaintenanceWindow", + bodyKey: "compliancePolicyRule", + bodyModel: model.CompliancePolicyRule, + type: "model.CompliancePolicyRule", responseHeaders: [ { value: response.headers.get("etag"), @@ -4226,46 +4175,43 @@ export class FleetAppsManagementMaintenanceWindowClient { } /** - * Deletes a MaintenanceWindow resource by identifier + * Gets a Fleet Application Management Onboarding by identifier. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param DeleteMaintenanceWindowRequest - * @return DeleteMaintenanceWindowResponse + * @param GetOnboardingRequest + * @return GetOnboardingResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteMaintenanceWindow.ts.html |here} to see how to use DeleteMaintenanceWindow API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetOnboarding.ts.html |here} to see how to use GetOnboarding API. */ - public async deleteMaintenanceWindow( - deleteMaintenanceWindowRequest: requests.DeleteMaintenanceWindowRequest - ): Promise { + public async getOnboarding( + getOnboardingRequest: requests.GetOnboardingRequest + ): Promise { if (this.logger) - this.logger.debug( - "Calling operation FleetAppsManagementMaintenanceWindowClient#deleteMaintenanceWindow." - ); - const operationName = "deleteMaintenanceWindow"; + this.logger.debug("Calling operation FleetAppsManagementAdminClient#getOnboarding."); + const operationName = "getOnboarding"; const apiReferenceLink = ""; const pathParams = { - "{maintenanceWindowId}": deleteMaintenanceWindowRequest.maintenanceWindowId + "{onboardingId}": getOnboardingRequest.onboardingId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deleteMaintenanceWindowRequest.ifMatch, - "opc-request-id": deleteMaintenanceWindowRequest.opcRequestId + "opc-request-id": getOnboardingRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deleteMaintenanceWindowRequest.retryConfiguration, + getOnboardingRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/maintenanceWindows/{maintenanceWindowId}", - method: "DELETE", + path: "/Onboardings/{onboardingId}", + method: "GET", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -4279,11 +4225,15 @@ export class FleetAppsManagementMaintenanceWindowClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "onboarding", + bodyModel: model.Onboarding, + type: "model.Onboarding", responseHeaders: [ { - value: response.headers.get("opc-work-request-id"), - key: "opcWorkRequestId", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { @@ -4301,44 +4251,44 @@ export class FleetAppsManagementMaintenanceWindowClient { } /** - * Gets a MaintenanceWindow by identifier + * Gets a PlatformConfiguration by identifier * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param GetMaintenanceWindowRequest - * @return GetMaintenanceWindowResponse + * @param GetPlatformConfigurationRequest + * @return GetPlatformConfigurationResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetMaintenanceWindow.ts.html |here} to see how to use GetMaintenanceWindow API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetPlatformConfiguration.ts.html |here} to see how to use GetPlatformConfiguration API. */ - public async getMaintenanceWindow( - getMaintenanceWindowRequest: requests.GetMaintenanceWindowRequest - ): Promise { + public async getPlatformConfiguration( + getPlatformConfigurationRequest: requests.GetPlatformConfigurationRequest + ): Promise { if (this.logger) this.logger.debug( - "Calling operation FleetAppsManagementMaintenanceWindowClient#getMaintenanceWindow." + "Calling operation FleetAppsManagementAdminClient#getPlatformConfiguration." ); - const operationName = "getMaintenanceWindow"; + const operationName = "getPlatformConfiguration"; const apiReferenceLink = ""; const pathParams = { - "{maintenanceWindowId}": getMaintenanceWindowRequest.maintenanceWindowId + "{platformConfigurationId}": getPlatformConfigurationRequest.platformConfigurationId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getMaintenanceWindowRequest.opcRequestId + "opc-request-id": getPlatformConfigurationRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getMaintenanceWindowRequest.retryConfiguration, + getPlatformConfigurationRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/maintenanceWindows/{maintenanceWindowId}", + path: "/platformConfigurations/{platformConfigurationId}", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -4353,11 +4303,11 @@ export class FleetAppsManagementMaintenanceWindowClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "maintenanceWindow", - bodyModel: model.MaintenanceWindow, - type: "model.MaintenanceWindow", + bodyKey: "platformConfiguration", + bodyModel: model.PlatformConfiguration, + type: "model.PlatformConfiguration", responseHeaders: [ { value: response.headers.get("etag"), @@ -4379,52 +4329,42 @@ export class FleetAppsManagementMaintenanceWindowClient { } /** - * Returns a list of MaintenanceWindows in the specified Tenancy. - * + * Gets a Property by identifier * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param ListMaintenanceWindowsRequest - * @return ListMaintenanceWindowsResponse + * @param GetPropertyRequest + * @return GetPropertyResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListMaintenanceWindows.ts.html |here} to see how to use ListMaintenanceWindows API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetProperty.ts.html |here} to see how to use GetProperty API. */ - public async listMaintenanceWindows( - listMaintenanceWindowsRequest: requests.ListMaintenanceWindowsRequest - ): Promise { + public async getProperty( + getPropertyRequest: requests.GetPropertyRequest + ): Promise { if (this.logger) - this.logger.debug( - "Calling operation FleetAppsManagementMaintenanceWindowClient#listMaintenanceWindows." - ); - const operationName = "listMaintenanceWindows"; + this.logger.debug("Calling operation FleetAppsManagementAdminClient#getProperty."); + const operationName = "getProperty"; const apiReferenceLink = ""; - const pathParams = {}; - - const queryParams = { - "compartmentId": listMaintenanceWindowsRequest.compartmentId, - "lifecycleState": listMaintenanceWindowsRequest.lifecycleState, - "displayName": listMaintenanceWindowsRequest.displayName, - "id": listMaintenanceWindowsRequest.id, - "limit": listMaintenanceWindowsRequest.limit, - "page": listMaintenanceWindowsRequest.page, - "sortOrder": listMaintenanceWindowsRequest.sortOrder, - "sortBy": listMaintenanceWindowsRequest.sortBy + const pathParams = { + "{propertyId}": getPropertyRequest.propertyId }; + const queryParams = {}; + let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listMaintenanceWindowsRequest.opcRequestId + "opc-request-id": getPropertyRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listMaintenanceWindowsRequest.retryConfiguration, + getPropertyRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/maintenanceWindows", + path: "/properties/{propertyId}", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -4439,26 +4379,21 @@ export class FleetAppsManagementMaintenanceWindowClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "maintenanceWindowCollection", - bodyModel: model.MaintenanceWindowCollection, - type: "model.MaintenanceWindowCollection", + bodyKey: "property", + bodyModel: model.Property, + type: "model.Property", responseHeaders: [ { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" - }, - { - value: response.headers.get("opc-total-items"), - key: "opcTotalItems", - dataType: "number" } ] }); @@ -4470,51 +4405,51 @@ export class FleetAppsManagementMaintenanceWindowClient { } /** - * Updates the MaintenanceWindow + * Gets a list of compliancePolicies. + * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param UpdateMaintenanceWindowRequest - * @return UpdateMaintenanceWindowResponse + * @param ListCompliancePoliciesRequest + * @return ListCompliancePoliciesResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateMaintenanceWindow.ts.html |here} to see how to use UpdateMaintenanceWindow API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListCompliancePolicies.ts.html |here} to see how to use ListCompliancePolicies API. */ - public async updateMaintenanceWindow( - updateMaintenanceWindowRequest: requests.UpdateMaintenanceWindowRequest - ): Promise { + public async listCompliancePolicies( + listCompliancePoliciesRequest: requests.ListCompliancePoliciesRequest + ): Promise { if (this.logger) - this.logger.debug( - "Calling operation FleetAppsManagementMaintenanceWindowClient#updateMaintenanceWindow." - ); - const operationName = "updateMaintenanceWindow"; + this.logger.debug("Calling operation FleetAppsManagementAdminClient#listCompliancePolicies."); + const operationName = "listCompliancePolicies"; const apiReferenceLink = ""; - const pathParams = { - "{maintenanceWindowId}": updateMaintenanceWindowRequest.maintenanceWindowId - }; + const pathParams = {}; - const queryParams = {}; + const queryParams = { + "compartmentId": listCompliancePoliciesRequest.compartmentId, + "lifecycleState": listCompliancePoliciesRequest.lifecycleState, + "displayName": listCompliancePoliciesRequest.displayName, + "id": listCompliancePoliciesRequest.id, + "limit": listCompliancePoliciesRequest.limit, + "page": listCompliancePoliciesRequest.page, + "sortOrder": listCompliancePoliciesRequest.sortOrder, + "sortBy": listCompliancePoliciesRequest.sortBy + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": updateMaintenanceWindowRequest.ifMatch, - "opc-request-id": updateMaintenanceWindowRequest.opcRequestId + "opc-request-id": listCompliancePoliciesRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - updateMaintenanceWindowRequest.retryConfiguration, + listCompliancePoliciesRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/maintenanceWindows/{maintenanceWindowId}", - method: "PUT", - bodyContent: common.ObjectSerializer.serialize( - updateMaintenanceWindowRequest.updateMaintenanceWindowDetails, - "UpdateMaintenanceWindowDetails", - model.UpdateMaintenanceWindowDetails.getJsonObj - ), + path: "/compliancePolicies", + method: "GET", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -4528,16 +4463,20 @@ export class FleetAppsManagementMaintenanceWindowClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "compliancePolicyCollection", + bodyModel: model.CompliancePolicyCollection, + type: "model.CompliancePolicyCollection", responseHeaders: [ { - value: response.headers.get("opc-work-request-id"), - key: "opcWorkRequestId", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" }, { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("opc-next-page"), + key: "opcNextPage", dataType: "string" } ] @@ -4548,246 +4487,3087 @@ export class FleetAppsManagementMaintenanceWindowClient { throw err; } } -} -export enum FleetAppsManagementOperationsApiKeys {} -/** - * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. - */ -export class FleetAppsManagementOperationsClient { - protected static serviceEndpointTemplate = "https://fams.{region}.oci.{secondLevelDomain}"; - protected static endpointServiceName = ""; - protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined; - protected "_endpoint": string = ""; - protected "_defaultHeaders": any = {}; - protected "_waiters": FleetAppsManagementOperationsWaiter; - protected "_clientConfiguration": common.ClientConfiguration; - protected _circuitBreaker: typeof Breaker | null = null; - protected _httpOptions: any = undefined; - protected _bodyDuplexMode: any = undefined; - public targetService = "FleetAppsManagementOperations"; - protected _regionId: string = ""; - protected "_region": common.Region; - protected _lastSetRegionOrRegionId: string = ""; - protected _httpClient: common.HttpClient; + /** + * Gets a list of CompliancePolicyRules. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListCompliancePolicyRulesRequest + * @return ListCompliancePolicyRulesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListCompliancePolicyRules.ts.html |here} to see how to use ListCompliancePolicyRules API. + */ + public async listCompliancePolicyRules( + listCompliancePolicyRulesRequest: requests.ListCompliancePolicyRulesRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementAdminClient#listCompliancePolicyRules." + ); + const operationName = "listCompliancePolicyRules"; + const apiReferenceLink = ""; + const pathParams = {}; - constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) { - const requestSigner = params.authenticationDetailsProvider - ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) - : null; - if (clientConfiguration) { - this._clientConfiguration = clientConfiguration; - this._circuitBreaker = clientConfiguration.circuitBreaker - ? clientConfiguration.circuitBreaker!.circuit - : null; - this._httpOptions = clientConfiguration.httpOptions - ? clientConfiguration.httpOptions - : undefined; - this._bodyDuplexMode = clientConfiguration.bodyDuplexMode - ? clientConfiguration.bodyDuplexMode - : undefined; - } + const queryParams = { + "compartmentId": listCompliancePolicyRulesRequest.compartmentId, + "displayName": listCompliancePolicyRulesRequest.displayName, + "lifecycleState": listCompliancePolicyRulesRequest.lifecycleState, + "patchName": listCompliancePolicyRulesRequest.patchName, + "compliancePolicyId": listCompliancePolicyRulesRequest.compliancePolicyId, + "id": listCompliancePolicyRulesRequest.id, + "limit": listCompliancePolicyRulesRequest.limit, + "page": listCompliancePolicyRulesRequest.page, + "sortOrder": listCompliancePolicyRulesRequest.sortOrder, + "sortBy": listCompliancePolicyRulesRequest.sortBy + }; - if (!developerToolConfiguration.isServiceEnabled("fleetappsmanagement")) { - let errmsg = - "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : "; - throw errmsg.concat("fleetappsmanagement"); - } + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listCompliancePolicyRulesRequest.opcRequestId + }; - // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker - const specCircuitBreakerEnabled = true; - if ( - !this._circuitBreaker && - common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && - (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden) - ) { - this._circuitBreaker = new common.CircuitBreaker().circuit; - } - this._httpClient = - params.httpClient || - new common.FetchHttpClient( - requestSigner, - this._circuitBreaker, - this._httpOptions, - this._bodyDuplexMode + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listCompliancePolicyRulesRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/compliancePolicyRules", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "compliancePolicyRuleCollection", + bodyModel: model.CompliancePolicyRuleCollection, + type: "model.CompliancePolicyRuleCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); - if ( - params.authenticationDetailsProvider && - common.isRegionProvider(params.authenticationDetailsProvider) - ) { - const provider: common.RegionProvider = params.authenticationDetailsProvider; - if (provider.getRegion()) { - this.region = provider.getRegion(); - } + return sdkResponse; + } catch (err) { + throw err; } } /** - * Get the endpoint that is being used to call (ex, https://www.example.com). - */ - public get endpoint() { - return this._endpoint; - } - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the service. + * Returns a list of onboarding policy information for Fleet Application Management. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListOnboardingPoliciesRequest + * @return ListOnboardingPoliciesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListOnboardingPolicies.ts.html |here} to see how to use ListOnboardingPolicies API. */ - public set endpoint(endpoint: string) { - this._endpoint = endpoint; - this._endpoint = this._endpoint + "/20230831"; + public async listOnboardingPolicies( + listOnboardingPoliciesRequest: requests.ListOnboardingPoliciesRequest + ): Promise { if (this.logger) - this.logger.info(`FleetAppsManagementOperationsClient endpoint set to ${this._endpoint}`); - } + this.logger.debug("Calling operation FleetAppsManagementAdminClient#listOnboardingPolicies."); + const operationName = "listOnboardingPolicies"; + const apiReferenceLink = ""; + const pathParams = {}; - public get logger() { - return common.LOG.logger; - } + const queryParams = { + "limit": listOnboardingPoliciesRequest.limit, + "page": listOnboardingPoliciesRequest.page, + "sortOrder": listOnboardingPoliciesRequest.sortOrder, + "sortBy": listOnboardingPoliciesRequest.sortBy + }; - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) { - this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled; - if (this.logger) - this.logger.info( - `realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}` - ); - if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) { - this.endpoint = common.EndpointBuilder.createEndpointFromRegion( - FleetAppsManagementOperationsClient.serviceEndpointTemplate, - this._region, - FleetAppsManagementOperationsClient.endpointServiceName - ); - } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) { - this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( - FleetAppsManagementOperationsClient.serviceEndpointTemplate, - this._regionId, - FleetAppsManagementOperationsClient.endpointServiceName - ); - } - } + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listOnboardingPoliciesRequest.opcRequestId + }; - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. - * @param region The region of the service. - */ - public set region(region: common.Region) { - this._region = region; - this.endpoint = common.EndpointBuilder.createEndpointFromRegion( - FleetAppsManagementOperationsClient.serviceEndpointTemplate, - region, - FleetAppsManagementOperationsClient.endpointServiceName + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listOnboardingPoliciesRequest.retryConfiguration, + specRetryConfiguration ); - this._lastSetRegionOrRegionId = common.Region.REGION_STRING; + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/OnboardingPolicies", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "onboardingPolicyCollection", + bodyModel: model.OnboardingPolicyCollection, + type: "model.OnboardingPolicyCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } } /** - * Sets the regionId to call (ex, 'us-phoenix-1'). + * Returns a list of onboarding information for the Tenancy. * - * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. - * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 - * and then call {@link #endpoint(String) endpoint}. - * @param regionId The public region ID. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListOnboardingsRequest + * @return ListOnboardingsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListOnboardings.ts.html |here} to see how to use ListOnboardings API. */ - public set regionId(regionId: string) { - this._regionId = regionId; - this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( - FleetAppsManagementOperationsClient.serviceEndpointTemplate, - regionId, - FleetAppsManagementOperationsClient.endpointServiceName + public async listOnboardings( + listOnboardingsRequest: requests.ListOnboardingsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#listOnboardings."); + const operationName = "listOnboardings"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listOnboardingsRequest.compartmentId, + "lifecycleState": listOnboardingsRequest.lifecycleState, + "id": listOnboardingsRequest.id, + "limit": listOnboardingsRequest.limit, + "page": listOnboardingsRequest.page, + "sortOrder": listOnboardingsRequest.sortOrder, + "sortBy": listOnboardingsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listOnboardingsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listOnboardingsRequest.retryConfiguration, + specRetryConfiguration ); - this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING; + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/Onboardings", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "onboardingCollection", + bodyModel: model.OnboardingCollection, + type: "model.OnboardingCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } } /** - * Creates a new FleetAppsManagementOperationsWaiter for resources for this service. + * Returns a list of PlatformConfiguration for Tenancy. * - * @param config The waiter configuration for termination and delay strategy - * @return The service waiters. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListPlatformConfigurationsRequest + * @return ListPlatformConfigurationsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListPlatformConfigurations.ts.html |here} to see how to use ListPlatformConfigurations API. */ - public createWaiters(config?: common.WaiterConfiguration): FleetAppsManagementOperationsWaiter { - this._waiters = new FleetAppsManagementOperationsWaiter(this, config); - return this._waiters; + public async listPlatformConfigurations( + listPlatformConfigurationsRequest: requests.ListPlatformConfigurationsRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementAdminClient#listPlatformConfigurations." + ); + const operationName = "listPlatformConfigurations"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listPlatformConfigurationsRequest.compartmentId, + "lifecycleState": listPlatformConfigurationsRequest.lifecycleState, + "displayName": listPlatformConfigurationsRequest.displayName, + "id": listPlatformConfigurationsRequest.id, + "configCategory": listPlatformConfigurationsRequest.configCategory, + "limit": listPlatformConfigurationsRequest.limit, + "page": listPlatformConfigurationsRequest.page, + "sortOrder": listPlatformConfigurationsRequest.sortOrder, + "sortBy": listPlatformConfigurationsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listPlatformConfigurationsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listPlatformConfigurationsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/platformConfigurations", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "platformConfigurationCollection", + bodyModel: model.PlatformConfigurationCollection, + type: "model.PlatformConfigurationCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } } /** - * Gets the waiters available for resources for this service. + * List properties and their values for a tenancy in Fleet Application Management. * - * @return The service waiters. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListPropertiesRequest + * @return ListPropertiesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListProperties.ts.html |here} to see how to use ListProperties API. */ - public getWaiters(): FleetAppsManagementOperationsWaiter { - if (this._waiters) { - return this._waiters; + public async listProperties( + listPropertiesRequest: requests.ListPropertiesRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#listProperties."); + const operationName = "listProperties"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listPropertiesRequest.compartmentId, + "lifecycleState": listPropertiesRequest.lifecycleState, + "displayName": listPropertiesRequest.displayName, + "id": listPropertiesRequest.id, + "scope": listPropertiesRequest.scope, + "limit": listPropertiesRequest.limit, + "page": listPropertiesRequest.page, + "sortOrder": listPropertiesRequest.sortOrder, + "sortBy": listPropertiesRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listPropertiesRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listPropertiesRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/properties", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "propertyCollection", + bodyModel: model.PropertyCollection, + type: "model.PropertyCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; } - throw Error("Waiters do not exist. Please create waiters."); } /** - * Shutdown the circuit breaker used by the client when it is no longer needed + * Updates the Onboarding setting + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ManageSettingsRequest + * @return ManageSettingsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ManageSettings.ts.html |here} to see how to use ManageSettings API. */ - public shutdownCircuitBreaker() { - if (this._circuitBreaker) { - this._circuitBreaker.shutdown(); + public async manageSettings( + manageSettingsRequest: requests.ManageSettingsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#manageSettings."); + const operationName = "manageSettings"; + const apiReferenceLink = ""; + const pathParams = { + "{onboardingId}": manageSettingsRequest.onboardingId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": manageSettingsRequest.ifMatch, + "opc-request-id": manageSettingsRequest.opcRequestId, + "opc-retry-token": manageSettingsRequest.opcRetryToken + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + manageSettingsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/Onboardings/{onboardingId}/actions/manageSettings", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + manageSettingsRequest.manageSettingsDetails, + "ManageSettingsDetails", + model.ManageSettingsDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates a CompliancePolicyRule. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateCompliancePolicyRuleRequest + * @return UpdateCompliancePolicyRuleResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateCompliancePolicyRule.ts.html |here} to see how to use UpdateCompliancePolicyRule API. + */ + public async updateCompliancePolicyRule( + updateCompliancePolicyRuleRequest: requests.UpdateCompliancePolicyRuleRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementAdminClient#updateCompliancePolicyRule." + ); + const operationName = "updateCompliancePolicyRule"; + const apiReferenceLink = ""; + const pathParams = { + "{compliancePolicyRuleId}": updateCompliancePolicyRuleRequest.compliancePolicyRuleId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateCompliancePolicyRuleRequest.ifMatch, + "opc-request-id": updateCompliancePolicyRuleRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateCompliancePolicyRuleRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/compliancePolicyRules/{compliancePolicyRuleId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateCompliancePolicyRuleRequest.updateCompliancePolicyRuleDetails, + "UpdateCompliancePolicyRuleDetails", + model.UpdateCompliancePolicyRuleDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the Onboarding + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateOnboardingRequest + * @return UpdateOnboardingResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateOnboarding.ts.html |here} to see how to use UpdateOnboarding API. + */ + public async updateOnboarding( + updateOnboardingRequest: requests.UpdateOnboardingRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#updateOnboarding."); + const operationName = "updateOnboarding"; + const apiReferenceLink = ""; + const pathParams = { + "{onboardingId}": updateOnboardingRequest.onboardingId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateOnboardingRequest.ifMatch, + "opc-request-id": updateOnboardingRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateOnboardingRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/Onboardings/{onboardingId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateOnboardingRequest.updateOnboardingDetails, + "UpdateOnboardingDetails", + model.UpdateOnboardingDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the PlatformConfiguration + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdatePlatformConfigurationRequest + * @return UpdatePlatformConfigurationResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdatePlatformConfiguration.ts.html |here} to see how to use UpdatePlatformConfiguration API. + */ + public async updatePlatformConfiguration( + updatePlatformConfigurationRequest: requests.UpdatePlatformConfigurationRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementAdminClient#updatePlatformConfiguration." + ); + const operationName = "updatePlatformConfiguration"; + const apiReferenceLink = ""; + const pathParams = { + "{platformConfigurationId}": updatePlatformConfigurationRequest.platformConfigurationId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updatePlatformConfigurationRequest.ifMatch, + "opc-request-id": updatePlatformConfigurationRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updatePlatformConfigurationRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/platformConfigurations/{platformConfigurationId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updatePlatformConfigurationRequest.updatePlatformConfigurationDetails, + "UpdatePlatformConfigurationDetails", + model.UpdatePlatformConfigurationDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Update a property in Fleet Application Management. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdatePropertyRequest + * @return UpdatePropertyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateProperty.ts.html |here} to see how to use UpdateProperty API. + */ + public async updateProperty( + updatePropertyRequest: requests.UpdatePropertyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#updateProperty."); + const operationName = "updateProperty"; + const apiReferenceLink = ""; + const pathParams = { + "{propertyId}": updatePropertyRequest.propertyId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updatePropertyRequest.ifMatch, + "opc-request-id": updatePropertyRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updatePropertyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/properties/{propertyId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updatePropertyRequest.updatePropertyDetails, + "UpdatePropertyDetails", + model.UpdatePropertyDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "property", + bodyModel: model.Property, + type: "model.Property", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } +} +export enum FleetAppsManagementMaintenanceWindowApiKeys {} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export class FleetAppsManagementMaintenanceWindowClient { + protected static serviceEndpointTemplate = "https://fams.{region}.oci.{secondLevelDomain}"; + protected static endpointServiceName = ""; + protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined; + protected "_endpoint": string = ""; + protected "_defaultHeaders": any = {}; + protected "_waiters": FleetAppsManagementMaintenanceWindowWaiter; + protected "_clientConfiguration": common.ClientConfiguration; + protected _circuitBreaker: typeof Breaker | null = null; + protected _httpOptions: any = undefined; + protected _bodyDuplexMode: any = undefined; + public targetService = "FleetAppsManagementMaintenanceWindow"; + protected _regionId: string = ""; + protected "_region": common.Region; + protected _lastSetRegionOrRegionId: string = ""; + + protected _httpClient: common.HttpClient; + + constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) { + const requestSigner = params.authenticationDetailsProvider + ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) + : null; + if (clientConfiguration) { + this._clientConfiguration = clientConfiguration; + this._circuitBreaker = clientConfiguration.circuitBreaker + ? clientConfiguration.circuitBreaker!.circuit + : null; + this._httpOptions = clientConfiguration.httpOptions + ? clientConfiguration.httpOptions + : undefined; + this._bodyDuplexMode = clientConfiguration.bodyDuplexMode + ? clientConfiguration.bodyDuplexMode + : undefined; + } + + if (!developerToolConfiguration.isServiceEnabled("fleetappsmanagement")) { + let errmsg = + "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : "; + throw errmsg.concat("fleetappsmanagement"); + } + + // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker + const specCircuitBreakerEnabled = true; + if ( + !this._circuitBreaker && + common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && + (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden) + ) { + this._circuitBreaker = new common.CircuitBreaker().circuit; + } + this._httpClient = + params.httpClient || + new common.FetchHttpClient( + requestSigner, + this._circuitBreaker, + this._httpOptions, + this._bodyDuplexMode + ); + + if ( + params.authenticationDetailsProvider && + common.isRegionProvider(params.authenticationDetailsProvider) + ) { + const provider: common.RegionProvider = params.authenticationDetailsProvider; + if (provider.getRegion()) { + this.region = provider.getRegion(); + } + } + } + + /** + * Get the endpoint that is being used to call (ex, https://www.example.com). + */ + public get endpoint() { + return this._endpoint; + } + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + public set endpoint(endpoint: string) { + this._endpoint = endpoint; + this._endpoint = this._endpoint + "/20230831"; + if (this.logger) + this.logger.info( + `FleetAppsManagementMaintenanceWindowClient endpoint set to ${this._endpoint}` + ); + } + + public get logger() { + return common.LOG.logger; + } + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) { + this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled; + if (this.logger) + this.logger.info( + `realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}` + ); + if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, + this._region, + FleetAppsManagementMaintenanceWindowClient.endpointServiceName + ); + } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, + this._regionId, + FleetAppsManagementMaintenanceWindowClient.endpointServiceName + ); + } + } + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. + * @param region The region of the service. + */ + public set region(region: common.Region) { + this._region = region; + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, + region, + FleetAppsManagementMaintenanceWindowClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_STRING; + } + + /** + * Sets the regionId to call (ex, 'us-phoenix-1'). + * + * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. + * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 + * and then call {@link #endpoint(String) endpoint}. + * @param regionId The public region ID. + */ + public set regionId(regionId: string) { + this._regionId = regionId; + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, + regionId, + FleetAppsManagementMaintenanceWindowClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING; + } + + /** + * Creates a new FleetAppsManagementMaintenanceWindowWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + public createWaiters( + config?: common.WaiterConfiguration + ): FleetAppsManagementMaintenanceWindowWaiter { + this._waiters = new FleetAppsManagementMaintenanceWindowWaiter(this, config); + return this._waiters; + } + + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + public getWaiters(): FleetAppsManagementMaintenanceWindowWaiter { + if (this._waiters) { + return this._waiters; + } + throw Error("Waiters do not exist. Please create waiters."); + } + + /** + * Shutdown the circuit breaker used by the client when it is no longer needed + */ + public shutdownCircuitBreaker() { + if (this._circuitBreaker) { + this._circuitBreaker.shutdown(); + } + } + + /** + * Close the client once it is no longer needed + */ + public close() { + this.shutdownCircuitBreaker(); + } + + /** + * Create a maintenance window in Fleet Application Management. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CreateMaintenanceWindowRequest + * @return CreateMaintenanceWindowResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateMaintenanceWindow.ts.html |here} to see how to use CreateMaintenanceWindow API. + */ + public async createMaintenanceWindow( + createMaintenanceWindowRequest: requests.CreateMaintenanceWindowRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementMaintenanceWindowClient#createMaintenanceWindow." + ); + const operationName = "createMaintenanceWindow"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createMaintenanceWindowRequest.opcRetryToken, + "opc-request-id": createMaintenanceWindowRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + createMaintenanceWindowRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/maintenanceWindows", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createMaintenanceWindowRequest.createMaintenanceWindowDetails, + "CreateMaintenanceWindowDetails", + model.CreateMaintenanceWindowDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "maintenanceWindow", + bodyModel: model.MaintenanceWindow, + type: "model.MaintenanceWindow", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Delete a maintenance window in Fleet Application Management. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeleteMaintenanceWindowRequest + * @return DeleteMaintenanceWindowResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteMaintenanceWindow.ts.html |here} to see how to use DeleteMaintenanceWindow API. + */ + public async deleteMaintenanceWindow( + deleteMaintenanceWindowRequest: requests.DeleteMaintenanceWindowRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementMaintenanceWindowClient#deleteMaintenanceWindow." + ); + const operationName = "deleteMaintenanceWindow"; + const apiReferenceLink = ""; + const pathParams = { + "{maintenanceWindowId}": deleteMaintenanceWindowRequest.maintenanceWindowId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deleteMaintenanceWindowRequest.ifMatch, + "opc-request-id": deleteMaintenanceWindowRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deleteMaintenanceWindowRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/maintenanceWindows/{maintenanceWindowId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Get the details for a maintenance window in Fleet Application Management. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetMaintenanceWindowRequest + * @return GetMaintenanceWindowResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetMaintenanceWindow.ts.html |here} to see how to use GetMaintenanceWindow API. + */ + public async getMaintenanceWindow( + getMaintenanceWindowRequest: requests.GetMaintenanceWindowRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementMaintenanceWindowClient#getMaintenanceWindow." + ); + const operationName = "getMaintenanceWindow"; + const apiReferenceLink = ""; + const pathParams = { + "{maintenanceWindowId}": getMaintenanceWindowRequest.maintenanceWindowId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getMaintenanceWindowRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getMaintenanceWindowRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/maintenanceWindows/{maintenanceWindowId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "maintenanceWindow", + bodyModel: model.MaintenanceWindow, + type: "model.MaintenanceWindow", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * List maintenance windows for a specified tenancy in\u00A0Fleet Application Management. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListMaintenanceWindowsRequest + * @return ListMaintenanceWindowsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListMaintenanceWindows.ts.html |here} to see how to use ListMaintenanceWindows API. + */ + public async listMaintenanceWindows( + listMaintenanceWindowsRequest: requests.ListMaintenanceWindowsRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementMaintenanceWindowClient#listMaintenanceWindows." + ); + const operationName = "listMaintenanceWindows"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listMaintenanceWindowsRequest.compartmentId, + "lifecycleState": listMaintenanceWindowsRequest.lifecycleState, + "displayName": listMaintenanceWindowsRequest.displayName, + "timeScheduleStartGreaterThanOrEqualTo": + listMaintenanceWindowsRequest.timeScheduleStartGreaterThanOrEqualTo, + "id": listMaintenanceWindowsRequest.id, + "limit": listMaintenanceWindowsRequest.limit, + "page": listMaintenanceWindowsRequest.page, + "sortOrder": listMaintenanceWindowsRequest.sortOrder, + "sortBy": listMaintenanceWindowsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listMaintenanceWindowsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listMaintenanceWindowsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/maintenanceWindows", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "maintenanceWindowCollection", + bodyModel: model.MaintenanceWindowCollection, + type: "model.MaintenanceWindowCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Update a maintenance window in Fleet Application Management. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateMaintenanceWindowRequest + * @return UpdateMaintenanceWindowResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateMaintenanceWindow.ts.html |here} to see how to use UpdateMaintenanceWindow API. + */ + public async updateMaintenanceWindow( + updateMaintenanceWindowRequest: requests.UpdateMaintenanceWindowRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementMaintenanceWindowClient#updateMaintenanceWindow." + ); + const operationName = "updateMaintenanceWindow"; + const apiReferenceLink = ""; + const pathParams = { + "{maintenanceWindowId}": updateMaintenanceWindowRequest.maintenanceWindowId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateMaintenanceWindowRequest.ifMatch, + "opc-request-id": updateMaintenanceWindowRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateMaintenanceWindowRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/maintenanceWindows/{maintenanceWindowId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateMaintenanceWindowRequest.updateMaintenanceWindowDetails, + "UpdateMaintenanceWindowDetails", + model.UpdateMaintenanceWindowDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } +} +export enum FleetAppsManagementOperationsApiKeys {} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export class FleetAppsManagementOperationsClient { + protected static serviceEndpointTemplate = "https://fams.{region}.oci.{secondLevelDomain}"; + protected static endpointServiceName = ""; + protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined; + protected "_endpoint": string = ""; + protected "_defaultHeaders": any = {}; + protected "_waiters": FleetAppsManagementOperationsWaiter; + protected "_clientConfiguration": common.ClientConfiguration; + protected _circuitBreaker: typeof Breaker | null = null; + protected _httpOptions: any = undefined; + protected _bodyDuplexMode: any = undefined; + public targetService = "FleetAppsManagementOperations"; + protected _regionId: string = ""; + protected "_region": common.Region; + protected _lastSetRegionOrRegionId: string = ""; + + protected _httpClient: common.HttpClient; + + constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) { + const requestSigner = params.authenticationDetailsProvider + ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) + : null; + if (clientConfiguration) { + this._clientConfiguration = clientConfiguration; + this._circuitBreaker = clientConfiguration.circuitBreaker + ? clientConfiguration.circuitBreaker!.circuit + : null; + this._httpOptions = clientConfiguration.httpOptions + ? clientConfiguration.httpOptions + : undefined; + this._bodyDuplexMode = clientConfiguration.bodyDuplexMode + ? clientConfiguration.bodyDuplexMode + : undefined; + } + + if (!developerToolConfiguration.isServiceEnabled("fleetappsmanagement")) { + let errmsg = + "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : "; + throw errmsg.concat("fleetappsmanagement"); + } + + // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker + const specCircuitBreakerEnabled = true; + if ( + !this._circuitBreaker && + common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && + (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden) + ) { + this._circuitBreaker = new common.CircuitBreaker().circuit; + } + this._httpClient = + params.httpClient || + new common.FetchHttpClient( + requestSigner, + this._circuitBreaker, + this._httpOptions, + this._bodyDuplexMode + ); + + if ( + params.authenticationDetailsProvider && + common.isRegionProvider(params.authenticationDetailsProvider) + ) { + const provider: common.RegionProvider = params.authenticationDetailsProvider; + if (provider.getRegion()) { + this.region = provider.getRegion(); + } + } + } + + /** + * Get the endpoint that is being used to call (ex, https://www.example.com). + */ + public get endpoint() { + return this._endpoint; + } + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + public set endpoint(endpoint: string) { + this._endpoint = endpoint; + this._endpoint = this._endpoint + "/20230831"; + if (this.logger) + this.logger.info(`FleetAppsManagementOperationsClient endpoint set to ${this._endpoint}`); + } + + public get logger() { + return common.LOG.logger; + } + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) { + this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled; + if (this.logger) + this.logger.info( + `realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}` + ); + if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementOperationsClient.serviceEndpointTemplate, + this._region, + FleetAppsManagementOperationsClient.endpointServiceName + ); + } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementOperationsClient.serviceEndpointTemplate, + this._regionId, + FleetAppsManagementOperationsClient.endpointServiceName + ); + } + } + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. + * @param region The region of the service. + */ + public set region(region: common.Region) { + this._region = region; + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementOperationsClient.serviceEndpointTemplate, + region, + FleetAppsManagementOperationsClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_STRING; + } + + /** + * Sets the regionId to call (ex, 'us-phoenix-1'). + * + * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. + * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 + * and then call {@link #endpoint(String) endpoint}. + * @param regionId The public region ID. + */ + public set regionId(regionId: string) { + this._regionId = regionId; + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementOperationsClient.serviceEndpointTemplate, + regionId, + FleetAppsManagementOperationsClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING; + } + + /** + * Creates a new FleetAppsManagementOperationsWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + public createWaiters(config?: common.WaiterConfiguration): FleetAppsManagementOperationsWaiter { + this._waiters = new FleetAppsManagementOperationsWaiter(this, config); + return this._waiters; + } + + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + public getWaiters(): FleetAppsManagementOperationsWaiter { + if (this._waiters) { + return this._waiters; + } + throw Error("Waiters do not exist. Please create waiters."); + } + + /** + * Shutdown the circuit breaker used by the client when it is no longer needed + */ + public shutdownCircuitBreaker() { + if (this._circuitBreaker) { + this._circuitBreaker.shutdown(); + } + } + + /** + * Close the client once it is no longer needed + */ + public close() { + this.shutdownCircuitBreaker(); + } + + /** + * Creates a new Patch. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CreatePatchRequest + * @return CreatePatchResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreatePatch.ts.html |here} to see how to use CreatePatch API. + */ + public async createPatch( + createPatchRequest: requests.CreatePatchRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#createPatch."); + const operationName = "createPatch"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createPatchRequest.opcRetryToken, + "opc-request-id": createPatchRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + createPatchRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/patches", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createPatchRequest.createPatchDetails, + "CreatePatchDetails", + model.CreatePatchDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "patch", + bodyModel: model.Patch, + type: "model.Patch", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Create a SchedulerDefinition to perform lifecycle operations. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CreateSchedulerDefinitionRequest + * @return CreateSchedulerDefinitionResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateSchedulerDefinition.ts.html |here} to see how to use CreateSchedulerDefinition API. + */ + public async createSchedulerDefinition( + createSchedulerDefinitionRequest: requests.CreateSchedulerDefinitionRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#createSchedulerDefinition." + ); + const operationName = "createSchedulerDefinition"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createSchedulerDefinitionRequest.opcRetryToken, + "opc-request-id": createSchedulerDefinitionRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + createSchedulerDefinitionRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerDefinitions", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createSchedulerDefinitionRequest.createSchedulerDefinitionDetails, + "CreateSchedulerDefinitionDetails", + model.CreateSchedulerDefinitionDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schedulerDefinition", + bodyModel: model.SchedulerDefinition, + type: "model.SchedulerDefinition", + responseHeaders: [ + { + value: response.headers.get("location"), + key: "location", + dataType: "string" + }, + { + value: response.headers.get("content-location"), + key: "contentLocation", + dataType: "string" + }, + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Deletes a Patch resource by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeletePatchRequest + * @return DeletePatchResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeletePatch.ts.html |here} to see how to use DeletePatch API. + */ + public async deletePatch( + deletePatchRequest: requests.DeletePatchRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#deletePatch."); + const operationName = "deletePatch"; + const apiReferenceLink = ""; + const pathParams = { + "{patchId}": deletePatchRequest.patchId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deletePatchRequest.ifMatch, + "opc-request-id": deletePatchRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deletePatchRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/patches/{patchId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Deletes a SchedulerDefinition resource by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeleteSchedulerDefinitionRequest + * @return DeleteSchedulerDefinitionResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteSchedulerDefinition.ts.html |here} to see how to use DeleteSchedulerDefinition API. + */ + public async deleteSchedulerDefinition( + deleteSchedulerDefinitionRequest: requests.DeleteSchedulerDefinitionRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#deleteSchedulerDefinition." + ); + const operationName = "deleteSchedulerDefinition"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerDefinitionId}": deleteSchedulerDefinitionRequest.schedulerDefinitionId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deleteSchedulerDefinitionRequest.ifMatch, + "opc-request-id": deleteSchedulerDefinitionRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deleteSchedulerDefinitionRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerDefinitions/{schedulerDefinitionId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Delete a lifecycle operation schedule in Fleet Application Management. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeleteSchedulerJobRequest + * @return DeleteSchedulerJobResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteSchedulerJob.ts.html |here} to see how to use DeleteSchedulerJob API. + */ + public async deleteSchedulerJob( + deleteSchedulerJobRequest: requests.DeleteSchedulerJobRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#deleteSchedulerJob." + ); + const operationName = "deleteSchedulerJob"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": deleteSchedulerJobRequest.schedulerJobId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deleteSchedulerJobRequest.ifMatch, + "opc-request-id": deleteSchedulerJobRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deleteSchedulerJobRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerJobs/{schedulerJobId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Generate Compliance Report + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ExportComplianceReportRequest + * @return ExportComplianceReportResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ExportComplianceReport.ts.html |here} to see how to use ExportComplianceReport API. + */ + public async exportComplianceReport( + exportComplianceReportRequest: requests.ExportComplianceReportRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#exportComplianceReport." + ); + const operationName = "exportComplianceReport"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": exportComplianceReportRequest.opcRetryToken, + "if-match": exportComplianceReportRequest.ifMatch, + "opc-request-id": exportComplianceReportRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + exportComplianceReportRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/complianceRecords/actions/exportComplianceReport", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + exportComplianceReportRequest.exportComplianceReportDetails, + "ExportComplianceReportDetails", + model.ExportComplianceReportDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + + body: response.body!, + bodyKey: "value", + bodyModel: "string", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("content-length"), + key: "contentLength", + dataType: "number" + }, + { + value: response.headers.get("content-type"), + key: "contentType", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Get Task Execution by Identifier for a Resource within an action group. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetExecutionRequest + * @return GetExecutionResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetExecution.ts.html |here} to see how to use GetExecution API. + */ + public async getExecution( + getExecutionRequest: requests.GetExecutionRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#getExecution."); + const operationName = "getExecution"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": getExecutionRequest.schedulerJobId, + "{jobActivityId}": getExecutionRequest.jobActivityId, + "{resourceId}": getExecutionRequest.resourceId, + "{executionId}": getExecutionRequest.executionId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getExecutionRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getExecutionRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: + "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions/{executionId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "execution", + bodyModel: model.Execution, + type: "model.Execution", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets activity details by identifier for a job. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetJobActivityRequest + * @return GetJobActivityResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetJobActivity.ts.html |here} to see how to use GetJobActivity API. + */ + public async getJobActivity( + getJobActivityRequest: requests.GetJobActivityRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#getJobActivity."); + const operationName = "getJobActivity"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": getJobActivityRequest.schedulerJobId, + "{jobActivityId}": getJobActivityRequest.jobActivityId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getJobActivityRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getJobActivityRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "jobActivity", + bodyModel: model.JobActivity, + type: "model.JobActivity", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a Patch by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetPatchRequest + * @return GetPatchResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetPatch.ts.html |here} to see how to use GetPatch API. + */ + public async getPatch( + getPatchRequest: requests.GetPatchRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#getPatch."); + const operationName = "getPatch"; + const apiReferenceLink = ""; + const pathParams = { + "{patchId}": getPatchRequest.patchId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getPatchRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getPatchRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/patches/{patchId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "patch", + bodyModel: model.Patch, + type: "model.Patch", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Get the details of a SchedulerDefinition that performs lifecycle management operations. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetSchedulerDefinitionRequest + * @return GetSchedulerDefinitionResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetSchedulerDefinition.ts.html |here} to see how to use GetSchedulerDefinition API. + */ + public async getSchedulerDefinition( + getSchedulerDefinitionRequest: requests.GetSchedulerDefinitionRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#getSchedulerDefinition." + ); + const operationName = "getSchedulerDefinition"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerDefinitionId}": getSchedulerDefinitionRequest.schedulerDefinitionId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getSchedulerDefinitionRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getSchedulerDefinitionRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerDefinitions/{schedulerDefinitionId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schedulerDefinition", + bodyModel: model.SchedulerDefinition, + type: "model.SchedulerDefinition", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Get the details of a lifecycle management operations job in Fleet Application Management. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetSchedulerJobRequest + * @return GetSchedulerJobResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetSchedulerJob.ts.html |here} to see how to use GetSchedulerJob API. + */ + public async getSchedulerJob( + getSchedulerJobRequest: requests.GetSchedulerJobRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#getSchedulerJob."); + const operationName = "getSchedulerJob"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": getSchedulerJobRequest.schedulerJobId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getSchedulerJobRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getSchedulerJobRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerJobs/{schedulerJobId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schedulerJob", + bodyModel: model.SchedulerJob, + type: "model.SchedulerJob", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a list of complianceDetails. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListComplianceRecordsRequest + * @return ListComplianceRecordsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListComplianceRecords.ts.html |here} to see how to use ListComplianceRecords API. + */ + public async listComplianceRecords( + listComplianceRecordsRequest: requests.ListComplianceRecordsRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#listComplianceRecords." + ); + const operationName = "listComplianceRecords"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listComplianceRecordsRequest.compartmentId, + "resourceId": listComplianceRecordsRequest.resourceId, + "entityId": listComplianceRecordsRequest.entityId, + "productName": listComplianceRecordsRequest.productName, + "productStack": listComplianceRecordsRequest.productStack, + "targetName": listComplianceRecordsRequest.targetName, + "complianceState": listComplianceRecordsRequest.complianceState, + "limit": listComplianceRecordsRequest.limit, + "page": listComplianceRecordsRequest.page, + "sortOrder": listComplianceRecordsRequest.sortOrder, + "sortBy": listComplianceRecordsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listComplianceRecordsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listComplianceRecordsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/complianceRecords", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "complianceRecordCollection", + bodyModel: model.ComplianceRecordCollection, + type: "model.ComplianceRecordCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of Task Executions for a Resource. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListExecutionsRequest + * @return ListExecutionsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListExecutions.ts.html |here} to see how to use ListExecutions API. + */ + public async listExecutions( + listExecutionsRequest: requests.ListExecutionsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#listExecutions."); + const operationName = "listExecutions"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": listExecutionsRequest.schedulerJobId, + "{jobActivityId}": listExecutionsRequest.jobActivityId, + "{resourceId}": listExecutionsRequest.resourceId + }; + + const queryParams = { + "resourceTaskId": listExecutionsRequest.resourceTaskId, + "stepName": listExecutionsRequest.stepName, + "targetName": listExecutionsRequest.targetName, + "sequence": listExecutionsRequest.sequence, + "limit": listExecutionsRequest.limit, + "page": listExecutionsRequest.page, + "sortOrder": listExecutionsRequest.sortOrder, + "sortBy": listExecutionsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listExecutionsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listExecutionsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: + "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "executionCollection", + bodyModel: model.ExecutionCollection, + type: "model.ExecutionCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of Patches. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListPatchesRequest + * @return ListPatchesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListPatches.ts.html |here} to see how to use ListPatches API. + */ + public async listPatches( + listPatchesRequest: requests.ListPatchesRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#listPatches."); + const operationName = "listPatches"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listPatchesRequest.compartmentId, + "productId": listPatchesRequest.productId, + "version": listPatchesRequest.version, + "type": listPatchesRequest.type, + "patchTypeId": listPatchesRequest.patchTypeId, + "name": listPatchesRequest.name, + "id": listPatchesRequest.id, + "timeReleasedGreaterThanOrEqualTo": listPatchesRequest.timeReleasedGreaterThanOrEqualTo, + "timeReleasedLessThan": listPatchesRequest.timeReleasedLessThan, + "shouldCompliancePolicyRulesBeApplied": + listPatchesRequest.shouldCompliancePolicyRulesBeApplied, + "limit": listPatchesRequest.limit, + "page": listPatchesRequest.page, + "lifecycleState": listPatchesRequest.lifecycleState, + "sortBy": listPatchesRequest.sortBy, + "sortOrder": listPatchesRequest.sortOrder + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listPatchesRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listPatchesRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/patches", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "patchCollection", + bodyModel: model.PatchCollection, + type: "model.PatchCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of resources for an Activity Execution. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListResourcesRequest + * @return ListResourcesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListResources.ts.html |here} to see how to use ListResources API. + */ + public async listResources( + listResourcesRequest: requests.ListResourcesRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#listResources."); + const operationName = "listResources"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": listResourcesRequest.schedulerJobId, + "{jobActivityId}": listResourcesRequest.jobActivityId + }; + + const queryParams = { + "resourceTaskId": listResourcesRequest.resourceTaskId, + "stepName": listResourcesRequest.stepName, + "targetName": listResourcesRequest.targetName, + "sequence": listResourcesRequest.sequence, + "limit": listResourcesRequest.limit, + "page": listResourcesRequest.page, + "sortOrder": listResourcesRequest.sortOrder, + "sortBy": listResourcesRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listResourcesRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listResourcesRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "resourceCollection", + bodyModel: model.ResourceCollection, + type: "model.ResourceCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of ScheduledFleets. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListScheduledFleetsRequest + * @return ListScheduledFleetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListScheduledFleets.ts.html |here} to see how to use ListScheduledFleets API. + */ + public async listScheduledFleets( + listScheduledFleetsRequest: requests.ListScheduledFleetsRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#listScheduledFleets." + ); + const operationName = "listScheduledFleets"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerDefinitionId}": listScheduledFleetsRequest.schedulerDefinitionId + }; + + const queryParams = { + "compartmentId": listScheduledFleetsRequest.compartmentId, + "displayName": listScheduledFleetsRequest.displayName, + "limit": listScheduledFleetsRequest.limit, + "page": listScheduledFleetsRequest.page, + "sortOrder": listScheduledFleetsRequest.sortOrder, + "sortBy": listScheduledFleetsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listScheduledFleetsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listScheduledFleetsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerDefinitions/{schedulerDefinitionId}/scheduledFleets", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "scheduledFleetCollection", + bodyModel: model.ScheduledFleetCollection, + type: "model.ScheduledFleetCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * List all lifecycle management schedules in Fleet Application Management. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListSchedulerDefinitionsRequest + * @return ListSchedulerDefinitionsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListSchedulerDefinitions.ts.html |here} to see how to use ListSchedulerDefinitions API. + */ + public async listSchedulerDefinitions( + listSchedulerDefinitionsRequest: requests.ListSchedulerDefinitionsRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#listSchedulerDefinitions." + ); + const operationName = "listSchedulerDefinitions"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listSchedulerDefinitionsRequest.compartmentId, + "lifecycleState": listSchedulerDefinitionsRequest.lifecycleState, + "displayName": listSchedulerDefinitionsRequest.displayName, + "product": listSchedulerDefinitionsRequest.product, + "id": listSchedulerDefinitionsRequest.id, + "maintenanceWindowId": listSchedulerDefinitionsRequest.maintenanceWindowId, + "runbookId": listSchedulerDefinitionsRequest.runbookId, + "fleetId": listSchedulerDefinitionsRequest.fleetId, + "limit": listSchedulerDefinitionsRequest.limit, + "page": listSchedulerDefinitionsRequest.page, + "sortOrder": listSchedulerDefinitionsRequest.sortOrder, + "sortBy": listSchedulerDefinitionsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listSchedulerDefinitionsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listSchedulerDefinitionsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerDefinitions", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schedulerDefinitionCollection", + bodyModel: model.SchedulerDefinitionCollection, + type: "model.SchedulerDefinitionCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; } } /** - * Close the client once it is no longer needed - */ - public close() { - this.shutdownCircuitBreaker(); - } - - /** - * Creates a new SchedulerDefinition. + * List scheduled lifecycle operation jobs in Fleet Application Management. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param CreateSchedulerDefinitionRequest - * @return CreateSchedulerDefinitionResponse + * @param ListSchedulerJobsRequest + * @return ListSchedulerJobsResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateSchedulerDefinition.ts.html |here} to see how to use CreateSchedulerDefinition API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListSchedulerJobs.ts.html |here} to see how to use ListSchedulerJobs API. */ - public async createSchedulerDefinition( - createSchedulerDefinitionRequest: requests.CreateSchedulerDefinitionRequest - ): Promise { + public async listSchedulerJobs( + listSchedulerJobsRequest: requests.ListSchedulerJobsRequest + ): Promise { if (this.logger) - this.logger.debug( - "Calling operation FleetAppsManagementOperationsClient#createSchedulerDefinition." - ); - const operationName = "createSchedulerDefinition"; + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#listSchedulerJobs."); + const operationName = "listSchedulerJobs"; const apiReferenceLink = ""; const pathParams = {}; - const queryParams = {}; + const queryParams = { + "compartmentId": listSchedulerJobsRequest.compartmentId, + "lifecycleState": listSchedulerJobsRequest.lifecycleState, + "fleetId": listSchedulerJobsRequest.fleetId, + "timeScheduledGreaterThanOrEqualTo": + listSchedulerJobsRequest.timeScheduledGreaterThanOrEqualTo, + "timeScheduledLessThan": listSchedulerJobsRequest.timeScheduledLessThan, + "isRemediationJobNeeded": listSchedulerJobsRequest.isRemediationJobNeeded, + "subState": listSchedulerJobsRequest.subState, + "displayName": listSchedulerJobsRequest.displayName, + "id": listSchedulerJobsRequest.id, + "defintionId": listSchedulerJobsRequest.defintionId, + "limit": listSchedulerJobsRequest.limit, + "page": listSchedulerJobsRequest.page, + "sortOrder": listSchedulerJobsRequest.sortOrder, + "sortBy": listSchedulerJobsRequest.sortBy + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-retry-token": createSchedulerDefinitionRequest.opcRetryToken, - "opc-request-id": createSchedulerDefinitionRequest.opcRequestId + "opc-request-id": listSchedulerJobsRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - createSchedulerDefinitionRequest.retryConfiguration, + listSchedulerJobsRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/schedulerDefinitions", - method: "POST", - bodyContent: common.ObjectSerializer.serialize( - createSchedulerDefinitionRequest.createSchedulerDefinitionDetails, - "CreateSchedulerDefinitionDetails", - model.CreateSchedulerDefinitionDetails.getJsonObj - ), + path: "/schedulerJobs", + method: "GET", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -4801,35 +7581,106 @@ export class FleetAppsManagementOperationsClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "schedulerDefinition", - bodyModel: model.SchedulerDefinition, - type: "model.SchedulerDefinition", + bodyKey: "schedulerJobCollection", + bodyModel: model.SchedulerJobCollection, + type: "model.SchedulerJobCollection", responseHeaders: [ { - value: response.headers.get("location"), - key: "location", - dataType: "string" - }, - { - value: response.headers.get("content-location"), - key: "contentLocation", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" }, { - value: response.headers.get("etag"), - key: "etag", + value: response.headers.get("opc-next-page"), + key: "opcNextPage", dataType: "string" - }, + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of Steps for an Activity Execution. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListStepsRequest + * @return ListStepsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListSteps.ts.html |here} to see how to use ListSteps API. + */ + public async listSteps( + listStepsRequest: requests.ListStepsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#listSteps."); + const operationName = "listSteps"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": listStepsRequest.schedulerJobId, + "{jobActivityId}": listStepsRequest.jobActivityId + }; + + const queryParams = { + "resourceTaskId": listStepsRequest.resourceTaskId, + "stepName": listStepsRequest.stepName, + "targetName": listStepsRequest.targetName, + "sequence": listStepsRequest.sequence, + "limit": listStepsRequest.limit, + "page": listStepsRequest.page, + "sortOrder": listStepsRequest.sortOrder, + "sortBy": listStepsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listStepsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listStepsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/steps", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "stepCollection", + bodyModel: model.StepCollection, + type: "model.StepCollection", + responseHeaders: [ { - value: response.headers.get("opc-work-request-id"), - key: "opcWorkRequestId", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" }, { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("opc-next-page"), + key: "opcNextPage", dataType: "string" } ] @@ -4842,46 +7693,53 @@ export class FleetAppsManagementOperationsClient { } /** - * Deletes a SchedulerDefinition resource by identifier + * Manage execution actions for a Job like retrying or pausing a task. + * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param DeleteSchedulerDefinitionRequest - * @return DeleteSchedulerDefinitionResponse + * @param ManageJobExecutionRequest + * @return ManageJobExecutionResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteSchedulerDefinition.ts.html |here} to see how to use DeleteSchedulerDefinition API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ManageJobExecution.ts.html |here} to see how to use ManageJobExecution API. */ - public async deleteSchedulerDefinition( - deleteSchedulerDefinitionRequest: requests.DeleteSchedulerDefinitionRequest - ): Promise { + public async manageJobExecution( + manageJobExecutionRequest: requests.ManageJobExecutionRequest + ): Promise { if (this.logger) this.logger.debug( - "Calling operation FleetAppsManagementOperationsClient#deleteSchedulerDefinition." + "Calling operation FleetAppsManagementOperationsClient#manageJobExecution." ); - const operationName = "deleteSchedulerDefinition"; + const operationName = "manageJobExecution"; const apiReferenceLink = ""; const pathParams = { - "{schedulerDefinitionId}": deleteSchedulerDefinitionRequest.schedulerDefinitionId + "{schedulerJobId}": manageJobExecutionRequest.schedulerJobId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deleteSchedulerDefinitionRequest.ifMatch, - "opc-request-id": deleteSchedulerDefinitionRequest.opcRequestId + "opc-retry-token": manageJobExecutionRequest.opcRetryToken, + "if-match": manageJobExecutionRequest.ifMatch, + "opc-request-id": manageJobExecutionRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deleteSchedulerDefinitionRequest.retryConfiguration, + manageJobExecutionRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/schedulerDefinitions/{schedulerDefinitionId}", - method: "DELETE", + path: "/schedulerJobs/{schedulerJobId}/actions/manageJobExecution", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + manageJobExecutionRequest.manageJobExecutionDetails, + "ManageJobExecutionDetails", + model.ManageJobExecutionDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -4895,8 +7753,13 @@ export class FleetAppsManagementOperationsClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, { value: response.headers.get("opc-request-id"), key: "opcRequestId", @@ -4912,46 +7775,49 @@ export class FleetAppsManagementOperationsClient { } /** - * Deletes a SchedulerJob resource by identifier + * Retrieve aggregated summary information of ComplianceRecords within a Tenancy. + * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param DeleteSchedulerJobRequest - * @return DeleteSchedulerJobResponse + * @param SummarizeComplianceRecordCountsRequest + * @return SummarizeComplianceRecordCountsResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteSchedulerJob.ts.html |here} to see how to use DeleteSchedulerJob API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/SummarizeComplianceRecordCounts.ts.html |here} to see how to use SummarizeComplianceRecordCounts API. */ - public async deleteSchedulerJob( - deleteSchedulerJobRequest: requests.DeleteSchedulerJobRequest - ): Promise { + public async summarizeComplianceRecordCounts( + summarizeComplianceRecordCountsRequest: requests.SummarizeComplianceRecordCountsRequest + ): Promise { if (this.logger) this.logger.debug( - "Calling operation FleetAppsManagementOperationsClient#deleteSchedulerJob." + "Calling operation FleetAppsManagementOperationsClient#summarizeComplianceRecordCounts." ); - const operationName = "deleteSchedulerJob"; + const operationName = "summarizeComplianceRecordCounts"; const apiReferenceLink = ""; - const pathParams = { - "{schedulerJobId}": deleteSchedulerJobRequest.schedulerJobId - }; + const pathParams = {}; - const queryParams = {}; + const queryParams = { + "compartmentId": summarizeComplianceRecordCountsRequest.compartmentId, + "limit": summarizeComplianceRecordCountsRequest.limit, + "page": summarizeComplianceRecordCountsRequest.page, + "sortOrder": summarizeComplianceRecordCountsRequest.sortOrder + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": deleteSchedulerJobRequest.ifMatch, - "opc-request-id": deleteSchedulerJobRequest.opcRequestId + "opc-request-id": summarizeComplianceRecordCountsRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - deleteSchedulerJobRequest.retryConfiguration, + summarizeComplianceRecordCountsRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/schedulerJobs/{schedulerJobId}", - method: "DELETE", + path: "/complianceRecordCounts", + method: "GET", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -4965,12 +7831,21 @@ export class FleetAppsManagementOperationsClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, + body: await response.json(), + bodyKey: "complianceRecordAggregationCollection", + bodyModel: model.ComplianceRecordAggregationCollection, + type: "model.ComplianceRecordAggregationCollection", responseHeaders: [ { value: response.headers.get("opc-request-id"), key: "opcRequestId", dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" } ] }); @@ -4982,46 +7857,48 @@ export class FleetAppsManagementOperationsClient { } /** - * Gets a JobActivity by identifier + * Retrieve aggregated summary information of Managed Entities within a Tenancy. + * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param GetExecutionRequest - * @return GetExecutionResponse + * @param SummarizeManagedEntityCountsRequest + * @return SummarizeManagedEntityCountsResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetExecution.ts.html |here} to see how to use GetExecution API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/SummarizeManagedEntityCounts.ts.html |here} to see how to use SummarizeManagedEntityCounts API. */ - public async getExecution( - getExecutionRequest: requests.GetExecutionRequest - ): Promise { + public async summarizeManagedEntityCounts( + summarizeManagedEntityCountsRequest: requests.SummarizeManagedEntityCountsRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementOperationsClient#getExecution."); - const operationName = "getExecution"; + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#summarizeManagedEntityCounts." + ); + const operationName = "summarizeManagedEntityCounts"; const apiReferenceLink = ""; - const pathParams = { - "{schedulerJobId}": getExecutionRequest.schedulerJobId, - "{jobActivityId}": getExecutionRequest.jobActivityId, - "{resourceId}": getExecutionRequest.resourceId, - "{executionId}": getExecutionRequest.executionId - }; + const pathParams = {}; - const queryParams = {}; + const queryParams = { + "compartmentId": summarizeManagedEntityCountsRequest.compartmentId, + "limit": summarizeManagedEntityCountsRequest.limit, + "page": summarizeManagedEntityCountsRequest.page, + "sortOrder": summarizeManagedEntityCountsRequest.sortOrder + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getExecutionRequest.opcRequestId + "opc-request-id": summarizeManagedEntityCountsRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getExecutionRequest.retryConfiguration, + summarizeManagedEntityCountsRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: - "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions/{executionId}", + path: "/managedEntityCounts", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -5036,20 +7913,20 @@ export class FleetAppsManagementOperationsClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "execution", - bodyModel: model.Execution, - type: "model.Execution", + bodyKey: "managedEntityAggregationCollection", + bodyModel: model.ManagedEntityAggregationCollection, + type: "model.ManagedEntityAggregationCollection", responseHeaders: [ { - value: response.headers.get("etag"), - key: "etag", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" }, { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("opc-next-page"), + key: "opcNextPage", dataType: "string" } ] @@ -5062,43 +7939,48 @@ export class FleetAppsManagementOperationsClient { } /** - * Gets a JobActivity by identifier + * Retrieve aggregated summary information of Scheduler Jobs within a Tenancy. + * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param GetJobActivityRequest - * @return GetJobActivityResponse + * @param SummarizeSchedulerJobCountsRequest + * @return SummarizeSchedulerJobCountsResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetJobActivity.ts.html |here} to see how to use GetJobActivity API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/SummarizeSchedulerJobCounts.ts.html |here} to see how to use SummarizeSchedulerJobCounts API. */ - public async getJobActivity( - getJobActivityRequest: requests.GetJobActivityRequest - ): Promise { + public async summarizeSchedulerJobCounts( + summarizeSchedulerJobCountsRequest: requests.SummarizeSchedulerJobCountsRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementOperationsClient#getJobActivity."); - const operationName = "getJobActivity"; + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#summarizeSchedulerJobCounts." + ); + const operationName = "summarizeSchedulerJobCounts"; const apiReferenceLink = ""; - const pathParams = { - "{schedulerJobId}": getJobActivityRequest.schedulerJobId, - "{jobActivityId}": getJobActivityRequest.jobActivityId - }; + const pathParams = {}; - const queryParams = {}; + const queryParams = { + "compartmentId": summarizeSchedulerJobCountsRequest.compartmentId, + "limit": summarizeSchedulerJobCountsRequest.limit, + "page": summarizeSchedulerJobCountsRequest.page, + "sortOrder": summarizeSchedulerJobCountsRequest.sortOrder + }; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getJobActivityRequest.opcRequestId + "opc-request-id": summarizeSchedulerJobCountsRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getJobActivityRequest.retryConfiguration, + summarizeSchedulerJobCountsRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}", + path: "/schedulerJobCounts", method: "GET", pathParams: pathParams, headerParams: headerParams, @@ -5112,21 +7994,21 @@ export class FleetAppsManagementOperationsClient { operationName, apiReferenceLink ); - const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "jobActivity", - bodyModel: model.JobActivity, - type: "model.JobActivity", + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schedulerJobAggregationCollection", + bodyModel: model.SchedulerJobAggregationCollection, + type: "model.SchedulerJobAggregationCollection", responseHeaders: [ { - value: response.headers.get("etag"), - key: "etag", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" }, { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("opc-next-page"), + key: "opcNextPage", dataType: "string" } ] @@ -5139,45 +8021,49 @@ export class FleetAppsManagementOperationsClient { } /** - * Gets a SchedulerDefinition by identifier + * Updates the Patch * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param GetSchedulerDefinitionRequest - * @return GetSchedulerDefinitionResponse + * @param UpdatePatchRequest + * @return UpdatePatchResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetSchedulerDefinition.ts.html |here} to see how to use GetSchedulerDefinition API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdatePatch.ts.html |here} to see how to use UpdatePatch API. */ - public async getSchedulerDefinition( - getSchedulerDefinitionRequest: requests.GetSchedulerDefinitionRequest - ): Promise { + public async updatePatch( + updatePatchRequest: requests.UpdatePatchRequest + ): Promise { if (this.logger) - this.logger.debug( - "Calling operation FleetAppsManagementOperationsClient#getSchedulerDefinition." - ); - const operationName = "getSchedulerDefinition"; + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#updatePatch."); + const operationName = "updatePatch"; const apiReferenceLink = ""; const pathParams = { - "{schedulerDefinitionId}": getSchedulerDefinitionRequest.schedulerDefinitionId + "{patchId}": updatePatchRequest.patchId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getSchedulerDefinitionRequest.opcRequestId + "if-match": updatePatchRequest.ifMatch, + "opc-request-id": updatePatchRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getSchedulerDefinitionRequest.retryConfiguration, + updatePatchRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/schedulerDefinitions/{schedulerDefinitionId}", - method: "GET", + path: "/patches/{patchId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updatePatchRequest.updatePatchDetails, + "UpdatePatchDetails", + model.UpdatePatchDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -5191,15 +8077,11 @@ export class FleetAppsManagementOperationsClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "schedulerDefinition", - bodyModel: model.SchedulerDefinition, - type: "model.SchedulerDefinition", + responseObject: {}, responseHeaders: [ { - value: response.headers.get("etag"), - key: "etag", + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", dataType: "string" }, { @@ -5217,43 +8099,51 @@ export class FleetAppsManagementOperationsClient { } /** - * Gets a SchedulerJob by identifier + * Update the details of a SchedulerDefinition that performs lifecycle management operations. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param GetSchedulerJobRequest - * @return GetSchedulerJobResponse + * @param UpdateSchedulerDefinitionRequest + * @return UpdateSchedulerDefinitionResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetSchedulerJob.ts.html |here} to see how to use GetSchedulerJob API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateSchedulerDefinition.ts.html |here} to see how to use UpdateSchedulerDefinition API. */ - public async getSchedulerJob( - getSchedulerJobRequest: requests.GetSchedulerJobRequest - ): Promise { + public async updateSchedulerDefinition( + updateSchedulerDefinitionRequest: requests.UpdateSchedulerDefinitionRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementOperationsClient#getSchedulerJob."); - const operationName = "getSchedulerJob"; + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#updateSchedulerDefinition." + ); + const operationName = "updateSchedulerDefinition"; const apiReferenceLink = ""; const pathParams = { - "{schedulerJobId}": getSchedulerJobRequest.schedulerJobId + "{schedulerDefinitionId}": updateSchedulerDefinitionRequest.schedulerDefinitionId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": getSchedulerJobRequest.opcRequestId + "if-match": updateSchedulerDefinitionRequest.ifMatch, + "opc-request-id": updateSchedulerDefinitionRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - getSchedulerJobRequest.retryConfiguration, + updateSchedulerDefinitionRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/schedulerJobs/{schedulerJobId}", - method: "GET", + path: "/schedulerDefinitions/{schedulerDefinitionId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateSchedulerDefinitionRequest.updateSchedulerDefinitionDetails, + "UpdateSchedulerDefinitionDetails", + model.UpdateSchedulerDefinitionDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -5267,15 +8157,11 @@ export class FleetAppsManagementOperationsClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "schedulerJob", - bodyModel: model.SchedulerJob, - type: "model.SchedulerJob", + responseObject: {}, responseHeaders: [ { - value: response.headers.get("etag"), - key: "etag", + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", dataType: "string" }, { @@ -5293,55 +8179,51 @@ export class FleetAppsManagementOperationsClient { } /** - * Returns a list of Task Executions for a Resource. + * Update a lifecycle operation job schedule in Fleet Application Management. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param ListExecutionsRequest - * @return ListExecutionsResponse + * @param UpdateSchedulerJobRequest + * @return UpdateSchedulerJobResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListExecutions.ts.html |here} to see how to use ListExecutions API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateSchedulerJob.ts.html |here} to see how to use UpdateSchedulerJob API. */ - public async listExecutions( - listExecutionsRequest: requests.ListExecutionsRequest - ): Promise { + public async updateSchedulerJob( + updateSchedulerJobRequest: requests.UpdateSchedulerJobRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementOperationsClient#listExecutions."); - const operationName = "listExecutions"; + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#updateSchedulerJob." + ); + const operationName = "updateSchedulerJob"; const apiReferenceLink = ""; const pathParams = { - "{schedulerJobId}": listExecutionsRequest.schedulerJobId, - "{jobActivityId}": listExecutionsRequest.jobActivityId, - "{resourceId}": listExecutionsRequest.resourceId + "{schedulerJobId}": updateSchedulerJobRequest.schedulerJobId }; - const queryParams = { - "resourceTaskId": listExecutionsRequest.resourceTaskId, - "stepName": listExecutionsRequest.stepName, - "targetName": listExecutionsRequest.targetName, - "sequence": listExecutionsRequest.sequence, - "limit": listExecutionsRequest.limit, - "page": listExecutionsRequest.page, - "sortOrder": listExecutionsRequest.sortOrder, - "sortBy": listExecutionsRequest.sortBy - }; + const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listExecutionsRequest.opcRequestId + "if-match": updateSchedulerJobRequest.ifMatch, + "opc-request-id": updateSchedulerJobRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listExecutionsRequest.retryConfiguration, + updateSchedulerJobRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: - "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions", - method: "GET", + path: "/schedulerJobs/{schedulerJobId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateSchedulerJobRequest.updateSchedulerJobDetails, + "UpdateSchedulerJobDetails", + model.UpdateSchedulerJobDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -5355,20 +8237,20 @@ export class FleetAppsManagementOperationsClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "executionCollection", - bodyModel: model.ExecutionCollection, - type: "model.ExecutionCollection", + bodyKey: "schedulerJob", + bodyModel: model.SchedulerJob, + type: "model.SchedulerJob", responseHeaders: [ { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" } ] @@ -5379,144 +8261,244 @@ export class FleetAppsManagementOperationsClient { throw err; } } +} +export enum FleetAppsManagementRunbooksApiKeys {} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export class FleetAppsManagementRunbooksClient { + protected static serviceEndpointTemplate = "https://fams.{region}.oci.{secondLevelDomain}"; + protected static endpointServiceName = ""; + protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined; + protected "_endpoint": string = ""; + protected "_defaultHeaders": any = {}; + protected "_waiters": FleetAppsManagementRunbooksWaiter; + protected "_clientConfiguration": common.ClientConfiguration; + protected _circuitBreaker: typeof Breaker | null = null; + protected _httpOptions: any = undefined; + protected _bodyDuplexMode: any = undefined; + public targetService = "FleetAppsManagementRunbooks"; + protected _regionId: string = ""; + protected "_region": common.Region; + protected _lastSetRegionOrRegionId: string = ""; + + protected _httpClient: common.HttpClient; + + constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) { + const requestSigner = params.authenticationDetailsProvider + ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) + : null; + if (clientConfiguration) { + this._clientConfiguration = clientConfiguration; + this._circuitBreaker = clientConfiguration.circuitBreaker + ? clientConfiguration.circuitBreaker!.circuit + : null; + this._httpOptions = clientConfiguration.httpOptions + ? clientConfiguration.httpOptions + : undefined; + this._bodyDuplexMode = clientConfiguration.bodyDuplexMode + ? clientConfiguration.bodyDuplexMode + : undefined; + } + + if (!developerToolConfiguration.isServiceEnabled("fleetappsmanagement")) { + let errmsg = + "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : "; + throw errmsg.concat("fleetappsmanagement"); + } + + // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker + const specCircuitBreakerEnabled = true; + if ( + !this._circuitBreaker && + common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && + (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden) + ) { + this._circuitBreaker = new common.CircuitBreaker().circuit; + } + this._httpClient = + params.httpClient || + new common.FetchHttpClient( + requestSigner, + this._circuitBreaker, + this._httpOptions, + this._bodyDuplexMode + ); + + if ( + params.authenticationDetailsProvider && + common.isRegionProvider(params.authenticationDetailsProvider) + ) { + const provider: common.RegionProvider = params.authenticationDetailsProvider; + if (provider.getRegion()) { + this.region = provider.getRegion(); + } + } + } + + /** + * Get the endpoint that is being used to call (ex, https://www.example.com). + */ + public get endpoint() { + return this._endpoint; + } + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + public set endpoint(endpoint: string) { + this._endpoint = endpoint; + this._endpoint = this._endpoint + "/20230831"; + if (this.logger) + this.logger.info(`FleetAppsManagementRunbooksClient endpoint set to ${this._endpoint}`); + } + + public get logger() { + return common.LOG.logger; + } + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) { + this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled; + if (this.logger) + this.logger.info( + `realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}` + ); + if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementRunbooksClient.serviceEndpointTemplate, + this._region, + FleetAppsManagementRunbooksClient.endpointServiceName + ); + } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementRunbooksClient.serviceEndpointTemplate, + this._regionId, + FleetAppsManagementRunbooksClient.endpointServiceName + ); + } + } /** - * Returns a list of ScheduledFleets - * - * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param ListScheduledFleetsRequest - * @return ListScheduledFleetsResponse - * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListScheduledFleets.ts.html |here} to see how to use ListScheduledFleets API. + * Sets the region to call (ex, Region.US_PHOENIX_1). + * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. + * @param region The region of the service. */ - public async listScheduledFleets( - listScheduledFleetsRequest: requests.ListScheduledFleetsRequest - ): Promise { - if (this.logger) - this.logger.debug( - "Calling operation FleetAppsManagementOperationsClient#listScheduledFleets." - ); - const operationName = "listScheduledFleets"; - const apiReferenceLink = ""; - const pathParams = { - "{schedulerDefinitionId}": listScheduledFleetsRequest.schedulerDefinitionId - }; + public set region(region: common.Region) { + this._region = region; + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementRunbooksClient.serviceEndpointTemplate, + region, + FleetAppsManagementRunbooksClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_STRING; + } - const queryParams = { - "compartmentId": listScheduledFleetsRequest.compartmentId, - "displayName": listScheduledFleetsRequest.displayName, - "limit": listScheduledFleetsRequest.limit, - "page": listScheduledFleetsRequest.page, - "sortOrder": listScheduledFleetsRequest.sortOrder, - "sortBy": listScheduledFleetsRequest.sortBy - }; + /** + * Sets the regionId to call (ex, 'us-phoenix-1'). + * + * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. + * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 + * and then call {@link #endpoint(String) endpoint}. + * @param regionId The public region ID. + */ + public set regionId(regionId: string) { + this._regionId = regionId; + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementRunbooksClient.serviceEndpointTemplate, + regionId, + FleetAppsManagementRunbooksClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING; + } - let headerParams = { - "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listScheduledFleetsRequest.opcRequestId - }; + /** + * Creates a new FleetAppsManagementRunbooksWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + public createWaiters(config?: common.WaiterConfiguration): FleetAppsManagementRunbooksWaiter { + this._waiters = new FleetAppsManagementRunbooksWaiter(this, config); + return this._waiters; + } - const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; - const retrier = GenericRetrier.createPreferredRetrier( - this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listScheduledFleetsRequest.retryConfiguration, - specRetryConfiguration - ); - if (this.logger) retrier.logger = this.logger; - const request = await composeRequest({ - baseEndpoint: this._endpoint, - defaultHeaders: this._defaultHeaders, - path: "/schedulerDefinitions/{schedulerDefinitionId}/scheduledFleets", - method: "GET", - pathParams: pathParams, - headerParams: headerParams, - queryParams: queryParams - }); - try { - const response = await retrier.makeServiceCall( - this._httpClient, - request, - this.targetService, - operationName, - apiReferenceLink - ); - const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "scheduledFleetCollection", - bodyModel: model.ScheduledFleetCollection, - type: "model.ScheduledFleetCollection", - responseHeaders: [ - { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", - dataType: "string" - }, - { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", - dataType: "string" - } - ] - }); + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + public getWaiters(): FleetAppsManagementRunbooksWaiter { + if (this._waiters) { + return this._waiters; + } + throw Error("Waiters do not exist. Please create waiters."); + } - return sdkResponse; - } catch (err) { - throw err; + /** + * Shutdown the circuit breaker used by the client when it is no longer needed + */ + public shutdownCircuitBreaker() { + if (this._circuitBreaker) { + this._circuitBreaker.shutdown(); } } /** - * Returns a list of SchedulerDefinitions. + * Close the client once it is no longer needed + */ + public close() { + this.shutdownCircuitBreaker(); + } + + /** + * Creates a new Runbook. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param ListSchedulerDefinitionsRequest - * @return ListSchedulerDefinitionsResponse + * @param CreateRunbookRequest + * @return CreateRunbookResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListSchedulerDefinitions.ts.html |here} to see how to use ListSchedulerDefinitions API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateRunbook.ts.html |here} to see how to use CreateRunbook API. */ - public async listSchedulerDefinitions( - listSchedulerDefinitionsRequest: requests.ListSchedulerDefinitionsRequest - ): Promise { + public async createRunbook( + createRunbookRequest: requests.CreateRunbookRequest + ): Promise { if (this.logger) - this.logger.debug( - "Calling operation FleetAppsManagementOperationsClient#listSchedulerDefinitions." - ); - const operationName = "listSchedulerDefinitions"; + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#createRunbook."); + const operationName = "createRunbook"; const apiReferenceLink = ""; const pathParams = {}; - const queryParams = { - "compartmentId": listSchedulerDefinitionsRequest.compartmentId, - "lifecycleState": listSchedulerDefinitionsRequest.lifecycleState, - "displayName": listSchedulerDefinitionsRequest.displayName, - "product": listSchedulerDefinitionsRequest.product, - "id": listSchedulerDefinitionsRequest.id, - "maintenanceWindowId": listSchedulerDefinitionsRequest.maintenanceWindowId, - "fleetId": listSchedulerDefinitionsRequest.fleetId, - "limit": listSchedulerDefinitionsRequest.limit, - "page": listSchedulerDefinitionsRequest.page, - "sortOrder": listSchedulerDefinitionsRequest.sortOrder, - "sortBy": listSchedulerDefinitionsRequest.sortBy - }; + const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listSchedulerDefinitionsRequest.opcRequestId + "opc-retry-token": createRunbookRequest.opcRetryToken, + "opc-request-id": createRunbookRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listSchedulerDefinitionsRequest.retryConfiguration, + createRunbookRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/schedulerDefinitions", - method: "GET", + path: "/runbooks", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createRunbookRequest.createRunbookDetails, + "CreateRunbookDetails", + model.CreateRunbookDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -5530,26 +8512,36 @@ export class FleetAppsManagementOperationsClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "schedulerDefinitionCollection", - bodyModel: model.SchedulerDefinitionCollection, - type: "model.SchedulerDefinitionCollection", + bodyKey: "runbook", + bodyModel: model.Runbook, + type: "model.Runbook", responseHeaders: [ { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("location"), + key: "location", dataType: "string" }, { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("content-location"), + key: "contentLocation", dataType: "string" }, { - value: response.headers.get("opc-total-items"), - key: "opcTotalItems", - dataType: "number" + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" } ] }); @@ -5561,57 +8553,48 @@ export class FleetAppsManagementOperationsClient { } /** - * Returns a list of SchedulerJobs. + * Creates a new Task. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param ListSchedulerJobsRequest - * @return ListSchedulerJobsResponse + * @param CreateTaskRecordRequest + * @return CreateTaskRecordResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListSchedulerJobs.ts.html |here} to see how to use ListSchedulerJobs API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateTaskRecord.ts.html |here} to see how to use CreateTaskRecord API. */ - public async listSchedulerJobs( - listSchedulerJobsRequest: requests.ListSchedulerJobsRequest - ): Promise { + public async createTaskRecord( + createTaskRecordRequest: requests.CreateTaskRecordRequest + ): Promise { if (this.logger) - this.logger.debug("Calling operation FleetAppsManagementOperationsClient#listSchedulerJobs."); - const operationName = "listSchedulerJobs"; + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#createTaskRecord."); + const operationName = "createTaskRecord"; const apiReferenceLink = ""; const pathParams = {}; - const queryParams = { - "compartmentId": listSchedulerJobsRequest.compartmentId, - "lifecycleState": listSchedulerJobsRequest.lifecycleState, - "fleetId": listSchedulerJobsRequest.fleetId, - "timeScheduledGreaterThanOrEqualTo": - listSchedulerJobsRequest.timeScheduledGreaterThanOrEqualTo, - "timeScheduledLessThan": listSchedulerJobsRequest.timeScheduledLessThan, - "isRemediationJobNeeded": listSchedulerJobsRequest.isRemediationJobNeeded, - "displayName": listSchedulerJobsRequest.displayName, - "id": listSchedulerJobsRequest.id, - "defintionId": listSchedulerJobsRequest.defintionId, - "limit": listSchedulerJobsRequest.limit, - "page": listSchedulerJobsRequest.page, - "sortOrder": listSchedulerJobsRequest.sortOrder, - "sortBy": listSchedulerJobsRequest.sortBy - }; + const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "opc-request-id": listSchedulerJobsRequest.opcRequestId + "opc-retry-token": createTaskRecordRequest.opcRetryToken, + "opc-request-id": createTaskRecordRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - listSchedulerJobsRequest.retryConfiguration, + createTaskRecordRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/schedulerJobs", - method: "GET", + path: "/taskRecords", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createTaskRecordRequest.createTaskRecordDetails, + "CreateTaskRecordDetails", + model.CreateTaskRecordDetails.getJsonObj + ), pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -5625,20 +8608,20 @@ export class FleetAppsManagementOperationsClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, body: await response.json(), - bodyKey: "schedulerJobCollection", - bodyModel: model.SchedulerJobCollection, - type: "model.SchedulerJobCollection", + bodyKey: "taskRecord", + bodyModel: model.TaskRecord, + type: "model.TaskRecord", responseHeaders: [ { - value: response.headers.get("opc-request-id"), - key: "opcRequestId", + value: response.headers.get("etag"), + key: "etag", dataType: "string" }, { - value: response.headers.get("opc-next-page"), - key: "opcNextPage", + value: response.headers.get("opc-request-id"), + key: "opcRequestId", dataType: "string" } ] @@ -5651,51 +8634,44 @@ export class FleetAppsManagementOperationsClient { } /** - * Updates the SchedulerDefinition + * Deletes a Runbook resource by identifier * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param UpdateSchedulerDefinitionRequest - * @return UpdateSchedulerDefinitionResponse + * @param DeleteRunbookRequest + * @return DeleteRunbookResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateSchedulerDefinition.ts.html |here} to see how to use UpdateSchedulerDefinition API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteRunbook.ts.html |here} to see how to use DeleteRunbook API. */ - public async updateSchedulerDefinition( - updateSchedulerDefinitionRequest: requests.UpdateSchedulerDefinitionRequest - ): Promise { + public async deleteRunbook( + deleteRunbookRequest: requests.DeleteRunbookRequest + ): Promise { if (this.logger) - this.logger.debug( - "Calling operation FleetAppsManagementOperationsClient#updateSchedulerDefinition." - ); - const operationName = "updateSchedulerDefinition"; + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#deleteRunbook."); + const operationName = "deleteRunbook"; const apiReferenceLink = ""; const pathParams = { - "{schedulerDefinitionId}": updateSchedulerDefinitionRequest.schedulerDefinitionId + "{runbookId}": deleteRunbookRequest.runbookId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": updateSchedulerDefinitionRequest.ifMatch, - "opc-request-id": updateSchedulerDefinitionRequest.opcRequestId + "if-match": deleteRunbookRequest.ifMatch, + "opc-request-id": deleteRunbookRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - updateSchedulerDefinitionRequest.retryConfiguration, + deleteRunbookRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/schedulerDefinitions/{schedulerDefinitionId}", - method: "PUT", - bodyContent: common.ObjectSerializer.serialize( - updateSchedulerDefinitionRequest.updateSchedulerDefinitionDetails, - "UpdateSchedulerDefinitionDetails", - model.UpdateSchedulerDefinitionDetails.getJsonObj - ), + path: "/runbooks/{runbookId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -5709,7 +8685,7 @@ export class FleetAppsManagementOperationsClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, + responseObject: {}, responseHeaders: [ { value: response.headers.get("opc-work-request-id"), @@ -5731,51 +8707,44 @@ export class FleetAppsManagementOperationsClient { } /** - * Updates the SchedulerJob + * Deletes a Task Record resource by identifier * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. - * @param UpdateSchedulerJobRequest - * @return UpdateSchedulerJobResponse + * @param DeleteTaskRecordRequest + * @return DeleteTaskRecordResponse * @throws OciError when an error occurs - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateSchedulerJob.ts.html |here} to see how to use UpdateSchedulerJob API. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteTaskRecord.ts.html |here} to see how to use DeleteTaskRecord API. */ - public async updateSchedulerJob( - updateSchedulerJobRequest: requests.UpdateSchedulerJobRequest - ): Promise { + public async deleteTaskRecord( + deleteTaskRecordRequest: requests.DeleteTaskRecordRequest + ): Promise { if (this.logger) - this.logger.debug( - "Calling operation FleetAppsManagementOperationsClient#updateSchedulerJob." - ); - const operationName = "updateSchedulerJob"; + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#deleteTaskRecord."); + const operationName = "deleteTaskRecord"; const apiReferenceLink = ""; const pathParams = { - "{schedulerJobId}": updateSchedulerJobRequest.schedulerJobId + "{taskRecordId}": deleteTaskRecordRequest.taskRecordId }; const queryParams = {}; let headerParams = { "Content-Type": common.Constants.APPLICATION_JSON, - "if-match": updateSchedulerJobRequest.ifMatch, - "opc-request-id": updateSchedulerJobRequest.opcRequestId + "if-match": deleteTaskRecordRequest.ifMatch, + "opc-request-id": deleteTaskRecordRequest.opcRequestId }; const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; const retrier = GenericRetrier.createPreferredRetrier( this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, - updateSchedulerJobRequest.retryConfiguration, + deleteTaskRecordRequest.retryConfiguration, specRetryConfiguration ); if (this.logger) retrier.logger = this.logger; const request = await composeRequest({ baseEndpoint: this._endpoint, defaultHeaders: this._defaultHeaders, - path: "/schedulerJobs/{schedulerJobId}", - method: "PUT", - bodyContent: common.ObjectSerializer.serialize( - updateSchedulerJobRequest.updateSchedulerJobDetails, - "UpdateSchedulerJobDetails", - model.UpdateSchedulerJobDetails.getJsonObj - ), + path: "/taskRecords/{taskRecordId}", + method: "DELETE", pathParams: pathParams, headerParams: headerParams, queryParams: queryParams @@ -5789,15 +8758,11 @@ export class FleetAppsManagementOperationsClient { apiReferenceLink ); const sdkResponse = composeResponse({ - responseObject: {}, - body: await response.json(), - bodyKey: "schedulerJob", - bodyModel: model.SchedulerJob, - type: "model.SchedulerJob", + responseObject: {}, responseHeaders: [ { - value: response.headers.get("etag"), - key: "etag", + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", dataType: "string" }, { @@ -5806,210 +8771,16 @@ export class FleetAppsManagementOperationsClient { dataType: "string" } ] - }); - - return sdkResponse; - } catch (err) { - throw err; - } - } -} -export enum FleetAppsManagementRunbooksApiKeys {} -/** - * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. - */ -export class FleetAppsManagementRunbooksClient { - protected static serviceEndpointTemplate = "https://fams.{region}.oci.{secondLevelDomain}"; - protected static endpointServiceName = ""; - protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined; - protected "_endpoint": string = ""; - protected "_defaultHeaders": any = {}; - protected "_waiters": FleetAppsManagementRunbooksWaiter; - protected "_clientConfiguration": common.ClientConfiguration; - protected _circuitBreaker: typeof Breaker | null = null; - protected _httpOptions: any = undefined; - protected _bodyDuplexMode: any = undefined; - public targetService = "FleetAppsManagementRunbooks"; - protected _regionId: string = ""; - protected "_region": common.Region; - protected _lastSetRegionOrRegionId: string = ""; - - protected _httpClient: common.HttpClient; - - constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) { - const requestSigner = params.authenticationDetailsProvider - ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) - : null; - if (clientConfiguration) { - this._clientConfiguration = clientConfiguration; - this._circuitBreaker = clientConfiguration.circuitBreaker - ? clientConfiguration.circuitBreaker!.circuit - : null; - this._httpOptions = clientConfiguration.httpOptions - ? clientConfiguration.httpOptions - : undefined; - this._bodyDuplexMode = clientConfiguration.bodyDuplexMode - ? clientConfiguration.bodyDuplexMode - : undefined; - } - - if (!developerToolConfiguration.isServiceEnabled("fleetappsmanagement")) { - let errmsg = - "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : "; - throw errmsg.concat("fleetappsmanagement"); - } - - // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker - const specCircuitBreakerEnabled = true; - if ( - !this._circuitBreaker && - common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && - (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden) - ) { - this._circuitBreaker = new common.CircuitBreaker().circuit; - } - this._httpClient = - params.httpClient || - new common.FetchHttpClient( - requestSigner, - this._circuitBreaker, - this._httpOptions, - this._bodyDuplexMode - ); - - if ( - params.authenticationDetailsProvider && - common.isRegionProvider(params.authenticationDetailsProvider) - ) { - const provider: common.RegionProvider = params.authenticationDetailsProvider; - if (provider.getRegion()) { - this.region = provider.getRegion(); - } - } - } - - /** - * Get the endpoint that is being used to call (ex, https://www.example.com). - */ - public get endpoint() { - return this._endpoint; - } - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the service. - */ - public set endpoint(endpoint: string) { - this._endpoint = endpoint; - this._endpoint = this._endpoint + "/20230831"; - if (this.logger) - this.logger.info(`FleetAppsManagementRunbooksClient endpoint set to ${this._endpoint}`); - } - - public get logger() { - return common.LOG.logger; - } - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) { - this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled; - if (this.logger) - this.logger.info( - `realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}` - ); - if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) { - this.endpoint = common.EndpointBuilder.createEndpointFromRegion( - FleetAppsManagementRunbooksClient.serviceEndpointTemplate, - this._region, - FleetAppsManagementRunbooksClient.endpointServiceName - ); - } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) { - this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( - FleetAppsManagementRunbooksClient.serviceEndpointTemplate, - this._regionId, - FleetAppsManagementRunbooksClient.endpointServiceName - ); - } - } - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. - * @param region The region of the service. - */ - public set region(region: common.Region) { - this._region = region; - this.endpoint = common.EndpointBuilder.createEndpointFromRegion( - FleetAppsManagementRunbooksClient.serviceEndpointTemplate, - region, - FleetAppsManagementRunbooksClient.endpointServiceName - ); - this._lastSetRegionOrRegionId = common.Region.REGION_STRING; - } - - /** - * Sets the regionId to call (ex, 'us-phoenix-1'). - * - * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. - * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 - * and then call {@link #endpoint(String) endpoint}. - * @param regionId The public region ID. - */ - public set regionId(regionId: string) { - this._regionId = regionId; - this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( - FleetAppsManagementRunbooksClient.serviceEndpointTemplate, - regionId, - FleetAppsManagementRunbooksClient.endpointServiceName - ); - this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING; - } - - /** - * Creates a new FleetAppsManagementRunbooksWaiter for resources for this service. - * - * @param config The waiter configuration for termination and delay strategy - * @return The service waiters. - */ - public createWaiters(config?: common.WaiterConfiguration): FleetAppsManagementRunbooksWaiter { - this._waiters = new FleetAppsManagementRunbooksWaiter(this, config); - return this._waiters; - } - - /** - * Gets the waiters available for resources for this service. - * - * @return The service waiters. - */ - public getWaiters(): FleetAppsManagementRunbooksWaiter { - if (this._waiters) { - return this._waiters; - } - throw Error("Waiters do not exist. Please create waiters."); - } - - /** - * Shutdown the circuit breaker used by the client when it is no longer needed - */ - public shutdownCircuitBreaker() { - if (this._circuitBreaker) { - this._circuitBreaker.shutdown(); - } - } + }); - /** - * Close the client once it is no longer needed - */ - public close() { - this.shutdownCircuitBreaker(); + return sdkResponse; + } catch (err) { + throw err; + } } /** - * Gets a Runbook by identifier + * Get the details of a runbook in Fleet Application Management. * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param GetRunbookRequest * @return GetRunbookResponse @@ -6085,7 +8856,7 @@ export class FleetAppsManagementRunbooksClient { } /** - * Gets a TaskRecord by identifier + * Gets a Task by identifier * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param GetTaskRecordRequest * @return GetTaskRecordResponse @@ -6161,7 +8932,7 @@ export class FleetAppsManagementRunbooksClient { } /** - * Returns a list of Runbooks. + * List runbooks in Fleet Application Management. * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param ListRunbooksRequest @@ -6333,4 +9104,320 @@ export class FleetAppsManagementRunbooksClient { throw err; } } + + /** + * Publish a Runbook. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param PublishRunbookRequest + * @return PublishRunbookResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/PublishRunbook.ts.html |here} to see how to use PublishRunbook API. + */ + public async publishRunbook( + publishRunbookRequest: requests.PublishRunbookRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#publishRunbook."); + const operationName = "publishRunbook"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": publishRunbookRequest.opcRetryToken, + "if-match": publishRunbookRequest.ifMatch, + "opc-request-id": publishRunbookRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + publishRunbookRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/runbooks/actions/publishRunbook", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + publishRunbookRequest.publishRunbookDetails, + "PublishRunbookDetails", + model.PublishRunbookDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Publish a Runbook. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param SetDefaultRunbookRequest + * @return SetDefaultRunbookResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/SetDefaultRunbook.ts.html |here} to see how to use SetDefaultRunbook API. + */ + public async setDefaultRunbook( + setDefaultRunbookRequest: requests.SetDefaultRunbookRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#setDefaultRunbook."); + const operationName = "setDefaultRunbook"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": setDefaultRunbookRequest.opcRetryToken, + "if-match": setDefaultRunbookRequest.ifMatch, + "opc-request-id": setDefaultRunbookRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + setDefaultRunbookRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/runbooks/actions/setDefaultRunbook", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + setDefaultRunbookRequest.setDefaultRunbookDetails, + "SetDefaultRunbookDetails", + model.SetDefaultRunbookDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "runbook", + bodyModel: model.Runbook, + type: "model.Runbook", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the Ronbook + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateRunbookRequest + * @return UpdateRunbookResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateRunbook.ts.html |here} to see how to use UpdateRunbook API. + */ + public async updateRunbook( + updateRunbookRequest: requests.UpdateRunbookRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#updateRunbook."); + const operationName = "updateRunbook"; + const apiReferenceLink = ""; + const pathParams = { + "{runbookId}": updateRunbookRequest.runbookId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateRunbookRequest.ifMatch, + "opc-request-id": updateRunbookRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateRunbookRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/runbooks/{runbookId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateRunbookRequest.updateRunbookDetails, + "UpdateRunbookDetails", + model.UpdateRunbookDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the Task + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateTaskRecordRequest + * @return UpdateTaskRecordResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateTaskRecord.ts.html |here} to see how to use UpdateTaskRecord API. + */ + public async updateTaskRecord( + updateTaskRecordRequest: requests.UpdateTaskRecordRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#updateTaskRecord."); + const operationName = "updateTaskRecord"; + const apiReferenceLink = ""; + const pathParams = { + "{taskRecordId}": updateTaskRecordRequest.taskRecordId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateTaskRecordRequest.ifMatch, + "opc-request-id": updateTaskRecordRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateTaskRecordRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/taskRecords/{taskRecordId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateTaskRecordRequest.updateTaskRecordDetails, + "UpdateTaskRecordDetails", + model.UpdateTaskRecordDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } } diff --git a/lib/fleetappsmanagement/lib/fleetappsmanagement-waiter.ts b/lib/fleetappsmanagement/lib/fleetappsmanagement-waiter.ts index ef9aa08116..9d678acd2a 100644 --- a/lib/fleetappsmanagement/lib/fleetappsmanagement-waiter.ts +++ b/lib/fleetappsmanagement/lib/fleetappsmanagement-waiter.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/fleetappsmanagementadmin-waiter.ts b/lib/fleetappsmanagement/lib/fleetappsmanagementadmin-waiter.ts index 1c58f0a5a1..4c3615e53b 100644 --- a/lib/fleetappsmanagement/lib/fleetappsmanagementadmin-waiter.ts +++ b/lib/fleetappsmanagement/lib/fleetappsmanagementadmin-waiter.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -25,6 +24,82 @@ export class FleetAppsManagementAdminWaiter { private readonly config?: WaiterConfiguration ) {} + /** + * Waits forCompliancePolicy till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetCompliancePolicyResponse | null (null in case of 404 response) + */ + public async forCompliancePolicy( + request: serviceRequests.GetCompliancePolicyRequest, + ...targetStates: models.CompliancePolicy.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getCompliancePolicy(request), + response => targetStates.includes(response.compliancePolicy.lifecycleState!), + targetStates.includes(models.CompliancePolicy.LifecycleState.Deleted) + ); + } + + /** + * Waits forCompliancePolicyRule till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetCompliancePolicyRuleResponse | null (null in case of 404 response) + */ + public async forCompliancePolicyRule( + request: serviceRequests.GetCompliancePolicyRuleRequest, + ...targetStates: models.CompliancePolicyRule.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getCompliancePolicyRule(request), + response => targetStates.includes(response.compliancePolicyRule.lifecycleState!), + targetStates.includes(models.CompliancePolicyRule.LifecycleState.Deleted) + ); + } + + /** + * Waits forOnboarding till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetOnboardingResponse | null (null in case of 404 response) + */ + public async forOnboarding( + request: serviceRequests.GetOnboardingRequest, + ...targetStates: models.Onboarding.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getOnboarding(request), + response => targetStates.includes(response.onboarding.lifecycleState!), + targetStates.includes(models.Onboarding.LifecycleState.Deleted) + ); + } + + /** + * Waits forPlatformConfiguration till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetPlatformConfigurationResponse | null (null in case of 404 response) + */ + public async forPlatformConfiguration( + request: serviceRequests.GetPlatformConfigurationRequest, + ...targetStates: models.PlatformConfiguration.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getPlatformConfiguration(request), + response => targetStates.includes(response.platformConfiguration.lifecycleState!), + targetStates.includes(models.PlatformConfiguration.LifecycleState.Deleted) + ); + } + /** * Waits forProperty till it reaches any of the provided states * diff --git a/lib/fleetappsmanagement/lib/fleetappsmanagementmaintenancewindow-waiter.ts b/lib/fleetappsmanagement/lib/fleetappsmanagementmaintenancewindow-waiter.ts index d11c93e8e6..78f40b9f00 100644 --- a/lib/fleetappsmanagement/lib/fleetappsmanagementmaintenancewindow-waiter.ts +++ b/lib/fleetappsmanagement/lib/fleetappsmanagementmaintenancewindow-waiter.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/fleetappsmanagementoperations-waiter.ts b/lib/fleetappsmanagement/lib/fleetappsmanagementoperations-waiter.ts index 0a2626a56b..4d22027743 100644 --- a/lib/fleetappsmanagement/lib/fleetappsmanagementoperations-waiter.ts +++ b/lib/fleetappsmanagement/lib/fleetappsmanagementoperations-waiter.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -25,6 +24,25 @@ export class FleetAppsManagementOperationsWaiter { private readonly config?: WaiterConfiguration ) {} + /** + * Waits forPatch till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetPatchResponse | null (null in case of 404 response) + */ + public async forPatch( + request: serviceRequests.GetPatchRequest, + ...targetStates: models.Patch.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getPatch(request), + response => targetStates.includes(response.patch.lifecycleState!), + targetStates.includes(models.Patch.LifecycleState.Deleted) + ); + } + /** * Waits forSchedulerDefinition till it reaches any of the provided states * diff --git a/lib/fleetappsmanagement/lib/fleetappsmanagementrunbooks-waiter.ts b/lib/fleetappsmanagement/lib/fleetappsmanagementrunbooks-waiter.ts index cdcaf97e1f..6415e7f933 100644 --- a/lib/fleetappsmanagement/lib/fleetappsmanagementrunbooks-waiter.ts +++ b/lib/fleetappsmanagement/lib/fleetappsmanagementrunbooks-waiter.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/action-group-based-user-action-details.ts b/lib/fleetappsmanagement/lib/model/action-group-based-user-action-details.ts new file mode 100644 index 0000000000..d4a5a15334 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/action-group-based-user-action-details.ts @@ -0,0 +1,61 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for a user action to be performed on an action group. + * + */ +export interface ActionGroupBasedUserActionDetails extends model.UserActionDetails { + /** + * Unique identifier for the action group. + */ + "actionGroupId": string; + + "level": string; +} + +export namespace ActionGroupBasedUserActionDetails { + export function getJsonObj( + obj: ActionGroupBasedUserActionDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UserActionDetails.getJsonObj(obj) as ActionGroupBasedUserActionDetails)), + ...{} + }; + + return jsonObj; + } + export const level = "ACTION_GROUP"; + export function getDeserializedJsonObj( + obj: ActionGroupBasedUserActionDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UserActionDetails.getDeserializedJsonObj( + obj + ) as ActionGroupBasedUserActionDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/action-group-details.ts b/lib/fleetappsmanagement/lib/model/action-group-details.ts index 9b306f14a1..fe6b666bd6 100644 --- a/lib/fleetappsmanagement/lib/model/action-group-details.ts +++ b/lib/fleetappsmanagement/lib/model/action-group-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Action Group. + * Action Group details. */ export interface ActionGroupDetails { /** - * The ID of the ActionGroup resource . + * The ID of the ActionGroup resource. * Ex:fleetId. * */ @@ -47,7 +46,7 @@ export interface ActionGroupDetails { */ "product"?: string; /** - * LifeCycle Operation + * LifeCycle Operation. */ "lifecycleOperation"?: string; /** @@ -55,19 +54,19 @@ export interface ActionGroupDetails { */ "activityId"?: string; /** - * Status of the Job at Action Group Level + * Status of the Job at Action Group Level. */ "status"?: model.JobStatus; /** - * The time the the Scheduler Job started. An RFC3339 formatted datetime string + * The time the Scheduler Job started. An RFC3339 formatted datetime string. */ "timeStarted"?: Date; /** - * The time the Scheduler Job ended. An RFC3339 formatted datetime string + * The time the Scheduler Job ended. An RFC3339 formatted datetime string. */ "timeEnded"?: Date; /** - * ID of the runbook + * OCID of the runbook. */ "runbookId": string; } diff --git a/lib/fleetappsmanagement/lib/model/action-group.ts b/lib/fleetappsmanagement/lib/model/action-group.ts index 8d1978e061..fb16f44274 100644 --- a/lib/fleetappsmanagement/lib/model/action-group.ts +++ b/lib/fleetappsmanagement/lib/model/action-group.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -21,7 +20,7 @@ import common = require("oci-common"); */ export interface ActionGroup { /** - * Provide the ID of the resource; Ex- fleetId. + * Provide the ID of the resource. Example fleet ID. */ "resourceId": string; /** diff --git a/lib/fleetappsmanagement/lib/model/action-type.ts b/lib/fleetappsmanagement/lib/model/action-type.ts index 639d2230ac..bef7ca6fbe 100644 --- a/lib/fleetappsmanagement/lib/model/action-type.ts +++ b/lib/fleetappsmanagement/lib/model/action-type.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/activity-resource-target.ts b/lib/fleetappsmanagement/lib/model/activity-resource-target.ts index ede4678c2f..9806285680 100644 --- a/lib/fleetappsmanagement/lib/model/activity-resource-target.ts +++ b/lib/fleetappsmanagement/lib/model/activity-resource-target.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -25,9 +24,15 @@ export interface ActivityResourceTarget { */ "targetName": string; /** - * Status of the Job at Resource Target Level. + * Status of the Job at target Level. */ "status"?: model.JobStatus; + /** + * Description of the Execution status. + * If there are any errors, this can also include a short error message. + * + */ + "description"?: string; } export namespace ActivityResourceTarget { diff --git a/lib/fleetappsmanagement/lib/model/announcement-collection.ts b/lib/fleetappsmanagement/lib/model/announcement-collection.ts index 90e67f4eec..c5f7cb54a1 100644 --- a/lib/fleetappsmanagement/lib/model/announcement-collection.ts +++ b/lib/fleetappsmanagement/lib/model/announcement-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Results of list announcements . Contains AnnouncementSummary items + * Results of list announcements. Contains AnnouncementSummary items. */ export interface AnnouncementCollection { /** diff --git a/lib/fleetappsmanagement/lib/model/announcement-sort-by.ts b/lib/fleetappsmanagement/lib/model/announcement-sort-by.ts index 26cf03243a..218e959815 100644 --- a/lib/fleetappsmanagement/lib/model/announcement-sort-by.ts +++ b/lib/fleetappsmanagement/lib/model/announcement-sort-by.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/announcement-summary.ts b/lib/fleetappsmanagement/lib/model/announcement-summary.ts index 98996a2f35..5bf3e9d5f0 100644 --- a/lib/fleetappsmanagement/lib/model/announcement-summary.ts +++ b/lib/fleetappsmanagement/lib/model/announcement-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * An summary of announcements for Fleet Application Management Service + * A summary of announcements for Fleet Application Management. */ export interface AnnouncementSummary { /** @@ -55,27 +54,27 @@ Example: {@code My new resource} */ "timeUpdated"?: Date; /** - * Type of announcement + * Type of announcement. */ "type": string; /** - * Summary of the announcement + * Summary of the announcement. */ "summary": string; /** - * Details of the announcement + * Announcement Details. */ "details"?: string; /** - * URL to the announcement + * URL to the announcement. */ "url"?: string; /** - * Date to start displaying announcement to user + * Announcement start date. */ "announcementStart": Date; /** - * Date to end displaying annonucement to user + * Announcement end date */ "announcementEnd": Date; /** diff --git a/lib/fleetappsmanagement/lib/model/api-based-execution-details.ts b/lib/fleetappsmanagement/lib/model/api-based-execution-details.ts index a9e2dbb726..1d3f3242f9 100644 --- a/lib/fleetappsmanagement/lib/model/api-based-execution-details.ts +++ b/lib/fleetappsmanagement/lib/model/api-based-execution-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Details for API based execution + * Details for API-based execution. */ export interface ApiBasedExecutionDetails extends model.ExecutionDetails { /** diff --git a/lib/fleetappsmanagement/lib/model/artifact-details.ts b/lib/fleetappsmanagement/lib/model/artifact-details.ts new file mode 100644 index 0000000000..114a505960 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/artifact-details.ts @@ -0,0 +1,68 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Patch artifact description and content details. + */ +export interface ArtifactDetails { + "category": string; +} + +export namespace ArtifactDetails { + export function getJsonObj(obj: ArtifactDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "category" in obj && obj.category) { + switch (obj.category) { + case "PLATFORM_SPECIFIC": + return model.PlatformSpecificArtifactDetails.getJsonObj( + (jsonObj), + true + ); + case "GENERIC": + return model.GenericArtifactDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.category}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: ArtifactDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "category" in obj && obj.category) { + switch (obj.category) { + case "PLATFORM_SPECIFIC": + return model.PlatformSpecificArtifactDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "GENERIC": + return model.GenericArtifactDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.category}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/associated-fleet-credential-details.ts b/lib/fleetappsmanagement/lib/model/associated-fleet-credential-details.ts index e1c51b24b9..0225adf295 100644 --- a/lib/fleetappsmanagement/lib/model/associated-fleet-credential-details.ts +++ b/lib/fleetappsmanagement/lib/model/associated-fleet-credential-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The information about new FleetCredential. + * The information about associated FleetCredential. */ export interface AssociatedFleetCredentialDetails { /** @@ -32,7 +31,10 @@ Example: {@code My new resource} * Tenancy OCID */ "compartmentId": string; - "entitySpecifics": model.TargetCredentialEntitySpecificDetails; + "entitySpecifics": + | model.TargetCredentialEntitySpecificDetails + | model.FleetCredentialEntitySpecificDetails + | model.ResourceCredentialEntitySpecificDetails; "user": | model.PlainTextCredentialDetails | model.KeyEncryptionCredentialDetails diff --git a/lib/fleetappsmanagement/lib/model/associated-fleet-property-details.ts b/lib/fleetappsmanagement/lib/model/associated-fleet-property-details.ts index bd76a1a583..54ea943681 100644 --- a/lib/fleetappsmanagement/lib/model/associated-fleet-property-details.ts +++ b/lib/fleetappsmanagement/lib/model/associated-fleet-property-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The information about new FleetProperty. + * The information about associated FleetProperty. */ export interface AssociatedFleetPropertyDetails { /** @@ -37,11 +36,11 @@ Example: {@code My new resource} */ "fleetPropertyType": AssociatedFleetPropertyDetails.FleetPropertyType; /** - * Value of the Property + * Value of the Property. */ "value"?: string; /** - * Property is required or not + * Property is required or not. */ "isRequired"?: boolean; } diff --git a/lib/fleetappsmanagement/lib/model/associated-fleet-resource-details.ts b/lib/fleetappsmanagement/lib/model/associated-fleet-resource-details.ts index b9c2b053b6..c721edb2b0 100644 --- a/lib/fleetappsmanagement/lib/model/associated-fleet-resource-details.ts +++ b/lib/fleetappsmanagement/lib/model/associated-fleet-resource-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -21,7 +20,7 @@ import common = require("oci-common"); */ export interface AssociatedFleetResourceDetails { /** - * OCID of the reosurce. + * OCID of the resource. */ "resourceId": string; /** @@ -29,11 +28,11 @@ export interface AssociatedFleetResourceDetails { */ "fleetResourceType"?: string; /** - * Compartment Identifier. + * Compartment Identifier[OCID]. */ "compartmentId": string; /** - * Tenancy Identifier. + * Tenancy Identifier[OCID]. */ "tenancyId": string; } diff --git a/lib/fleetappsmanagement/lib/model/associated-local-task-details.ts b/lib/fleetappsmanagement/lib/model/associated-local-task-details.ts index 336fa2e9cb..cce1c2d1ac 100644 --- a/lib/fleetappsmanagement/lib/model/associated-local-task-details.ts +++ b/lib/fleetappsmanagement/lib/model/associated-local-task-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,9 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The details of the task. + * The details of the local task. + * The local tasks are specific to a single runbook. + * */ export interface AssociatedLocalTaskDetails extends model.AssociatedTaskDetails { "executionDetails": model.ScriptBasedExecutionDetails | model.ApiBasedExecutionDetails; @@ -38,6 +39,14 @@ export interface AssociatedLocalTaskDetails extends model.AssociatedTaskDetails */ "osType": model.OsType; "properties"?: model.Properties; + /** + * Is this a discovery output task? + */ + "isDiscoveryOutputTask"?: boolean; + /** + * Is this an Apply Subject Task? Ex. Patch Execution Task + */ + "isApplySubjectTask"?: boolean; /** * The name of the task */ diff --git a/lib/fleetappsmanagement/lib/model/associated-scheduler-definition.ts b/lib/fleetappsmanagement/lib/model/associated-scheduler-definition.ts index 8dee050c7e..d66d732af3 100644 --- a/lib/fleetappsmanagement/lib/model/associated-scheduler-definition.ts +++ b/lib/fleetappsmanagement/lib/model/associated-scheduler-definition.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Associated SchedulerDefinition with the job. + * SchedulerDefinition associated with the job. */ export interface AssociatedSchedulerDefinition { /** @@ -37,7 +36,7 @@ Example: {@code My new resource} */ "tenancyId": string; /** - * Is this recurring schedule? + * Is this a recurring schedule? */ "isRecurring": boolean; } diff --git a/lib/fleetappsmanagement/lib/model/associated-shared-task-details.ts b/lib/fleetappsmanagement/lib/model/associated-shared-task-details.ts index c24a5ae939..d2e3b3ccfc 100644 --- a/lib/fleetappsmanagement/lib/model/associated-shared-task-details.ts +++ b/lib/fleetappsmanagement/lib/model/associated-shared-task-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,9 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The details of the task. + * The details of the shared task. + * Tasks that are part of the task library and can be reused across runbooks. + * */ export interface AssociatedSharedTaskDetails extends model.AssociatedTaskDetails { /** diff --git a/lib/fleetappsmanagement/lib/model/associated-task-details.ts b/lib/fleetappsmanagement/lib/model/associated-task-details.ts index 7c07820204..75d9a65673 100644 --- a/lib/fleetappsmanagement/lib/model/associated-task-details.ts +++ b/lib/fleetappsmanagement/lib/model/associated-task-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/associations.ts b/lib/fleetappsmanagement/lib/model/associations.ts index 97459668f9..54943af8af 100644 --- a/lib/fleetappsmanagement/lib/model/associations.ts +++ b/lib/fleetappsmanagement/lib/model/associations.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,18 +16,20 @@ import * as model from "../model"; import common = require("oci-common"); /** - * JSON content with required associations + * Associations for the runbook. */ export interface Associations { /** - * A set of tasks to execute in the runbook + * A set of tasks to execute in the runbook. */ "tasks": Array; /** - * The groups of the runbook + * The groups of the runbook. + * */ "groups": Array; "executionWorkflowDetails": model.ExecutionWorkflowDetails; + "rollbackWorkflowDetails"?: model.RollbackWorkflowDetails; /** * The version of the runbook. */ @@ -52,6 +53,9 @@ export namespace Associations { : undefined, "executionWorkflowDetails": obj.executionWorkflowDetails ? model.ExecutionWorkflowDetails.getJsonObj(obj.executionWorkflowDetails) + : undefined, + "rollbackWorkflowDetails": obj.rollbackWorkflowDetails + ? model.RollbackWorkflowDetails.getJsonObj(obj.rollbackWorkflowDetails) : undefined } }; @@ -74,6 +78,9 @@ export namespace Associations { : undefined, "executionWorkflowDetails": obj.executionWorkflowDetails ? model.ExecutionWorkflowDetails.getDeserializedJsonObj(obj.executionWorkflowDetails) + : undefined, + "rollbackWorkflowDetails": obj.rollbackWorkflowDetails + ? model.RollbackWorkflowDetails.getDeserializedJsonObj(obj.rollbackWorkflowDetails) : undefined } }; diff --git a/lib/fleetappsmanagement/lib/model/check-resource-tagging-details.ts b/lib/fleetappsmanagement/lib/model/check-resource-tagging-details.ts index 90ecb65437..16991483c4 100644 --- a/lib/fleetappsmanagement/lib/model/check-resource-tagging-details.ts +++ b/lib/fleetappsmanagement/lib/model/check-resource-tagging-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Request to check resource tagging + * Request to check resource tagging. */ export interface CheckResourceTaggingDetails { /** @@ -25,11 +24,11 @@ export interface CheckResourceTaggingDetails { */ "compartmentId": string; /** - * Fleet Name + * Fleet Display Name. */ "fleetDisplayName"?: string; /** - * Resource OCIDS that need to be verified if tag can be enabled + * Resource OCIDS that need to be verified if a tag can be enabled for them. */ "resourceIds": Array; } diff --git a/lib/fleetappsmanagement/lib/model/compliance-detail-policy.ts b/lib/fleetappsmanagement/lib/model/compliance-detail-policy.ts new file mode 100644 index 0000000000..0aaba71f41 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-detail-policy.ts @@ -0,0 +1,73 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the Policy associated + */ +export interface ComplianceDetailPolicy { + /** + * Compliance Policy Id + */ + "compliancePolicyId": string; + /** + * Compliane Policy DisplayName + */ + "compliancePolicyDisplayName"?: string; + /** + * Compliane Policy Rule Id + */ + "compliancePolicyRuleId"?: string; + /** + * Product Name + */ + "compliancePolicyRuleDisplayName"?: string; + /** + * Grace period in days,weeks,months or years the exemption is applicable for the rule. + */ + "gracePeriod"?: string; + "patchSelection"?: + | model.PatchLevelSelectionDetails + | model.PatchReleaseDateSelectionDetails + | model.PatchNameSelectionDetails; +} + +export namespace ComplianceDetailPolicy { + export function getJsonObj(obj: ComplianceDetailPolicy): object { + const jsonObj = { + ...obj, + ...{ + "patchSelection": obj.patchSelection + ? model.PatchSelectionDetails.getJsonObj(obj.patchSelection) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceDetailPolicy): object { + const jsonObj = { + ...obj, + ...{ + "patchSelection": obj.patchSelection + ? model.PatchSelectionDetails.getDeserializedJsonObj(obj.patchSelection) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-detail-product.ts b/lib/fleetappsmanagement/lib/model/compliance-detail-product.ts new file mode 100644 index 0000000000..2a31a28b1a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-detail-product.ts @@ -0,0 +1,47 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the Product + */ +export interface ComplianceDetailProduct { + /** + * Product Stack. + */ + "productStack"?: string; + /** + * Product Name. + */ + "productName": string; + /** + * Product Version. + */ + "productVersion"?: string; +} + +export namespace ComplianceDetailProduct { + export function getJsonObj(obj: ComplianceDetailProduct): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceDetailProduct): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-detail-resource.ts b/lib/fleetappsmanagement/lib/model/compliance-detail-resource.ts new file mode 100644 index 0000000000..4e1a029c8b --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-detail-resource.ts @@ -0,0 +1,55 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the Resource + */ +export interface ComplianceDetailResource { + /** + * The OCID to identify the resource. + */ + "resourceId": string; + /** + * Name of the resource. + */ + "resourceName": string; + /** + * TenancyId of the resource. + */ + "compartmentId"?: string; + /** + * Compartment the resource belongs to. + */ + "compartment"?: string; + /** + * Region the resource belongs to. + */ + "resourceRegion"?: string; +} + +export namespace ComplianceDetailResource { + export function getJsonObj(obj: ComplianceDetailResource): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceDetailResource): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-detail-target.ts b/lib/fleetappsmanagement/lib/model/compliance-detail-target.ts new file mode 100644 index 0000000000..bb15510b37 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-detail-target.ts @@ -0,0 +1,47 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the Target + */ +export interface ComplianceDetailTarget { + /** + * Target Identifier. + */ + "targetId": string; + /** + * Target Name. + */ + "targetName": string; + /** + * Current version. + */ + "version"?: string; +} + +export namespace ComplianceDetailTarget { + export function getJsonObj(obj: ComplianceDetailTarget): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceDetailTarget): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-level.ts b/lib/fleetappsmanagement/lib/model/compliance-level.ts new file mode 100644 index 0000000000..daec68f9a2 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-level.ts @@ -0,0 +1,39 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible values for compliance level. + **/ +export enum ComplianceLevel { + Fleet = "FLEET", + Target = "TARGET", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace ComplianceLevel { + export function getJsonObj(obj: ComplianceLevel): ComplianceLevel { + return obj; + } + export function getDeserializedJsonObj(obj: ComplianceLevel): ComplianceLevel { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-patch-detail.ts b/lib/fleetappsmanagement/lib/model/compliance-patch-detail.ts new file mode 100644 index 0000000000..3e88d15f41 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-patch-detail.ts @@ -0,0 +1,72 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the Patch + */ +export interface CompliancePatchDetail { + /** + * patch OCID. + */ + "patchId"?: string; + /** + * patch Name. + */ + "patchName": string; + /** + * Patch Description. + */ + "patchDescription"?: string; + /** + * Date on which patch was released + */ + "timeReleased"?: Date; + /** + * Type of patch. + */ + "patchType": string; + /** + * Patch Severity. + */ + "severity"?: model.PatchSeverity; + "product"?: model.ComplianceDetailProduct; +} + +export namespace CompliancePatchDetail { + export function getJsonObj(obj: CompliancePatchDetail): object { + const jsonObj = { + ...obj, + ...{ + "product": obj.product ? model.ComplianceDetailProduct.getJsonObj(obj.product) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CompliancePatchDetail): object { + const jsonObj = { + ...obj, + ...{ + "product": obj.product + ? model.ComplianceDetailProduct.getDeserializedJsonObj(obj.product) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-policy-collection.ts b/lib/fleetappsmanagement/lib/model/compliance-policy-collection.ts new file mode 100644 index 0000000000..b2ca277287 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-policy-collection.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a compliancePolicy search. Contains both CompliancePolicySummary items and other information, such as metadata. + */ +export interface CompliancePolicyCollection { + /** + * List of compliancePolicys. + */ + "items": Array; +} + +export namespace CompliancePolicyCollection { + export function getJsonObj(obj: CompliancePolicyCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.CompliancePolicySummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CompliancePolicyCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.CompliancePolicySummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-policy-rule-collection.ts b/lib/fleetappsmanagement/lib/model/compliance-policy-rule-collection.ts new file mode 100644 index 0000000000..5ce9d9dafc --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-policy-rule-collection.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a compliancePolicyRule search. Contains both CompliancePolicyRuleSummary items and other information, such as metadata. + */ +export interface CompliancePolicyRuleCollection { + /** + * List of complianePolicyRules. + */ + "items": Array; +} + +export namespace CompliancePolicyRuleCollection { + export function getJsonObj(obj: CompliancePolicyRuleCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.CompliancePolicyRuleSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CompliancePolicyRuleCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.CompliancePolicyRuleSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-policy-rule-summary.ts b/lib/fleetappsmanagement/lib/model/compliance-policy-rule-summary.ts new file mode 100644 index 0000000000..a215097b08 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-policy-rule-summary.ts @@ -0,0 +1,150 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary information about a CompliancePolicyRule. + */ +export interface CompliancePolicyRuleSummary { + /** + * Unique OCID of the CompliancePolicyRule. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Unique OCID of the CompliancePolicy. + */ + "compliancePolicyId": string; + "productVersion": model.ProductVersionDetails; + /** + * PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. + */ + "patchType": Array; + /** + * Severity to which this CompliancePolicyRule applies. + */ + "severity"?: Array; + "patchSelection": + | model.PatchLevelSelectionDetails + | model.PatchReleaseDateSelectionDetails + | model.PatchNameSelectionDetails; + /** + * Grace period in days,weeks,months or years the exemption is applicable for the rule. + * This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied. + * + */ + "gracePeriod"?: string; + /** + * The OCID of the compartment the CompliancePolicyRule belongs to. + */ + "compartmentId": string; + /** + * The date and time the CompliancePolicyRule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeCreated": Date; + /** + * The date and time the CompliancePolicyRule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeUpdated"?: Date; + /** + * The current state of the CompliancePolicyRule. + */ + "lifecycleState": string; + /** + * A message that describes the current state of the CompliancePolicyRule in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CompliancePolicyRuleSummary { + export enum Severity { + Critical = "CRITICAL", + High = "HIGH", + Medium = "MEDIUM", + Low = "LOW", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: CompliancePolicyRuleSummary): object { + const jsonObj = { + ...obj, + ...{ + "productVersion": obj.productVersion + ? model.ProductVersionDetails.getJsonObj(obj.productVersion) + : undefined, + + "patchSelection": obj.patchSelection + ? model.PatchSelectionDetails.getJsonObj(obj.patchSelection) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CompliancePolicyRuleSummary): object { + const jsonObj = { + ...obj, + ...{ + "productVersion": obj.productVersion + ? model.ProductVersionDetails.getDeserializedJsonObj(obj.productVersion) + : undefined, + + "patchSelection": obj.patchSelection + ? model.PatchSelectionDetails.getDeserializedJsonObj(obj.patchSelection) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-policy-rule.ts b/lib/fleetappsmanagement/lib/model/compliance-policy-rule.ts new file mode 100644 index 0000000000..ab19be7271 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-policy-rule.ts @@ -0,0 +1,166 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Set of rules that are used to calculate the compliance status of the product. + * Specific rules will take precedence over broader rules. + * + */ +export interface CompliancePolicyRule { + /** + * Unique OCID of the CompliancePolicyRule. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Unique OCID of the CompliancePolicy. + */ + "compliancePolicyId": string; + "productVersion": model.ProductVersionDetails; + /** + * PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. + */ + "patchType": Array; + /** + * Severity to which this CompliancePolicyRule applies. + */ + "severity"?: Array; + "patchSelection": + | model.PatchLevelSelectionDetails + | model.PatchReleaseDateSelectionDetails + | model.PatchNameSelectionDetails; + /** + * Grace period in days,weeks,months or years the exemption is applicable for the rule. + * This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied. + * + */ + "gracePeriod"?: string; + /** + * The OCID of the compartment the CompliancePolicyRule belongs to. + */ + "compartmentId": string; + /** + * The date and time the CompliancePolicyRule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeCreated": Date; + /** + * The date and time the CompliancePolicyRule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeUpdated"?: Date; + /** + * The current state of the CompliancePolicyRule. + */ + "lifecycleState": CompliancePolicyRule.LifecycleState; + /** + * A message that describes the current state of the CompliancePolicyRule in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags": { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags": { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CompliancePolicyRule { + export enum Severity { + Critical = "CRITICAL", + High = "HIGH", + Medium = "MEDIUM", + Low = "LOW", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum LifecycleState { + Creating = "CREATING", + Updating = "UPDATING", + Active = "ACTIVE", + Deleting = "DELETING", + Deleted = "DELETED", + Failed = "FAILED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: CompliancePolicyRule): object { + const jsonObj = { + ...obj, + ...{ + "productVersion": obj.productVersion + ? model.ProductVersionDetails.getJsonObj(obj.productVersion) + : undefined, + + "patchSelection": obj.patchSelection + ? model.PatchSelectionDetails.getJsonObj(obj.patchSelection) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CompliancePolicyRule): object { + const jsonObj = { + ...obj, + ...{ + "productVersion": obj.productVersion + ? model.ProductVersionDetails.getDeserializedJsonObj(obj.productVersion) + : undefined, + + "patchSelection": obj.patchSelection + ? model.PatchSelectionDetails.getDeserializedJsonObj(obj.patchSelection) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-policy-summary.ts b/lib/fleetappsmanagement/lib/model/compliance-policy-summary.ts new file mode 100644 index 0000000000..4ea75d115c --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-policy-summary.ts @@ -0,0 +1,93 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary information about a CompliancePolicy. + */ +export interface CompliancePolicySummary { + /** + * The OCID of the CompliancePolicy. + */ + "id": string; + /** + * Display name for the CompliancePolicy. + */ + "displayName": string; + /** + * platformConfiguration OCID corresponding to the Product. + */ + "productId": string; + /** + * The OCID of the compartment the CompliancePolicy belongs to. + */ + "compartmentId": string; + /** + * The date and time the CompliancePolicy was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeCreated": Date; + /** + * The date and time the CompliancePolicy was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeUpdated"?: Date; + /** + * The current state of the CompliancePolicy. + */ + "lifecycleState": string; + /** + * A message that describes the current state of the CompliancePolicy in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags": { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags": { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CompliancePolicySummary { + export function getJsonObj(obj: CompliancePolicySummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CompliancePolicySummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-policy.ts b/lib/fleetappsmanagement/lib/model/compliance-policy.ts new file mode 100644 index 0000000000..24119ff61d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-policy.ts @@ -0,0 +1,109 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Define software patch compliance policies for various products running in OCI resources. + * A compliance policy is a configuration you set up for various products to report compliance by defining the schedule and patch baseline + * + */ +export interface CompliancePolicy { + /** + * The OCID of the CompliancePolicy. + */ + "id": string; + /** + * Display name for the CompliancePolicy. + */ + "displayName": string; + /** + * platformConfiguration OCID corresponding to the Product. + */ + "productId": string; + /** + * The OCID of the compartment the CompliancePolicy belongs to. + */ + "compartmentId": string; + /** + * The date and time the CompliancePolicy was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeCreated": Date; + /** + * The date and time the CompliancePolicy was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeUpdated"?: Date; + /** + * The current state of the CompliancePolicy. + */ + "lifecycleState": CompliancePolicy.LifecycleState; + /** + * A message that describes the current state of the CompliancePolicy in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags": { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags": { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CompliancePolicy { + export enum LifecycleState { + Creating = "CREATING", + Updating = "UPDATING", + Active = "ACTIVE", + Deleting = "DELETING", + Deleted = "DELETED", + Failed = "FAILED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: CompliancePolicy): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CompliancePolicy): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-record-aggregation-collection.ts b/lib/fleetappsmanagement/lib/model/compliance-record-aggregation-collection.ts new file mode 100644 index 0000000000..8ceb540231 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-record-aggregation-collection.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * An array of ComplianceRecord objects + */ +export interface ComplianceRecordAggregationCollection { + /** + * List of ComplianceRecordAggregation objects. + */ + "items": Array; +} + +export namespace ComplianceRecordAggregationCollection { + export function getJsonObj(obj: ComplianceRecordAggregationCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ComplianceRecordAggregation.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceRecordAggregationCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ComplianceRecordAggregation.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-record-aggregation.ts b/lib/fleetappsmanagement/lib/model/compliance-record-aggregation.ts new file mode 100644 index 0000000000..323cf88260 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-record-aggregation.ts @@ -0,0 +1,54 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Aggregated summary information for ComplianceRecord + */ +export interface ComplianceRecordAggregation { + /** + * count of ComplianceRecord in a Tenancy. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "count": number; + "dimensions": model.ComplianceRecordDimension; +} + +export namespace ComplianceRecordAggregation { + export function getJsonObj(obj: ComplianceRecordAggregation): object { + const jsonObj = { + ...obj, + ...{ + "dimensions": obj.dimensions + ? model.ComplianceRecordDimension.getJsonObj(obj.dimensions) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceRecordAggregation): object { + const jsonObj = { + ...obj, + ...{ + "dimensions": obj.dimensions + ? model.ComplianceRecordDimension.getDeserializedJsonObj(obj.dimensions) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-record-collection.ts b/lib/fleetappsmanagement/lib/model/compliance-record-collection.ts new file mode 100644 index 0000000000..7adebbcb26 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-record-collection.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a compliancePolicy search. Contains both CompliancePolicySummary items and other information, such as metadata. + */ +export interface ComplianceRecordCollection { + /** + * List of compliancePolicys. + */ + "items": Array; +} + +export namespace ComplianceRecordCollection { + export function getJsonObj(obj: ComplianceRecordCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ComplianceRecordSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceRecordCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ComplianceRecordSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-record-dimension.ts b/lib/fleetappsmanagement/lib/model/compliance-record-dimension.ts new file mode 100644 index 0000000000..3672401e56 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-record-dimension.ts @@ -0,0 +1,43 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Aggregated summary information for ComplianceRecord + */ +export interface ComplianceRecordDimension { + /** + * Last known compliance state. + */ + "complianceState": model.ComplianceState; + /** + * Level at which the compliance is calculated. + */ + "complianceLevel": model.ComplianceLevel; +} + +export namespace ComplianceRecordDimension { + export function getJsonObj(obj: ComplianceRecordDimension): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceRecordDimension): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-record-summary.ts b/lib/fleetappsmanagement/lib/model/compliance-record-summary.ts new file mode 100644 index 0000000000..4ab2bb46df --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-record-summary.ts @@ -0,0 +1,103 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary information about a ComplianceDetail. + */ +export interface ComplianceRecordSummary { + /** + * The OCID of the ComplianceRecord. + */ + "id": string; + /** + * The OCID of the entity for which the compliance is calculated.Ex.FleetId + */ + "entityId": string; + /** + * The displayName of the entity for which the compliance is calculated.Ex.DisplayName for the Fleet + */ + "entityDisplayName": string; + /** + * The OCID of the compartment. + */ + "compartmentId"?: string; + "policy"?: model.ComplianceDetailPolicy; + "resource": model.ComplianceDetailResource; + "target": model.ComplianceDetailTarget; + "patch"?: model.CompliancePatchDetail; + /** + * Last known compliance state of target. + */ + "complianceState"?: model.ComplianceState; + /** + * The date and time the ComplianceRecord was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeCreated"?: Date; + /** + * The date and time the ComplianceRecord was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeUpdated"?: Date; + /** + * The current state of the ComplianceRecord. + */ + "lifecycleState"?: string; +} + +export namespace ComplianceRecordSummary { + export function getJsonObj(obj: ComplianceRecordSummary): object { + const jsonObj = { + ...obj, + ...{ + "policy": obj.policy ? model.ComplianceDetailPolicy.getJsonObj(obj.policy) : undefined, + "resource": obj.resource + ? model.ComplianceDetailResource.getJsonObj(obj.resource) + : undefined, + "target": obj.target ? model.ComplianceDetailTarget.getJsonObj(obj.target) : undefined, + "patch": obj.patch ? model.CompliancePatchDetail.getJsonObj(obj.patch) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceRecordSummary): object { + const jsonObj = { + ...obj, + ...{ + "policy": obj.policy + ? model.ComplianceDetailPolicy.getDeserializedJsonObj(obj.policy) + : undefined, + "resource": obj.resource + ? model.ComplianceDetailResource.getDeserializedJsonObj(obj.resource) + : undefined, + "target": obj.target + ? model.ComplianceDetailTarget.getDeserializedJsonObj(obj.target) + : undefined, + "patch": obj.patch + ? model.CompliancePatchDetail.getDeserializedJsonObj(obj.patch) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-record.ts b/lib/fleetappsmanagement/lib/model/compliance-record.ts new file mode 100644 index 0000000000..e60fde8fa4 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-record.ts @@ -0,0 +1,110 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The compliance status reports. + * + */ +export interface ComplianceRecord { + /** + * The OCID of the ComplianceRecord. + */ + "id": string; + /** + * The OCID of the entity for which the compliance is calculated.Ex.FleetId + */ + "entityId": string; + /** + * The displayName of the entity for which the compliance is calculated.Ex.DisplayName for the Fleet + */ + "entityDisplayName": string; + /** + * The OCID of the compartment. + */ + "compartmentId"?: string; + "policy"?: model.ComplianceDetailPolicy; + "resource": model.ComplianceDetailResource; + "target": model.ComplianceDetailTarget; + "patch"?: model.CompliancePatchDetail; + /** + * Last known compliance state of target. + */ + "complianceState"?: model.ComplianceState; + /** + * The date and time the ComplianceRecord was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeCreated"?: Date; + /** + * The date and time the ComplianceRecord was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). +*

+Example: {@code 2016-08-25T21:10:29.600Z} +* + */ + "timeUpdated"?: Date; + /** + * The current state of the ComplianceRecord. + */ + "lifecycleState"?: ComplianceRecord.LifecycleState; +} + +export namespace ComplianceRecord { + export enum LifecycleState { + Active = "ACTIVE", + Deleted = "DELETED", + Failed = "FAILED" + } + + export function getJsonObj(obj: ComplianceRecord): object { + const jsonObj = { + ...obj, + ...{ + "policy": obj.policy ? model.ComplianceDetailPolicy.getJsonObj(obj.policy) : undefined, + "resource": obj.resource + ? model.ComplianceDetailResource.getJsonObj(obj.resource) + : undefined, + "target": obj.target ? model.ComplianceDetailTarget.getJsonObj(obj.target) : undefined, + "patch": obj.patch ? model.CompliancePatchDetail.getJsonObj(obj.patch) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceRecord): object { + const jsonObj = { + ...obj, + ...{ + "policy": obj.policy + ? model.ComplianceDetailPolicy.getDeserializedJsonObj(obj.policy) + : undefined, + "resource": obj.resource + ? model.ComplianceDetailResource.getDeserializedJsonObj(obj.resource) + : undefined, + "target": obj.target + ? model.ComplianceDetailTarget.getDeserializedJsonObj(obj.target) + : undefined, + "patch": obj.patch + ? model.CompliancePatchDetail.getDeserializedJsonObj(obj.patch) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-report-patch-detail.ts b/lib/fleetappsmanagement/lib/model/compliance-report-patch-detail.ts index f3b6b406ae..1d2be5af05 100644 --- a/lib/fleetappsmanagement/lib/model/compliance-report-patch-detail.ts +++ b/lib/fleetappsmanagement/lib/model/compliance-report-patch-detail.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,23 +16,23 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Details of the Patch + * Details of the Patch. */ export interface ComplianceReportPatchDetail { /** - * The OCID to identify this analysis results. + * Patch name. */ "patchName": string; /** - * The OCID of the work request to start the analysis. + * Patch description. */ "patchDescription"?: string; /** - * Time the patch was applied + * Time the patch was applied. */ "timeApplied"?: Date; /** - * Date on which patch was released. + * The date on which patch was released. */ "timeReleased"?: Date; /** diff --git a/lib/fleetappsmanagement/lib/model/compliance-report-product.ts b/lib/fleetappsmanagement/lib/model/compliance-report-product.ts index 99a1f07893..2f9db4a54d 100644 --- a/lib/fleetappsmanagement/lib/model/compliance-report-product.ts +++ b/lib/fleetappsmanagement/lib/model/compliance-report-product.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Details of the Product + * Details of the Product. */ export interface ComplianceReportProduct { /** - * Product Name + * Product Name. */ "productName": string; /** diff --git a/lib/fleetappsmanagement/lib/model/compliance-report-resource.ts b/lib/fleetappsmanagement/lib/model/compliance-report-resource.ts index dd7cbf8f1e..b9e20e7100 100644 --- a/lib/fleetappsmanagement/lib/model/compliance-report-resource.ts +++ b/lib/fleetappsmanagement/lib/model/compliance-report-resource.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -45,15 +44,17 @@ export interface ComplianceReportResource { */ "compartment"?: string; /** - * Region the resource belongs to. + * The region the resource belongs to. */ "resourceRegion"?: string; /** - * Last known compliance state of fleet. + * The last known compliance state of the fleet. */ "complianceState": model.ComplianceState; /** - * Products assocaited with the Fleet.Only products belonging to managed targets will be shown. + * Products associated with the Fleet. + * Only the products belonging to managed targets will be shown. + * */ "products"?: Array; } diff --git a/lib/fleetappsmanagement/lib/model/compliance-report-target.ts b/lib/fleetappsmanagement/lib/model/compliance-report-target.ts index 1f72501847..738a78ac60 100644 --- a/lib/fleetappsmanagement/lib/model/compliance-report-target.ts +++ b/lib/fleetappsmanagement/lib/model/compliance-report-target.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Details of the Patch. + * Details of the target and patches. */ export interface ComplianceReportTarget { /** - * Target Identifier. + * Target Identifier.Can be the target name if a separate ID is not available. */ "targetId": string; /** @@ -29,11 +28,11 @@ export interface ComplianceReportTarget { */ "targetName": string; /** - * Current version. + * Current version of the target. */ "version"?: string; /** - * Last known compliance state of target. + * The last known compliance state of the target. */ "complianceState": model.ComplianceState; /** diff --git a/lib/fleetappsmanagement/lib/model/compliance-report.ts b/lib/fleetappsmanagement/lib/model/compliance-report.ts index 7741342114..9f03fa9dda 100644 --- a/lib/fleetappsmanagement/lib/model/compliance-report.ts +++ b/lib/fleetappsmanagement/lib/model/compliance-report.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Summary of a compliance report. + * Compliance details for a fleet in Fleet Application Management. */ export interface ComplianceReport { /** @@ -29,11 +28,11 @@ export interface ComplianceReport { */ "fleetId": string; /** - * Last known compliance state of fleet. + * The last known compliance state of the fleet. */ "complianceState": model.ComplianceState; /** - * Resources assocaited with the Fleet. + * Resources associated with the Fleet. */ "resources"?: Array; } diff --git a/lib/fleetappsmanagement/lib/model/compliance-rule-severity.ts b/lib/fleetappsmanagement/lib/model/compliance-rule-severity.ts new file mode 100644 index 0000000000..1075fcb267 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-rule-severity.ts @@ -0,0 +1,41 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible Compliance Rule severities. + **/ +export enum ComplianceRuleSeverity { + Critical = "CRITICAL", + High = "HIGH", + Medium = "MEDIUM", + Low = "LOW", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace ComplianceRuleSeverity { + export function getJsonObj(obj: ComplianceRuleSeverity): ComplianceRuleSeverity { + return obj; + } + export function getDeserializedJsonObj(obj: ComplianceRuleSeverity): ComplianceRuleSeverity { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-state.ts b/lib/fleetappsmanagement/lib/model/compliance-state.ts index c03c1fad88..53925902ea 100644 --- a/lib/fleetappsmanagement/lib/model/compliance-state.ts +++ b/lib/fleetappsmanagement/lib/model/compliance-state.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Possible values for compliance state. + * Possible values for the compliance state. **/ export enum ComplianceState { Unknown = "UNKNOWN", diff --git a/lib/fleetappsmanagement/lib/model/component-properties.ts b/lib/fleetappsmanagement/lib/model/component-properties.ts index 5f3eca83be..01db97eeea 100644 --- a/lib/fleetappsmanagement/lib/model/component-properties.ts +++ b/lib/fleetappsmanagement/lib/model/component-properties.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,21 +16,28 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The properties of the task. + * The properties of the component. */ export interface ComponentProperties { /** - * The hosts to execute on. + * The runOn condition for the task/group/container. + * Build task execution conditions if applicable to product and product-specific components. + * This condition is relevant when handling product stack workflows. + * Example: target.product.name = Oracle WebLogic Server OR target.product.name = Oracle HTTP Server + * */ "runOn"?: string; /** - * The condition in which the task is to be executed. + * Build control flow conditions that determine the relevance of the task execution. + * */ "condition"?: string; /** - * The action to be taken in case of task failure. + * The action to be taken in case of a failure. */ "actionOnFailure": ComponentProperties.ActionOnFailure; + "pauseDetails"?: model.UserActionBasedPauseDetails | model.TimeBasedPauseDetails; + "notificationPreferences"?: model.TaskNotificationPreferences; } export namespace ComponentProperties { @@ -47,12 +53,32 @@ export namespace ComponentProperties { } export function getJsonObj(obj: ComponentProperties): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "pauseDetails": obj.pauseDetails + ? model.PauseDetails.getJsonObj(obj.pauseDetails) + : undefined, + "notificationPreferences": obj.notificationPreferences + ? model.TaskNotificationPreferences.getJsonObj(obj.notificationPreferences) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: ComponentProperties): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "pauseDetails": obj.pauseDetails + ? model.PauseDetails.getDeserializedJsonObj(obj.pauseDetails) + : undefined, + "notificationPreferences": obj.notificationPreferences + ? model.TaskNotificationPreferences.getDeserializedJsonObj(obj.notificationPreferences) + : undefined + } + }; return jsonObj; } diff --git a/lib/fleetappsmanagement/lib/model/condition.ts b/lib/fleetappsmanagement/lib/model/condition.ts index ff2d43bd1e..0a75912dc8 100644 --- a/lib/fleetappsmanagement/lib/model/condition.ts +++ b/lib/fleetappsmanagement/lib/model/condition.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -21,15 +20,21 @@ import common = require("oci-common"); */ export interface Condition { /** - * Attribute Group. + * Attribute Group. Provide a Tag namespace if the rule is based on a tag. + * Provide resource type if the rule is based on a resource property. + * */ "attrGroup": string; /** - * Attribute Key. + * Attribute Key.Provide Tag key if the rule is based on a tag. + * Provide resource property name if the rule is based on a resource property. + * */ "attrKey": string; /** - * Attribute Value. + * Attribute Value.Provide Tag value if the rule is based on a tag. + * Provide resource property value if the rule is based on a resource property. + * */ "attrValue": string; } diff --git a/lib/fleetappsmanagement/lib/model/config-association-details.ts b/lib/fleetappsmanagement/lib/model/config-association-details.ts new file mode 100644 index 0000000000..3c5127c3f6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/config-association-details.ts @@ -0,0 +1,47 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Associated Configuration details. + */ +export interface ConfigAssociationDetails { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; +} + +export namespace ConfigAssociationDetails { + export function getJsonObj(obj: ConfigAssociationDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ConfigAssociationDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/config-category-details.ts b/lib/fleetappsmanagement/lib/model/config-category-details.ts new file mode 100644 index 0000000000..fb1df55915 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/config-category-details.ts @@ -0,0 +1,98 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Config Category Details. + */ +export interface ConfigCategoryDetails { + "configCategory": string; +} + +export namespace ConfigCategoryDetails { + export function getJsonObj(obj: ConfigCategoryDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "configCategory" in obj && obj.configCategory) { + switch (obj.configCategory) { + case "PRODUCT_STACK": + return model.ProductStackConfigCategoryDetails.getJsonObj( + (jsonObj), + true + ); + case "ENVIRONMENT": + return model.EnvironmentConfigCategoryDetails.getJsonObj( + (jsonObj), + true + ); + case "CREDENTIAL": + return model.CredentialConfigCategoryDetails.getJsonObj( + (jsonObj), + true + ); + case "PATCH_TYPE": + return model.PatchTypeConfigCategoryDetails.getJsonObj( + (jsonObj), + true + ); + case "PRODUCT": + return model.ProductConfigCategoryDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.configCategory}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: ConfigCategoryDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "configCategory" in obj && obj.configCategory) { + switch (obj.configCategory) { + case "PRODUCT_STACK": + return model.ProductStackConfigCategoryDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "ENVIRONMENT": + return model.EnvironmentConfigCategoryDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "CREDENTIAL": + return model.CredentialConfigCategoryDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "PATCH_TYPE": + return model.PatchTypeConfigCategoryDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "PRODUCT": + return model.ProductConfigCategoryDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.configCategory}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/confirm-targets-details.ts b/lib/fleetappsmanagement/lib/model/confirm-targets-details.ts index 3ca8028c72..030c2f97a5 100644 --- a/lib/fleetappsmanagement/lib/model/confirm-targets-details.ts +++ b/lib/fleetappsmanagement/lib/model/confirm-targets-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Details of the targets that needs to be confirmed for FAMS management + * Details of the targets to be confirmed for Fleet Application Management. * */ export interface ConfirmTargetsDetails { diff --git a/lib/fleetappsmanagement/lib/model/content-details.ts b/lib/fleetappsmanagement/lib/model/content-details.ts index 4fc93676f3..10dcd5657f 100644 --- a/lib/fleetappsmanagement/lib/model/content-details.ts +++ b/lib/fleetappsmanagement/lib/model/content-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Content Source Details. + * Content Source details. */ export interface ContentDetails { "sourceType": string; diff --git a/lib/fleetappsmanagement/lib/model/create-compliance-policy-rule-details.ts b/lib/fleetappsmanagement/lib/model/create-compliance-policy-rule-details.ts new file mode 100644 index 0000000000..eeab8a15aa --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-compliance-policy-rule-details.ts @@ -0,0 +1,111 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The data to create a CompliancePolicyRule. + */ +export interface CreateCompliancePolicyRuleDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to. + */ + "compliancePolicyId"?: string; + "productVersion": model.ProductVersionDetails; + /** + * PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. + */ + "patchType": Array; + /** + * Severity to which this CompliancePolicyRule applies. + */ + "severity"?: Array; + "patchSelection": + | model.PatchLevelSelectionDetails + | model.PatchReleaseDateSelectionDetails + | model.PatchNameSelectionDetails; + /** + * Grace period in days,weeks,months or years the exemption is applicable for the rule. + * This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied. + * + */ + "gracePeriod"?: string; + /** + * The OCID of the compartment the CompliancePolicyRule belongs to. + */ + "compartmentId": string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CreateCompliancePolicyRuleDetails { + export enum Severity { + Critical = "CRITICAL", + High = "HIGH", + Medium = "MEDIUM", + Low = "LOW" + } + + export function getJsonObj(obj: CreateCompliancePolicyRuleDetails): object { + const jsonObj = { + ...obj, + ...{ + "productVersion": obj.productVersion + ? model.ProductVersionDetails.getJsonObj(obj.productVersion) + : undefined, + + "patchSelection": obj.patchSelection + ? model.PatchSelectionDetails.getJsonObj(obj.patchSelection) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreateCompliancePolicyRuleDetails): object { + const jsonObj = { + ...obj, + ...{ + "productVersion": obj.productVersion + ? model.ProductVersionDetails.getDeserializedJsonObj(obj.productVersion) + : undefined, + + "patchSelection": obj.patchSelection + ? model.PatchSelectionDetails.getDeserializedJsonObj(obj.patchSelection) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-fleet-credential-details.ts b/lib/fleetappsmanagement/lib/model/create-fleet-credential-details.ts index fd700aebd1..6481e0d33c 100644 --- a/lib/fleetappsmanagement/lib/model/create-fleet-credential-details.ts +++ b/lib/fleetappsmanagement/lib/model/create-fleet-credential-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -32,7 +31,10 @@ Example: {@code My new resource} * Tenancy OCID */ "compartmentId": string; - "entitySpecifics": model.TargetCredentialEntitySpecificDetails; + "entitySpecifics": + | model.TargetCredentialEntitySpecificDetails + | model.FleetCredentialEntitySpecificDetails + | model.ResourceCredentialEntitySpecificDetails; "user": | model.PlainTextCredentialDetails | model.KeyEncryptionCredentialDetails diff --git a/lib/fleetappsmanagement/lib/model/create-fleet-details.ts b/lib/fleetappsmanagement/lib/model/create-fleet-details.ts index e310e96e7c..d66f999fee 100644 --- a/lib/fleetappsmanagement/lib/model/create-fleet-details.ts +++ b/lib/fleetappsmanagement/lib/model/create-fleet-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -39,37 +38,55 @@ Example: {@code My new resource} */ "compartmentId": string; /** - * Type of the Fleet + * Type of the Fleet. + * PRODUCT - A fleet of product-specific resources for a product type. + * ENVIRONMENT - A fleet of environment-specific resources for a product stack. + * GROUP - A fleet of a fleet of either environment or product fleets. + * GENERIC - A fleet of resources selected dynamically or manually for reporting purposes + * */ "fleetType": string; /** - * Products associated with the Fleet + * Products associated with the Fleet. */ "products"?: Array; /** - * Application Type associated with the Fleet.Applicable for Environment fleet types. + * Product stack associated with the Fleet. + * Applicable for ENVIRONMENT fleet types. + * */ "applicationType"?: string; /** - * Environment Type associated with the Fleet.Applicable for Environment fleet types. + * Environment Type associated with the Fleet. + * Applicable for ENVIRONMENT fleet types. + * */ "environmentType"?: string; /** - * Group Type associated with Group Fleet.Applicable for Group fleet types. + * Group Type associated with Group Fleet. + * */ "groupType"?: string; /** - * Type of resource selection in a fleet + * Type of resource selection in a Fleet. + * Select resources manually or select resources based on rules. + * */ "resourceSelectionType"?: string; "ruleSelectionCriteria"?: model.SelectionCriteria; "notificationPreferences"?: model.NotificationPreferences; /** - * Resources to be added during fleet creation when Resource selection type is Manual. + * Resources associated with the Fleet if resourceSelectionType is MANUAL. */ "resources"?: Array; /** - * A value which represents if auto confirming of the targets can be enabled + * Credentials associated with the Fleet. + */ + "credentials"?: Array; + /** + * A value that represents if auto-confirming of the targets can be enabled. + * This will allow targets to be auto-confirmed in the fleet without manual intervention. + * */ "isTargetAutoConfirm"?: boolean; /** @@ -101,6 +118,11 @@ export namespace CreateFleetDetails { ? obj.resources.map(item => { return model.AssociatedFleetResourceDetails.getJsonObj(item); }) + : undefined, + "credentials": obj.credentials + ? obj.credentials.map(item => { + return model.AssociatedFleetCredentialDetails.getJsonObj(item); + }) : undefined } }; @@ -121,6 +143,11 @@ export namespace CreateFleetDetails { ? obj.resources.map(item => { return model.AssociatedFleetResourceDetails.getDeserializedJsonObj(item); }) + : undefined, + "credentials": obj.credentials + ? obj.credentials.map(item => { + return model.AssociatedFleetCredentialDetails.getDeserializedJsonObj(item); + }) : undefined } }; diff --git a/lib/fleetappsmanagement/lib/model/create-fleet-property-details.ts b/lib/fleetappsmanagement/lib/model/create-fleet-property-details.ts index deb9dbc578..af27ae5b3e 100644 --- a/lib/fleetappsmanagement/lib/model/create-fleet-property-details.ts +++ b/lib/fleetappsmanagement/lib/model/create-fleet-property-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The information about new FleetProperty. + * The information about new Property to manage fleet metadata details. */ export interface CreateFleetPropertyDetails { /** @@ -25,11 +24,11 @@ export interface CreateFleetPropertyDetails { */ "compartmentId": string; /** - * Value of the Property + * Value of the Property. */ "value": string; /** - * Property Id. + * OCID referring to global level metadata property. */ "propertyId": string; } diff --git a/lib/fleetappsmanagement/lib/model/create-fleet-resource-details.ts b/lib/fleetappsmanagement/lib/model/create-fleet-resource-details.ts index 1e1546180a..2aff110a72 100644 --- a/lib/fleetappsmanagement/lib/model/create-fleet-resource-details.ts +++ b/lib/fleetappsmanagement/lib/model/create-fleet-resource-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The information about new FleetResource. + * The information about the resource to be added to the fleet. */ export interface CreateFleetResourceDetails { /** diff --git a/lib/fleetappsmanagement/lib/model/create-maintenance-window-details.ts b/lib/fleetappsmanagement/lib/model/create-maintenance-window-details.ts index 657604a21e..33306e2d1a 100644 --- a/lib/fleetappsmanagement/lib/model/create-maintenance-window-details.ts +++ b/lib/fleetappsmanagement/lib/model/create-maintenance-window-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The information about new MaintenanceWindow. + * The information about the new MaintenanceWindow. */ export interface CreateMaintenanceWindowDetails { /** @@ -40,6 +39,9 @@ Example: {@code My new resource} "description"?: string; /** * Does the maintenenace window cause outage? + * An outage indicates whether a maintenance window can consider operations that require downtime. + * It means a period when the application is not accessible. + * */ "isOutage"?: boolean; /** @@ -47,23 +49,27 @@ Example: {@code My new resource} */ "maintenanceWindowType"?: model.MaintenanceWindowType; /** - * Start time of schedule + * Specify the date and time of the day that the maintenance window starts. */ "timeScheduleStart"?: Date; /** - * Duration if schedule type is Custom + * Duration of the maintenance window. + * Specify how long the maintenance window remains open. + * */ "duration": string; /** - * Is this is a recurring maintenance window + * Is this a recurring maintenance window? */ "isRecurring"?: boolean; /** - * Recurrence rule specification if recurring + * Recurrence rule specification if maintenance window recurring. + * Specify the frequency of running the maintenance window. + * */ "recurrences"?: string; /** - * Task initiation cutoff Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Task initiation cutoff time for the maintenance window. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "taskInitiationCutoff"?: number; /** diff --git a/lib/fleetappsmanagement/lib/model/create-onboarding-details.ts b/lib/fleetappsmanagement/lib/model/create-onboarding-details.ts index c2108db9f2..39fb2c47c2 100644 --- a/lib/fleetappsmanagement/lib/model/create-onboarding-details.ts +++ b/lib/fleetappsmanagement/lib/model/create-onboarding-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -25,11 +24,15 @@ export interface CreateOnboardingDetails { */ "compartmentId": string; /** - * A value determining FAMS tag is enabled or not + * A value determining if the Fleet Application Management tagging is enabled or not. + * Allow Fleet Application Management to tag resources with fleet name using \"Oracle$FAMS-Tags.FleetName\" tag. + * */ "isFamsTagEnabled"?: boolean; /** - * A value determining if cost tracking tag is enabled or not + * A value determining if the cost tracking tag is enabled or not. + * Allow Fleet Application Management to tag resources with cost tracking tag using \"Oracle$FAMS-Tags.FAMSManaged\" tag. + * */ "isCostTrackingTagEnabled"?: boolean; } diff --git a/lib/fleetappsmanagement/lib/model/create-patch-details.ts b/lib/fleetappsmanagement/lib/model/create-patch-details.ts new file mode 100644 index 0000000000..b02a8d698d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-patch-details.ts @@ -0,0 +1,111 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new Patch. + */ +export interface CreatePatchDetails { + /** + * A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. + * Avoid entering confidential information. + * + */ + "name": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + "patchType": model.PatchType; + /** + * Patch Severity. + */ + "severity": model.PatchSeverity; + /** + * Date when the patch was released. + */ + "timeReleased": Date; + "artifactDetails": model.PlatformSpecificArtifactDetails | model.GenericArtifactDetails; + "product": model.PatchProduct; + /** + * Dependent Patches for this patch. + * + */ + "dependentPatches"?: Array; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CreatePatchDetails { + export function getJsonObj(obj: CreatePatchDetails): object { + const jsonObj = { + ...obj, + ...{ + "patchType": obj.patchType ? model.PatchType.getJsonObj(obj.patchType) : undefined, + + "artifactDetails": obj.artifactDetails + ? model.ArtifactDetails.getJsonObj(obj.artifactDetails) + : undefined, + "product": obj.product ? model.PatchProduct.getJsonObj(obj.product) : undefined, + "dependentPatches": obj.dependentPatches + ? obj.dependentPatches.map(item => { + return model.DependentPatchDetails.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreatePatchDetails): object { + const jsonObj = { + ...obj, + ...{ + "patchType": obj.patchType + ? model.PatchType.getDeserializedJsonObj(obj.patchType) + : undefined, + + "artifactDetails": obj.artifactDetails + ? model.ArtifactDetails.getDeserializedJsonObj(obj.artifactDetails) + : undefined, + "product": obj.product ? model.PatchProduct.getDeserializedJsonObj(obj.product) : undefined, + "dependentPatches": obj.dependentPatches + ? obj.dependentPatches.map(item => { + return model.DependentPatchDetails.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-platform-configuration-details.ts b/lib/fleetappsmanagement/lib/model/create-platform-configuration-details.ts new file mode 100644 index 0000000000..3bc511c22d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-platform-configuration-details.ts @@ -0,0 +1,73 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new PlatformConfiguration. + */ +export interface CreatePlatformConfigurationDetails { + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + "configCategoryDetails": + | model.ProductStackConfigCategoryDetails + | model.EnvironmentConfigCategoryDetails + | model.CredentialConfigCategoryDetails + | model.PatchTypeConfigCategoryDetails + | model.ProductConfigCategoryDetails; +} + +export namespace CreatePlatformConfigurationDetails { + export function getJsonObj(obj: CreatePlatformConfigurationDetails): object { + const jsonObj = { + ...obj, + ...{ + "configCategoryDetails": obj.configCategoryDetails + ? model.ConfigCategoryDetails.getJsonObj(obj.configCategoryDetails) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreatePlatformConfigurationDetails): object { + const jsonObj = { + ...obj, + ...{ + "configCategoryDetails": obj.configCategoryDetails + ? model.ConfigCategoryDetails.getDeserializedJsonObj(obj.configCategoryDetails) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-property-details.ts b/lib/fleetappsmanagement/lib/model/create-property-details.ts index fadb7fc4ad..32b9c813c6 100644 --- a/lib/fleetappsmanagement/lib/model/create-property-details.ts +++ b/lib/fleetappsmanagement/lib/model/create-property-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -33,15 +32,15 @@ Example: {@code My new resource} */ "displayName"?: string; /** - * Text selection of the category + * Text selection of the property. */ "selection": model.Selection; /** - * Format of the value + * Format of the value. */ "valueType": model.ValueType; /** - * Values of the property (must be a single value if selection = 'single choice') + * Values of the property (must be a single value if selection = 'SINGLE_CHOICE'). */ "values"?: Array; } diff --git a/lib/fleetappsmanagement/lib/model/create-runbook-details.ts b/lib/fleetappsmanagement/lib/model/create-runbook-details.ts new file mode 100644 index 0000000000..b6362ae746 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-runbook-details.ts @@ -0,0 +1,104 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new Runbook. + */ +export interface CreateRunbookDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Type of runbook structure. + */ + "runbookRelevance": string; + /** + * The lifecycle operation performed by the task. + */ + "operation": string; + /** + * The OS type for the runbook. + */ + "osType": model.OsType; + /** + * The platform of the runbook. + */ + "platform"?: string; + /** + * Is the runbook default? + */ + "isDefault"?: boolean; + /** + * Estimated time to successfully complete the runbook execution + */ + "estimatedTime"?: string; + "associations": model.Associations; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CreateRunbookDetails { + export function getJsonObj(obj: CreateRunbookDetails): object { + const jsonObj = { + ...obj, + ...{ + "associations": obj.associations + ? model.Associations.getJsonObj(obj.associations) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreateRunbookDetails): object { + const jsonObj = { + ...obj, + ...{ + "associations": obj.associations + ? model.Associations.getDeserializedJsonObj(obj.associations) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-scheduler-definition-details.ts b/lib/fleetappsmanagement/lib/model/create-scheduler-definition-details.ts index 1e8cec0f96..64df0fe1d9 100644 --- a/lib/fleetappsmanagement/lib/model/create-scheduler-definition-details.ts +++ b/lib/fleetappsmanagement/lib/model/create-scheduler-definition-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/create-task-record-details.ts b/lib/fleetappsmanagement/lib/model/create-task-record-details.ts new file mode 100644 index 0000000000..d2a596d619 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-task-record-details.ts @@ -0,0 +1,76 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new Task. + */ +export interface CreateTaskRecordDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + "details": model.Details; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CreateTaskRecordDetails { + export function getJsonObj(obj: CreateTaskRecordDetails): object { + const jsonObj = { + ...obj, + ...{ + "details": obj.details ? model.Details.getJsonObj(obj.details) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreateTaskRecordDetails): object { + const jsonObj = { + ...obj, + ...{ + "details": obj.details ? model.Details.getDeserializedJsonObj(obj.details) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/credential-config-category-details.ts b/lib/fleetappsmanagement/lib/model/credential-config-category-details.ts new file mode 100644 index 0000000000..b473d658e4 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/credential-config-category-details.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Credential Config Category Details. + * Defines credential placeholders deemed necessary by product standards later mapped and used by lifecycle management operations for the supported products. + * + */ +export interface CredentialConfigCategoryDetails extends model.ConfigCategoryDetails { + "configCategory": string; +} + +export namespace CredentialConfigCategoryDetails { + export function getJsonObj( + obj: CredentialConfigCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConfigCategoryDetails.getJsonObj(obj) as CredentialConfigCategoryDetails)), + ...{} + }; + + return jsonObj; + } + export const configCategory = "CREDENTIAL"; + export function getDeserializedJsonObj( + obj: CredentialConfigCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConfigCategoryDetails.getDeserializedJsonObj( + obj + ) as CredentialConfigCategoryDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/credential-details.ts b/lib/fleetappsmanagement/lib/model/credential-details.ts index 866148a322..537c8bf9a8 100644 --- a/lib/fleetappsmanagement/lib/model/credential-details.ts +++ b/lib/fleetappsmanagement/lib/model/credential-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Credential Details + * Credential Details. */ export interface CredentialDetails { "credentialType": string; diff --git a/lib/fleetappsmanagement/lib/model/credential-entity-specific-details.ts b/lib/fleetappsmanagement/lib/model/credential-entity-specific-details.ts index a76608e532..0a7cc03c0f 100644 --- a/lib/fleetappsmanagement/lib/model/credential-entity-specific-details.ts +++ b/lib/fleetappsmanagement/lib/model/credential-entity-specific-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Credential Details + * Credential specific Details. */ export interface CredentialEntitySpecificDetails { "credentialLevel": string; @@ -34,6 +33,16 @@ export namespace CredentialEntitySpecificDetails { (jsonObj), true ); + case "FLEET": + return model.FleetCredentialEntitySpecificDetails.getJsonObj( + (jsonObj), + true + ); + case "RESOURCE": + return model.ResourceCredentialEntitySpecificDetails.getJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.credentialLevel}`); @@ -51,6 +60,16 @@ export namespace CredentialEntitySpecificDetails { (jsonObj), true ); + case "FLEET": + return model.FleetCredentialEntitySpecificDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "RESOURCE": + return model.ResourceCredentialEntitySpecificDetails.getDeserializedJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.credentialLevel}`); diff --git a/lib/fleetappsmanagement/lib/model/dependent-patch-details.ts b/lib/fleetappsmanagement/lib/model/dependent-patch-details.ts new file mode 100644 index 0000000000..533ab90d71 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/dependent-patch-details.ts @@ -0,0 +1,39 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Dependent Patch Details. + */ +export interface DependentPatchDetails { + /** + * The OCID of the resource. + */ + "id": string; +} + +export namespace DependentPatchDetails { + export function getJsonObj(obj: DependentPatchDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: DependentPatchDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/details.ts b/lib/fleetappsmanagement/lib/model/details.ts index 52fa7ecc22..d7917e7cb9 100644 --- a/lib/fleetappsmanagement/lib/model/details.ts +++ b/lib/fleetappsmanagement/lib/model/details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -20,7 +19,7 @@ import common = require("oci-common"); * The details of the task. */ export interface Details { - "executionDetails"?: model.ScriptBasedExecutionDetails | model.ApiBasedExecutionDetails; + "executionDetails": model.ScriptBasedExecutionDetails | model.ApiBasedExecutionDetails; /** * The platform of the runbook. */ @@ -34,6 +33,16 @@ export interface Details { */ "scope": model.TaskScope; "properties"?: model.Properties; + /** + * Is this a discovery output task? + */ + "isDiscoveryOutputTask"?: boolean; + /** + * Is this an Apply Subject Task? + * Set this to true for a Patch Execution Task which applies patches(subjects) on a target. + * + */ + "isApplySubjectTask"?: boolean; } export namespace Details { diff --git a/lib/fleetappsmanagement/lib/model/discovered-target.ts b/lib/fleetappsmanagement/lib/model/discovered-target.ts index ed0e32bf3e..e7d0f5f9e2 100644 --- a/lib/fleetappsmanagement/lib/model/discovered-target.ts +++ b/lib/fleetappsmanagement/lib/model/discovered-target.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -22,7 +21,7 @@ import common = require("oci-common"); */ export interface DiscoveredTarget { /** - * OCID of the Target. + * ID of the Target. Can be the target name if a separate ID is not available. */ "targetId": string; /** @@ -34,11 +33,11 @@ export interface DiscoveredTarget { */ "product": string; /** - * Unique key that identify the resource that target belongs to. + * Unique key that identifies the resource that the target belongs to. */ "resourceId": string; /** - * Current version of Target + * Current version of the target. */ "version"?: string; } diff --git a/lib/fleetappsmanagement/lib/model/enable-latest-policy-details.ts b/lib/fleetappsmanagement/lib/model/enable-latest-policy-details.ts new file mode 100644 index 0000000000..1a31dcd284 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/enable-latest-policy-details.ts @@ -0,0 +1,39 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface EnableLatestPolicyDetails { + /** + * A value determining if latest Fleet Application Management policies should be enabled + */ + "canLatestFamsPoliciesBeEnabled"?: boolean; +} + +export namespace EnableLatestPolicyDetails { + export function getJsonObj(obj: EnableLatestPolicyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: EnableLatestPolicyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/entity-execution-details.ts b/lib/fleetappsmanagement/lib/model/entity-execution-details.ts index a7daf9f169..a49ccc64e4 100644 --- a/lib/fleetappsmanagement/lib/model/entity-execution-details.ts +++ b/lib/fleetappsmanagement/lib/model/entity-execution-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,31 +16,33 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Activity Resource and execution details including outcome. + * Resource level execution status and target associations. */ export interface EntityExecutionDetails { /** - * Resource Identifier associated with the Work Request + * Resource Identifier associated with the Work Request. */ "resourceId": string; /** - * Resource Display Name + * Resource Display Name. */ "resourceDisplayName"?: string; /** - * Description of the Work Request + * Description of the Resource Execution status. + * If there are any errors, this can also include a short error message. + * */ "description"?: string; /** - * The sequence of the Resource + * The sequence of the Resource. */ "sequence"?: string; /** - * Targets associated. + * Targets associated with the resource. */ "targets"?: Array; /** - * Status of the Job at Resource Level + * Status of the Job at Resource Level. */ "status": model.JobStatus; /** diff --git a/lib/fleetappsmanagement/lib/model/environment-config-category-details.ts b/lib/fleetappsmanagement/lib/model/environment-config-category-details.ts new file mode 100644 index 0000000000..c078b1aaa2 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/environment-config-category-details.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Environment Config Category Details. + * Defines the supported prioritization associated with resources based on the implementation phase of the applications hosted by them. + * For example, your organization might support development, beta, or production environment types. + * + */ +export interface EnvironmentConfigCategoryDetails extends model.ConfigCategoryDetails { + "configCategory": string; +} + +export namespace EnvironmentConfigCategoryDetails { + export function getJsonObj( + obj: EnvironmentConfigCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConfigCategoryDetails.getJsonObj(obj) as EnvironmentConfigCategoryDetails)), + ...{} + }; + + return jsonObj; + } + export const configCategory = "ENVIRONMENT"; + export function getDeserializedJsonObj( + obj: EnvironmentConfigCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConfigCategoryDetails.getDeserializedJsonObj( + obj + ) as EnvironmentConfigCategoryDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/execution-collection.ts b/lib/fleetappsmanagement/lib/model/execution-collection.ts index dfaf915bb4..35cdb02514 100644 --- a/lib/fleetappsmanagement/lib/model/execution-collection.ts +++ b/lib/fleetappsmanagement/lib/model/execution-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Results of a + * A collection of ExecutionSummary. */ export interface ExecutionCollection { /** diff --git a/lib/fleetappsmanagement/lib/model/execution-details.ts b/lib/fleetappsmanagement/lib/model/execution-details.ts index 58e89e8186..3f3db32593 100644 --- a/lib/fleetappsmanagement/lib/model/execution-details.ts +++ b/lib/fleetappsmanagement/lib/model/execution-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Content Source Details + * Execution details. */ export interface ExecutionDetails { "executionType": string; diff --git a/lib/fleetappsmanagement/lib/model/execution-summary.ts b/lib/fleetappsmanagement/lib/model/execution-summary.ts index 4a764f501c..70bf0b6be5 100644 --- a/lib/fleetappsmanagement/lib/model/execution-summary.ts +++ b/lib/fleetappsmanagement/lib/model/execution-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,45 +16,61 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Task associated with the Job. + * A task associated with the Job. */ export interface ExecutionSummary { /** - * Unique Id assocaited with the Task Execution + * Unique Id associated with the task execution. */ "id": string; /** - * The OCID of taskRecord + * The OCID of taskRecord. */ "taskRecordId"?: string; /** - * Name of the Step + * Name of the Step. */ "stepName"?: string; /** - * Unique process reference identifier returned by the execution client + * Unique process-reference identifier returned by the execution client. + * In some cases, this can be a runcommand OCID. + * */ "processReferenceId"?: string; /** - * The sequence of the task + * The sequence of the task. */ "sequence"?: string; /** - * Status of the Task + * Status of the Task. */ "status": model.JobStatus; /** - * Target associated with the execution + * Target associated with the execution. */ "targetId"?: string; /** - * The time the task started. An RFC3339 formatted datetime string + * The time the task started. An RFC3339 formatted datetime string. */ "timeStarted"?: Date; /** - * The time the task ended. An RFC3339 formatted datetime string + * The time the task ended. An RFC3339 formatted datetime string. */ "timeEnded"?: Date; + /** + * Is this a rollback task? + */ + "isRollbackTask"?: boolean; + /** + * Description of the Execution status. + * If there are any errors, this can also include a short error message. + * + */ + "description"?: string; + /** + * Resource Identifier associated with the Work Request. + */ + "resourceId"?: string; /** * System tags for this resource. Each key is predefined and scoped to a namespace. * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} diff --git a/lib/fleetappsmanagement/lib/model/execution-workflow-details.ts b/lib/fleetappsmanagement/lib/model/execution-workflow-details.ts index 3a4b31468c..c04027af1a 100644 --- a/lib/fleetappsmanagement/lib/model/execution-workflow-details.ts +++ b/lib/fleetappsmanagement/lib/model/execution-workflow-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Execution Workflow. + * Execution Workflow details. */ export interface ExecutionWorkflowDetails { /** diff --git a/lib/fleetappsmanagement/lib/model/execution.ts b/lib/fleetappsmanagement/lib/model/execution.ts index 33ac93d5f5..f09e928f13 100644 --- a/lib/fleetappsmanagement/lib/model/execution.ts +++ b/lib/fleetappsmanagement/lib/model/execution.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -21,27 +20,29 @@ import common = require("oci-common"); */ export interface Execution { /** - * Unique Id assocaited with the Task Execution + * Unique Id associated with the task execution. */ "id": string; /** - * The OCID of taskRecord + * The OCID of taskRecord. */ "taskRecordId"?: string; /** - * Name of the step + * Name of the step. */ "stepName"?: string; /** - * Unique process reference identifier returned by the execution client + * Unique process-reference identifier returned by the execution client. + * In some cases, this can be a runcommand OCID. + * */ "processReferenceId"?: string; /** - * The sequence of the task + * The sequence of the task. */ "sequence"?: string; /** - * Subjects which are tied to the task + * Subjects that are tied to the task. */ "subjects"?: Array; /** @@ -50,17 +51,31 @@ export interface Execution { "status": model.JobStatus; "outcome"?: model.Outcome; /** - * Target associated with the execution + * Target associated with the execution. */ "targetId"?: string; /** - * The time the task started. An RFC3339 formatted datetime string + * The time the task started. An RFC3339 formatted datetime string. */ "timeStarted"?: Date; /** - * The time the task ended. An RFC3339 formatted datetime string + * The time the task ended. An RFC3339 formatted datetime string. */ "timeEnded"?: Date; + /** + * Is this a rollback task? + */ + "isRollbackTask"?: boolean; + /** + * Description of the Execution status. + * If there are any errors, this can also include a short error message. + * + */ + "description"?: string; + /** + * Resource Identifier associated with the Work Request. + */ + "resourceId"?: string; /** * System tags for this resource. Each key is predefined and scoped to a namespace. * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} diff --git a/lib/fleetappsmanagement/lib/model/export-compliance-report-details.ts b/lib/fleetappsmanagement/lib/model/export-compliance-report-details.ts new file mode 100644 index 0000000000..89268f1f0e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/export-compliance-report-details.ts @@ -0,0 +1,59 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for generating Compliance Report + */ +export interface ExportComplianceReportDetails { + /** + * The OCID of the compartment. + */ + "compartmentId": string; + /** + * The OCID of the entity for which the compliance is calculated.Ex.FleetId + */ + "entityId"?: string; + /** + * The OCID to identify the resource. + */ + "resourceId"?: string; + /** + * Product Stack. + */ + "productStack"?: string; + /** + * Product Name. + */ + "productName"?: string; + /** + * Last known compliance state of target. + */ + "complianceState"?: model.ComplianceState; +} + +export namespace ExportComplianceReportDetails { + export function getJsonObj(obj: ExportComplianceReportDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ExportComplianceReportDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-collection.ts index df3ac3475e..ae1de9e184 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-collection.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/fleet-credential-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-credential-collection.ts index 10116cf421..cebb8b7d14 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-credential-collection.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-credential-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/fleet-credential-entity-specific-details.ts b/lib/fleetappsmanagement/lib/model/fleet-credential-entity-specific-details.ts new file mode 100644 index 0000000000..61e89d127f --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-credential-entity-specific-details.ts @@ -0,0 +1,75 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Fleet credential details. + */ +export interface FleetCredentialEntitySpecificDetails + extends model.CredentialEntitySpecificDetails { + /** + * List of fleet credential variables. + */ + "variables"?: Array; + + "credentialLevel": string; +} + +export namespace FleetCredentialEntitySpecificDetails { + export function getJsonObj( + obj: FleetCredentialEntitySpecificDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialEntitySpecificDetails.getJsonObj( + obj + ) as FleetCredentialEntitySpecificDetails)), + ...{ + "variables": obj.variables + ? obj.variables.map(item => { + return model.Variable.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const credentialLevel = "FLEET"; + export function getDeserializedJsonObj( + obj: FleetCredentialEntitySpecificDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialEntitySpecificDetails.getDeserializedJsonObj( + obj + ) as FleetCredentialEntitySpecificDetails)), + ...{ + "variables": obj.variables + ? obj.variables.map(item => { + return model.Variable.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-credential-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-credential-summary.ts index 375aa467a4..a352725b77 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-credential-summary.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-credential-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -44,7 +43,10 @@ Example: {@code My new resource} * The time this resource was last updated. An RFC3339 formatted datetime string. */ "timeUpdated"?: Date; - "entitySpecifics": model.TargetCredentialEntitySpecificDetails; + "entitySpecifics": + | model.TargetCredentialEntitySpecificDetails + | model.FleetCredentialEntitySpecificDetails + | model.ResourceCredentialEntitySpecificDetails; "user"?: | model.PlainTextCredentialDetails | model.KeyEncryptionCredentialDetails diff --git a/lib/fleetappsmanagement/lib/model/fleet-credential.ts b/lib/fleetappsmanagement/lib/model/fleet-credential.ts index 7e1e97828e..6254cc6ad8 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-credential.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-credential.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Description of FleetCredential. + * Credential in Fleet Application Management. */ export interface FleetCredential { /** @@ -44,7 +43,10 @@ Example: {@code My new resource} * The time this resource was last updated. An RFC3339 formatted datetime string. */ "timeUpdated"?: Date; - "entitySpecifics": model.TargetCredentialEntitySpecificDetails; + "entitySpecifics": + | model.TargetCredentialEntitySpecificDetails + | model.FleetCredentialEntitySpecificDetails + | model.ResourceCredentialEntitySpecificDetails; "user"?: | model.PlainTextCredentialDetails | model.KeyEncryptionCredentialDetails diff --git a/lib/fleetappsmanagement/lib/model/fleet-product-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-product-collection.ts index 93dcbe951e..bf3265487b 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-product-collection.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-product-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/fleet-product-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-product-summary.ts index 6541b89c16..c26afa9c3f 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-product-summary.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-product-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Summary of the FleetProduct. + * Summary of a product associated with a Fleet. */ export interface FleetProductSummary { /** @@ -33,7 +32,7 @@ Example: {@code My new resource} */ "displayName": string; /** - * Count of targets associated with the Product Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Count of the targets associated with the Product. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "targetCount"?: number; "resource": model.TargetResource; diff --git a/lib/fleetappsmanagement/lib/model/fleet-property-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-property-collection.ts index d300288fb9..2971e121cf 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-property-collection.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-property-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Results of a fleetProperty search. Contains boh FleetPropertySummary items and other information, such as metadata. + * Results of a fleetProperty search. Contains both FleetPropertySummary items and other information, such as metadata. */ export interface FleetPropertyCollection { /** - * List of fleetPropertys. + * List of fleet properties in Fleet Application Management. */ "items": Array; } diff --git a/lib/fleetappsmanagement/lib/model/fleet-property-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-property-summary.ts index ae0ed50799..129d4d5e50 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-property-summary.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-property-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -29,7 +28,7 @@ export interface FleetPropertySummary { */ "compartmentId": string; /** - * Property Id. + * OCID referring to global level metadata property. */ "propertyId": string; /** @@ -49,11 +48,11 @@ Example: {@code My new resource} */ "timeUpdated"?: Date; /** - * Value of the Property + * Value of the Property. */ "value"?: string; /** - * Type of the FleetProperty. + * Format of the value. */ "valueType": model.ValueType; /** diff --git a/lib/fleetappsmanagement/lib/model/fleet-property.ts b/lib/fleetappsmanagement/lib/model/fleet-property.ts index c8eb2eeb70..70c32e2b49 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-property.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-property.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Property associated with a Fleet. + * Property to manage fleet metadata details in\u00A0Fleet Application Management. */ export interface FleetProperty { /** @@ -45,23 +44,23 @@ Example: {@code My new resource} */ "timeUpdated"?: Date; /** - * Value of the Property + * Value of the Property. */ "value"?: string; /** - * Property Id Ocid. + * OCID referring to global level metadata property. */ "propertyId"?: string; /** - * Text selection of the category + * Text selection of the property. */ "selectionType": model.Selection; /** - * Format of the value + * Format of the value. */ "valueType": model.ValueType; /** - * Values of the category (must be a single value if selection = 'single choice') + * Values of the property (must be a single value if selectionType = 'SINGLE_CHOICE'). */ "allowedValues"?: Array; /** diff --git a/lib/fleetappsmanagement/lib/model/fleet-resource-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-resource-collection.ts index b809b55960..09a396a3da 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-resource-collection.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-resource-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Results of a fleetResource search. Contains boh FleetResourceSummary items and other information, such as metadata. + * Results of a fleetResource search. Contains both FleetResourceSummary items and other information, such as metadata. */ export interface FleetResourceCollection { /** diff --git a/lib/fleetappsmanagement/lib/model/fleet-resource-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-resource-summary.ts index d0faf6b1fa..29dd42e7f5 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-resource-summary.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-resource-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -57,15 +56,15 @@ Example: {@code My new resource} */ "resourceId": string; /** - * Compliance State of the Resource + * Compliance State of the Resource. */ "complianceState"?: model.ComplianceState; /** - * Resource Tenancy Name + * Resource Tenancy Name. */ "tenancyName"?: string; /** - * Resource Compartment + * Resource Compartment name. */ "compartment"?: string; /** @@ -77,20 +76,24 @@ Example: {@code My new resource} */ "productCount"?: number; /** - * Count of targets within the resource. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Count of targets within the resource. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "targetCount"?: number; /** - * Product associated with the resource when resource type is fleet.Will only be returned for PRODUCT fleets that are part of a GROUP Fleet + * Product associated with the resource when the resource type is fleet. + * Will only be returned for PRODUCT fleets that are part of a GROUP Fleet. + * */ "product"?: string; /** - * Application Type associated with the resource when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * Application Type associated with the resource when the resource type is fleet. + * Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. * */ "applicationType"?: string; /** - * Environment Type associated with the Fleet when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * Environment Type associated with the Fleet when the resource type is fleet. + * Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. * */ "environmentType"?: string; diff --git a/lib/fleetappsmanagement/lib/model/fleet-resource.ts b/lib/fleetappsmanagement/lib/model/fleet-resource.ts index 7645078bd6..7ac10d62e4 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-resource.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-resource.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Resource added to a Fleet. + * Resource added to a fleet in Fleet Application Management. */ export interface FleetResource { /** @@ -57,15 +56,15 @@ Example: {@code My new resource} */ "resourceId": string; /** - * Resource Compartment + * Resource Compartment name. */ "compartment"?: string; /** - * Compliance State of the Resource + * Compliance State of the Resource. */ "complianceState"?: model.ComplianceState; /** - * Resource Tenancy Name + * Resource Tenancy Name. */ "tenancyName"?: string; /** @@ -77,20 +76,24 @@ Example: {@code My new resource} */ "productCount"?: number; /** - * Count of targets within the resource. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Count of targets within the resource. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "targetCount"?: number; /** - * Product associated with the resource when resource type is fleet.Will only be returned for PRODUCT fleets that are part of a GROUP Fleet + * Product associated with the resource when the resource type is fleet. + * Will only be returned for PRODUCT fleets that are part of a GROUP Fleet. + * */ "product"?: string; /** - * Application Type associated with the resource when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * Application Type associated with the resource when the resource type is fleet. + * Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. * */ "applicationType"?: string; /** - * Environment Type associated with the Fleet when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * Environment Type associated with the Fleet when the resource type is fleet. + * Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. * */ "environmentType"?: string; diff --git a/lib/fleetappsmanagement/lib/model/fleet-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-summary.ts index e42cf59f86..7cff1e67af 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-summary.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,8 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Summary of the Fleet. + * Summary of a Fleet.A fleet is a collection or grouping of resources based on criteria. + * */ export interface FleetSummary { /** @@ -50,14 +50,21 @@ Example: {@code My new resource} "timeUpdated"?: Date; /** * Type of the Fleet. + * PRODUCT - A fleet of product-specific resources for a product type. + * ENVIRONMENT - A fleet of environment-specific resources for a product stack. + * GROUP - A fleet of a fleet of either environment or product fleets. + * GENERIC - A fleet of resources selected dynamically or manually for reporting purposes + * */ "fleetType": string; /** - * Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + * Environment Type associated with the Fleet. + * Applicable for ENVIRONMENT fleet types. + * */ "environmentType"?: string; /** - * The current state of the Fleet. + * The lifecycle state of the Fleet. */ "lifecycleState": string; /** diff --git a/lib/fleetappsmanagement/lib/model/fleet-target-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-target-collection.ts index fcc691e179..62077e295b 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-target-collection.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-target-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/fleet-target-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-target-summary.ts index 2ecbc25c4f..58cd0c6198 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-target-summary.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-target-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Summary of the FleetTarget. + * Summary of a confirmed target within a fleet. */ export interface FleetTargetSummary { /** @@ -37,7 +36,7 @@ Example: {@code My new resource} */ "displayName": string; /** - * Current version of Target + * Current version of target. */ "version"?: string; /** @@ -46,9 +45,21 @@ Example: {@code My new resource} "product"?: string; "resource"?: model.TargetResource; /** - * Last known compliance state of Target. + * The last known compliance state of the target. */ "complianceState"?: model.ComplianceState; + /** + * The time when the last successful discovery was made. + */ + "timeOfLastSuccessfulDiscovery"?: Date; + /** + * The time when last discovery was attempted. + */ + "timeOfLastDiscoveryAttempt"?: Date; + /** + * A boolean flag that represents whether the last discovery attempt was successful. + */ + "isLastDiscoveryAttemptSuccessful"?: boolean; /** * The current state of the FleetTarget. */ diff --git a/lib/fleetappsmanagement/lib/model/fleet-target.ts b/lib/fleetappsmanagement/lib/model/fleet-target.ts index d75e0e78df..04c13c7f4a 100644 --- a/lib/fleetappsmanagement/lib/model/fleet-target.ts +++ b/lib/fleetappsmanagement/lib/model/fleet-target.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Description of FleetTarget. + * A confirmed target within a fleet. */ export interface FleetTarget { /** @@ -41,7 +40,7 @@ Example: {@code My new resource} */ "timeCreated"?: Date; /** - * Current version of Target + * Current version of target. */ "version"?: string; /** @@ -50,9 +49,21 @@ Example: {@code My new resource} "product"?: string; "resource"?: model.TargetResource; /** - * Last known compliance state of Target. + * The last known compliance state of the target. */ "complianceState"?: model.ComplianceState; + /** + * The time when the last successful discovery was made. + */ + "timeOfLastSuccessfulDiscovery"?: Date; + /** + * The time when last discovery was attempted. + */ + "timeOfLastDiscoveryAttempt"?: Date; + /** + * A boolean flag that represents whether the last discovery attempt was successful. + */ + "isLastDiscoveryAttemptSuccessful"?: boolean; /** * The current state of the FleetTarget. */ diff --git a/lib/fleetappsmanagement/lib/model/fleet.ts b/lib/fleetappsmanagement/lib/model/fleet.ts index 1015d8ac1f..4462a9e562 100644 --- a/lib/fleetappsmanagement/lib/model/fleet.ts +++ b/lib/fleetappsmanagement/lib/model/fleet.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,8 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Description of Fleet. + * A fleet is a collection or grouping of resources based on criteria. + * */ export interface Fleet { /** @@ -56,44 +56,59 @@ Example: {@code My new resource} "timeUpdated"?: Date; /** * Type of the Fleet. + * PRODUCT - A fleet of product-specific resources for a product type. + * ENVIRONMENT - A fleet of environment-specific resources for a product stack. + * GROUP - A fleet of a fleet of either environment or product fleets. + * GENERIC - A fleet of resources selected dynamically or manually for reporting purposes + * */ "fleetType": Fleet.FleetType; /** - * Products associated with the Fleet + * Products associated with the Fleet. */ "products"?: Array; /** - * Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + * Product stack associated with the Fleet. + * Applicable for ENVIRONMENT fleet types. + * */ "applicationType"?: string; /** - * Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + * Environment Type associated with the Fleet. + * Applicable for ENVIRONMENT fleet types. + * */ "environmentType"?: string; /** - * Group Type associated with Group Fleet.Applicable for GROUP fleet types. + * Group Type associated with Group Fleet. + * Applicable for GROUP fleet types. + * */ "groupType"?: Fleet.GroupType; /** - * Type of resource selection in a fleet. + * Type of resource selection in a Fleet. + * Select resources manually or select resources based on rules. + * */ "resourceSelectionType"?: Fleet.ResourceSelectionType; "ruleSelectionCriteria"?: model.SelectionCriteria; "notificationPreferences"?: model.NotificationPreferences; /** - * Resources to be added during fleet creation when Resource selection type is Manual. + * Resources associated with the Fleet if resourceSelectionType is MANUAL. */ "resources"?: Array; /** - * Properties to be added during fleet creation. + * Properties associated with the Fleet. */ "properties"?: Array; /** - * Credentials to be added during fleet creation. + * Credentials associated with the Fleet. */ "credentials"?: Array; /** - * A value which represents if auto confirming of the targets can be enabled + * A value that represents if auto-confirming of the targets can be enabled. + * This will allow targets to be auto-confirmed in the fleet without manual intervention. + * */ "isTargetAutoConfirm"?: boolean; /** diff --git a/lib/fleetappsmanagement/lib/model/generate-compliance-report-details.ts b/lib/fleetappsmanagement/lib/model/generate-compliance-report-details.ts index e4d439d6aa..e3ae587092 100644 --- a/lib/fleetappsmanagement/lib/model/generate-compliance-report-details.ts +++ b/lib/fleetappsmanagement/lib/model/generate-compliance-report-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,12 +16,14 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Request to generate compliance report fort the fleet + * Request to generate compliance report for the fleet. * */ export interface GenerateComplianceReportDetails { /** - * Are compliance details required at target level also + * A value that specifies if compliance details are required at the target level also? + * Allowed values are N and Y. + * */ "areDetailsRequired"?: string; } diff --git a/lib/fleetappsmanagement/lib/model/generic-artifact-details.ts b/lib/fleetappsmanagement/lib/model/generic-artifact-details.ts new file mode 100644 index 0000000000..cf657d5087 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/generic-artifact-details.ts @@ -0,0 +1,59 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Patch artifact description and content details if common for all platforms. + * + */ +export interface GenericArtifactDetails extends model.ArtifactDetails { + "artifact": model.GenericArtifact; + + "category": string; +} + +export namespace GenericArtifactDetails { + export function getJsonObj(obj: GenericArtifactDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ArtifactDetails.getJsonObj(obj) as GenericArtifactDetails)), + ...{ + "artifact": obj.artifact ? model.GenericArtifact.getJsonObj(obj.artifact) : undefined + } + }; + + return jsonObj; + } + export const category = "GENERIC"; + export function getDeserializedJsonObj( + obj: GenericArtifactDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ArtifactDetails.getDeserializedJsonObj(obj) as GenericArtifactDetails)), + ...{ + "artifact": obj.artifact + ? model.GenericArtifact.getDeserializedJsonObj(obj.artifact) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/generic-artifact.ts b/lib/fleetappsmanagement/lib/model/generic-artifact.ts new file mode 100644 index 0000000000..7cb38f3c93 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/generic-artifact.ts @@ -0,0 +1,49 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Patch artifact metadata Details which is common for all platforms. + * + */ +export interface GenericArtifact { + "content": model.ObjectStorageBucketContentDetails; +} + +export namespace GenericArtifact { + export function getJsonObj(obj: GenericArtifact): object { + const jsonObj = { + ...obj, + ...{ + "content": obj.content ? model.ContentDetails.getJsonObj(obj.content) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: GenericArtifact): object { + const jsonObj = { + ...obj, + ...{ + "content": obj.content + ? model.ContentDetails.getDeserializedJsonObj(obj.content) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/group.ts b/lib/fleetappsmanagement/lib/model/group.ts index c0f559da60..eef63db97c 100644 --- a/lib/fleetappsmanagement/lib/model/group.ts +++ b/lib/fleetappsmanagement/lib/model/group.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,15 +16,20 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The group of the runbook + * The group of the runbook. + * */ export interface Group { /** - * The type of the group + * The type of the group. + * PARALLEL_TASK_GROUP : Helps to execute tasks parallelly inside a resource. + * PARALLEL_RESOURCE_GROUP : Executes tasks across resources parallelly. + * ROLLING_RESOURCE_GROUP : Executes tasks across resources in a rolling order. + * */ "type": Group.Type; /** - * The name of the group + * The name of the group. */ "name": string; "properties"?: model.ComponentProperties; diff --git a/lib/fleetappsmanagement/lib/model/index.ts b/lib/fleetappsmanagement/lib/model/index.ts index dfebcc3acc..34902a8480 100644 --- a/lib/fleetappsmanagement/lib/model/index.ts +++ b/lib/fleetappsmanagement/lib/model/index.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -27,6 +26,8 @@ import * as AnnouncementSortBy from "./announcement-sort-by"; export import AnnouncementSortBy = AnnouncementSortBy.AnnouncementSortBy; import * as AnnouncementSummary from "./announcement-summary"; export import AnnouncementSummary = AnnouncementSummary.AnnouncementSummary; +import * as ArtifactDetails from "./artifact-details"; +export import ArtifactDetails = ArtifactDetails.ArtifactDetails; import * as AssociatedFleetCredentialDetails from "./associated-fleet-credential-details"; export import AssociatedFleetCredentialDetails = AssociatedFleetCredentialDetails.AssociatedFleetCredentialDetails; import * as AssociatedFleetPropertyDetails from "./associated-fleet-property-details"; @@ -41,6 +42,42 @@ import * as Associations from "./associations"; export import Associations = Associations.Associations; import * as CheckResourceTaggingDetails from "./check-resource-tagging-details"; export import CheckResourceTaggingDetails = CheckResourceTaggingDetails.CheckResourceTaggingDetails; +import * as ComplianceDetailPolicy from "./compliance-detail-policy"; +export import ComplianceDetailPolicy = ComplianceDetailPolicy.ComplianceDetailPolicy; +import * as ComplianceDetailProduct from "./compliance-detail-product"; +export import ComplianceDetailProduct = ComplianceDetailProduct.ComplianceDetailProduct; +import * as ComplianceDetailResource from "./compliance-detail-resource"; +export import ComplianceDetailResource = ComplianceDetailResource.ComplianceDetailResource; +import * as ComplianceDetailTarget from "./compliance-detail-target"; +export import ComplianceDetailTarget = ComplianceDetailTarget.ComplianceDetailTarget; +import * as ComplianceLevel from "./compliance-level"; +export import ComplianceLevel = ComplianceLevel.ComplianceLevel; +import * as CompliancePatchDetail from "./compliance-patch-detail"; +export import CompliancePatchDetail = CompliancePatchDetail.CompliancePatchDetail; +import * as CompliancePolicy from "./compliance-policy"; +export import CompliancePolicy = CompliancePolicy.CompliancePolicy; +import * as CompliancePolicyCollection from "./compliance-policy-collection"; +export import CompliancePolicyCollection = CompliancePolicyCollection.CompliancePolicyCollection; +import * as CompliancePolicyRule from "./compliance-policy-rule"; +export import CompliancePolicyRule = CompliancePolicyRule.CompliancePolicyRule; +import * as CompliancePolicyRuleCollection from "./compliance-policy-rule-collection"; +export import CompliancePolicyRuleCollection = CompliancePolicyRuleCollection.CompliancePolicyRuleCollection; +import * as CompliancePolicyRuleSummary from "./compliance-policy-rule-summary"; +export import CompliancePolicyRuleSummary = CompliancePolicyRuleSummary.CompliancePolicyRuleSummary; +import * as CompliancePolicySummary from "./compliance-policy-summary"; +export import CompliancePolicySummary = CompliancePolicySummary.CompliancePolicySummary; +import * as ComplianceRecord from "./compliance-record"; +export import ComplianceRecord = ComplianceRecord.ComplianceRecord; +import * as ComplianceRecordAggregation from "./compliance-record-aggregation"; +export import ComplianceRecordAggregation = ComplianceRecordAggregation.ComplianceRecordAggregation; +import * as ComplianceRecordAggregationCollection from "./compliance-record-aggregation-collection"; +export import ComplianceRecordAggregationCollection = ComplianceRecordAggregationCollection.ComplianceRecordAggregationCollection; +import * as ComplianceRecordCollection from "./compliance-record-collection"; +export import ComplianceRecordCollection = ComplianceRecordCollection.ComplianceRecordCollection; +import * as ComplianceRecordDimension from "./compliance-record-dimension"; +export import ComplianceRecordDimension = ComplianceRecordDimension.ComplianceRecordDimension; +import * as ComplianceRecordSummary from "./compliance-record-summary"; +export import ComplianceRecordSummary = ComplianceRecordSummary.ComplianceRecordSummary; import * as ComplianceReport from "./compliance-report"; export import ComplianceReport = ComplianceReport.ComplianceReport; import * as ComplianceReportPatchDetail from "./compliance-report-patch-detail"; @@ -51,16 +88,24 @@ import * as ComplianceReportResource from "./compliance-report-resource"; export import ComplianceReportResource = ComplianceReportResource.ComplianceReportResource; import * as ComplianceReportTarget from "./compliance-report-target"; export import ComplianceReportTarget = ComplianceReportTarget.ComplianceReportTarget; +import * as ComplianceRuleSeverity from "./compliance-rule-severity"; +export import ComplianceRuleSeverity = ComplianceRuleSeverity.ComplianceRuleSeverity; import * as ComplianceState from "./compliance-state"; export import ComplianceState = ComplianceState.ComplianceState; import * as ComponentProperties from "./component-properties"; export import ComponentProperties = ComponentProperties.ComponentProperties; import * as Condition from "./condition"; export import Condition = Condition.Condition; +import * as ConfigAssociationDetails from "./config-association-details"; +export import ConfigAssociationDetails = ConfigAssociationDetails.ConfigAssociationDetails; +import * as ConfigCategoryDetails from "./config-category-details"; +export import ConfigCategoryDetails = ConfigCategoryDetails.ConfigCategoryDetails; import * as ConfirmTargetsDetails from "./confirm-targets-details"; export import ConfirmTargetsDetails = ConfirmTargetsDetails.ConfirmTargetsDetails; import * as ContentDetails from "./content-details"; export import ContentDetails = ContentDetails.ContentDetails; +import * as CreateCompliancePolicyRuleDetails from "./create-compliance-policy-rule-details"; +export import CreateCompliancePolicyRuleDetails = CreateCompliancePolicyRuleDetails.CreateCompliancePolicyRuleDetails; import * as CreateFleetCredentialDetails from "./create-fleet-credential-details"; export import CreateFleetCredentialDetails = CreateFleetCredentialDetails.CreateFleetCredentialDetails; import * as CreateFleetDetails from "./create-fleet-details"; @@ -73,18 +118,30 @@ import * as CreateMaintenanceWindowDetails from "./create-maintenance-window-det export import CreateMaintenanceWindowDetails = CreateMaintenanceWindowDetails.CreateMaintenanceWindowDetails; import * as CreateOnboardingDetails from "./create-onboarding-details"; export import CreateOnboardingDetails = CreateOnboardingDetails.CreateOnboardingDetails; +import * as CreatePatchDetails from "./create-patch-details"; +export import CreatePatchDetails = CreatePatchDetails.CreatePatchDetails; +import * as CreatePlatformConfigurationDetails from "./create-platform-configuration-details"; +export import CreatePlatformConfigurationDetails = CreatePlatformConfigurationDetails.CreatePlatformConfigurationDetails; import * as CreatePropertyDetails from "./create-property-details"; export import CreatePropertyDetails = CreatePropertyDetails.CreatePropertyDetails; +import * as CreateRunbookDetails from "./create-runbook-details"; +export import CreateRunbookDetails = CreateRunbookDetails.CreateRunbookDetails; import * as CreateSchedulerDefinitionDetails from "./create-scheduler-definition-details"; export import CreateSchedulerDefinitionDetails = CreateSchedulerDefinitionDetails.CreateSchedulerDefinitionDetails; +import * as CreateTaskRecordDetails from "./create-task-record-details"; +export import CreateTaskRecordDetails = CreateTaskRecordDetails.CreateTaskRecordDetails; import * as CredentialDetails from "./credential-details"; export import CredentialDetails = CredentialDetails.CredentialDetails; import * as CredentialEntitySpecificDetails from "./credential-entity-specific-details"; export import CredentialEntitySpecificDetails = CredentialEntitySpecificDetails.CredentialEntitySpecificDetails; +import * as DependentPatchDetails from "./dependent-patch-details"; +export import DependentPatchDetails = DependentPatchDetails.DependentPatchDetails; import * as Details from "./details"; export import Details = Details.Details; import * as DiscoveredTarget from "./discovered-target"; export import DiscoveredTarget = DiscoveredTarget.DiscoveredTarget; +import * as EnableLatestPolicyDetails from "./enable-latest-policy-details"; +export import EnableLatestPolicyDetails = EnableLatestPolicyDetails.EnableLatestPolicyDetails; import * as EntityExecutionDetails from "./entity-execution-details"; export import EntityExecutionDetails = EntityExecutionDetails.EntityExecutionDetails; import * as Execution from "./execution"; @@ -97,6 +154,8 @@ import * as ExecutionSummary from "./execution-summary"; export import ExecutionSummary = ExecutionSummary.ExecutionSummary; import * as ExecutionWorkflowDetails from "./execution-workflow-details"; export import ExecutionWorkflowDetails = ExecutionWorkflowDetails.ExecutionWorkflowDetails; +import * as ExportComplianceReportDetails from "./export-compliance-report-details"; +export import ExportComplianceReportDetails = ExportComplianceReportDetails.ExportComplianceReportDetails; import * as Fleet from "./fleet"; export import Fleet = Fleet.Fleet; import * as FleetCollection from "./fleet-collection"; @@ -133,6 +192,8 @@ import * as FleetTargetSummary from "./fleet-target-summary"; export import FleetTargetSummary = FleetTargetSummary.FleetTargetSummary; import * as GenerateComplianceReportDetails from "./generate-compliance-report-details"; export import GenerateComplianceReportDetails = GenerateComplianceReportDetails.GenerateComplianceReportDetails; +import * as GenericArtifact from "./generic-artifact"; +export import GenericArtifact = GenericArtifact.GenericArtifact; import * as Group from "./group"; export import Group = Group.Group; import * as InputArgument from "./input-argument"; @@ -157,6 +218,18 @@ import * as MaintenanceWindowSummary from "./maintenance-window-summary"; export import MaintenanceWindowSummary = MaintenanceWindowSummary.MaintenanceWindowSummary; import * as MaintenanceWindowType from "./maintenance-window-type"; export import MaintenanceWindowType = MaintenanceWindowType.MaintenanceWindowType; +import * as ManageJobExecutionDetails from "./manage-job-execution-details"; +export import ManageJobExecutionDetails = ManageJobExecutionDetails.ManageJobExecutionDetails; +import * as ManageSettingsDetails from "./manage-settings-details"; +export import ManageSettingsDetails = ManageSettingsDetails.ManageSettingsDetails; +import * as ManagedEntity from "./managed-entity"; +export import ManagedEntity = ManagedEntity.ManagedEntity; +import * as ManagedEntityAggregation from "./managed-entity-aggregation"; +export import ManagedEntityAggregation = ManagedEntityAggregation.ManagedEntityAggregation; +import * as ManagedEntityAggregationCollection from "./managed-entity-aggregation-collection"; +export import ManagedEntityAggregationCollection = ManagedEntityAggregationCollection.ManagedEntityAggregationCollection; +import * as ManagedEntityDimension from "./managed-entity-dimension"; +export import ManagedEntityDimension = ManagedEntityDimension.ManagedEntityDimension; import * as NotificationPreferences from "./notification-preferences"; export import NotificationPreferences = NotificationPreferences.NotificationPreferences; import * as Onboarding from "./onboarding"; @@ -183,8 +256,36 @@ import * as OutputVariableDetails from "./output-variable-details"; export import OutputVariableDetails = OutputVariableDetails.OutputVariableDetails; import * as OutputVariableMapping from "./output-variable-mapping"; export import OutputVariableMapping = OutputVariableMapping.OutputVariableMapping; +import * as Patch from "./patch"; +export import Patch = Patch.Patch; +import * as PatchCollection from "./patch-collection"; +export import PatchCollection = PatchCollection.PatchCollection; +import * as PatchProduct from "./patch-product"; +export import PatchProduct = PatchProduct.PatchProduct; +import * as PatchSelectionDetails from "./patch-selection-details"; +export import PatchSelectionDetails = PatchSelectionDetails.PatchSelectionDetails; +import * as PatchSeverity from "./patch-severity"; +export import PatchSeverity = PatchSeverity.PatchSeverity; +import * as PatchSummary from "./patch-summary"; +export import PatchSummary = PatchSummary.PatchSummary; +import * as PatchType from "./patch-type"; +export import PatchType = PatchType.PatchType; +import * as PauseDetails from "./pause-details"; +export import PauseDetails = PauseDetails.PauseDetails; +import * as PlatformConfiguration from "./platform-configuration"; +export import PlatformConfiguration = PlatformConfiguration.PlatformConfiguration; +import * as PlatformConfigurationCollection from "./platform-configuration-collection"; +export import PlatformConfigurationCollection = PlatformConfigurationCollection.PlatformConfigurationCollection; +import * as PlatformConfigurationSummary from "./platform-configuration-summary"; +export import PlatformConfigurationSummary = PlatformConfigurationSummary.PlatformConfigurationSummary; +import * as PlatformSpecificArtifact from "./platform-specific-artifact"; +export import PlatformSpecificArtifact = PlatformSpecificArtifact.PlatformSpecificArtifact; import * as Preferences from "./preferences"; export import Preferences = Preferences.Preferences; +import * as ProductStackSubCategoryDetails from "./product-stack-sub-category-details"; +export import ProductStackSubCategoryDetails = ProductStackSubCategoryDetails.ProductStackSubCategoryDetails; +import * as ProductVersionDetails from "./product-version-details"; +export import ProductVersionDetails = ProductVersionDetails.ProductVersionDetails; import * as Properties from "./properties"; export import Properties = Properties.Properties; import * as Property from "./property"; @@ -193,14 +294,22 @@ import * as PropertyCollection from "./property-collection"; export import PropertyCollection = PropertyCollection.PropertyCollection; import * as PropertySummary from "./property-summary"; export import PropertySummary = PropertySummary.PropertySummary; +import * as PublishRunbookDetails from "./publish-runbook-details"; +export import PublishRunbookDetails = PublishRunbookDetails.PublishRunbookDetails; import * as RequestResourceValidationDetails from "./request-resource-validation-details"; export import RequestResourceValidationDetails = RequestResourceValidationDetails.RequestResourceValidationDetails; import * as RequestTargetDiscoveryDetails from "./request-target-discovery-details"; export import RequestTargetDiscoveryDetails = RequestTargetDiscoveryDetails.RequestTargetDiscoveryDetails; +import * as ResourceCollection from "./resource-collection"; +export import ResourceCollection = ResourceCollection.ResourceCollection; +import * as ResourceSummary from "./resource-summary"; +export import ResourceSummary = ResourceSummary.ResourceSummary; import * as ResourceTagCheckDetails from "./resource-tag-check-details"; export import ResourceTagCheckDetails = ResourceTagCheckDetails.ResourceTagCheckDetails; import * as ResourceTagEnablementInfo from "./resource-tag-enablement-info"; export import ResourceTagEnablementInfo = ResourceTagEnablementInfo.ResourceTagEnablementInfo; +import * as RollbackWorkflowDetails from "./rollback-workflow-details"; +export import RollbackWorkflowDetails = RollbackWorkflowDetails.RollbackWorkflowDetails; import * as Rule from "./rule"; export import Rule = Rule.Rule; import * as Runbook from "./runbook"; @@ -223,8 +332,14 @@ import * as SchedulerDefinitionSummary from "./scheduler-definition-summary"; export import SchedulerDefinitionSummary = SchedulerDefinitionSummary.SchedulerDefinitionSummary; import * as SchedulerJob from "./scheduler-job"; export import SchedulerJob = SchedulerJob.SchedulerJob; +import * as SchedulerJobAggregation from "./scheduler-job-aggregation"; +export import SchedulerJobAggregation = SchedulerJobAggregation.SchedulerJobAggregation; +import * as SchedulerJobAggregationCollection from "./scheduler-job-aggregation-collection"; +export import SchedulerJobAggregationCollection = SchedulerJobAggregationCollection.SchedulerJobAggregationCollection; import * as SchedulerJobCollection from "./scheduler-job-collection"; export import SchedulerJobCollection = SchedulerJobCollection.SchedulerJobCollection; +import * as SchedulerJobDimension from "./scheduler-job-dimension"; +export import SchedulerJobDimension = SchedulerJobDimension.SchedulerJobDimension; import * as SchedulerJobSummary from "./scheduler-job-summary"; export import SchedulerJobSummary = SchedulerJobSummary.SchedulerJobSummary; import * as Scope from "./scope"; @@ -233,8 +348,14 @@ import * as Selection from "./selection"; export import Selection = Selection.Selection; import * as SelectionCriteria from "./selection-criteria"; export import SelectionCriteria = SelectionCriteria.SelectionCriteria; +import * as SetDefaultRunbookDetails from "./set-default-runbook-details"; +export import SetDefaultRunbookDetails = SetDefaultRunbookDetails.SetDefaultRunbookDetails; import * as SortOrder from "./sort-order"; export import SortOrder = SortOrder.SortOrder; +import * as StepCollection from "./step-collection"; +export import StepCollection = StepCollection.StepCollection; +import * as StepSummary from "./step-summary"; +export import StepSummary = StepSummary.StepSummary; import * as TargetResource from "./target-resource"; export import TargetResource = TargetResource.TargetResource; import * as Task from "./task"; @@ -243,6 +364,8 @@ import * as TaskArgument from "./task-argument"; export import TaskArgument = TaskArgument.TaskArgument; import * as TaskExecutionType from "./task-execution-type"; export import TaskExecutionType = TaskExecutionType.TaskExecutionType; +import * as TaskNotificationPreferences from "./task-notification-preferences"; +export import TaskNotificationPreferences = TaskNotificationPreferences.TaskNotificationPreferences; import * as TaskRecord from "./task-record"; export import TaskRecord = TaskRecord.TaskRecord; import * as TaskRecordCollection from "./task-record-collection"; @@ -253,6 +376,8 @@ import * as TaskScope from "./task-scope"; export import TaskScope = TaskScope.TaskScope; import * as TaskVariable from "./task-variable"; export import TaskVariable = TaskVariable.TaskVariable; +import * as UpdateCompliancePolicyRuleDetails from "./update-compliance-policy-rule-details"; +export import UpdateCompliancePolicyRuleDetails = UpdateCompliancePolicyRuleDetails.UpdateCompliancePolicyRuleDetails; import * as UpdateFleetCredentialDetails from "./update-fleet-credential-details"; export import UpdateFleetCredentialDetails = UpdateFleetCredentialDetails.UpdateFleetCredentialDetails; import * as UpdateFleetDetails from "./update-fleet-details"; @@ -263,14 +388,28 @@ import * as UpdateFleetResourceDetails from "./update-fleet-resource-details"; export import UpdateFleetResourceDetails = UpdateFleetResourceDetails.UpdateFleetResourceDetails; import * as UpdateMaintenanceWindowDetails from "./update-maintenance-window-details"; export import UpdateMaintenanceWindowDetails = UpdateMaintenanceWindowDetails.UpdateMaintenanceWindowDetails; +import * as UpdateOnboardingDetails from "./update-onboarding-details"; +export import UpdateOnboardingDetails = UpdateOnboardingDetails.UpdateOnboardingDetails; +import * as UpdatePatchDetails from "./update-patch-details"; +export import UpdatePatchDetails = UpdatePatchDetails.UpdatePatchDetails; +import * as UpdatePlatformConfigurationDetails from "./update-platform-configuration-details"; +export import UpdatePlatformConfigurationDetails = UpdatePlatformConfigurationDetails.UpdatePlatformConfigurationDetails; import * as UpdatePropertyDetails from "./update-property-details"; export import UpdatePropertyDetails = UpdatePropertyDetails.UpdatePropertyDetails; +import * as UpdateRunbookDetails from "./update-runbook-details"; +export import UpdateRunbookDetails = UpdateRunbookDetails.UpdateRunbookDetails; import * as UpdateSchedulerDefinitionDetails from "./update-scheduler-definition-details"; export import UpdateSchedulerDefinitionDetails = UpdateSchedulerDefinitionDetails.UpdateSchedulerDefinitionDetails; import * as UpdateSchedulerJobDetails from "./update-scheduler-job-details"; export import UpdateSchedulerJobDetails = UpdateSchedulerJobDetails.UpdateSchedulerJobDetails; +import * as UpdateTaskRecordDetails from "./update-task-record-details"; +export import UpdateTaskRecordDetails = UpdateTaskRecordDetails.UpdateTaskRecordDetails; +import * as UserActionDetails from "./user-action-details"; +export import UserActionDetails = UserActionDetails.UserActionDetails; import * as ValueType from "./value-type"; export import ValueType = ValueType.ValueType; +import * as Variable from "./variable"; +export import Variable = Variable.Variable; import * as WorkRequest from "./work-request"; export import WorkRequest = WorkRequest.WorkRequest; import * as WorkRequestError from "./work-request-error"; @@ -294,26 +433,62 @@ export import WorkflowComponent = WorkflowComponent.WorkflowComponent; import * as WorkflowGroup from "./workflow-group"; export import WorkflowGroup = WorkflowGroup.WorkflowGroup; +import * as ActionGroupBasedUserActionDetails from "./action-group-based-user-action-details"; +export import ActionGroupBasedUserActionDetails = ActionGroupBasedUserActionDetails.ActionGroupBasedUserActionDetails; import * as ApiBasedExecutionDetails from "./api-based-execution-details"; export import ApiBasedExecutionDetails = ApiBasedExecutionDetails.ApiBasedExecutionDetails; import * as AssociatedLocalTaskDetails from "./associated-local-task-details"; export import AssociatedLocalTaskDetails = AssociatedLocalTaskDetails.AssociatedLocalTaskDetails; import * as AssociatedSharedTaskDetails from "./associated-shared-task-details"; export import AssociatedSharedTaskDetails = AssociatedSharedTaskDetails.AssociatedSharedTaskDetails; +import * as CredentialConfigCategoryDetails from "./credential-config-category-details"; +export import CredentialConfigCategoryDetails = CredentialConfigCategoryDetails.CredentialConfigCategoryDetails; +import * as EnvironmentConfigCategoryDetails from "./environment-config-category-details"; +export import EnvironmentConfigCategoryDetails = EnvironmentConfigCategoryDetails.EnvironmentConfigCategoryDetails; +import * as FleetCredentialEntitySpecificDetails from "./fleet-credential-entity-specific-details"; +export import FleetCredentialEntitySpecificDetails = FleetCredentialEntitySpecificDetails.FleetCredentialEntitySpecificDetails; +import * as GenericArtifactDetails from "./generic-artifact-details"; +export import GenericArtifactDetails = GenericArtifactDetails.GenericArtifactDetails; import * as KeyEncryptionCredentialDetails from "./key-encryption-credential-details"; export import KeyEncryptionCredentialDetails = KeyEncryptionCredentialDetails.KeyEncryptionCredentialDetails; import * as ObjectStorageBucketContentDetails from "./object-storage-bucket-content-details"; export import ObjectStorageBucketContentDetails = ObjectStorageBucketContentDetails.ObjectStorageBucketContentDetails; import * as OutputVariableInputArgument from "./output-variable-input-argument"; export import OutputVariableInputArgument = OutputVariableInputArgument.OutputVariableInputArgument; +import * as PatchLevelSelectionDetails from "./patch-level-selection-details"; +export import PatchLevelSelectionDetails = PatchLevelSelectionDetails.PatchLevelSelectionDetails; +import * as PatchNameSelectionDetails from "./patch-name-selection-details"; +export import PatchNameSelectionDetails = PatchNameSelectionDetails.PatchNameSelectionDetails; +import * as PatchReleaseDateSelectionDetails from "./patch-release-date-selection-details"; +export import PatchReleaseDateSelectionDetails = PatchReleaseDateSelectionDetails.PatchReleaseDateSelectionDetails; +import * as PatchTypeConfigCategoryDetails from "./patch-type-config-category-details"; +export import PatchTypeConfigCategoryDetails = PatchTypeConfigCategoryDetails.PatchTypeConfigCategoryDetails; import * as PlainTextCredentialDetails from "./plain-text-credential-details"; export import PlainTextCredentialDetails = PlainTextCredentialDetails.PlainTextCredentialDetails; +import * as PlatformSpecificArtifactDetails from "./platform-specific-artifact-details"; +export import PlatformSpecificArtifactDetails = PlatformSpecificArtifactDetails.PlatformSpecificArtifactDetails; +import * as ProductConfigCategoryDetails from "./product-config-category-details"; +export import ProductConfigCategoryDetails = ProductConfigCategoryDetails.ProductConfigCategoryDetails; +import * as ProductStackAsProductSubCategoryDetails from "./product-stack-as-product-sub-category-details"; +export import ProductStackAsProductSubCategoryDetails = ProductStackAsProductSubCategoryDetails.ProductStackAsProductSubCategoryDetails; +import * as ProductStackConfigCategoryDetails from "./product-stack-config-category-details"; +export import ProductStackConfigCategoryDetails = ProductStackConfigCategoryDetails.ProductStackConfigCategoryDetails; +import * as ProductStackGenericSubCategoryDetails from "./product-stack-generic-sub-category-details"; +export import ProductStackGenericSubCategoryDetails = ProductStackGenericSubCategoryDetails.ProductStackGenericSubCategoryDetails; +import * as ResourceCredentialEntitySpecificDetails from "./resource-credential-entity-specific-details"; +export import ResourceCredentialEntitySpecificDetails = ResourceCredentialEntitySpecificDetails.ResourceCredentialEntitySpecificDetails; import * as ScriptBasedExecutionDetails from "./script-based-execution-details"; export import ScriptBasedExecutionDetails = ScriptBasedExecutionDetails.ScriptBasedExecutionDetails; +import * as StepBasedUserActionDetails from "./step-based-user-action-details"; +export import StepBasedUserActionDetails = StepBasedUserActionDetails.StepBasedUserActionDetails; import * as StringInputArgument from "./string-input-argument"; export import StringInputArgument = StringInputArgument.StringInputArgument; import * as TargetCredentialEntitySpecificDetails from "./target-credential-entity-specific-details"; export import TargetCredentialEntitySpecificDetails = TargetCredentialEntitySpecificDetails.TargetCredentialEntitySpecificDetails; +import * as TimeBasedPauseDetails from "./time-based-pause-details"; +export import TimeBasedPauseDetails = TimeBasedPauseDetails.TimeBasedPauseDetails; +import * as UserActionBasedPauseDetails from "./user-action-based-pause-details"; +export import UserActionBasedPauseDetails = UserActionBasedPauseDetails.UserActionBasedPauseDetails; import * as VaultSecretCredentialDetails from "./vault-secret-credential-details"; export import VaultSecretCredentialDetails = VaultSecretCredentialDetails.VaultSecretCredentialDetails; import * as WorkflowGroupComponent from "./workflow-group-component"; diff --git a/lib/fleetappsmanagement/lib/model/input-argument.ts b/lib/fleetappsmanagement/lib/model/input-argument.ts index b0a3ab5740..591d3d0e0f 100644 --- a/lib/fleetappsmanagement/lib/model/input-argument.ts +++ b/lib/fleetappsmanagement/lib/model/input-argument.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -21,7 +20,7 @@ import common = require("oci-common"); */ export interface InputArgument { /** - * The name of the argument + * The name of the argument. */ "name": string; /** diff --git a/lib/fleetappsmanagement/lib/model/input-parameter.ts b/lib/fleetappsmanagement/lib/model/input-parameter.ts index b583c59634..84aeb2a5a1 100644 --- a/lib/fleetappsmanagement/lib/model/input-parameter.ts +++ b/lib/fleetappsmanagement/lib/model/input-parameter.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/inventory-resource-collection.ts b/lib/fleetappsmanagement/lib/model/inventory-resource-collection.ts index 2a8e1464f3..6b7c592cb5 100644 --- a/lib/fleetappsmanagement/lib/model/inventory-resource-collection.ts +++ b/lib/fleetappsmanagement/lib/model/inventory-resource-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/inventory-resource-summary.ts b/lib/fleetappsmanagement/lib/model/inventory-resource-summary.ts index 7dd5d3abf8..a800923855 100644 --- a/lib/fleetappsmanagement/lib/model/inventory-resource-summary.ts +++ b/lib/fleetappsmanagement/lib/model/inventory-resource-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -41,15 +40,15 @@ Example: {@code My new resource} */ "type": string; /** - * Compartment Id of the resource + * Compartment Id of the resource. */ "resourceCompartmentId"?: string; /** - * Availability Domain of the resource + * Availability Domain of the resource. */ "availabilityDomain"?: string; /** - * Region the resource belongs to + * The region the resource belongs to. */ "resourceRegion"?: string; /** diff --git a/lib/fleetappsmanagement/lib/model/job-activity.ts b/lib/fleetappsmanagement/lib/model/job-activity.ts index 2e4bd0ff25..ea06e47521 100644 --- a/lib/fleetappsmanagement/lib/model/job-activity.ts +++ b/lib/fleetappsmanagement/lib/model/job-activity.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,35 +16,43 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Description of JobActivity. + * Activity details including status corresponding to an Action Group. */ export interface JobActivity { /** - * Unique activity id at action group level + * Unique activity id at the action group level. + * In most cases, this would be a generated ActionGroupId. + * */ "id": string; /** - * Status of the Job at Action Group Level + * Status of the Job at Action Group Level. */ "status": model.JobStatus; /** - * The time the the Scheduler Job started. An RFC3339 formatted datetime string + * The time the execution for the Action Group started. An RFC3339 formatted datetime string. */ "timeStarted"?: Date; /** - * The time the Scheduler Job ended. An RFC3339 formatted datetime string + * The time the execution for the Action Group ended. An RFC3339 formatted datetime string */ "timeEnded"?: Date; /** - * ID of the runbook + * OCID of the runbook associated with the Action Group. */ "runbookId"?: string; /** - * Name of the runbook + * Name of the runbook associated with the Action Group. */ "runbookName"?: string; /** - * Resources execution details and outcomes associated with the Task. + * A description of the Job Activity status. + * If there are any errors, this can also include a short error message. + * + */ + "description"?: string; + /** + * List of Resource executions associated with the Action Group. */ "resourceLevelExecutions"?: Array; } diff --git a/lib/fleetappsmanagement/lib/model/job-status.ts b/lib/fleetappsmanagement/lib/model/job-status.ts index a4cc12b0bf..021e57b443 100644 --- a/lib/fleetappsmanagement/lib/model/job-status.ts +++ b/lib/fleetappsmanagement/lib/model/job-status.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -31,6 +30,7 @@ export enum JobStatus { NotApplicable = "NOT_APPLICABLE", Aborted = "ABORTED", TimedOut = "TIMED_OUT", + Paused = "PAUSED", /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/lib/fleetappsmanagement/lib/model/key-encryption-credential-details.ts b/lib/fleetappsmanagement/lib/model/key-encryption-credential-details.ts index 25df474d8e..576875288b 100644 --- a/lib/fleetappsmanagement/lib/model/key-encryption-credential-details.ts +++ b/lib/fleetappsmanagement/lib/model/key-encryption-credential-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Details for Credentials using key encryption. + * Details for the Credentials that use key encryption. */ export interface KeyEncryptionCredentialDetails extends model.CredentialDetails { /** - * The value corresponding to the credential + * The value corresponding to the credential. */ "value": string; /** @@ -33,7 +32,7 @@ export interface KeyEncryptionCredentialDetails extends model.CredentialDetails */ "keyVersion"?: string; /** - * OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given. + * OCID for the Vault that will be used to fetch the key to encrypt/decrypt the value given. */ "vaultId": string; diff --git a/lib/fleetappsmanagement/lib/model/life-cycle-action-group-type.ts b/lib/fleetappsmanagement/lib/model/life-cycle-action-group-type.ts index 8bee02a468..fd459cb80c 100644 --- a/lib/fleetappsmanagement/lib/model/life-cycle-action-group-type.ts +++ b/lib/fleetappsmanagement/lib/model/life-cycle-action-group-type.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/maintenance-window-collection.ts b/lib/fleetappsmanagement/lib/model/maintenance-window-collection.ts index 83c98e094e..0d5ab6c530 100644 --- a/lib/fleetappsmanagement/lib/model/maintenance-window-collection.ts +++ b/lib/fleetappsmanagement/lib/model/maintenance-window-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Results of a maintenanceWindow search. Contains boh MaintenanceWindowSummary items and other information, such as metadata. + * Results of a maintenanceWindow search. Contains both MaintenanceWindowSummary items and other information, such as metadata. */ export interface MaintenanceWindowCollection { /** diff --git a/lib/fleetappsmanagement/lib/model/maintenance-window-summary.ts b/lib/fleetappsmanagement/lib/model/maintenance-window-summary.ts index 1cda28810c..6ed0867f10 100644 --- a/lib/fleetappsmanagement/lib/model/maintenance-window-summary.ts +++ b/lib/fleetappsmanagement/lib/model/maintenance-window-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -60,26 +59,33 @@ Example: {@code My new resource} "maintenanceWindowType"?: model.MaintenanceWindowType; /** * Does the maintenenace window cause outage? + * An outage indicates whether a maintenance window can consider operations that require downtime. + * It means a period when the application is not accessible. + * */ "isOutage": boolean; /** - * Start time of schedule + * Specify the date and time of the day that the maintenance window starts. */ "timeScheduleStart"?: Date; /** - * Duration if schedule type is Custom + * Duration of the maintenance window. + * Specify how long the maintenance window remains open. + * */ "duration": string; /** - * Is this is a recurring maintenance window + * Is this a recurring maintenance window? */ "isRecurring": boolean; /** - * Recurrence rule specification if recurring + * Recurrence rule specification if maintenance window recurring. + * Specify the frequency of running the maintenance window. + * */ "recurrences"?: string; /** - * Task initiation cutoff Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Task initiation cutoff time for the maintenance window. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "taskInitiationCutoff": number; /** diff --git a/lib/fleetappsmanagement/lib/model/maintenance-window-type.ts b/lib/fleetappsmanagement/lib/model/maintenance-window-type.ts index 49a2600a0b..82cbe5cc7b 100644 --- a/lib/fleetappsmanagement/lib/model/maintenance-window-type.ts +++ b/lib/fleetappsmanagement/lib/model/maintenance-window-type.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/maintenance-window.ts b/lib/fleetappsmanagement/lib/model/maintenance-window.ts index 49544641c5..d9bb2e6f4a 100644 --- a/lib/fleetappsmanagement/lib/model/maintenance-window.ts +++ b/lib/fleetappsmanagement/lib/model/maintenance-window.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Details of Maintenance Window. + * Details of Maintenance Window in Fleet Application Management. */ export interface MaintenanceWindow { /** @@ -60,26 +59,33 @@ Example: {@code My new resource} "maintenanceWindowType"?: model.MaintenanceWindowType; /** * Does the maintenenace window cause outage? + * An outage indicates whether a maintenance window can consider operations that require downtime. + * It means a period when the application is not accessible. + * */ "isOutage": boolean; /** - * Start time of schedule + * Specify the date and time of the day that the maintenance window starts. */ "timeScheduleStart"?: Date; /** - * Duration if schedule type is Custom + * Duration of the maintenance window. + * Specify how long the maintenance window remains open. + * */ "duration": string; /** - * Is this is a recurring maintenance window + * Is this a recurring maintenance window? */ "isRecurring": boolean; /** - * Recurrence rule specification if recurring + * Recurrence rule specification if maintenance window recurring. + * Specify the frequency of running the maintenance window. + * */ "recurrences"?: string; /** - * Task initiation cutoff Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Task initiation cutoff time for the maintenance window. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "taskInitiationCutoff": number; /** diff --git a/lib/fleetappsmanagement/lib/model/manage-job-execution-details.ts b/lib/fleetappsmanagement/lib/model/manage-job-execution-details.ts new file mode 100644 index 0000000000..cc31811877 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/manage-job-execution-details.ts @@ -0,0 +1,51 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the Job Execution actions. + * + */ +export interface ManageJobExecutionDetails { + "actionDetails": model.StepBasedUserActionDetails | model.ActionGroupBasedUserActionDetails; +} + +export namespace ManageJobExecutionDetails { + export function getJsonObj(obj: ManageJobExecutionDetails): object { + const jsonObj = { + ...obj, + ...{ + "actionDetails": obj.actionDetails + ? model.UserActionDetails.getJsonObj(obj.actionDetails) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ManageJobExecutionDetails): object { + const jsonObj = { + ...obj, + ...{ + "actionDetails": obj.actionDetails + ? model.UserActionDetails.getDeserializedJsonObj(obj.actionDetails) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/manage-settings-details.ts b/lib/fleetappsmanagement/lib/model/manage-settings-details.ts new file mode 100644 index 0000000000..19c7373392 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/manage-settings-details.ts @@ -0,0 +1,39 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface ManageSettingsDetails { + /** + * Provide discovery frequency. + */ + "discoveryFrequency"?: string; +} + +export namespace ManageSettingsDetails { + export function getJsonObj(obj: ManageSettingsDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ManageSettingsDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/managed-entity-aggregation-collection.ts b/lib/fleetappsmanagement/lib/model/managed-entity-aggregation-collection.ts new file mode 100644 index 0000000000..f4a5a86df2 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/managed-entity-aggregation-collection.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * An array of Managed Entity objects + */ +export interface ManagedEntityAggregationCollection { + /** + * List of ManagedEntityAggregation objects. + */ + "items": Array; +} + +export namespace ManagedEntityAggregationCollection { + export function getJsonObj(obj: ManagedEntityAggregationCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ManagedEntityAggregation.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ManagedEntityAggregationCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ManagedEntityAggregation.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/managed-entity-aggregation.ts b/lib/fleetappsmanagement/lib/model/managed-entity-aggregation.ts new file mode 100644 index 0000000000..f4502aebff --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/managed-entity-aggregation.ts @@ -0,0 +1,54 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Aggregated summary information for ManagedEntity + */ +export interface ManagedEntityAggregation { + /** + * count of Managed Entities in a Tenancy. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "count": number; + "dimensions": model.ManagedEntityDimension; +} + +export namespace ManagedEntityAggregation { + export function getJsonObj(obj: ManagedEntityAggregation): object { + const jsonObj = { + ...obj, + ...{ + "dimensions": obj.dimensions + ? model.ManagedEntityDimension.getJsonObj(obj.dimensions) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ManagedEntityAggregation): object { + const jsonObj = { + ...obj, + ...{ + "dimensions": obj.dimensions + ? model.ManagedEntityDimension.getDeserializedJsonObj(obj.dimensions) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/managed-entity-dimension.ts b/lib/fleetappsmanagement/lib/model/managed-entity-dimension.ts new file mode 100644 index 0000000000..65e6f7e428 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/managed-entity-dimension.ts @@ -0,0 +1,39 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Aggregated summary information for ComplianceRecord + */ +export interface ManagedEntityDimension { + /** + * Level at which the compliance is calculated. + */ + "entity": model.ManagedEntity; +} + +export namespace ManagedEntityDimension { + export function getJsonObj(obj: ManagedEntityDimension): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ManagedEntityDimension): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/managed-entity.ts b/lib/fleetappsmanagement/lib/model/managed-entity.ts new file mode 100644 index 0000000000..6a60b92853 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/managed-entity.ts @@ -0,0 +1,39 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible values for Managed Entities. + **/ +export enum ManagedEntity { + Resource = "RESOURCE", + Target = "TARGET", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace ManagedEntity { + export function getJsonObj(obj: ManagedEntity): ManagedEntity { + return obj; + } + export function getDeserializedJsonObj(obj: ManagedEntity): ManagedEntity { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/notification-preferences.ts b/lib/fleetappsmanagement/lib/model/notification-preferences.ts index 3c50cc319d..f4e26b0e7a 100644 --- a/lib/fleetappsmanagement/lib/model/notification-preferences.ts +++ b/lib/fleetappsmanagement/lib/model/notification-preferences.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,15 +16,17 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Conditions when met to send notifications on the fleet activities + * Notification information to get notified when the fleet status changes. */ export interface NotificationPreferences { /** - * Topic Id where the notifications will be directed + * Topic Id where the notifications will be directed. + * A topic is a communication channel for sending messages on chosen events to subscriptions. + * */ "topicId": string; /** - * Copartment Id of the topic where the notifications will be directed + * Compartment ID the topic belongs to. */ "compartmentId": string; "preferences"?: model.Preferences; diff --git a/lib/fleetappsmanagement/lib/model/object-storage-bucket-content-details.ts b/lib/fleetappsmanagement/lib/model/object-storage-bucket-content-details.ts index a2ff693943..32ee725268 100644 --- a/lib/fleetappsmanagement/lib/model/object-storage-bucket-content-details.ts +++ b/lib/fleetappsmanagement/lib/model/object-storage-bucket-content-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -18,7 +17,7 @@ import common = require("oci-common"); /** * Details about Object Storage Bucket source. - * Restricted to the region this is called + * Restricted to the region this is called. * */ export interface ObjectStorageBucketContentDetails extends model.ContentDetails { @@ -35,7 +34,7 @@ export interface ObjectStorageBucketContentDetails extends model.ContentDetails */ "objectName": string; /** - * SHA256 checksum of the artifact. + * md5 checksum of the artifact. */ "checksum": string; diff --git a/lib/fleetappsmanagement/lib/model/onboarding-collection.ts b/lib/fleetappsmanagement/lib/model/onboarding-collection.ts index f5d08c6ddb..077e66efa1 100644 --- a/lib/fleetappsmanagement/lib/model/onboarding-collection.ts +++ b/lib/fleetappsmanagement/lib/model/onboarding-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * List of FleetAppManagementService Onboardings. + * List of Fleet Application Management Onboardings. */ export interface OnboardingCollection { /** - * List of FleetAppManagementService Onboardings. + * List of Fleet Application Management Onboardings. */ "items": Array; } diff --git a/lib/fleetappsmanagement/lib/model/onboarding-policy-collection.ts b/lib/fleetappsmanagement/lib/model/onboarding-policy-collection.ts index 171b04c5f0..fc7185e9cd 100644 --- a/lib/fleetappsmanagement/lib/model/onboarding-policy-collection.ts +++ b/lib/fleetappsmanagement/lib/model/onboarding-policy-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * List of FleetAppManagementService Onboard policies. + * List of Fleet Application Management Onboard policies. */ export interface OnboardingPolicyCollection { /** - * List of FleetAppManagementService Onboard policies. + * List of Fleet Application Management Onboard policies. */ "items": Array; } diff --git a/lib/fleetappsmanagement/lib/model/onboarding-policy-summary.ts b/lib/fleetappsmanagement/lib/model/onboarding-policy-summary.ts index a11354d297..7062f9e897 100644 --- a/lib/fleetappsmanagement/lib/model/onboarding-policy-summary.ts +++ b/lib/fleetappsmanagement/lib/model/onboarding-policy-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Summary of the FleetAppManagementService Onboard Policy. + * Summary of the Fleet Application Management Onboard Policy. */ export interface OnboardingPolicySummary { /** diff --git a/lib/fleetappsmanagement/lib/model/onboarding-summary.ts b/lib/fleetappsmanagement/lib/model/onboarding-summary.ts index f372aae658..3d1ba3da89 100644 --- a/lib/fleetappsmanagement/lib/model/onboarding-summary.ts +++ b/lib/fleetappsmanagement/lib/model/onboarding-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Summary of the FleetAppManagementService Onboarding. + * Summary of the Fleet Application Management Onboarding. */ export interface OnboardingSummary { /** @@ -41,17 +40,26 @@ export interface OnboardingSummary { */ "timeUpdated"?: Date; /** - * A value determining FAMS tag is enabled or not + * A value determining if the Fleet Application Management tagging is enabled or not. + * Allow Fleet Application Management to tag resources with fleet name using \"Oracle$FAMS-Tags.FleetName\" tag. + * */ "isFamsTagEnabled"?: boolean; /** - * Version of FAMS the tenant is onboarded to. + * The version of Fleet Application Management that the tenant is onboarded to. */ "version"?: string; /** - * A value determining if cost tracking tag is enabled or not + * A value determining if the cost tracking tag is enabled or not. + * Allow Fleet Application Management to tag resources with cost tracking tag using \"Oracle$FAMS-Tags.FAMSManaged\" tag. + * */ "isCostTrackingTagEnabled"?: boolean; + "appliedPolicies"?: model.OnboardingPolicySummary; + /** + * Provide discovery frequency. + */ + "discoveryFrequency"?: string; /** * The current state of the Onboarding. */ @@ -66,12 +74,26 @@ export interface OnboardingSummary { export namespace OnboardingSummary { export function getJsonObj(obj: OnboardingSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "appliedPolicies": obj.appliedPolicies + ? model.OnboardingPolicySummary.getJsonObj(obj.appliedPolicies) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: OnboardingSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "appliedPolicies": obj.appliedPolicies + ? model.OnboardingPolicySummary.getDeserializedJsonObj(obj.appliedPolicies) + : undefined + } + }; return jsonObj; } diff --git a/lib/fleetappsmanagement/lib/model/onboarding.ts b/lib/fleetappsmanagement/lib/model/onboarding.ts index 4918f32e6b..5fe5d14e66 100644 --- a/lib/fleetappsmanagement/lib/model/onboarding.ts +++ b/lib/fleetappsmanagement/lib/model/onboarding.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,9 @@ import * as model from "../model"; import common = require("oci-common"); /** - * FleetAppManagementService onboarding resource. + * Fleet Application Management onboarding resource. + * The onboarding process lets\u00A0Fleet Application Management\u00A0create a few required policies that you need to start using it and its features. + * */ export interface Onboarding { /** @@ -41,17 +42,26 @@ export interface Onboarding { */ "timeUpdated"?: Date; /** - * A value determining FAMS tag is enabled or not + * A value determining if the Fleet Application Management tagging is enabled or not. + * Allow Fleet Application Management to tag resources with fleet name using \"Oracle$FAMS-Tags.FleetName\" tag. + * */ "isFamsTagEnabled"?: boolean; /** - * Version of FAMS the tenant is onboarded to. + * The version of Fleet Application Management that the tenant is onboarded to. */ "version"?: string; /** - * A value determining if cost tracking tag is enabled or not + * A value determining if the cost tracking tag is enabled or not. + * Allow Fleet Application Management to tag resources with cost tracking tag using \"Oracle$FAMS-Tags.FAMSManaged\" tag. + * */ "isCostTrackingTagEnabled"?: boolean; + "appliedPolicies"?: model.OnboardingPolicySummary; + /** + * Provide discovery frequency. + */ + "discoveryFrequency"?: string; /** * The current state of the Onboarding. */ @@ -82,12 +92,26 @@ export namespace Onboarding { } export function getJsonObj(obj: Onboarding): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "appliedPolicies": obj.appliedPolicies + ? model.OnboardingPolicySummary.getJsonObj(obj.appliedPolicies) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: Onboarding): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "appliedPolicies": obj.appliedPolicies + ? model.OnboardingPolicySummary.getDeserializedJsonObj(obj.appliedPolicies) + : undefined + } + }; return jsonObj; } diff --git a/lib/fleetappsmanagement/lib/model/operation-runbook.ts b/lib/fleetappsmanagement/lib/model/operation-runbook.ts index b69c54464b..2e3f355602 100644 --- a/lib/fleetappsmanagement/lib/model/operation-runbook.ts +++ b/lib/fleetappsmanagement/lib/model/operation-runbook.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/operation-status.ts b/lib/fleetappsmanagement/lib/model/operation-status.ts index 8c82da7556..da9ef5cd9a 100644 --- a/lib/fleetappsmanagement/lib/model/operation-status.ts +++ b/lib/fleetappsmanagement/lib/model/operation-status.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/operation-type.ts b/lib/fleetappsmanagement/lib/model/operation-type.ts index 123f9bd22d..9273df673a 100644 --- a/lib/fleetappsmanagement/lib/model/operation-type.ts +++ b/lib/fleetappsmanagement/lib/model/operation-type.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -38,6 +37,22 @@ export enum OperationType { UpdateFleetResource = "UPDATE_FLEET_RESOURCE", DeleteFleetResource = "DELETE_FLEET_RESOURCE", CreateFamsOnboarding = "CREATE_FAMS_ONBOARDING", + CreateRunbook = "CREATE_RUNBOOK", + UpdateRunbook = "UPDATE_RUNBOOK", + DeleteRunbook = "DELETE_RUNBOOK", + PublishRunbook = "PUBLISH_RUNBOOK", + UpdateTask = "UPDATE_TASK", + DeleteTask = "DELETE_TASK", + UpdateFamsOnboarding = "UPDATE_FAMS_ONBOARDING", + DeleteFamsOnboarding = "DELETE_FAMS_ONBOARDING", + CreateCompliancePolicyRule = "CREATE_COMPLIANCE_POLICY_RULE", + UpdateCompliancePolicyRule = "UPDATE_COMPLIANCE_POLICY_RULE", + DeleteCompliancePolicyRule = "DELETE_COMPLIANCE_POLICY_RULE", + UpdatePatch = "UPDATE_PATCH", + DeletePatch = "DELETE_PATCH", + ManageJobExecution = "MANAGE_JOB_EXECUTION", + DeletePlatformConfiguration = "DELETE_PLATFORM_CONFIGURATION", + UpdatePlatformConfiguration = "UPDATE_PLATFORM_CONFIGURATION", /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/lib/fleetappsmanagement/lib/model/os-type.ts b/lib/fleetappsmanagement/lib/model/os-type.ts index 8cb2816c16..1368555b89 100644 --- a/lib/fleetappsmanagement/lib/model/os-type.ts +++ b/lib/fleetappsmanagement/lib/model/os-type.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/outcome.ts b/lib/fleetappsmanagement/lib/model/outcome.ts index 12943bd25a..fc46ca1291 100644 --- a/lib/fleetappsmanagement/lib/model/outcome.ts +++ b/lib/fleetappsmanagement/lib/model/outcome.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,19 +16,19 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Execution Outcome + * Execution Outcome. */ export interface Outcome { /** - * A shortened version of Execution Output + * A shortened version of Execution output. */ "output": string; /** - * Errors if any associated with the execution + * Errors if any, associated with the execution. */ "error"?: string; /** - * Exit Code + * Exit Code. */ "exitCode"?: string; } diff --git a/lib/fleetappsmanagement/lib/model/output-variable-details.ts b/lib/fleetappsmanagement/lib/model/output-variable-details.ts index ac1d84657f..3db635400d 100644 --- a/lib/fleetappsmanagement/lib/model/output-variable-details.ts +++ b/lib/fleetappsmanagement/lib/model/output-variable-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -25,7 +24,7 @@ export interface OutputVariableDetails { */ "stepName": string; /** - * The name of the output variable whose value that has to be mapped. + * The name of the output variable whose value has to be mapped. */ "outputVariableName": string; } diff --git a/lib/fleetappsmanagement/lib/model/output-variable-input-argument.ts b/lib/fleetappsmanagement/lib/model/output-variable-input-argument.ts index c84a415a24..2d7939d42f 100644 --- a/lib/fleetappsmanagement/lib/model/output-variable-input-argument.ts +++ b/lib/fleetappsmanagement/lib/model/output-variable-input-argument.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The details of the output variable that will be used as Input argument. + * The details of the output variable that will be used as the Input argument. */ export interface OutputVariableInputArgument extends model.InputArgument { "type": string; diff --git a/lib/fleetappsmanagement/lib/model/output-variable-mapping.ts b/lib/fleetappsmanagement/lib/model/output-variable-mapping.ts index 51019f0a0e..6acbc29fc5 100644 --- a/lib/fleetappsmanagement/lib/model/output-variable-mapping.ts +++ b/lib/fleetappsmanagement/lib/model/output-variable-mapping.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,13 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The details of the output variable that will be used as Input argument. + * Output variable to Input variable mapping details. + * Output variable of a task can be used as an input variable for a subsequent task. + * */ export interface OutputVariableMapping { /** - * The name of the input variable + * The name of the input variable. */ "name": string; "outputVariableDetails": model.OutputVariableDetails; diff --git a/lib/fleetappsmanagement/lib/model/patch-collection.ts b/lib/fleetappsmanagement/lib/model/patch-collection.ts new file mode 100644 index 0000000000..1ab8a732be --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/patch-collection.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a patch search. Contains both PatchSummary items and other information, such as metadata. + */ +export interface PatchCollection { + /** + * List of patches. + */ + "items": Array; +} + +export namespace PatchCollection { + export function getJsonObj(obj: PatchCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.PatchSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: PatchCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.PatchSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/patch-level-selection-details.ts b/lib/fleetappsmanagement/lib/model/patch-level-selection-details.ts new file mode 100644 index 0000000000..9541d8f13c --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/patch-level-selection-details.ts @@ -0,0 +1,70 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Patch Level Details. + * If you set the policy rule by selecting this option and provide the Patch level as Latest, Fleet Application Management calculates the compliance status of the product in the following ways: + * - Reports the patch process as compliant for the software identified or targets discovered at the Latest and Latest-1 version. + * - Reports the patch process as noncompliant for the software identified or targets discovered at the Latest-2 version. + * + */ +export interface PatchLevelSelectionDetails extends model.PatchSelectionDetails { + /** + * Patch Name. + */ + "patchLevel": PatchLevelSelectionDetails.PatchLevel; + + "selectionType": string; +} + +export namespace PatchLevelSelectionDetails { + export enum PatchLevel { + Latest = "LATEST", + LatestMinusOne = "LATEST_MINUS_ONE", + LatestMinusTwo = "LATEST_MINUS_TWO", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: PatchLevelSelectionDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PatchSelectionDetails.getJsonObj(obj) as PatchLevelSelectionDetails)), + ...{} + }; + + return jsonObj; + } + export const selectionType = "PATCH_LEVEL"; + export function getDeserializedJsonObj( + obj: PatchLevelSelectionDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PatchSelectionDetails.getDeserializedJsonObj(obj) as PatchLevelSelectionDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/patch-name-selection-details.ts b/lib/fleetappsmanagement/lib/model/patch-name-selection-details.ts new file mode 100644 index 0000000000..4e3dfd5ddb --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/patch-name-selection-details.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Patch Name Details. + * If you set the policy rule by selecting this option, provide a specific patch name. + * + */ +export interface PatchNameSelectionDetails extends model.PatchSelectionDetails { + /** + * Patch Name. + */ + "patchName": string; + + "selectionType": string; +} + +export namespace PatchNameSelectionDetails { + export function getJsonObj(obj: PatchNameSelectionDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PatchSelectionDetails.getJsonObj(obj) as PatchNameSelectionDetails)), + ...{} + }; + + return jsonObj; + } + export const selectionType = "PATCH_NAME"; + export function getDeserializedJsonObj( + obj: PatchNameSelectionDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PatchSelectionDetails.getDeserializedJsonObj(obj) as PatchNameSelectionDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/patch-product.ts b/lib/fleetappsmanagement/lib/model/patch-product.ts new file mode 100644 index 0000000000..99a07fdcff --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/patch-product.ts @@ -0,0 +1,43 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Product + */ +export interface PatchProduct { + /** + * PlatformConfiguration Id corresponding to the Product + */ + "platformConfigurationId": string; + /** + * product version. + */ + "version"?: string; +} + +export namespace PatchProduct { + export function getJsonObj(obj: PatchProduct): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: PatchProduct): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/patch-release-date-selection-details.ts b/lib/fleetappsmanagement/lib/model/patch-release-date-selection-details.ts new file mode 100644 index 0000000000..664d9bf0c7 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/patch-release-date-selection-details.ts @@ -0,0 +1,62 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Days since patch release date details. + * If you set the policy rule by selecting this option and entering the number of days since release, Fleet Application Management calculates the number of days passed after the release date and reports the product as noncompliant if the days exceed the number provided in Days since release + * + */ +export interface PatchReleaseDateSelectionDetails extends model.PatchSelectionDetails { + /** + * Days passed since patch release. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "daysSinceRelease": number; + + "selectionType": string; +} + +export namespace PatchReleaseDateSelectionDetails { + export function getJsonObj( + obj: PatchReleaseDateSelectionDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PatchSelectionDetails.getJsonObj(obj) as PatchReleaseDateSelectionDetails)), + ...{} + }; + + return jsonObj; + } + export const selectionType = "PATCH_RELEASE_DATE"; + export function getDeserializedJsonObj( + obj: PatchReleaseDateSelectionDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PatchSelectionDetails.getDeserializedJsonObj( + obj + ) as PatchReleaseDateSelectionDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/patch-selection-details.ts b/lib/fleetappsmanagement/lib/model/patch-selection-details.ts new file mode 100644 index 0000000000..d88c84020e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/patch-selection-details.ts @@ -0,0 +1,78 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Patch Selection Details + */ +export interface PatchSelectionDetails { + "selectionType": string; +} + +export namespace PatchSelectionDetails { + export function getJsonObj(obj: PatchSelectionDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "selectionType" in obj && obj.selectionType) { + switch (obj.selectionType) { + case "PATCH_LEVEL": + return model.PatchLevelSelectionDetails.getJsonObj( + (jsonObj), + true + ); + case "PATCH_RELEASE_DATE": + return model.PatchReleaseDateSelectionDetails.getJsonObj( + (jsonObj), + true + ); + case "PATCH_NAME": + return model.PatchNameSelectionDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.selectionType}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: PatchSelectionDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "selectionType" in obj && obj.selectionType) { + switch (obj.selectionType) { + case "PATCH_LEVEL": + return model.PatchLevelSelectionDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "PATCH_RELEASE_DATE": + return model.PatchReleaseDateSelectionDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "PATCH_NAME": + return model.PatchNameSelectionDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.selectionType}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/patch-severity.ts b/lib/fleetappsmanagement/lib/model/patch-severity.ts new file mode 100644 index 0000000000..32129ffb9a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/patch-severity.ts @@ -0,0 +1,41 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible Patch severities. + **/ +export enum PatchSeverity { + Critical = "CRITICAL", + High = "HIGH", + Medium = "MEDIUM", + Low = "LOW", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace PatchSeverity { + export function getJsonObj(obj: PatchSeverity): PatchSeverity { + return obj; + } + export function getDeserializedJsonObj(obj: PatchSeverity): PatchSeverity { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/patch-summary.ts b/lib/fleetappsmanagement/lib/model/patch-summary.ts new file mode 100644 index 0000000000..2892b6da22 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/patch-summary.ts @@ -0,0 +1,133 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the Patch. + */ +export interface PatchSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. + * Avoid entering confidential information. + * + */ + "name": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Provide information on who defined the patch. + * Example: For Custom Patches the value will be USER_DEFINED + * For Oracle Defined Patches the value will be ORACLE_DEFINED + * + */ + "type"?: string; + "patchType": model.PatchType; + /** + * Patch Severity. + */ + "severity": model.PatchSeverity; + /** + * Date when the patch was released. + */ + "timeReleased": Date; + "artifactDetails"?: model.PlatformSpecificArtifactDetails | model.GenericArtifactDetails; + "product": model.PatchProduct; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * The current state of the Patch. + */ + "lifecycleState": string; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated": Date; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace PatchSummary { + export function getJsonObj(obj: PatchSummary): object { + const jsonObj = { + ...obj, + ...{ + "patchType": obj.patchType ? model.PatchType.getJsonObj(obj.patchType) : undefined, + + "artifactDetails": obj.artifactDetails + ? model.ArtifactDetails.getJsonObj(obj.artifactDetails) + : undefined, + "product": obj.product ? model.PatchProduct.getJsonObj(obj.product) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: PatchSummary): object { + const jsonObj = { + ...obj, + ...{ + "patchType": obj.patchType + ? model.PatchType.getDeserializedJsonObj(obj.patchType) + : undefined, + + "artifactDetails": obj.artifactDetails + ? model.ArtifactDetails.getDeserializedJsonObj(obj.artifactDetails) + : undefined, + "product": obj.product ? model.PatchProduct.getDeserializedJsonObj(obj.product) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/patch-type-config-category-details.ts b/lib/fleetappsmanagement/lib/model/patch-type-config-category-details.ts new file mode 100644 index 0000000000..99600c0482 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/patch-type-config-category-details.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Patch Type Config Category Details. + * Defines software patch types as per product standards referred under available Patches for supported products. + * + */ +export interface PatchTypeConfigCategoryDetails extends model.ConfigCategoryDetails { + "configCategory": string; +} + +export namespace PatchTypeConfigCategoryDetails { + export function getJsonObj( + obj: PatchTypeConfigCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConfigCategoryDetails.getJsonObj(obj) as PatchTypeConfigCategoryDetails)), + ...{} + }; + + return jsonObj; + } + export const configCategory = "PATCH_TYPE"; + export function getDeserializedJsonObj( + obj: PatchTypeConfigCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConfigCategoryDetails.getDeserializedJsonObj( + obj + ) as PatchTypeConfigCategoryDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/patch-type.ts b/lib/fleetappsmanagement/lib/model/patch-type.ts new file mode 100644 index 0000000000..9157867e60 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/patch-type.ts @@ -0,0 +1,39 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Patch Type + */ +export interface PatchType { + /** + * PlatformConfiguration Id corresponding to the Patch Type + */ + "platformConfigurationId": string; +} + +export namespace PatchType { + export function getJsonObj(obj: PatchType): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: PatchType): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/patch.ts b/lib/fleetappsmanagement/lib/model/patch.ts new file mode 100644 index 0000000000..d4652cc53b --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/patch.ts @@ -0,0 +1,172 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Patch metadata for Custom and Oracle patches. + */ +export interface Patch { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. + * Avoid entering confidential information. + * + */ + "name": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Provide information on who defined the patch. + * Example: For Custom Patches the value will be USER_DEFINED + * For Oracle Defined Patches the value will be ORACLE_DEFINED + * + */ + "type"?: Patch.Type; + "patchType": model.PatchType; + /** + * Patch Severity. + */ + "severity": model.PatchSeverity; + /** + * Date when the patch was released. + */ + "timeReleased": Date; + "artifactDetails": model.PlatformSpecificArtifactDetails | model.GenericArtifactDetails; + "product": model.PatchProduct; + /** + * Dependent Patches for this patch. + * + */ + "dependentPatches"?: Array; + /** + * The current state of the Patch. + */ + "lifecycleState": Patch.LifecycleState; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated": Date; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace Patch { + export enum Type { + UserDefined = "USER_DEFINED", + OracleDefined = "ORACLE_DEFINED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum LifecycleState { + Active = "ACTIVE", + Inactive = "INACTIVE", + Deleted = "DELETED", + Deleting = "DELETING", + Failed = "FAILED", + Updating = "UPDATING", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Patch): object { + const jsonObj = { + ...obj, + ...{ + "patchType": obj.patchType ? model.PatchType.getJsonObj(obj.patchType) : undefined, + + "artifactDetails": obj.artifactDetails + ? model.ArtifactDetails.getJsonObj(obj.artifactDetails) + : undefined, + "product": obj.product ? model.PatchProduct.getJsonObj(obj.product) : undefined, + "dependentPatches": obj.dependentPatches + ? obj.dependentPatches.map(item => { + return model.DependentPatchDetails.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Patch): object { + const jsonObj = { + ...obj, + ...{ + "patchType": obj.patchType + ? model.PatchType.getDeserializedJsonObj(obj.patchType) + : undefined, + + "artifactDetails": obj.artifactDetails + ? model.ArtifactDetails.getDeserializedJsonObj(obj.artifactDetails) + : undefined, + "product": obj.product ? model.PatchProduct.getDeserializedJsonObj(obj.product) : undefined, + "dependentPatches": obj.dependentPatches + ? obj.dependentPatches.map(item => { + return model.DependentPatchDetails.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/pause-details.ts b/lib/fleetappsmanagement/lib/model/pause-details.ts new file mode 100644 index 0000000000..8d32967e3d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/pause-details.ts @@ -0,0 +1,68 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Pause Details + */ +export interface PauseDetails { + "kind": string; +} + +export namespace PauseDetails { + export function getJsonObj(obj: PauseDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "kind" in obj && obj.kind) { + switch (obj.kind) { + case "USER_ACTION": + return model.UserActionBasedPauseDetails.getJsonObj( + (jsonObj), + true + ); + case "TIME_BASED": + return model.TimeBasedPauseDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.kind}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: PauseDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "kind" in obj && obj.kind) { + switch (obj.kind) { + case "USER_ACTION": + return model.UserActionBasedPauseDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "TIME_BASED": + return model.TimeBasedPauseDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.kind}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/plain-text-credential-details.ts b/lib/fleetappsmanagement/lib/model/plain-text-credential-details.ts index 2836a7f6ac..f2641afb7f 100644 --- a/lib/fleetappsmanagement/lib/model/plain-text-credential-details.ts +++ b/lib/fleetappsmanagement/lib/model/plain-text-credential-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -21,7 +20,7 @@ import common = require("oci-common"); */ export interface PlainTextCredentialDetails extends model.CredentialDetails { /** - * The value corresponding to the credential + * The value corresponding to the credential. */ "value": string; diff --git a/lib/fleetappsmanagement/lib/model/platform-configuration-collection.ts b/lib/fleetappsmanagement/lib/model/platform-configuration-collection.ts new file mode 100644 index 0000000000..540b9984f3 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/platform-configuration-collection.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a platform configuration search. + */ +export interface PlatformConfigurationCollection { + /** + * List of configurations + */ + "items": Array; +} + +export namespace PlatformConfigurationCollection { + export function getJsonObj(obj: PlatformConfigurationCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.PlatformConfigurationSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: PlatformConfigurationCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.PlatformConfigurationSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/platform-configuration-summary.ts b/lib/fleetappsmanagement/lib/model/platform-configuration-summary.ts new file mode 100644 index 0000000000..20bfe709c6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/platform-configuration-summary.ts @@ -0,0 +1,119 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the PlatformConfiguration. + */ +export interface PlatformConfigurationSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Associated region + */ + "resourceRegion": string; + /** + * The type of the configuration. + */ + "type"?: string; + "configCategoryDetails"?: + | model.ProductStackConfigCategoryDetails + | model.EnvironmentConfigCategoryDetails + | model.CredentialConfigCategoryDetails + | model.PatchTypeConfigCategoryDetails + | model.ProductConfigCategoryDetails; + /** + * The current state of the PlatformConfiguration. + */ + "lifecycleState": string; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace PlatformConfigurationSummary { + export function getJsonObj(obj: PlatformConfigurationSummary): object { + const jsonObj = { + ...obj, + ...{ + "configCategoryDetails": obj.configCategoryDetails + ? model.ConfigCategoryDetails.getJsonObj(obj.configCategoryDetails) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: PlatformConfigurationSummary): object { + const jsonObj = { + ...obj, + ...{ + "configCategoryDetails": obj.configCategoryDetails + ? model.ConfigCategoryDetails.getDeserializedJsonObj(obj.configCategoryDetails) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/platform-configuration.ts b/lib/fleetappsmanagement/lib/model/platform-configuration.ts new file mode 100644 index 0000000000..5d9447410f --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/platform-configuration.ts @@ -0,0 +1,142 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Fleet Application Management Platform Configuration . + */ +export interface PlatformConfiguration { + /** + * The OCID of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Associated region + */ + "resourceRegion": string; + /** + * The type of the configuration. + */ + "type"?: PlatformConfiguration.Type; + "configCategoryDetails"?: + | model.ProductStackConfigCategoryDetails + | model.EnvironmentConfigCategoryDetails + | model.CredentialConfigCategoryDetails + | model.PatchTypeConfigCategoryDetails + | model.ProductConfigCategoryDetails; + /** + * The current state of the PlatformConfiguration. + */ + "lifecycleState": PlatformConfiguration.LifecycleState; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace PlatformConfiguration { + export enum Type { + UserDefined = "USER_DEFINED", + OracleDefined = "ORACLE_DEFINED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum LifecycleState { + Active = "ACTIVE", + Deleted = "DELETED", + Failed = "FAILED", + Deleting = "DELETING", + Updating = "UPDATING", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: PlatformConfiguration): object { + const jsonObj = { + ...obj, + ...{ + "configCategoryDetails": obj.configCategoryDetails + ? model.ConfigCategoryDetails.getJsonObj(obj.configCategoryDetails) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: PlatformConfiguration): object { + const jsonObj = { + ...obj, + ...{ + "configCategoryDetails": obj.configCategoryDetails + ? model.ConfigCategoryDetails.getDeserializedJsonObj(obj.configCategoryDetails) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/platform-specific-artifact-details.ts b/lib/fleetappsmanagement/lib/model/platform-specific-artifact-details.ts new file mode 100644 index 0000000000..43806d7d30 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/platform-specific-artifact-details.ts @@ -0,0 +1,72 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Patch artifact description and content details which is platform specific + * + */ +export interface PlatformSpecificArtifactDetails extends model.ArtifactDetails { + /** + * Artifacts. + * + */ + "artifacts": Array; + + "category": string; +} + +export namespace PlatformSpecificArtifactDetails { + export function getJsonObj( + obj: PlatformSpecificArtifactDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ArtifactDetails.getJsonObj(obj) as PlatformSpecificArtifactDetails)), + ...{ + "artifacts": obj.artifacts + ? obj.artifacts.map(item => { + return model.PlatformSpecificArtifact.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const category = "PLATFORM_SPECIFIC"; + export function getDeserializedJsonObj( + obj: PlatformSpecificArtifactDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ArtifactDetails.getDeserializedJsonObj(obj) as PlatformSpecificArtifactDetails)), + ...{ + "artifacts": obj.artifacts + ? obj.artifacts.map(item => { + return model.PlatformSpecificArtifact.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/platform-specific-artifact.ts b/lib/fleetappsmanagement/lib/model/platform-specific-artifact.ts new file mode 100644 index 0000000000..53f0fef449 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/platform-specific-artifact.ts @@ -0,0 +1,77 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Patch artifact metadata Details which is platform specific. + * + */ +export interface PlatformSpecificArtifact { + "content": model.ObjectStorageBucketContentDetails; + /** + * The OS type the patch is applicable for. + */ + "osType": PlatformSpecificArtifact.OsType; + /** + * System architecture. + */ + "architecture": PlatformSpecificArtifact.Architecture; +} + +export namespace PlatformSpecificArtifact { + export enum OsType { + Windows = "WINDOWS", + Linux = "LINUX", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum Architecture { + Arm64 = "ARM_64", + X64 = "X64", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: PlatformSpecificArtifact): object { + const jsonObj = { + ...obj, + ...{ + "content": obj.content ? model.ContentDetails.getJsonObj(obj.content) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: PlatformSpecificArtifact): object { + const jsonObj = { + ...obj, + ...{ + "content": obj.content + ? model.ContentDetails.getDeserializedJsonObj(obj.content) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/preferences.ts b/lib/fleetappsmanagement/lib/model/preferences.ts index edcc5e67f8..0d88f0406a 100644 --- a/lib/fleetappsmanagement/lib/model/preferences.ts +++ b/lib/fleetappsmanagement/lib/model/preferences.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Preferences to send notifications on the fleet activities + * Preferences to send notifications on the fleet activities. */ export interface Preferences { /** @@ -25,7 +24,7 @@ export interface Preferences { */ "onUpcomingSchedule"?: boolean; /** - * Enables or disables notification on Job Failures.' + * Enables or disables notification on Job Failures. */ "onJobFailure"?: boolean; /** diff --git a/lib/fleetappsmanagement/lib/model/product-config-category-details.ts b/lib/fleetappsmanagement/lib/model/product-config-category-details.ts new file mode 100644 index 0000000000..1e7ad2adcd --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/product-config-category-details.ts @@ -0,0 +1,118 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Product Config Category Details. + * Defines individual products which contribute to the applications hosting on the resources that are to be managed. + * + */ +export interface ProductConfigCategoryDetails extends model.ConfigCategoryDetails { + /** + * Versions associated with the PRODUCT . + * + */ + "versions": Array; + /** + * OCID for the Credential name to be associated with the Product. + * These are useful for target discovery or lifecycle management activities, for example, Oracle WebLogic admin credentials for Oracle WebLogic Application server. + * + */ + "credentials"?: Array; + /** + * Various components of the Product. + * For example:The administration server or node manager can be the components of the Oracle WebLogic Application server. + * Forms server or concurrent manager can be the components of the Oracle E-Business Suite. + * + */ + "components"?: Array; + /** + * Products compatible with this Product. + * Provide products from the list of other products you have created that are compatible with the present one + * + */ + "compatibleProducts"?: Array; + /** + * Patch Types associated with this Product. + * + */ + "patchTypes"?: Array; + + "configCategory": string; +} + +export namespace ProductConfigCategoryDetails { + export function getJsonObj(obj: ProductConfigCategoryDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConfigCategoryDetails.getJsonObj(obj) as ProductConfigCategoryDetails)), + ...{ + "credentials": obj.credentials + ? obj.credentials.map(item => { + return model.ConfigAssociationDetails.getJsonObj(item); + }) + : undefined, + + "compatibleProducts": obj.compatibleProducts + ? obj.compatibleProducts.map(item => { + return model.ConfigAssociationDetails.getJsonObj(item); + }) + : undefined, + "patchTypes": obj.patchTypes + ? obj.patchTypes.map(item => { + return model.ConfigAssociationDetails.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const configCategory = "PRODUCT"; + export function getDeserializedJsonObj( + obj: ProductConfigCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConfigCategoryDetails.getDeserializedJsonObj( + obj + ) as ProductConfigCategoryDetails)), + ...{ + "credentials": obj.credentials + ? obj.credentials.map(item => { + return model.ConfigAssociationDetails.getDeserializedJsonObj(item); + }) + : undefined, + + "compatibleProducts": obj.compatibleProducts + ? obj.compatibleProducts.map(item => { + return model.ConfigAssociationDetails.getDeserializedJsonObj(item); + }) + : undefined, + "patchTypes": obj.patchTypes + ? obj.patchTypes.map(item => { + return model.ConfigAssociationDetails.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/product-stack-as-product-sub-category-details.ts b/lib/fleetappsmanagement/lib/model/product-stack-as-product-sub-category-details.ts new file mode 100644 index 0000000000..4bbcfed67e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/product-stack-as-product-sub-category-details.ts @@ -0,0 +1,108 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Consider Product stack as product.To be provided if the product stack should be considered as a Product also. + * Allows compliance reporting and patching against the product stack target. + * + */ +export interface ProductStackAsProductSubCategoryDetails + extends model.ProductStackSubCategoryDetails { + /** + * Versions associated with the PRODUCT . + * + */ + "versions": Array; + /** + * OCID for the Credential name to be associated with the Product Stack. + * These are useful for target discovery or lifecycle management activities, for example, Oracle WebLogic admin credentials for Oracle WebLogic Application server. + * + */ + "credentials"?: Array; + /** + * Various components of the Product. + * For example:The administration server or node manager can be the components of the Oracle WebLogic Application server. + * Forms server or concurrent manager can be the components of the Oracle E-Business Suite. + * + */ + "components"?: Array; + /** + * Patch Types associated with this Product Stack which will be considered as Product. + * + */ + "patchTypes"?: Array; + + "subCategory": string; +} + +export namespace ProductStackAsProductSubCategoryDetails { + export function getJsonObj( + obj: ProductStackAsProductSubCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ProductStackSubCategoryDetails.getJsonObj( + obj + ) as ProductStackAsProductSubCategoryDetails)), + ...{ + "credentials": obj.credentials + ? obj.credentials.map(item => { + return model.ConfigAssociationDetails.getJsonObj(item); + }) + : undefined, + + "patchTypes": obj.patchTypes + ? obj.patchTypes.map(item => { + return model.ConfigAssociationDetails.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const subCategory = "PRODUCT_STACK_AS_PRODUCT"; + export function getDeserializedJsonObj( + obj: ProductStackAsProductSubCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ProductStackSubCategoryDetails.getDeserializedJsonObj( + obj + ) as ProductStackAsProductSubCategoryDetails)), + ...{ + "credentials": obj.credentials + ? obj.credentials.map(item => { + return model.ConfigAssociationDetails.getDeserializedJsonObj(item); + }) + : undefined, + + "patchTypes": obj.patchTypes + ? obj.patchTypes.map(item => { + return model.ConfigAssociationDetails.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/product-stack-config-category-details.ts b/lib/fleetappsmanagement/lib/model/product-stack-config-category-details.ts new file mode 100644 index 0000000000..6a4d3711db --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/product-stack-config-category-details.ts @@ -0,0 +1,85 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * ProductStack Config Category Details. + * Defines suite or stack of products on which applications hosted by the resources are built and need to be managed. + * + */ +export interface ProductStackConfigCategoryDetails extends model.ConfigCategoryDetails { + /** + * Products that belong to the stack. + * For example, Oracle WebLogic and Java for the Oracle Fusion Middleware product stack. + * + */ + "products": Array; + "subCategoryDetails"?: + | model.ProductStackAsProductSubCategoryDetails + | model.ProductStackGenericSubCategoryDetails; + + "configCategory": string; +} + +export namespace ProductStackConfigCategoryDetails { + export function getJsonObj( + obj: ProductStackConfigCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConfigCategoryDetails.getJsonObj(obj) as ProductStackConfigCategoryDetails)), + ...{ + "products": obj.products + ? obj.products.map(item => { + return model.ConfigAssociationDetails.getJsonObj(item); + }) + : undefined, + "subCategoryDetails": obj.subCategoryDetails + ? model.ProductStackSubCategoryDetails.getJsonObj(obj.subCategoryDetails) + : undefined + } + }; + + return jsonObj; + } + export const configCategory = "PRODUCT_STACK"; + export function getDeserializedJsonObj( + obj: ProductStackConfigCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConfigCategoryDetails.getDeserializedJsonObj( + obj + ) as ProductStackConfigCategoryDetails)), + ...{ + "products": obj.products + ? obj.products.map(item => { + return model.ConfigAssociationDetails.getDeserializedJsonObj(item); + }) + : undefined, + "subCategoryDetails": obj.subCategoryDetails + ? model.ProductStackSubCategoryDetails.getDeserializedJsonObj(obj.subCategoryDetails) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/product-stack-generic-sub-category-details.ts b/lib/fleetappsmanagement/lib/model/product-stack-generic-sub-category-details.ts new file mode 100644 index 0000000000..23a17fa2f7 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/product-stack-generic-sub-category-details.ts @@ -0,0 +1,59 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Generic Product Stack.Can be used for grouping Products. + * + */ +export interface ProductStackGenericSubCategoryDetails + extends model.ProductStackSubCategoryDetails { + "subCategory": string; +} + +export namespace ProductStackGenericSubCategoryDetails { + export function getJsonObj( + obj: ProductStackGenericSubCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ProductStackSubCategoryDetails.getJsonObj( + obj + ) as ProductStackGenericSubCategoryDetails)), + ...{} + }; + + return jsonObj; + } + export const subCategory = "PRODUCT_STACK_GENERIC"; + export function getDeserializedJsonObj( + obj: ProductStackGenericSubCategoryDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ProductStackSubCategoryDetails.getDeserializedJsonObj( + obj + ) as ProductStackGenericSubCategoryDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/product-stack-sub-category-details.ts b/lib/fleetappsmanagement/lib/model/product-stack-sub-category-details.ts new file mode 100644 index 0000000000..9460d1dd8b --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/product-stack-sub-category-details.ts @@ -0,0 +1,68 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * ProductStack Config Category Details. + */ +export interface ProductStackSubCategoryDetails { + "subCategory": string; +} + +export namespace ProductStackSubCategoryDetails { + export function getJsonObj(obj: ProductStackSubCategoryDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "subCategory" in obj && obj.subCategory) { + switch (obj.subCategory) { + case "PRODUCT_STACK_AS_PRODUCT": + return model.ProductStackAsProductSubCategoryDetails.getJsonObj( + (jsonObj), + true + ); + case "PRODUCT_STACK_GENERIC": + return model.ProductStackGenericSubCategoryDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.subCategory}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: ProductStackSubCategoryDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "subCategory" in obj && obj.subCategory) { + switch (obj.subCategory) { + case "PRODUCT_STACK_AS_PRODUCT": + return model.ProductStackAsProductSubCategoryDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "PRODUCT_STACK_GENERIC": + return model.ProductStackGenericSubCategoryDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.subCategory}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/product-version-details.ts b/lib/fleetappsmanagement/lib/model/product-version-details.ts new file mode 100644 index 0000000000..ef0ff24c2b --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/product-version-details.ts @@ -0,0 +1,46 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * A specific product version or a specific version and succeeding. + * Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. + * The policy applies to the next version only, and not to other versions such as, 12.1.x. + * + */ +export interface ProductVersionDetails { + /** + * Product version the rule is applicable. + */ + "version": string; + /** + * Is rule applicable to all higher versions also + */ + "isApplicableForAllHigherVersions"?: boolean; +} + +export namespace ProductVersionDetails { + export function getJsonObj(obj: ProductVersionDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ProductVersionDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/properties.ts b/lib/fleetappsmanagement/lib/model/properties.ts index 41b471f922..42a12554af 100644 --- a/lib/fleetappsmanagement/lib/model/properties.ts +++ b/lib/fleetappsmanagement/lib/model/properties.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/property-collection.ts b/lib/fleetappsmanagement/lib/model/property-collection.ts index 3eef0ef35f..9d87d8e17e 100644 --- a/lib/fleetappsmanagement/lib/model/property-collection.ts +++ b/lib/fleetappsmanagement/lib/model/property-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Results of a property search. Contains boh PropertySummary items and other information, such as metadata. + * Results of a property search. Contains both PropertySummary items and other information, such as metadata. */ export interface PropertyCollection { /** - * List of propertys. + * List of properties. */ "items": Array; } diff --git a/lib/fleetappsmanagement/lib/model/property-summary.ts b/lib/fleetappsmanagement/lib/model/property-summary.ts index 691215608a..f8d418353a 100644 --- a/lib/fleetappsmanagement/lib/model/property-summary.ts +++ b/lib/fleetappsmanagement/lib/model/property-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -57,19 +56,19 @@ Example: {@code My new resource} */ "lifecycleDetails"?: string; /** - * Text selection of the category + * Text selection of the property. */ "selection"?: model.Selection; /** - * Format of the value + * Format of the value. */ "valueType"?: model.ValueType; /** - * Values of the property (must be a single value if selection = 'single choice') + * Values of the property (must be a single value if selection = 'SINGLE_CHOICE'). */ "values"?: Array; /** - * The scope of the property + * The scope of the property. */ "scope"?: model.Scope; /** diff --git a/lib/fleetappsmanagement/lib/model/property.ts b/lib/fleetappsmanagement/lib/model/property.ts index 3dcd8d563a..84beadf8b1 100644 --- a/lib/fleetappsmanagement/lib/model/property.ts +++ b/lib/fleetappsmanagement/lib/model/property.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Taxonomy metadata aka Property . + * Global metadata element details. */ export interface Property { /** @@ -57,19 +56,19 @@ Example: {@code My new resource} */ "lifecycleDetails"?: string; /** - * Text selection of the category + * Text selection of the property. */ "selection"?: model.Selection; /** - * Format of the value + * Format of the value. */ "valueType"?: model.ValueType; /** - * Values of the property (must be a single value if selection = 'single choice') + * Values of the property (must be a single value if selection = 'SINGLE_CHOICE'). */ "values"?: Array; /** - * The scope of the property + * The scope of the property. */ "scope"?: model.Scope; /** diff --git a/lib/fleetappsmanagement/lib/model/publish-runbook-details.ts b/lib/fleetappsmanagement/lib/model/publish-runbook-details.ts new file mode 100644 index 0000000000..9f9d030325 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/publish-runbook-details.ts @@ -0,0 +1,39 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Request to publish Runbook. + */ +export interface PublishRunbookDetails { + /** + * The OCID of the resource. + */ + "runbookId": string; +} + +export namespace PublishRunbookDetails { + export function getJsonObj(obj: PublishRunbookDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: PublishRunbookDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/request-resource-validation-details.ts b/lib/fleetappsmanagement/lib/model/request-resource-validation-details.ts index d171c04aed..c5792fe486 100644 --- a/lib/fleetappsmanagement/lib/model/request-resource-validation-details.ts +++ b/lib/fleetappsmanagement/lib/model/request-resource-validation-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,16 +16,16 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Request to initiate resource validation + * Request to initiate resource validation. * */ export interface RequestResourceValidationDetails { /** - * A boolean flag which decides if all resources within the fleet should be part of vaidation. + * A boolean flag that decides if all resources within the fleet should be part of the validation. */ "isApplicableToAllResources"?: boolean; /** - * Resource OCIDS that need to be included for validation. + * Resource OCIDS to be included for validation. */ "resourceIds"?: Array; } diff --git a/lib/fleetappsmanagement/lib/model/request-target-discovery-details.ts b/lib/fleetappsmanagement/lib/model/request-target-discovery-details.ts index e27257682d..de60aafc67 100644 --- a/lib/fleetappsmanagement/lib/model/request-target-discovery-details.ts +++ b/lib/fleetappsmanagement/lib/model/request-target-discovery-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,16 +16,16 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Request to initiate target discovery + * Request to initiate target discovery. * */ export interface RequestTargetDiscoveryDetails { /** - * A boolean flag which decides if all resources within the fleet should be part of discovery. + * A boolean flag that decides if all resources within the fleet should be part of discovery. */ "isApplicableToAllResources"?: boolean; /** - * Resource OCIDS that need to be included for discovery. + * Resource OCIDS to be included for discovery. */ "resourceIds"?: Array; } diff --git a/lib/fleetappsmanagement/lib/model/resource-collection.ts b/lib/fleetappsmanagement/lib/model/resource-collection.ts new file mode 100644 index 0000000000..9852ad8b47 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/resource-collection.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a ResourceSummary Search. + */ +export interface ResourceCollection { + /** + * List of Execution Resources. + */ + "items": Array; +} + +export namespace ResourceCollection { + export function getJsonObj(obj: ResourceCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ResourceSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ResourceCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ResourceSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/resource-credential-entity-specific-details.ts b/lib/fleetappsmanagement/lib/model/resource-credential-entity-specific-details.ts new file mode 100644 index 0000000000..fa41b60dcb --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/resource-credential-entity-specific-details.ts @@ -0,0 +1,63 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Resource credential details. + */ +export interface ResourceCredentialEntitySpecificDetails + extends model.CredentialEntitySpecificDetails { + /** + * OCID of the resource for which the credential is created. + */ + "resourceId": string; + + "credentialLevel": string; +} + +export namespace ResourceCredentialEntitySpecificDetails { + export function getJsonObj( + obj: ResourceCredentialEntitySpecificDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialEntitySpecificDetails.getJsonObj( + obj + ) as ResourceCredentialEntitySpecificDetails)), + ...{} + }; + + return jsonObj; + } + export const credentialLevel = "RESOURCE"; + export function getDeserializedJsonObj( + obj: ResourceCredentialEntitySpecificDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialEntitySpecificDetails.getDeserializedJsonObj( + obj + ) as ResourceCredentialEntitySpecificDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/resource-summary.ts b/lib/fleetappsmanagement/lib/model/resource-summary.ts new file mode 100644 index 0000000000..25537d98a9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/resource-summary.ts @@ -0,0 +1,87 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Execution Resource Summary + */ +export interface ResourceSummary { + /** + * Resource Identifier associated with the Work Request. + */ + "resourceId": string; + /** + * Resource Display Name. + */ + "resourceDisplayName"?: string; + /** + * Description of the Resource Execution status. + * If there are any errors, this can also include a short error message. + * + */ + "description"?: string; + /** + * The sequence of the Resource. + */ + "sequence"?: string; + /** + * Targets associated with the resource. + */ + "targets"?: Array; + /** + * Status of the Job at Resource Level. + */ + "status": model.JobStatus; + /** + * The time the task started for the resource. An RFC3339 formatted datetime string + */ + "timeStarted"?: Date; + /** + * The time the task ended for the resource. An RFC3339 formatted datetime string + */ + "timeEnded"?: Date; +} + +export namespace ResourceSummary { + export function getJsonObj(obj: ResourceSummary): object { + const jsonObj = { + ...obj, + ...{ + "targets": obj.targets + ? obj.targets.map(item => { + return model.ActivityResourceTarget.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ResourceSummary): object { + const jsonObj = { + ...obj, + ...{ + "targets": obj.targets + ? obj.targets.map(item => { + return model.ActivityResourceTarget.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/resource-tag-check-details.ts b/lib/fleetappsmanagement/lib/model/resource-tag-check-details.ts index 3129234034..9a238aa629 100644 --- a/lib/fleetappsmanagement/lib/model/resource-tag-check-details.ts +++ b/lib/fleetappsmanagement/lib/model/resource-tag-check-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Request to check resource tagging + * Request to check resource tagging. */ export interface ResourceTagCheckDetails { /** - * Tag enablement Information for resources. + * Tag enablement Information for the resources. */ "tagEnablementInfo": Array; } diff --git a/lib/fleetappsmanagement/lib/model/resource-tag-enablement-info.ts b/lib/fleetappsmanagement/lib/model/resource-tag-enablement-info.ts index 4f05b1e25b..44c357c7f0 100644 --- a/lib/fleetappsmanagement/lib/model/resource-tag-enablement-info.ts +++ b/lib/fleetappsmanagement/lib/model/resource-tag-enablement-info.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Resource tag enablement Information + * Resource tag enablement Information. */ export interface ResourceTagEnablementInfo { /** @@ -25,7 +24,7 @@ export interface ResourceTagEnablementInfo { */ "resourceId": string; /** - * A value which represents if resource can be tagged with Fleet name + * A value that represents if the resource can be tagged with a Fleet name. */ "isTaggingPossible": boolean; } diff --git a/lib/fleetappsmanagement/lib/model/rollback-workflow-details.ts b/lib/fleetappsmanagement/lib/model/rollback-workflow-details.ts new file mode 100644 index 0000000000..e061405c68 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/rollback-workflow-details.ts @@ -0,0 +1,72 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Rollback Workflow details. + */ +export interface RollbackWorkflowDetails { + /** + * rollback Scope + * + */ + "scope": RollbackWorkflowDetails.Scope; + /** + * Rollback Workflow for the runbook. + */ + "workflow": Array; +} + +export namespace RollbackWorkflowDetails { + export enum Scope { + ActionGroup = "ACTION_GROUP", + Target = "TARGET", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: RollbackWorkflowDetails): object { + const jsonObj = { + ...obj, + ...{ + "workflow": obj.workflow + ? obj.workflow.map(item => { + return model.WorkflowGroup.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: RollbackWorkflowDetails): object { + const jsonObj = { + ...obj, + ...{ + "workflow": obj.workflow + ? obj.workflow.map(item => { + return model.WorkflowGroup.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/rule.ts b/lib/fleetappsmanagement/lib/model/rule.ts index 5940d3b484..727565b8bf 100644 --- a/lib/fleetappsmanagement/lib/model/rule.ts +++ b/lib/fleetappsmanagement/lib/model/rule.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,19 +16,27 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Rule Selection Criteria + * Rule for DYNAMIC selection. + * */ export interface Rule { /** - * Rule to be be applied on. + * Based on what the rule is created. + * It can be based on a resourceProperty or a tag. + * If based on a tag, basis will be 'definedTagEquals' + * If based on a resource property, basis will be 'inventoryProperties' + * */ "basis"?: string; /** - * Please provide the root compartmentId (TenancyId). + * Tenancy Id (Root Compartment Id)for which the rule is created. + * */ "compartmentId": string; /** - * Resource Compartment Id.Provide the compartmentId the resource belongs to. + * The Compartment ID to dynamically search resources. + * Provide the compartment ID to which the rule is applicable. + * */ "resourceCompartmentId": string; /** diff --git a/lib/fleetappsmanagement/lib/model/runbook-collection.ts b/lib/fleetappsmanagement/lib/model/runbook-collection.ts index f2c1d2f68d..ea9825c1e5 100644 --- a/lib/fleetappsmanagement/lib/model/runbook-collection.ts +++ b/lib/fleetappsmanagement/lib/model/runbook-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Results of a runbook search. Contains boh RunbookSummary items and other information, such as metadata. + * Results of a runbook search. Contains RunbookSummary items and other information, such as metadata. */ export interface RunbookCollection { /** diff --git a/lib/fleetappsmanagement/lib/model/runbook-summary.ts b/lib/fleetappsmanagement/lib/model/runbook-summary.ts index 8771cc945c..feec3f373b 100644 --- a/lib/fleetappsmanagement/lib/model/runbook-summary.ts +++ b/lib/fleetappsmanagement/lib/model/runbook-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -47,7 +46,7 @@ Example: {@code My new resource} */ "runbookRelevance": string; /** - * The lifecycle operation performed by the task. + * The lifecycle operation performed by the runbook. */ "operation": string; /** @@ -60,10 +59,12 @@ Example: {@code My new resource} "platform": string; /** * Is the runbook default? + * Sets this runbook as the default for the chosen product/product stack for the specified lifecycle operation. + * */ "isDefault": boolean; /** - * Estimated time to successfully complete the runbook execution + * Estimated time to successfully complete the runbook execution. */ "estimatedTime"?: string; /** diff --git a/lib/fleetappsmanagement/lib/model/runbook.ts b/lib/fleetappsmanagement/lib/model/runbook.ts index 3026921eb9..f9bf5a81c9 100644 --- a/lib/fleetappsmanagement/lib/model/runbook.ts +++ b/lib/fleetappsmanagement/lib/model/runbook.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -18,6 +17,8 @@ import common = require("oci-common"); /** * Runbook definition. + * Runbooks allow you to capture procedural tasks for handling a workflow. + * */ export interface Runbook { /** @@ -43,11 +44,12 @@ Example: {@code My new resource} */ "type": Runbook.Type; /** - * Type of runbook structure. + * Relevance of the runbook. + * */ "runbookRelevance": Runbook.RunbookRelevance; /** - * The lifecycle operation performed by the task. + * The lifecycle operation performed by the runbook. */ "operation": string; /** @@ -60,10 +62,12 @@ Example: {@code My new resource} "platform": string; /** * Is the runbook default? + * Sets this runbook as the default for the chosen product/product stack for the specified lifecycle operation. + * */ "isDefault": boolean; /** - * Estimated time to successfully complete the runbook execution + * Estimated time to successfully complete the runbook execution. */ "estimatedTime"?: string; /** @@ -137,6 +141,10 @@ export namespace Runbook { Active = "ACTIVE", Deleted = "DELETED", Failed = "FAILED", + Inactive = "INACTIVE", + Creating = "CREATING", + Deleting = "DELETING", + Updating = "UPDATING", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/fleetappsmanagement/lib/model/schedule.ts b/lib/fleetappsmanagement/lib/model/schedule.ts index f2bb8c1099..04ae094268 100644 --- a/lib/fleetappsmanagement/lib/model/schedule.ts +++ b/lib/fleetappsmanagement/lib/model/schedule.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/scheduled-fleet-collection.ts b/lib/fleetappsmanagement/lib/model/scheduled-fleet-collection.ts index a37e025a5a..edd98e82a9 100644 --- a/lib/fleetappsmanagement/lib/model/scheduled-fleet-collection.ts +++ b/lib/fleetappsmanagement/lib/model/scheduled-fleet-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/scheduled-fleet-summary.ts b/lib/fleetappsmanagement/lib/model/scheduled-fleet-summary.ts index b5d48bfdec..44bd14b0e1 100644 --- a/lib/fleetappsmanagement/lib/model/scheduled-fleet-summary.ts +++ b/lib/fleetappsmanagement/lib/model/scheduled-fleet-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/scheduler-definition-collection.ts b/lib/fleetappsmanagement/lib/model/scheduler-definition-collection.ts index 518b232142..c8d152b5fe 100644 --- a/lib/fleetappsmanagement/lib/model/scheduler-definition-collection.ts +++ b/lib/fleetappsmanagement/lib/model/scheduler-definition-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/scheduler-definition-summary.ts b/lib/fleetappsmanagement/lib/model/scheduler-definition-summary.ts index 522b3de388..89ea615419 100644 --- a/lib/fleetappsmanagement/lib/model/scheduler-definition-summary.ts +++ b/lib/fleetappsmanagement/lib/model/scheduler-definition-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/scheduler-definition.ts b/lib/fleetappsmanagement/lib/model/scheduler-definition.ts index 20c7e69e5d..0cda039796 100644 --- a/lib/fleetappsmanagement/lib/model/scheduler-definition.ts +++ b/lib/fleetappsmanagement/lib/model/scheduler-definition.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -55,11 +54,11 @@ Example: {@code My new resource} */ "timeUpdated"?: Date; /** - * Scheduled date for the next run of the Job. + * The scheduled date for the next run of the Job. */ "timeOfNextRun"?: Date; /** - * Activity Initiation Cut Off Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Activity Initiation Cut Off. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "activityInitiationCutOff"?: number; "schedule"?: model.Schedule; @@ -68,28 +67,28 @@ Example: {@code My new resource} */ "countOfAffectedActionGroups"?: number; /** - * Count of Resources affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Count of Resources affected by the Schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "countOfAffectedResources"?: number; /** - * Count of Targets affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Count of Targets affected by the Schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "countOfAffectedTargets"?: number; /** - * All ActionGroup Types part of the schedule. + * All ActionGroup Types that are part of the schedule. */ "actionGroupTypes"?: Array; /** - * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * All application types that are part of the schedule for ENVIRONMENT ActionGroup Type. * */ "applicationTypes"?: Array; /** - * All products part of the schedule for PRODUCT ActionGroup Type. + * All products that are part of the schedule for PRODUCT ActionGroup Type. */ "products"?: Array; /** - * All LifeCycle Operations part of the schedule + * All LifeCycle Operations that are part of the schedule. */ "lifecycleOperations"?: Array; /** diff --git a/lib/fleetappsmanagement/lib/model/scheduler-job-aggregation-collection.ts b/lib/fleetappsmanagement/lib/model/scheduler-job-aggregation-collection.ts new file mode 100644 index 0000000000..c7a9eb4858 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scheduler-job-aggregation-collection.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * An array of SchedulerJob objects. + */ +export interface SchedulerJobAggregationCollection { + /** + * List of SchedulerJobAggregation objects. + */ + "items": Array; +} + +export namespace SchedulerJobAggregationCollection { + export function getJsonObj(obj: SchedulerJobAggregationCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.SchedulerJobAggregation.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SchedulerJobAggregationCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.SchedulerJobAggregation.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scheduler-job-aggregation.ts b/lib/fleetappsmanagement/lib/model/scheduler-job-aggregation.ts new file mode 100644 index 0000000000..5604991a09 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scheduler-job-aggregation.ts @@ -0,0 +1,54 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Aggregated summary information for SchedulerJob. + */ +export interface SchedulerJobAggregation { + /** + * Count of jobs in a Tenancy. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "count": number; + "dimensions": model.SchedulerJobDimension; +} + +export namespace SchedulerJobAggregation { + export function getJsonObj(obj: SchedulerJobAggregation): object { + const jsonObj = { + ...obj, + ...{ + "dimensions": obj.dimensions + ? model.SchedulerJobDimension.getJsonObj(obj.dimensions) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SchedulerJobAggregation): object { + const jsonObj = { + ...obj, + ...{ + "dimensions": obj.dimensions + ? model.SchedulerJobDimension.getDeserializedJsonObj(obj.dimensions) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scheduler-job-collection.ts b/lib/fleetappsmanagement/lib/model/scheduler-job-collection.ts index 31613d7eed..ac7d9540d4 100644 --- a/lib/fleetappsmanagement/lib/model/scheduler-job-collection.ts +++ b/lib/fleetappsmanagement/lib/model/scheduler-job-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Results of a schedulerJob search. Contains boh SchedulerJobSummary items and other information, such as metadata. + * Results of a schedulerJob search. Contains SchedulerJobSummary items and other information, such as metadata. */ export interface SchedulerJobCollection { /** diff --git a/lib/fleetappsmanagement/lib/model/scheduler-job-dimension.ts b/lib/fleetappsmanagement/lib/model/scheduler-job-dimension.ts new file mode 100644 index 0000000000..4a7388ec56 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scheduler-job-dimension.ts @@ -0,0 +1,39 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Aggregated summary information for a SchedulerJob. + */ +export interface SchedulerJobDimension { + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails": string; +} + +export namespace SchedulerJobDimension { + export function getJsonObj(obj: SchedulerJobDimension): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SchedulerJobDimension): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scheduler-job-summary.ts b/lib/fleetappsmanagement/lib/model/scheduler-job-summary.ts index 89720a2310..7624e2e81a 100644 --- a/lib/fleetappsmanagement/lib/model/scheduler-job-summary.ts +++ b/lib/fleetappsmanagement/lib/model/scheduler-job-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -45,35 +44,38 @@ Example: {@code My new resource} */ "timeUpdated"?: Date; /** - * Scheduled date for the Job.Provide only the date + * The scheduled date and time for the Job. */ "timeScheduled"?: Date; /** - * Count of ActionGroups affected by the Schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Count of Action Groups affected by the Schedule. + * An action group is a group of entities grouped for a lifecycle activity. + * Example - A Fleet will be considered an Action Group for any lifecycle activity. + * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "countOfAffectedActionGroups"?: number; /** - * Count of Resources affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Count of resources affected by the schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "countOfAffectedResources"?: number; /** - * Count of Targets affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Count of targets affected by the schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "countOfAffectedTargets"?: number; /** - * All ActionGroup Types part of the schedule. + * All Action Group types are part of the schedule. */ "actionGroupTypes"?: Array; /** - * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * All application types that are part of the schedule for an ENVIRONMENT action group Type. */ "applicationTypes"?: Array; /** - * All products part of the schedule for PRODUCT ActionGroup Type. + * All products that are part of the schedule for a PRODUCT action group type. */ "products"?: Array; /** - * All LifeCycle Operations part of the schedule + * All LifeCycle Operations that are part of the schedule. */ "lifecycleOperations"?: Array; /** diff --git a/lib/fleetappsmanagement/lib/model/scheduler-job.ts b/lib/fleetappsmanagement/lib/model/scheduler-job.ts index 61d3579bc9..6951c23680 100644 --- a/lib/fleetappsmanagement/lib/model/scheduler-job.ts +++ b/lib/fleetappsmanagement/lib/model/scheduler-job.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -45,43 +44,46 @@ Example: {@code My new resource} */ "timeUpdated"?: Date; /** - * Scheduled date for the Job. + * The scheduled date and time for the Job. */ "timeScheduled"?: Date; /** - * Actual Start time for the Job + * Actual start date and time for the Job. */ "timeStarted"?: Date; /** - * Actual End time for the Job + * Actual end date and time for the Job. */ "timeEnded"?: Date; /** - * Count of ActionGroups affected by the Schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Count of Action Groups affected by the Schedule. + * An action group is a group of entities grouped for a lifecycle activity. + * Example - A Fleet will be considered an Action Group for any lifecycle activity. + * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "countOfAffectedActionGroups"?: number; /** - * Count of Resources affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Count of resources affected by the schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "countOfAffectedResources"?: number; /** - * Count of Targets affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Count of targets affected by the schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "countOfAffectedTargets"?: number; /** - * All ActionGroup Types part of the schedule. + * All Action Group types are part of the schedule. */ "actionGroupTypes"?: Array; /** - * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * All application types that are part of the schedule for an ENVIRONMENT action group Type. */ "applicationTypes"?: Array; /** - * All products part of the schedule for PRODUCT AcionGroup Type. + * All products that are part of the schedule for a PRODUCT action group type. */ "products"?: Array; /** - * All LifeCycle Operations part of the schedule + * All LifeCycle Operations that are part of the schedule. */ "lifecycleOperations"?: Array; /** diff --git a/lib/fleetappsmanagement/lib/model/scope.ts b/lib/fleetappsmanagement/lib/model/scope.ts index bfe6cbf59f..10c12057cb 100644 --- a/lib/fleetappsmanagement/lib/model/scope.ts +++ b/lib/fleetappsmanagement/lib/model/scope.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Possible scopes for Category + * Possible scopes for Property **/ export enum Scope { Taxonomy = "TAXONOMY", diff --git a/lib/fleetappsmanagement/lib/model/script-based-execution-details.ts b/lib/fleetappsmanagement/lib/model/script-based-execution-details.ts index 4aded1126e..78c3cbba5b 100644 --- a/lib/fleetappsmanagement/lib/model/script-based-execution-details.ts +++ b/lib/fleetappsmanagement/lib/model/script-based-execution-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,15 +16,22 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Details for script based execution + * Details for script-based execution. */ export interface ScriptBasedExecutionDetails extends model.ExecutionDetails { "variables"?: model.TaskVariable; "content"?: model.ObjectStorageBucketContentDetails; /** - * Optional Command to execute the content. + * Optional command to execute the content. + * You can provide any commands/arguments that can't be part of the script. + * */ "command"?: string; + /** + * Credentials required for executing the task. + * + */ + "credentials"?: Array; "executionType": string; } @@ -38,7 +44,13 @@ export namespace ScriptBasedExecutionDetails { : (model.ExecutionDetails.getJsonObj(obj) as ScriptBasedExecutionDetails)), ...{ "variables": obj.variables ? model.TaskVariable.getJsonObj(obj.variables) : undefined, - "content": obj.content ? model.ContentDetails.getJsonObj(obj.content) : undefined + "content": obj.content ? model.ContentDetails.getJsonObj(obj.content) : undefined, + + "credentials": obj.credentials + ? obj.credentials.map(item => { + return model.ConfigAssociationDetails.getJsonObj(item); + }) + : undefined } }; @@ -59,6 +71,12 @@ export namespace ScriptBasedExecutionDetails { : undefined, "content": obj.content ? model.ContentDetails.getDeserializedJsonObj(obj.content) + : undefined, + + "credentials": obj.credentials + ? obj.credentials.map(item => { + return model.ConfigAssociationDetails.getDeserializedJsonObj(item); + }) : undefined } }; diff --git a/lib/fleetappsmanagement/lib/model/selection-criteria.ts b/lib/fleetappsmanagement/lib/model/selection-criteria.ts index ac488434d5..ffc6c39767 100644 --- a/lib/fleetappsmanagement/lib/model/selection-criteria.ts +++ b/lib/fleetappsmanagement/lib/model/selection-criteria.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,15 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Rule Selection Criteria + * Rule Selection Criteria for DYNAMIC resource selection for a GENERIC fleet. + * Rules define what resources are members of this fleet. All resources that meet the criteria are added automatically. + * */ export interface SelectionCriteria { /** - * Rule selection match condition. + * Match condition for the rule selection. + * Include resources that match all rules or any of the rules. + * */ "matchCondition": SelectionCriteria.MatchCondition; /** diff --git a/lib/fleetappsmanagement/lib/model/selection.ts b/lib/fleetappsmanagement/lib/model/selection.ts index 708e662b50..1412e3381a 100644 --- a/lib/fleetappsmanagement/lib/model/selection.ts +++ b/lib/fleetappsmanagement/lib/model/selection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/set-default-runbook-details.ts b/lib/fleetappsmanagement/lib/model/set-default-runbook-details.ts new file mode 100644 index 0000000000..b98b78ba6d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/set-default-runbook-details.ts @@ -0,0 +1,39 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Request to set default Runbook + */ +export interface SetDefaultRunbookDetails { + /** + * The OCID of the resource. + */ + "runbookId": string; +} + +export namespace SetDefaultRunbookDetails { + export function getJsonObj(obj: SetDefaultRunbookDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SetDefaultRunbookDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/sort-order.ts b/lib/fleetappsmanagement/lib/model/sort-order.ts index a0a7fd396e..33cef9fcfc 100644 --- a/lib/fleetappsmanagement/lib/model/sort-order.ts +++ b/lib/fleetappsmanagement/lib/model/sort-order.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/step-based-user-action-details.ts b/lib/fleetappsmanagement/lib/model/step-based-user-action-details.ts new file mode 100644 index 0000000000..4c2e6789ff --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/step-based-user-action-details.ts @@ -0,0 +1,68 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for a user action to be performed on a step. + */ +export interface StepBasedUserActionDetails extends model.UserActionDetails { + /** + * Unique identifier for the action group. + */ + "actionGroupId": string; + /** + * Resource OCID + * + */ + "resourceId": string; + /** + * Target associated with the execution. + */ + "targetId"?: string; + /** + * Name of the step on which user action needs to be performed. + */ + "stepName": string; + + "level": string; +} + +export namespace StepBasedUserActionDetails { + export function getJsonObj(obj: StepBasedUserActionDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UserActionDetails.getJsonObj(obj) as StepBasedUserActionDetails)), + ...{} + }; + + return jsonObj; + } + export const level = "STEP_NAME"; + export function getDeserializedJsonObj( + obj: StepBasedUserActionDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UserActionDetails.getDeserializedJsonObj(obj) as StepBasedUserActionDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/step-collection.ts b/lib/fleetappsmanagement/lib/model/step-collection.ts new file mode 100644 index 0000000000..835fa383f3 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/step-collection.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a StepSummary search. + */ +export interface StepCollection { + /** + * List of Execution steps. + */ + "items": Array; +} + +export namespace StepCollection { + export function getJsonObj(obj: StepCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.StepSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: StepCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.StepSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/step-summary.ts b/lib/fleetappsmanagement/lib/model/step-summary.ts new file mode 100644 index 0000000000..8d61db879a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/step-summary.ts @@ -0,0 +1,73 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Task associated with the Job. + */ +export interface StepSummary { + /** + * The OCID of taskRecord assocaited with the step + */ + "taskRecordId"?: string; + /** + * Name of the Step + */ + "stepName": string; + /** + * The sequence of the step + */ + "sequence"?: string; + /** + * Status of the Task + */ + "status": model.JobStatus; + /** + * The time the task started. An RFC3339 formatted datetime string + */ + "timeStarted"?: Date; + /** + * The time the task ended. An RFC3339 formatted datetime string + */ + "timeEnded"?: Date; + /** + * Is this a rollback task? + */ + "isRollbackTask"?: boolean; + /** + * Description of the step Execution + */ + "description"?: string; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace StepSummary { + export function getJsonObj(obj: StepSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: StepSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/string-input-argument.ts b/lib/fleetappsmanagement/lib/model/string-input-argument.ts index 3f7d3a306f..7693c24daf 100644 --- a/lib/fleetappsmanagement/lib/model/string-input-argument.ts +++ b/lib/fleetappsmanagement/lib/model/string-input-argument.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/target-credential-entity-specific-details.ts b/lib/fleetappsmanagement/lib/model/target-credential-entity-specific-details.ts index 9d740d4c3b..bda4f58f36 100644 --- a/lib/fleetappsmanagement/lib/model/target-credential-entity-specific-details.ts +++ b/lib/fleetappsmanagement/lib/model/target-credential-entity-specific-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,16 +16,16 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Fleet Credential Specific Details. + * Target credential details. */ export interface TargetCredentialEntitySpecificDetails extends model.CredentialEntitySpecificDetails { /** - * OCID of the resource associated with the target for which credential is created + * OCID of the resource associated with the target for which the credential is created. */ "resourceId": string; /** - * Target associated with the Credential + * Target name for which the credential is provided. */ "target": string; diff --git a/lib/fleetappsmanagement/lib/model/target-resource.ts b/lib/fleetappsmanagement/lib/model/target-resource.ts index 2a7ed22f18..88f38fc5a2 100644 --- a/lib/fleetappsmanagement/lib/model/target-resource.ts +++ b/lib/fleetappsmanagement/lib/model/target-resource.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Resource Information for the Target + * Resource Information for the Target. */ export interface TargetResource { /** diff --git a/lib/fleetappsmanagement/lib/model/task-argument.ts b/lib/fleetappsmanagement/lib/model/task-argument.ts index a726e722b8..1350ae8b68 100644 --- a/lib/fleetappsmanagement/lib/model/task-argument.ts +++ b/lib/fleetappsmanagement/lib/model/task-argument.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/task-execution-type.ts b/lib/fleetappsmanagement/lib/model/task-execution-type.ts index 4d73237be3..e1a87d7319 100644 --- a/lib/fleetappsmanagement/lib/model/task-execution-type.ts +++ b/lib/fleetappsmanagement/lib/model/task-execution-type.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/task-notification-preferences.ts b/lib/fleetappsmanagement/lib/model/task-notification-preferences.ts new file mode 100644 index 0000000000..de4cde10a8 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/task-notification-preferences.ts @@ -0,0 +1,47 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Preferences to send notifications on the task activities. + */ +export interface TaskNotificationPreferences { + /** + * Enables notification on pause. + */ + "shouldNotifyOnPause"?: boolean; + /** + * Enables or disables notification on Task Failures. + */ + "shouldNotifyOnTaskFailure"?: boolean; + /** + * Enables or disables notification on Task Success. + */ + "shouldNotifyOnTaskSuccess"?: boolean; +} + +export namespace TaskNotificationPreferences { + export function getJsonObj(obj: TaskNotificationPreferences): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: TaskNotificationPreferences): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/task-record-collection.ts b/lib/fleetappsmanagement/lib/model/task-record-collection.ts index 9894343444..74ec04d899 100644 --- a/lib/fleetappsmanagement/lib/model/task-record-collection.ts +++ b/lib/fleetappsmanagement/lib/model/task-record-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/task-record-summary.ts b/lib/fleetappsmanagement/lib/model/task-record-summary.ts index 7cfdb452fa..d3b63b818d 100644 --- a/lib/fleetappsmanagement/lib/model/task-record-summary.ts +++ b/lib/fleetappsmanagement/lib/model/task-record-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/task-record.ts b/lib/fleetappsmanagement/lib/model/task-record.ts index 488e531285..21538608c7 100644 --- a/lib/fleetappsmanagement/lib/model/task-record.ts +++ b/lib/fleetappsmanagement/lib/model/task-record.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Description of TaskRecord. + * Details of a task. */ export interface TaskRecord { /** diff --git a/lib/fleetappsmanagement/lib/model/task-scope.ts b/lib/fleetappsmanagement/lib/model/task-scope.ts index b4300a0e0e..0b93802cee 100644 --- a/lib/fleetappsmanagement/lib/model/task-scope.ts +++ b/lib/fleetappsmanagement/lib/model/task-scope.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/task-variable.ts b/lib/fleetappsmanagement/lib/model/task-variable.ts index 305e398ff2..65183cd629 100644 --- a/lib/fleetappsmanagement/lib/model/task-variable.ts +++ b/lib/fleetappsmanagement/lib/model/task-variable.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,9 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The variable of the task.Atleast one of dynamicArguments or output needs to be provided. + * The variable of the task. + * At least one of the dynamicArguments or output needs to be provided. + * */ export interface TaskVariable { /** diff --git a/lib/fleetappsmanagement/lib/model/task.ts b/lib/fleetappsmanagement/lib/model/task.ts index e1fe6a04b1..4f1c4fe151 100644 --- a/lib/fleetappsmanagement/lib/model/task.ts +++ b/lib/fleetappsmanagement/lib/model/task.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/time-based-pause-details.ts b/lib/fleetappsmanagement/lib/model/time-based-pause-details.ts new file mode 100644 index 0000000000..0fd2f1cf49 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/time-based-pause-details.ts @@ -0,0 +1,53 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Time-based pause details. + */ +export interface TimeBasedPauseDetails extends model.PauseDetails { + /** + * Time in minutes to apply Pause. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "durationInMinutes": number; + + "kind": string; +} + +export namespace TimeBasedPauseDetails { + export function getJsonObj(obj: TimeBasedPauseDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.PauseDetails.getJsonObj(obj) as TimeBasedPauseDetails)), + ...{} + }; + + return jsonObj; + } + export const kind = "TIME_BASED"; + export function getDeserializedJsonObj( + obj: TimeBasedPauseDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PauseDetails.getDeserializedJsonObj(obj) as TimeBasedPauseDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-compliance-policy-rule-details.ts b/lib/fleetappsmanagement/lib/model/update-compliance-policy-rule-details.ts new file mode 100644 index 0000000000..7cc28ec3fd --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-compliance-policy-rule-details.ts @@ -0,0 +1,95 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The data to update a CompliancePolicyRule. + */ +export interface UpdateCompliancePolicyRuleDetails { + "productVersion"?: model.ProductVersionDetails; + /** + * PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies. + */ + "patchType"?: Array; + /** + * Severity to which this CompliancePolicyRule applies. + */ + "severity"?: Array; + "patchSelection"?: + | model.PatchLevelSelectionDetails + | model.PatchReleaseDateSelectionDetails + | model.PatchNameSelectionDetails; + /** + * Grace period in days,weeks,months or years the exemption is applicable for the rule. + * This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied. + * + */ + "gracePeriod"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace UpdateCompliancePolicyRuleDetails { + export enum Severity { + Critical = "CRITICAL", + High = "HIGH", + Medium = "MEDIUM", + Low = "LOW" + } + + export function getJsonObj(obj: UpdateCompliancePolicyRuleDetails): object { + const jsonObj = { + ...obj, + ...{ + "productVersion": obj.productVersion + ? model.ProductVersionDetails.getJsonObj(obj.productVersion) + : undefined, + + "patchSelection": obj.patchSelection + ? model.PatchSelectionDetails.getJsonObj(obj.patchSelection) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdateCompliancePolicyRuleDetails): object { + const jsonObj = { + ...obj, + ...{ + "productVersion": obj.productVersion + ? model.ProductVersionDetails.getDeserializedJsonObj(obj.productVersion) + : undefined, + + "patchSelection": obj.patchSelection + ? model.PatchSelectionDetails.getDeserializedJsonObj(obj.patchSelection) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-fleet-credential-details.ts b/lib/fleetappsmanagement/lib/model/update-fleet-credential-details.ts index 9edb69610c..75e880ab8e 100644 --- a/lib/fleetappsmanagement/lib/model/update-fleet-credential-details.ts +++ b/lib/fleetappsmanagement/lib/model/update-fleet-credential-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -28,7 +27,10 @@ Example: {@code My new resource} * */ "displayName"?: string; - "entitySpecifics"?: model.TargetCredentialEntitySpecificDetails; + "entitySpecifics"?: + | model.TargetCredentialEntitySpecificDetails + | model.FleetCredentialEntitySpecificDetails + | model.ResourceCredentialEntitySpecificDetails; "user"?: | model.PlainTextCredentialDetails | model.KeyEncryptionCredentialDetails diff --git a/lib/fleetappsmanagement/lib/model/update-fleet-details.ts b/lib/fleetappsmanagement/lib/model/update-fleet-details.ts index 566f743a91..6e62129a12 100644 --- a/lib/fleetappsmanagement/lib/model/update-fleet-details.ts +++ b/lib/fleetappsmanagement/lib/model/update-fleet-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -37,7 +36,9 @@ Example: {@code My new resource} "notificationPreferences"?: model.NotificationPreferences; "ruleSelectionCriteria"?: model.SelectionCriteria; /** - * A value which represents if auto confirming of the targets can be enabled + * A value that represents if auto-confirming of the targets can be enabled. + * This will allow targets to be auto-confirmed in the fleet without manual intervention. + * */ "isTargetAutoConfirm"?: boolean; /** diff --git a/lib/fleetappsmanagement/lib/model/update-fleet-property-details.ts b/lib/fleetappsmanagement/lib/model/update-fleet-property-details.ts index 50567ce5f1..460f63628f 100644 --- a/lib/fleetappsmanagement/lib/model/update-fleet-property-details.ts +++ b/lib/fleetappsmanagement/lib/model/update-fleet-property-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The information to be updated. + * The information to be updated for the fleet property. */ export interface UpdateFleetPropertyDetails { /** - * Value of the Property + * Value of the Property. */ "value"?: string; } diff --git a/lib/fleetappsmanagement/lib/model/update-fleet-resource-details.ts b/lib/fleetappsmanagement/lib/model/update-fleet-resource-details.ts index c282c997a0..51309acbb1 100644 --- a/lib/fleetappsmanagement/lib/model/update-fleet-resource-details.ts +++ b/lib/fleetappsmanagement/lib/model/update-fleet-resource-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,7 +16,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The information to be updated. + * The information to be updated for the resource. */ export interface UpdateFleetResourceDetails { /** diff --git a/lib/fleetappsmanagement/lib/model/update-maintenance-window-details.ts b/lib/fleetappsmanagement/lib/model/update-maintenance-window-details.ts index 68d8fec2f2..a1159d2d87 100644 --- a/lib/fleetappsmanagement/lib/model/update-maintenance-window-details.ts +++ b/lib/fleetappsmanagement/lib/model/update-maintenance-window-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -40,26 +39,33 @@ Example: {@code My new resource} "maintenanceWindowType"?: model.MaintenanceWindowType; /** * Does the maintenenace window cause outage? + * An outage indicates whether a maintenance window can consider operations that require downtime. + * It means a period when the application is not accessible. + * */ "isOutage"?: boolean; /** - * Start time of schedule + * Specify the date and time of the day that the maintenance window starts. */ "timeScheduleStart"?: Date; /** - * Duration if schedule type is Custom + * Duration of the maintenance window. + * Specify how long the maintenance window remains open. + * */ "duration"?: string; /** - * Is this is a recurring maintenance window + * Is this a recurring maintenance window? */ "isRecurring"?: boolean; /** - * Recurrence rule specification if recurring + * Recurrence rule specification if maintenance window recurring. + * Specify the frequency of running the maintenance window. + * */ "recurrences"?: string; /** - * Task initiation cutoff Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * Task initiation cutoff time for the maintenance window. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "taskInitiationCutoff"?: number; /** diff --git a/lib/fleetappsmanagement/lib/model/update-onboarding-details.ts b/lib/fleetappsmanagement/lib/model/update-onboarding-details.ts new file mode 100644 index 0000000000..4995ef2174 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-onboarding-details.ts @@ -0,0 +1,43 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about updating onboarding. + */ +export interface UpdateOnboardingDetails { + /** + * A value determining Fleet Application Management tag is enabled or not + */ + "isFamsTagEnabled"?: boolean; + /** + * A value determining if cost tracking tag is enabled or not + */ + "isCostTrackingTagEnabled"?: boolean; +} + +export namespace UpdateOnboardingDetails { + export function getJsonObj(obj: UpdateOnboardingDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdateOnboardingDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-patch-details.ts b/lib/fleetappsmanagement/lib/model/update-patch-details.ts new file mode 100644 index 0000000000..5894e497f0 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-patch-details.ts @@ -0,0 +1,105 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The patch information to be updated. + */ +export interface UpdatePatchDetails { + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + "patchType"?: model.PatchType; + /** + * Patch Severity. + */ + "severity"?: model.PatchSeverity; + /** + * Date when the patch was released. + */ + "timeReleased"?: Date; + "artifactDetails"?: model.PlatformSpecificArtifactDetails | model.GenericArtifactDetails; + "product"?: model.PatchProduct; + /** + * Dependent Patches. + * + */ + "dependentPatches"?: Array; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace UpdatePatchDetails { + export function getJsonObj(obj: UpdatePatchDetails): object { + const jsonObj = { + ...obj, + ...{ + "patchType": obj.patchType ? model.PatchType.getJsonObj(obj.patchType) : undefined, + + "artifactDetails": obj.artifactDetails + ? model.ArtifactDetails.getJsonObj(obj.artifactDetails) + : undefined, + "product": obj.product ? model.PatchProduct.getJsonObj(obj.product) : undefined, + "dependentPatches": obj.dependentPatches + ? obj.dependentPatches.map(item => { + return model.DependentPatchDetails.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdatePatchDetails): object { + const jsonObj = { + ...obj, + ...{ + "patchType": obj.patchType + ? model.PatchType.getDeserializedJsonObj(obj.patchType) + : undefined, + + "artifactDetails": obj.artifactDetails + ? model.ArtifactDetails.getDeserializedJsonObj(obj.artifactDetails) + : undefined, + "product": obj.product ? model.PatchProduct.getDeserializedJsonObj(obj.product) : undefined, + "dependentPatches": obj.dependentPatches + ? obj.dependentPatches.map(item => { + return model.DependentPatchDetails.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-platform-configuration-details.ts b/lib/fleetappsmanagement/lib/model/update-platform-configuration-details.ts new file mode 100644 index 0000000000..ff1cfec5ed --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-platform-configuration-details.ts @@ -0,0 +1,69 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface UpdatePlatformConfigurationDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + "configCategoryDetails"?: + | model.ProductStackConfigCategoryDetails + | model.EnvironmentConfigCategoryDetails + | model.CredentialConfigCategoryDetails + | model.PatchTypeConfigCategoryDetails + | model.ProductConfigCategoryDetails; +} + +export namespace UpdatePlatformConfigurationDetails { + export function getJsonObj(obj: UpdatePlatformConfigurationDetails): object { + const jsonObj = { + ...obj, + ...{ + "configCategoryDetails": obj.configCategoryDetails + ? model.ConfigCategoryDetails.getJsonObj(obj.configCategoryDetails) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdatePlatformConfigurationDetails): object { + const jsonObj = { + ...obj, + ...{ + "configCategoryDetails": obj.configCategoryDetails + ? model.ConfigCategoryDetails.getDeserializedJsonObj(obj.configCategoryDetails) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-property-details.ts b/lib/fleetappsmanagement/lib/model/update-property-details.ts index 169c4453ed..256ef8e6e3 100644 --- a/lib/fleetappsmanagement/lib/model/update-property-details.ts +++ b/lib/fleetappsmanagement/lib/model/update-property-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -29,15 +28,15 @@ Example: {@code My new resource} */ "displayName"?: string; /** - * Text selection of the category + * Text selection of the property. */ "selection"?: model.Selection; /** - * Format of the value + * Format of the value. */ "valueType"?: model.ValueType; /** - * Values of the property (must be a single value if selection = 'single choice') + * Values of the property (must be a single value if selection = 'SINGLE_CHOICE'). */ "values"?: Array; } diff --git a/lib/fleetappsmanagement/lib/model/update-runbook-details.ts b/lib/fleetappsmanagement/lib/model/update-runbook-details.ts new file mode 100644 index 0000000000..b34d04d6a8 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-runbook-details.ts @@ -0,0 +1,100 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface UpdateRunbookDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Type of runbook structure. + */ + "runbookRelevance"?: string; + /** + * The lifecycle operation performed by the task. + */ + "operation"?: string; + /** + * The OS type for the runbook. + */ + "osType"?: model.OsType; + /** + * The platform of the runbook. + */ + "platform"?: string; + /** + * Is the runbook default? + */ + "isDefault"?: boolean; + /** + * Estimated time to successfully complete the runbook execution + */ + "estimatedTime"?: string; + "associations"?: model.Associations; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace UpdateRunbookDetails { + export function getJsonObj(obj: UpdateRunbookDetails): object { + const jsonObj = { + ...obj, + ...{ + "associations": obj.associations + ? model.Associations.getJsonObj(obj.associations) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdateRunbookDetails): object { + const jsonObj = { + ...obj, + ...{ + "associations": obj.associations + ? model.Associations.getDeserializedJsonObj(obj.associations) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-scheduler-definition-details.ts b/lib/fleetappsmanagement/lib/model/update-scheduler-definition-details.ts index c347fbb7b9..80e40c2d73 100644 --- a/lib/fleetappsmanagement/lib/model/update-scheduler-definition-details.ts +++ b/lib/fleetappsmanagement/lib/model/update-scheduler-definition-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/update-scheduler-job-details.ts b/lib/fleetappsmanagement/lib/model/update-scheduler-job-details.ts index e88d9dbcb6..3eded199cb 100644 --- a/lib/fleetappsmanagement/lib/model/update-scheduler-job-details.ts +++ b/lib/fleetappsmanagement/lib/model/update-scheduler-job-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -17,11 +16,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The information to be updated. + * The information to be updated for the job. */ export interface UpdateSchedulerJobDetails { /** - * Scheduled date for the Job.Provide only the date + * The scheduled date and time for the Job. */ "timeScheduled"?: Date; /** diff --git a/lib/fleetappsmanagement/lib/model/update-task-record-details.ts b/lib/fleetappsmanagement/lib/model/update-task-record-details.ts new file mode 100644 index 0000000000..ead361caa4 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-task-record-details.ts @@ -0,0 +1,72 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface UpdateTaskRecordDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + "details"?: model.Details; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace UpdateTaskRecordDetails { + export function getJsonObj(obj: UpdateTaskRecordDetails): object { + const jsonObj = { + ...obj, + ...{ + "details": obj.details ? model.Details.getJsonObj(obj.details) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdateTaskRecordDetails): object { + const jsonObj = { + ...obj, + ...{ + "details": obj.details ? model.Details.getDeserializedJsonObj(obj.details) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/user-action-based-pause-details.ts b/lib/fleetappsmanagement/lib/model/user-action-based-pause-details.ts new file mode 100644 index 0000000000..8bda059b93 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/user-action-based-pause-details.ts @@ -0,0 +1,50 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * User action-based pause details. + */ +export interface UserActionBasedPauseDetails extends model.PauseDetails { + "kind": string; +} + +export namespace UserActionBasedPauseDetails { + export function getJsonObj(obj: UserActionBasedPauseDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PauseDetails.getJsonObj(obj) as UserActionBasedPauseDetails)), + ...{} + }; + + return jsonObj; + } + export const kind = "USER_ACTION"; + export function getDeserializedJsonObj( + obj: UserActionBasedPauseDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PauseDetails.getDeserializedJsonObj(obj) as UserActionBasedPauseDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/user-action-details.ts b/lib/fleetappsmanagement/lib/model/user-action-details.ts new file mode 100644 index 0000000000..d89549f612 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/user-action-details.ts @@ -0,0 +1,81 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * User action details. + * This can be performed on a failed/paused task or action group. + * + */ +export interface UserActionDetails { + /** + * Action to be Performed. + * + */ + "action": UserActionDetails.Action; + + "level": string; +} + +export namespace UserActionDetails { + export enum Action { + Retry = "RETRY", + Resume = "RESUME" + } + + export function getJsonObj(obj: UserActionDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "level" in obj && obj.level) { + switch (obj.level) { + case "STEP_NAME": + return model.StepBasedUserActionDetails.getJsonObj( + (jsonObj), + true + ); + case "ACTION_GROUP": + return model.ActionGroupBasedUserActionDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.level}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: UserActionDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "level" in obj && obj.level) { + switch (obj.level) { + case "STEP_NAME": + return model.StepBasedUserActionDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "ACTION_GROUP": + return model.ActionGroupBasedUserActionDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.level}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/value-type.ts b/lib/fleetappsmanagement/lib/model/value-type.ts index 9ef2016789..c723914b8c 100644 --- a/lib/fleetappsmanagement/lib/model/value-type.ts +++ b/lib/fleetappsmanagement/lib/model/value-type.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/variable.ts b/lib/fleetappsmanagement/lib/model/variable.ts new file mode 100644 index 0000000000..fb4fb30a88 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/variable.ts @@ -0,0 +1,43 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Credential Variable. + */ +export interface Variable { + /** + * Name of the variable. + */ + "name"?: string; + /** + * The value corresponding to the variable name. + */ + "value"?: string; +} + +export namespace Variable { + export function getJsonObj(obj: Variable): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Variable): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/vault-secret-credential-details.ts b/lib/fleetappsmanagement/lib/model/vault-secret-credential-details.ts index c49423994a..73ae5bc8ef 100644 --- a/lib/fleetappsmanagement/lib/model/vault-secret-credential-details.ts +++ b/lib/fleetappsmanagement/lib/model/vault-secret-credential-details.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/work-request-error-collection.ts b/lib/fleetappsmanagement/lib/model/work-request-error-collection.ts index f3dd2b6134..338fdc7b27 100644 --- a/lib/fleetappsmanagement/lib/model/work-request-error-collection.ts +++ b/lib/fleetappsmanagement/lib/model/work-request-error-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/work-request-error.ts b/lib/fleetappsmanagement/lib/model/work-request-error.ts index 3c5aa0680a..b4f8308fe6 100644 --- a/lib/fleetappsmanagement/lib/model/work-request-error.ts +++ b/lib/fleetappsmanagement/lib/model/work-request-error.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/work-request-log-entry-collection.ts b/lib/fleetappsmanagement/lib/model/work-request-log-entry-collection.ts index 9e38f871e3..622b132fa3 100644 --- a/lib/fleetappsmanagement/lib/model/work-request-log-entry-collection.ts +++ b/lib/fleetappsmanagement/lib/model/work-request-log-entry-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/work-request-log-entry.ts b/lib/fleetappsmanagement/lib/model/work-request-log-entry.ts index 20f8f3dc57..ae5c920852 100644 --- a/lib/fleetappsmanagement/lib/model/work-request-log-entry.ts +++ b/lib/fleetappsmanagement/lib/model/work-request-log-entry.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/work-request-resource-metadata-key.ts b/lib/fleetappsmanagement/lib/model/work-request-resource-metadata-key.ts index 7a7a64e51d..a60d7e9c12 100644 --- a/lib/fleetappsmanagement/lib/model/work-request-resource-metadata-key.ts +++ b/lib/fleetappsmanagement/lib/model/work-request-resource-metadata-key.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/work-request-resource.ts b/lib/fleetappsmanagement/lib/model/work-request-resource.ts index 31dcd69e84..db144245aa 100644 --- a/lib/fleetappsmanagement/lib/model/work-request-resource.ts +++ b/lib/fleetappsmanagement/lib/model/work-request-resource.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/work-request-summary-collection.ts b/lib/fleetappsmanagement/lib/model/work-request-summary-collection.ts index 13887e08d6..324faf08ba 100644 --- a/lib/fleetappsmanagement/lib/model/work-request-summary-collection.ts +++ b/lib/fleetappsmanagement/lib/model/work-request-summary-collection.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/work-request-summary.ts b/lib/fleetappsmanagement/lib/model/work-request-summary.ts index 6015cc92ab..4fc0a2b46b 100644 --- a/lib/fleetappsmanagement/lib/model/work-request-summary.ts +++ b/lib/fleetappsmanagement/lib/model/work-request-summary.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/work-request.ts b/lib/fleetappsmanagement/lib/model/work-request.ts index a6ab5d781a..c32e618033 100644 --- a/lib/fleetappsmanagement/lib/model/work-request.ts +++ b/lib/fleetappsmanagement/lib/model/work-request.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/workflow-component.ts b/lib/fleetappsmanagement/lib/model/workflow-component.ts index 908cb27687..f3e066c04b 100644 --- a/lib/fleetappsmanagement/lib/model/workflow-component.ts +++ b/lib/fleetappsmanagement/lib/model/workflow-component.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/model/workflow-group-component.ts b/lib/fleetappsmanagement/lib/model/workflow-group-component.ts index 2fbed98603..2e89e5e3d1 100644 --- a/lib/fleetappsmanagement/lib/model/workflow-group-component.ts +++ b/lib/fleetappsmanagement/lib/model/workflow-group-component.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -21,12 +20,12 @@ import common = require("oci-common"); */ export interface WorkflowGroupComponent extends model.WorkflowComponent { /** - * Provide the name of the group. + * Name of the group. */ "groupName": string; /** * Tasks within the Group. - * Provide the stepName for all tasks that are applicable + * Provide the stepName for all applicable tasks. * */ "steps"?: Array; diff --git a/lib/fleetappsmanagement/lib/model/workflow-group.ts b/lib/fleetappsmanagement/lib/model/workflow-group.ts index 24db4e4d16..7d1fad9ea8 100644 --- a/lib/fleetappsmanagement/lib/model/workflow-group.ts +++ b/lib/fleetappsmanagement/lib/model/workflow-group.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -21,7 +20,7 @@ import common = require("oci-common"); */ export interface WorkflowGroup { /** - * Provide the name of the group. + * Name of the group. */ "groupName": string; /** diff --git a/lib/fleetappsmanagement/lib/model/workflow-task-component.ts b/lib/fleetappsmanagement/lib/model/workflow-task-component.ts index 0b178e973d..ef18785cee 100644 --- a/lib/fleetappsmanagement/lib/model/workflow-task-component.ts +++ b/lib/fleetappsmanagement/lib/model/workflow-task-component.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * diff --git a/lib/fleetappsmanagement/lib/request/check-resource-tagging-request.ts b/lib/fleetappsmanagement/lib/request/check-resource-tagging-request.ts index 12a76bb5ee..38b6eaf29c 100644 --- a/lib/fleetappsmanagement/lib/request/check-resource-tagging-request.ts +++ b/lib/fleetappsmanagement/lib/request/check-resource-tagging-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface CheckResourceTaggingRequest extends common.BaseRequest { /** - * Details for Checking if FAMS tags can be added for the resources + * Details for checking if Fleet Application Management tags can be added to the resources. */ "checkResourceTaggingDetails": model.CheckResourceTaggingDetails; /** diff --git a/lib/fleetappsmanagement/lib/request/confirm-targets-request.ts b/lib/fleetappsmanagement/lib/request/confirm-targets-request.ts index de0d45e823..014e9287d2 100644 --- a/lib/fleetappsmanagement/lib/request/confirm-targets-request.ts +++ b/lib/fleetappsmanagement/lib/request/confirm-targets-request.ts @@ -23,7 +23,7 @@ export interface ConfirmTargetsRequest extends common.BaseRequest { */ "confirmTargetsDetails": model.ConfirmTargetsDetails; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/create-compliance-policy-rule-request.ts b/lib/fleetappsmanagement/lib/request/create-compliance-policy-rule-request.ts new file mode 100644 index 0000000000..7f20413119 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-compliance-policy-rule-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateCompliancePolicyRule.ts.html |here} to see how to use CreateCompliancePolicyRuleRequest. + */ +export interface CreateCompliancePolicyRuleRequest extends common.BaseRequest { + /** + * Details for the new CompliancePolicyRule. + */ + "createCompliancePolicyRuleDetails": model.CreateCompliancePolicyRuleDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-fleet-credential-request.ts b/lib/fleetappsmanagement/lib/request/create-fleet-credential-request.ts index 2843dff0e9..2c86db07bb 100644 --- a/lib/fleetappsmanagement/lib/request/create-fleet-credential-request.ts +++ b/lib/fleetappsmanagement/lib/request/create-fleet-credential-request.ts @@ -23,7 +23,7 @@ export interface CreateFleetCredentialRequest extends common.BaseRequest { */ "createFleetCredentialDetails": model.CreateFleetCredentialDetails; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/create-fleet-property-request.ts b/lib/fleetappsmanagement/lib/request/create-fleet-property-request.ts index f154db7616..ebf6915f2a 100644 --- a/lib/fleetappsmanagement/lib/request/create-fleet-property-request.ts +++ b/lib/fleetappsmanagement/lib/request/create-fleet-property-request.ts @@ -23,7 +23,7 @@ export interface CreateFleetPropertyRequest extends common.BaseRequest { */ "createFleetPropertyDetails": model.CreateFleetPropertyDetails; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/create-fleet-resource-request.ts b/lib/fleetappsmanagement/lib/request/create-fleet-resource-request.ts index cbcab8287c..aab19b7115 100644 --- a/lib/fleetappsmanagement/lib/request/create-fleet-resource-request.ts +++ b/lib/fleetappsmanagement/lib/request/create-fleet-resource-request.ts @@ -23,7 +23,7 @@ export interface CreateFleetResourceRequest extends common.BaseRequest { */ "createFleetResourceDetails": model.CreateFleetResourceDetails; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/create-onboarding-request.ts b/lib/fleetappsmanagement/lib/request/create-onboarding-request.ts index fa8998750e..779a0269cd 100644 --- a/lib/fleetappsmanagement/lib/request/create-onboarding-request.ts +++ b/lib/fleetappsmanagement/lib/request/create-onboarding-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface CreateOnboardingRequest extends common.BaseRequest { /** - * Details for onboarding FAMS. + * Details for onboarding Fleet Application Management. */ "createOnboardingDetails": model.CreateOnboardingDetails; /** diff --git a/lib/fleetappsmanagement/lib/request/create-patch-request.ts b/lib/fleetappsmanagement/lib/request/create-patch-request.ts new file mode 100644 index 0000000000..ab61fb38c2 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-patch-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreatePatch.ts.html |here} to see how to use CreatePatchRequest. + */ +export interface CreatePatchRequest extends common.BaseRequest { + /** + * Details for the new Patch. + */ + "createPatchDetails": model.CreatePatchDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-platform-configuration-request.ts b/lib/fleetappsmanagement/lib/request/create-platform-configuration-request.ts new file mode 100644 index 0000000000..5a10ae32b0 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-platform-configuration-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreatePlatformConfiguration.ts.html |here} to see how to use CreatePlatformConfigurationRequest. + */ +export interface CreatePlatformConfigurationRequest extends common.BaseRequest { + /** + * Details for the new PlatformConfiguration. + */ + "createPlatformConfigurationDetails": model.CreatePlatformConfigurationDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-runbook-request.ts b/lib/fleetappsmanagement/lib/request/create-runbook-request.ts new file mode 100644 index 0000000000..0e1225efa6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-runbook-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateRunbook.ts.html |here} to see how to use CreateRunbookRequest. + */ +export interface CreateRunbookRequest extends common.BaseRequest { + /** + * Details for the new Runbook. + */ + "createRunbookDetails": model.CreateRunbookDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-task-record-request.ts b/lib/fleetappsmanagement/lib/request/create-task-record-request.ts new file mode 100644 index 0000000000..965797a947 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-task-record-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateTaskRecord.ts.html |here} to see how to use CreateTaskRecordRequest. + */ +export interface CreateTaskRecordRequest extends common.BaseRequest { + /** + * Details for the new TaskRecord. + */ + "createTaskRecordDetails": model.CreateTaskRecordDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-compliance-policy-rule-request.ts b/lib/fleetappsmanagement/lib/request/delete-compliance-policy-rule-request.ts new file mode 100644 index 0000000000..feccf1aace --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-compliance-policy-rule-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteCompliancePolicyRule.ts.html |here} to see how to use DeleteCompliancePolicyRuleRequest. + */ +export interface DeleteCompliancePolicyRuleRequest extends common.BaseRequest { + /** + * unique CompliancePolicyRule identifier. + */ + "compliancePolicyRuleId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-fleet-credential-request.ts b/lib/fleetappsmanagement/lib/request/delete-fleet-credential-request.ts index 206035d9e1..ee39ca674a 100644 --- a/lib/fleetappsmanagement/lib/request/delete-fleet-credential-request.ts +++ b/lib/fleetappsmanagement/lib/request/delete-fleet-credential-request.ts @@ -23,7 +23,7 @@ export interface DeleteFleetCredentialRequest extends common.BaseRequest { */ "fleetCredentialId": string; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/delete-fleet-property-request.ts b/lib/fleetappsmanagement/lib/request/delete-fleet-property-request.ts index dd29a9319f..14d1b0085d 100644 --- a/lib/fleetappsmanagement/lib/request/delete-fleet-property-request.ts +++ b/lib/fleetappsmanagement/lib/request/delete-fleet-property-request.ts @@ -19,11 +19,11 @@ import common = require("oci-common"); */ export interface DeleteFleetPropertyRequest extends common.BaseRequest { /** - * unique FleetProperty identifier + * unique FleetProperty identifier. */ "fleetPropertyId": string; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/delete-fleet-request.ts b/lib/fleetappsmanagement/lib/request/delete-fleet-request.ts index 2eadd2c7b3..2fe4192c9d 100644 --- a/lib/fleetappsmanagement/lib/request/delete-fleet-request.ts +++ b/lib/fleetappsmanagement/lib/request/delete-fleet-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface DeleteFleetRequest extends common.BaseRequest { /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/delete-fleet-resource-request.ts b/lib/fleetappsmanagement/lib/request/delete-fleet-resource-request.ts index c8ad02905d..8dd3878ed9 100644 --- a/lib/fleetappsmanagement/lib/request/delete-fleet-resource-request.ts +++ b/lib/fleetappsmanagement/lib/request/delete-fleet-resource-request.ts @@ -23,7 +23,7 @@ export interface DeleteFleetResourceRequest extends common.BaseRequest { */ "fleetResourceId": string; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/delete-onboarding-request.ts b/lib/fleetappsmanagement/lib/request/delete-onboarding-request.ts new file mode 100644 index 0000000000..fe2cb1a211 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-onboarding-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteOnboarding.ts.html |here} to see how to use DeleteOnboardingRequest. + */ +export interface DeleteOnboardingRequest extends common.BaseRequest { + /** + * A filter to return resources whose Onboarding identifier matches the given identifier. + */ + "onboardingId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-patch-request.ts b/lib/fleetappsmanagement/lib/request/delete-patch-request.ts new file mode 100644 index 0000000000..36849f99c6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-patch-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeletePatch.ts.html |here} to see how to use DeletePatchRequest. + */ +export interface DeletePatchRequest extends common.BaseRequest { + /** + * unique Patch identifier + */ + "patchId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-platform-configuration-request.ts b/lib/fleetappsmanagement/lib/request/delete-platform-configuration-request.ts new file mode 100644 index 0000000000..46ff79d0f2 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-platform-configuration-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeletePlatformConfiguration.ts.html |here} to see how to use DeletePlatformConfigurationRequest. + */ +export interface DeletePlatformConfigurationRequest extends common.BaseRequest { + /** + * unique PlatformConfiguration identifier + */ + "platformConfigurationId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-runbook-request.ts b/lib/fleetappsmanagement/lib/request/delete-runbook-request.ts new file mode 100644 index 0000000000..30080db25a --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-runbook-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteRunbook.ts.html |here} to see how to use DeleteRunbookRequest. + */ +export interface DeleteRunbookRequest extends common.BaseRequest { + /** + * Unique Runbook identifier + */ + "runbookId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-task-record-request.ts b/lib/fleetappsmanagement/lib/request/delete-task-record-request.ts new file mode 100644 index 0000000000..7856c49e34 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-task-record-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteTaskRecord.ts.html |here} to see how to use DeleteTaskRecordRequest. + */ +export interface DeleteTaskRecordRequest extends common.BaseRequest { + /** + * unique TaskDetail identifier + */ + "taskRecordId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/enable-latest-policy-request.ts b/lib/fleetappsmanagement/lib/request/enable-latest-policy-request.ts new file mode 100644 index 0000000000..d861864ab0 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/enable-latest-policy-request.ts @@ -0,0 +1,51 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/EnableLatestPolicy.ts.html |here} to see how to use EnableLatestPolicyRequest. + */ +export interface EnableLatestPolicyRequest extends common.BaseRequest { + /** + * A filter to return resources whose Onboarding identifier matches the given identifier. + */ + "onboardingId": string; + /** + * The information to be updated. + */ + "enableLatestPolicyDetails": model.EnableLatestPolicyDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/export-compliance-report-request.ts b/lib/fleetappsmanagement/lib/request/export-compliance-report-request.ts new file mode 100644 index 0000000000..b5e258ee20 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/export-compliance-report-request.ts @@ -0,0 +1,47 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ExportComplianceReport.ts.html |here} to see how to use ExportComplianceReportRequest. + */ +export interface ExportComplianceReportRequest extends common.BaseRequest { + /** + * Details for generating compliance report + */ + "exportComplianceReportDetails": model.ExportComplianceReportDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/generate-compliance-report-request.ts b/lib/fleetappsmanagement/lib/request/generate-compliance-report-request.ts index 2095d29630..382b291cfa 100644 --- a/lib/fleetappsmanagement/lib/request/generate-compliance-report-request.ts +++ b/lib/fleetappsmanagement/lib/request/generate-compliance-report-request.ts @@ -19,11 +19,11 @@ import common = require("oci-common"); */ export interface GenerateComplianceReportRequest extends common.BaseRequest { /** - * Details for generating Compliance Report fort the Fleet. + * Details for generating Compliance Report for the Fleet. */ "generateComplianceReportDetails": model.GenerateComplianceReportDetails; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/get-compliance-policy-request.ts b/lib/fleetappsmanagement/lib/request/get-compliance-policy-request.ts new file mode 100644 index 0000000000..ddfcfee567 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-compliance-policy-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetCompliancePolicy.ts.html |here} to see how to use GetCompliancePolicyRequest. + */ +export interface GetCompliancePolicyRequest extends common.BaseRequest { + /** + * unique CompliancePolicy identifier. + */ + "compliancePolicyId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-compliance-policy-rule-request.ts b/lib/fleetappsmanagement/lib/request/get-compliance-policy-rule-request.ts new file mode 100644 index 0000000000..8cb162c298 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-compliance-policy-rule-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetCompliancePolicyRule.ts.html |here} to see how to use GetCompliancePolicyRuleRequest. + */ +export interface GetCompliancePolicyRuleRequest extends common.BaseRequest { + /** + * unique CompliancePolicyRule identifier. + */ + "compliancePolicyRuleId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-compliance-report-request.ts b/lib/fleetappsmanagement/lib/request/get-compliance-report-request.ts index 23a26e6922..51f298ae4f 100644 --- a/lib/fleetappsmanagement/lib/request/get-compliance-report-request.ts +++ b/lib/fleetappsmanagement/lib/request/get-compliance-report-request.ts @@ -19,11 +19,11 @@ import common = require("oci-common"); */ export interface GetComplianceReportRequest extends common.BaseRequest { /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** - * compliance report identifier + * compliance report identifier. */ "complianceReportId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/get-fleet-credential-request.ts b/lib/fleetappsmanagement/lib/request/get-fleet-credential-request.ts index c6aa9cd47b..24ee785756 100644 --- a/lib/fleetappsmanagement/lib/request/get-fleet-credential-request.ts +++ b/lib/fleetappsmanagement/lib/request/get-fleet-credential-request.ts @@ -23,7 +23,7 @@ export interface GetFleetCredentialRequest extends common.BaseRequest { */ "fleetCredentialId": string; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/get-fleet-property-request.ts b/lib/fleetappsmanagement/lib/request/get-fleet-property-request.ts index c3045288bf..fc0258bf08 100644 --- a/lib/fleetappsmanagement/lib/request/get-fleet-property-request.ts +++ b/lib/fleetappsmanagement/lib/request/get-fleet-property-request.ts @@ -19,11 +19,11 @@ import common = require("oci-common"); */ export interface GetFleetPropertyRequest extends common.BaseRequest { /** - * unique FleetProperty identifier + * unique FleetProperty identifier. */ "fleetPropertyId": string; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/get-fleet-request.ts b/lib/fleetappsmanagement/lib/request/get-fleet-request.ts index 8c6806e1a6..0c0bf3c738 100644 --- a/lib/fleetappsmanagement/lib/request/get-fleet-request.ts +++ b/lib/fleetappsmanagement/lib/request/get-fleet-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface GetFleetRequest extends common.BaseRequest { /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/get-fleet-resource-request.ts b/lib/fleetappsmanagement/lib/request/get-fleet-resource-request.ts index 41f9c9e3ad..de28b52b81 100644 --- a/lib/fleetappsmanagement/lib/request/get-fleet-resource-request.ts +++ b/lib/fleetappsmanagement/lib/request/get-fleet-resource-request.ts @@ -23,7 +23,7 @@ export interface GetFleetResourceRequest extends common.BaseRequest { */ "fleetResourceId": string; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/get-onboarding-request.ts b/lib/fleetappsmanagement/lib/request/get-onboarding-request.ts new file mode 100644 index 0000000000..aa5b6f74d3 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-onboarding-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetOnboarding.ts.html |here} to see how to use GetOnboardingRequest. + */ +export interface GetOnboardingRequest extends common.BaseRequest { + /** + * A filter to return resources whose Onboarding identifier matches the given identifier. + */ + "onboardingId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-patch-request.ts b/lib/fleetappsmanagement/lib/request/get-patch-request.ts new file mode 100644 index 0000000000..3afb7796ab --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-patch-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetPatch.ts.html |here} to see how to use GetPatchRequest. + */ +export interface GetPatchRequest extends common.BaseRequest { + /** + * unique Patch identifier + */ + "patchId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-platform-configuration-request.ts b/lib/fleetappsmanagement/lib/request/get-platform-configuration-request.ts new file mode 100644 index 0000000000..43cdcb6c3c --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-platform-configuration-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetPlatformConfiguration.ts.html |here} to see how to use GetPlatformConfigurationRequest. + */ +export interface GetPlatformConfigurationRequest extends common.BaseRequest { + /** + * unique PlatformConfiguration identifier + */ + "platformConfigurationId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/index.ts b/lib/fleetappsmanagement/lib/request/index.ts index 16f70efdf0..c5a4141e68 100644 --- a/lib/fleetappsmanagement/lib/request/index.ts +++ b/lib/fleetappsmanagement/lib/request/index.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -83,20 +82,54 @@ import * as UpdateFleetPropertyRequest from "./update-fleet-property-request"; export import UpdateFleetPropertyRequest = UpdateFleetPropertyRequest.UpdateFleetPropertyRequest; import * as UpdateFleetResourceRequest from "./update-fleet-resource-request"; export import UpdateFleetResourceRequest = UpdateFleetResourceRequest.UpdateFleetResourceRequest; +import * as CreateCompliancePolicyRuleRequest from "./create-compliance-policy-rule-request"; +export import CreateCompliancePolicyRuleRequest = CreateCompliancePolicyRuleRequest.CreateCompliancePolicyRuleRequest; import * as CreateOnboardingRequest from "./create-onboarding-request"; export import CreateOnboardingRequest = CreateOnboardingRequest.CreateOnboardingRequest; +import * as CreatePlatformConfigurationRequest from "./create-platform-configuration-request"; +export import CreatePlatformConfigurationRequest = CreatePlatformConfigurationRequest.CreatePlatformConfigurationRequest; import * as CreatePropertyRequest from "./create-property-request"; export import CreatePropertyRequest = CreatePropertyRequest.CreatePropertyRequest; +import * as DeleteCompliancePolicyRuleRequest from "./delete-compliance-policy-rule-request"; +export import DeleteCompliancePolicyRuleRequest = DeleteCompliancePolicyRuleRequest.DeleteCompliancePolicyRuleRequest; +import * as DeleteOnboardingRequest from "./delete-onboarding-request"; +export import DeleteOnboardingRequest = DeleteOnboardingRequest.DeleteOnboardingRequest; +import * as DeletePlatformConfigurationRequest from "./delete-platform-configuration-request"; +export import DeletePlatformConfigurationRequest = DeletePlatformConfigurationRequest.DeletePlatformConfigurationRequest; import * as DeletePropertyRequest from "./delete-property-request"; export import DeletePropertyRequest = DeletePropertyRequest.DeletePropertyRequest; +import * as EnableLatestPolicyRequest from "./enable-latest-policy-request"; +export import EnableLatestPolicyRequest = EnableLatestPolicyRequest.EnableLatestPolicyRequest; +import * as GetCompliancePolicyRequest from "./get-compliance-policy-request"; +export import GetCompliancePolicyRequest = GetCompliancePolicyRequest.GetCompliancePolicyRequest; +import * as GetCompliancePolicyRuleRequest from "./get-compliance-policy-rule-request"; +export import GetCompliancePolicyRuleRequest = GetCompliancePolicyRuleRequest.GetCompliancePolicyRuleRequest; +import * as GetOnboardingRequest from "./get-onboarding-request"; +export import GetOnboardingRequest = GetOnboardingRequest.GetOnboardingRequest; +import * as GetPlatformConfigurationRequest from "./get-platform-configuration-request"; +export import GetPlatformConfigurationRequest = GetPlatformConfigurationRequest.GetPlatformConfigurationRequest; import * as GetPropertyRequest from "./get-property-request"; export import GetPropertyRequest = GetPropertyRequest.GetPropertyRequest; +import * as ListCompliancePoliciesRequest from "./list-compliance-policies-request"; +export import ListCompliancePoliciesRequest = ListCompliancePoliciesRequest.ListCompliancePoliciesRequest; +import * as ListCompliancePolicyRulesRequest from "./list-compliance-policy-rules-request"; +export import ListCompliancePolicyRulesRequest = ListCompliancePolicyRulesRequest.ListCompliancePolicyRulesRequest; import * as ListOnboardingPoliciesRequest from "./list-onboarding-policies-request"; export import ListOnboardingPoliciesRequest = ListOnboardingPoliciesRequest.ListOnboardingPoliciesRequest; import * as ListOnboardingsRequest from "./list-onboardings-request"; export import ListOnboardingsRequest = ListOnboardingsRequest.ListOnboardingsRequest; +import * as ListPlatformConfigurationsRequest from "./list-platform-configurations-request"; +export import ListPlatformConfigurationsRequest = ListPlatformConfigurationsRequest.ListPlatformConfigurationsRequest; import * as ListPropertiesRequest from "./list-properties-request"; export import ListPropertiesRequest = ListPropertiesRequest.ListPropertiesRequest; +import * as ManageSettingsRequest from "./manage-settings-request"; +export import ManageSettingsRequest = ManageSettingsRequest.ManageSettingsRequest; +import * as UpdateCompliancePolicyRuleRequest from "./update-compliance-policy-rule-request"; +export import UpdateCompliancePolicyRuleRequest = UpdateCompliancePolicyRuleRequest.UpdateCompliancePolicyRuleRequest; +import * as UpdateOnboardingRequest from "./update-onboarding-request"; +export import UpdateOnboardingRequest = UpdateOnboardingRequest.UpdateOnboardingRequest; +import * as UpdatePlatformConfigurationRequest from "./update-platform-configuration-request"; +export import UpdatePlatformConfigurationRequest = UpdatePlatformConfigurationRequest.UpdatePlatformConfigurationRequest; import * as UpdatePropertyRequest from "./update-property-request"; export import UpdatePropertyRequest = UpdatePropertyRequest.UpdatePropertyRequest; import * as CreateMaintenanceWindowRequest from "./create-maintenance-window-request"; @@ -109,32 +142,66 @@ import * as ListMaintenanceWindowsRequest from "./list-maintenance-windows-reque export import ListMaintenanceWindowsRequest = ListMaintenanceWindowsRequest.ListMaintenanceWindowsRequest; import * as UpdateMaintenanceWindowRequest from "./update-maintenance-window-request"; export import UpdateMaintenanceWindowRequest = UpdateMaintenanceWindowRequest.UpdateMaintenanceWindowRequest; +import * as CreatePatchRequest from "./create-patch-request"; +export import CreatePatchRequest = CreatePatchRequest.CreatePatchRequest; import * as CreateSchedulerDefinitionRequest from "./create-scheduler-definition-request"; export import CreateSchedulerDefinitionRequest = CreateSchedulerDefinitionRequest.CreateSchedulerDefinitionRequest; +import * as DeletePatchRequest from "./delete-patch-request"; +export import DeletePatchRequest = DeletePatchRequest.DeletePatchRequest; import * as DeleteSchedulerDefinitionRequest from "./delete-scheduler-definition-request"; export import DeleteSchedulerDefinitionRequest = DeleteSchedulerDefinitionRequest.DeleteSchedulerDefinitionRequest; import * as DeleteSchedulerJobRequest from "./delete-scheduler-job-request"; export import DeleteSchedulerJobRequest = DeleteSchedulerJobRequest.DeleteSchedulerJobRequest; +import * as ExportComplianceReportRequest from "./export-compliance-report-request"; +export import ExportComplianceReportRequest = ExportComplianceReportRequest.ExportComplianceReportRequest; import * as GetExecutionRequest from "./get-execution-request"; export import GetExecutionRequest = GetExecutionRequest.GetExecutionRequest; import * as GetJobActivityRequest from "./get-job-activity-request"; export import GetJobActivityRequest = GetJobActivityRequest.GetJobActivityRequest; +import * as GetPatchRequest from "./get-patch-request"; +export import GetPatchRequest = GetPatchRequest.GetPatchRequest; import * as GetSchedulerDefinitionRequest from "./get-scheduler-definition-request"; export import GetSchedulerDefinitionRequest = GetSchedulerDefinitionRequest.GetSchedulerDefinitionRequest; import * as GetSchedulerJobRequest from "./get-scheduler-job-request"; export import GetSchedulerJobRequest = GetSchedulerJobRequest.GetSchedulerJobRequest; +import * as ListComplianceRecordsRequest from "./list-compliance-records-request"; +export import ListComplianceRecordsRequest = ListComplianceRecordsRequest.ListComplianceRecordsRequest; import * as ListExecutionsRequest from "./list-executions-request"; export import ListExecutionsRequest = ListExecutionsRequest.ListExecutionsRequest; +import * as ListPatchesRequest from "./list-patches-request"; +export import ListPatchesRequest = ListPatchesRequest.ListPatchesRequest; +import * as ListResourcesRequest from "./list-resources-request"; +export import ListResourcesRequest = ListResourcesRequest.ListResourcesRequest; import * as ListScheduledFleetsRequest from "./list-scheduled-fleets-request"; export import ListScheduledFleetsRequest = ListScheduledFleetsRequest.ListScheduledFleetsRequest; import * as ListSchedulerDefinitionsRequest from "./list-scheduler-definitions-request"; export import ListSchedulerDefinitionsRequest = ListSchedulerDefinitionsRequest.ListSchedulerDefinitionsRequest; import * as ListSchedulerJobsRequest from "./list-scheduler-jobs-request"; export import ListSchedulerJobsRequest = ListSchedulerJobsRequest.ListSchedulerJobsRequest; +import * as ListStepsRequest from "./list-steps-request"; +export import ListStepsRequest = ListStepsRequest.ListStepsRequest; +import * as ManageJobExecutionRequest from "./manage-job-execution-request"; +export import ManageJobExecutionRequest = ManageJobExecutionRequest.ManageJobExecutionRequest; +import * as SummarizeComplianceRecordCountsRequest from "./summarize-compliance-record-counts-request"; +export import SummarizeComplianceRecordCountsRequest = SummarizeComplianceRecordCountsRequest.SummarizeComplianceRecordCountsRequest; +import * as SummarizeManagedEntityCountsRequest from "./summarize-managed-entity-counts-request"; +export import SummarizeManagedEntityCountsRequest = SummarizeManagedEntityCountsRequest.SummarizeManagedEntityCountsRequest; +import * as SummarizeSchedulerJobCountsRequest from "./summarize-scheduler-job-counts-request"; +export import SummarizeSchedulerJobCountsRequest = SummarizeSchedulerJobCountsRequest.SummarizeSchedulerJobCountsRequest; +import * as UpdatePatchRequest from "./update-patch-request"; +export import UpdatePatchRequest = UpdatePatchRequest.UpdatePatchRequest; import * as UpdateSchedulerDefinitionRequest from "./update-scheduler-definition-request"; export import UpdateSchedulerDefinitionRequest = UpdateSchedulerDefinitionRequest.UpdateSchedulerDefinitionRequest; import * as UpdateSchedulerJobRequest from "./update-scheduler-job-request"; export import UpdateSchedulerJobRequest = UpdateSchedulerJobRequest.UpdateSchedulerJobRequest; +import * as CreateRunbookRequest from "./create-runbook-request"; +export import CreateRunbookRequest = CreateRunbookRequest.CreateRunbookRequest; +import * as CreateTaskRecordRequest from "./create-task-record-request"; +export import CreateTaskRecordRequest = CreateTaskRecordRequest.CreateTaskRecordRequest; +import * as DeleteRunbookRequest from "./delete-runbook-request"; +export import DeleteRunbookRequest = DeleteRunbookRequest.DeleteRunbookRequest; +import * as DeleteTaskRecordRequest from "./delete-task-record-request"; +export import DeleteTaskRecordRequest = DeleteTaskRecordRequest.DeleteTaskRecordRequest; import * as GetRunbookRequest from "./get-runbook-request"; export import GetRunbookRequest = GetRunbookRequest.GetRunbookRequest; import * as GetTaskRecordRequest from "./get-task-record-request"; @@ -143,3 +210,11 @@ import * as ListRunbooksRequest from "./list-runbooks-request"; export import ListRunbooksRequest = ListRunbooksRequest.ListRunbooksRequest; import * as ListTaskRecordsRequest from "./list-task-records-request"; export import ListTaskRecordsRequest = ListTaskRecordsRequest.ListTaskRecordsRequest; +import * as PublishRunbookRequest from "./publish-runbook-request"; +export import PublishRunbookRequest = PublishRunbookRequest.PublishRunbookRequest; +import * as SetDefaultRunbookRequest from "./set-default-runbook-request"; +export import SetDefaultRunbookRequest = SetDefaultRunbookRequest.SetDefaultRunbookRequest; +import * as UpdateRunbookRequest from "./update-runbook-request"; +export import UpdateRunbookRequest = UpdateRunbookRequest.UpdateRunbookRequest; +import * as UpdateTaskRecordRequest from "./update-task-record-request"; +export import UpdateTaskRecordRequest = UpdateTaskRecordRequest.UpdateTaskRecordRequest; diff --git a/lib/fleetappsmanagement/lib/request/list-announcements-request.ts b/lib/fleetappsmanagement/lib/request/list-announcements-request.ts index 62964b305d..115acf432d 100644 --- a/lib/fleetappsmanagement/lib/request/list-announcements-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-announcements-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface ListAnnouncementsRequest extends common.BaseRequest { /** - * Filter the list with summary contains the given value. + * Filter the list of announcements that contains the given summary value. * */ "summaryContains"?: string; @@ -40,8 +40,8 @@ export interface ListAnnouncementsRequest extends common.BaseRequest { */ "sortOrder"?: model.SortOrder; /** - * The field to sort AnnouncementSummary by. Only one sort order may be provided. - * If no value is specified _timeReleased_ is default. + * The field to sort AnnouncementSummary by. Only one sort order may be provided. + * If no value is specified timeReleased is default. * */ "sortBy"?: model.AnnouncementSortBy; diff --git a/lib/fleetappsmanagement/lib/request/list-compliance-policies-request.ts b/lib/fleetappsmanagement/lib/request/list-compliance-policies-request.ts new file mode 100644 index 0000000000..d0c45d0530 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-compliance-policies-request.ts @@ -0,0 +1,67 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListCompliancePolicies.ts.html |here} to see how to use ListCompliancePoliciesRequest. + */ +export interface ListCompliancePoliciesRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * unique CompliancePolicy identifier. + */ + "id"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListCompliancePoliciesRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListCompliancePoliciesRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-compliance-policy-rules-request.ts b/lib/fleetappsmanagement/lib/request/list-compliance-policy-rules-request.ts new file mode 100644 index 0000000000..eb20c21b66 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-compliance-policy-rules-request.ts @@ -0,0 +1,75 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListCompliancePolicyRules.ts.html |here} to see how to use ListCompliancePolicyRulesRequest. + */ +export interface ListCompliancePolicyRulesRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the patch selection against the given patch name. + */ + "patchName"?: string; + /** + * unique CompliancePolicy identifier. + */ + "compliancePolicyId"?: string; + /** + * unique CompliancePolicyRule identifier. + */ + "id"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListCompliancePolicyRulesRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListCompliancePolicyRulesRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-compliance-records-request.ts b/lib/fleetappsmanagement/lib/request/list-compliance-records-request.ts new file mode 100644 index 0000000000..ce9de6209c --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-compliance-records-request.ts @@ -0,0 +1,77 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListComplianceRecords.ts.html |here} to see how to use ListComplianceRecordsRequest. + */ +export interface ListComplianceRecordsRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * Resource identifier. + */ + "resourceId"?: string; + /** + * Entity identifier.Ex:FleetId + */ + "entityId"?: string; + /** + * Product Name. + */ + "productName"?: string; + /** + * ProductStack name. + */ + "productStack"?: string; + /** + * Unique target name + */ + "targetName"?: string; + /** + * Target Compliance State. + */ + "complianceState"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListComplianceRecordsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListComplianceRecordsRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-fleet-credentials-request.ts b/lib/fleetappsmanagement/lib/request/list-fleet-credentials-request.ts index 0a533ef7b4..d87eba2bce 100644 --- a/lib/fleetappsmanagement/lib/request/list-fleet-credentials-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-fleet-credentials-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface ListFleetCredentialsRequest extends common.BaseRequest { /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** @@ -27,7 +27,7 @@ export interface ListFleetCredentialsRequest extends common.BaseRequest { */ "compartmentId"?: string; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only resources whose lifecycleState matches the given lifecycleState. */ "lifecycleState"?: string; /** @@ -35,11 +35,19 @@ export interface ListFleetCredentialsRequest extends common.BaseRequest { */ "displayName"?: string; /** - * Credential Level. + * Resource Identifier + */ + "resourceId"?: string; + /** + * A filter to return only resources whose target matches the given target name. + */ + "target"?: string; + /** + * A filter to return only resources whose credentialLevel matches the given credentialLevel. */ "credentialLevel"?: string; /** - * unique FleetCredential identifier + * A filter to return only resources whose credential identifier matches the given identifier. */ "id"?: string; /** diff --git a/lib/fleetappsmanagement/lib/request/list-fleet-products-request.ts b/lib/fleetappsmanagement/lib/request/list-fleet-products-request.ts index cfb5a8a937..2222cc0e39 100644 --- a/lib/fleetappsmanagement/lib/request/list-fleet-products-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-fleet-products-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface ListFleetProductsRequest extends common.BaseRequest { /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** @@ -31,7 +31,7 @@ export interface ListFleetProductsRequest extends common.BaseRequest { */ "resourceId"?: string; /** - * Resource Display Name + * Resource Display Name. */ "resourceDisplayName"?: string; /** diff --git a/lib/fleetappsmanagement/lib/request/list-fleet-properties-request.ts b/lib/fleetappsmanagement/lib/request/list-fleet-properties-request.ts index ca51c6757c..35a3b14203 100644 --- a/lib/fleetappsmanagement/lib/request/list-fleet-properties-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-fleet-properties-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface ListFleetPropertiesRequest extends common.BaseRequest { /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** @@ -27,7 +27,7 @@ export interface ListFleetPropertiesRequest extends common.BaseRequest { */ "compartmentId"?: string; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only resources whose lifecycleState matches the given lifecycleState. */ "lifecycleState"?: string; /** @@ -35,7 +35,7 @@ export interface ListFleetPropertiesRequest extends common.BaseRequest { */ "displayName"?: string; /** - * unique FleetProperty identifier + * A filter to return only resources whose fleetProperty identifier matches the given identifier. */ "id"?: string; /** diff --git a/lib/fleetappsmanagement/lib/request/list-fleet-resources-request.ts b/lib/fleetappsmanagement/lib/request/list-fleet-resources-request.ts index d77515424b..79f352a6f9 100644 --- a/lib/fleetappsmanagement/lib/request/list-fleet-resources-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-fleet-resources-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface ListFleetResourcesRequest extends common.BaseRequest { /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** @@ -27,7 +27,7 @@ export interface ListFleetResourcesRequest extends common.BaseRequest { */ "tenancyId"?: string; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only resources whose lifecycleState matches the given lifecycleState. */ "lifecycleState"?: string; /** @@ -35,11 +35,11 @@ export interface ListFleetResourcesRequest extends common.BaseRequest { */ "displayName"?: string; /** - * unique FleetResource identifier + * A filter to return only resources whose identifier matches the given identifier. */ "id"?: string; /** - * A filter to return resources that match the Type + * A filter to return only resources whose resourceType matches the given resourceType. */ "fleetResourceType"?: string; /** diff --git a/lib/fleetappsmanagement/lib/request/list-fleet-targets-request.ts b/lib/fleetappsmanagement/lib/request/list-fleet-targets-request.ts index afe3ede47e..3e6cc1ed0c 100644 --- a/lib/fleetappsmanagement/lib/request/list-fleet-targets-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-fleet-targets-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface ListFleetTargetsRequest extends common.BaseRequest { /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** @@ -27,7 +27,7 @@ export interface ListFleetTargetsRequest extends common.BaseRequest { */ "displayName"?: string; /** - * Product Name + * Product Name. */ "product"?: string; /** @@ -35,7 +35,7 @@ export interface ListFleetTargetsRequest extends common.BaseRequest { */ "resourceId"?: string; /** - * Resource Display Name + * Resource Display Name. */ "resourceDisplayName"?: string; /** diff --git a/lib/fleetappsmanagement/lib/request/list-fleets-request.ts b/lib/fleetappsmanagement/lib/request/list-fleets-request.ts index ee1d5621ea..0255e9ff92 100644 --- a/lib/fleetappsmanagement/lib/request/list-fleets-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-fleets-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface ListFleetsRequest extends common.BaseRequest { /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return fleets whose lifecycleState matches the given lifecycleState. */ "lifecycleState"?: string; /** @@ -27,19 +27,19 @@ export interface ListFleetsRequest extends common.BaseRequest { */ "compartmentId"?: string; /** - * A filter to return only resources their fleetType matches the given fleetType. + * A filter to return fleets whose fleetType matches the given fleetType. */ "fleetType"?: string; /** - * A filter to return only resources that match the Application Type given. + * A filter to return resources that match the Application Type/Product Stack given.. */ "applicationType"?: string; /** - * A filter to return only resources that match the Product Type given. + * A filter to return resources that match the Product given. */ "product"?: string; /** - * A filter to return only resources that match the Environment Type given. + * A filter to return resources that match the Environment Type given. */ "environmentType"?: string; /** @@ -47,7 +47,7 @@ export interface ListFleetsRequest extends common.BaseRequest { */ "displayName"?: string; /** - * unique Fleet identifier + * A filter to return fleets whose id matches the given Fleet identifier */ "id"?: string; /** diff --git a/lib/fleetappsmanagement/lib/request/list-inventory-resources-request.ts b/lib/fleetappsmanagement/lib/request/list-inventory-resources-request.ts index df83e7448e..4770b9b7f0 100644 --- a/lib/fleetappsmanagement/lib/request/list-inventory-resources-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-inventory-resources-request.ts @@ -19,11 +19,11 @@ import common = require("oci-common"); */ export interface ListInventoryResourcesRequest extends common.BaseRequest { /** - * The ID of the compartment in which to list resources. + * A filter to return only resources whose base Compartment ID(TenancyId) matches the given base Compartment ID. */ "compartmentId": string; /** - * Resource Compartment ID + * A filter to return only resources whose resource Compartment ID matches the given resource Compartment ID. */ "resourceCompartmentId": string; /** @@ -43,6 +43,7 @@ export interface ListInventoryResourcesRequest extends common.BaseRequest { * Each item in the list has the format \"{namespace}.{tagName}={value}\". All inputs are case-insensitive. * Multiple values for the same key (i.e. same namespace and tag name) are interpreted as \"OR\". * Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as \"AND\". + * Example: Identification.Development=Yes * */ "definedTagEquals"?: Array; @@ -56,11 +57,14 @@ export interface ListInventoryResourcesRequest extends common.BaseRequest { /** * A list of inventory properties filters to apply. * The key for each inventory property and value for each resource type is \"{resourceType}.{inventoryProperty}={value}\". + * Example: Instance.displayName=TEST_INSTANCE * */ "inventoryProperties"?: Array; /** - * Fetch resources matching matching ANY or ALL criteria passed as params in \"tags\" and \"inventoryProperties\" + * Fetch resources matching ANY or ALL criteria passed as params in \"tags\" and \"inventoryProperties\". + * Example: matchingCriteria=ANY + * */ "matchingCriteria"?: string; /** diff --git a/lib/fleetappsmanagement/lib/request/list-maintenance-windows-request.ts b/lib/fleetappsmanagement/lib/request/list-maintenance-windows-request.ts index 6f545cb1d9..ad139797e7 100644 --- a/lib/fleetappsmanagement/lib/request/list-maintenance-windows-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-maintenance-windows-request.ts @@ -23,7 +23,7 @@ export interface ListMaintenanceWindowsRequest extends common.BaseRequest { */ "compartmentId"?: string; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only resources whose lifecycleState matches the given lifecycleState. */ "lifecycleState"?: string; /** @@ -31,7 +31,11 @@ export interface ListMaintenanceWindowsRequest extends common.BaseRequest { */ "displayName"?: string; /** - * unique MaintenanceWindow identifier + * A filter to return only resources whose timeScheduleStart is greater than or equal to the provided date and time. + */ + "timeScheduleStartGreaterThanOrEqualTo"?: Date; + /** + * A filter to return only the Maintenance Windows whose identifier matches the given identifier. */ "id"?: string; /** diff --git a/lib/fleetappsmanagement/lib/request/list-onboardings-request.ts b/lib/fleetappsmanagement/lib/request/list-onboardings-request.ts index 7602d1dd21..3a013dd219 100644 --- a/lib/fleetappsmanagement/lib/request/list-onboardings-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-onboardings-request.ts @@ -23,7 +23,7 @@ export interface ListOnboardingsRequest extends common.BaseRequest { */ "compartmentId"?: string; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only resources whose lifecycleState matches the given lifecycleState. */ "lifecycleState"?: string; /** diff --git a/lib/fleetappsmanagement/lib/request/list-patches-request.ts b/lib/fleetappsmanagement/lib/request/list-patches-request.ts new file mode 100644 index 0000000000..207bd0f700 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-patches-request.ts @@ -0,0 +1,93 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListPatches.ts.html |here} to see how to use ListPatchesRequest. + */ +export interface ListPatchesRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * Product platformConfigurationId associated with the Patch. + */ + "productId"?: string; + /** + * Product version + */ + "version"?: string; + /** + * DefinedBy type. + */ + "type"?: string; + /** + * Patch Type platformConfigurationId associated with the Patch. + */ + "patchTypeId"?: string; + /** + * A filter to return only resources that match the entire name given. + */ + "name"?: string; + /** + * unique Patch identifier + */ + "id"?: string; + /** + * Patch Released Date + */ + "timeReleasedGreaterThanOrEqualTo"?: Date; + /** + * Patch Released Date + */ + "timeReleasedLessThan"?: Date; + /** + * Filter patch based on compliance policy rules for the Product + */ + "shouldCompliancePolicyRulesBeApplied"?: boolean; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The current state of the Patch. + */ + "lifecycleState"?: string; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListPatchesRequest.SortBy; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListPatchesRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-platform-configurations-request.ts b/lib/fleetappsmanagement/lib/request/list-platform-configurations-request.ts new file mode 100644 index 0000000000..70188ee40b --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-platform-configurations-request.ts @@ -0,0 +1,69 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListPlatformConfigurations.ts.html |here} to see how to use ListPlatformConfigurationsRequest. + */ +export interface ListPlatformConfigurationsRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * unique PlatformConfiguration identifier + */ + "id"?: string; + /** + * Config Category + */ + "configCategory"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListPlatformConfigurationsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListPlatformConfigurationsRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-properties-request.ts b/lib/fleetappsmanagement/lib/request/list-properties-request.ts index ee0d524989..6cdc9ab1c9 100644 --- a/lib/fleetappsmanagement/lib/request/list-properties-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-properties-request.ts @@ -23,7 +23,7 @@ export interface ListPropertiesRequest extends common.BaseRequest { */ "compartmentId"?: string; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only resources whose lifecycleState matches the given lifecycleState. */ "lifecycleState"?: string; /** @@ -31,11 +31,11 @@ export interface ListPropertiesRequest extends common.BaseRequest { */ "displayName"?: string; /** - * unique Property identifier + * A filter to return only resources whose Property identifier matches the given identifier. */ "id"?: string; /** - * A filter to return only resources their scope matches the given lifecycleState. + * A filter to return only resources their scope matches the given scope. */ "scope"?: model.Scope; /** diff --git a/lib/fleetappsmanagement/lib/request/list-resources-request.ts b/lib/fleetappsmanagement/lib/request/list-resources-request.ts new file mode 100644 index 0000000000..cef7eb66da --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-resources-request.ts @@ -0,0 +1,72 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListResources.ts.html |here} to see how to use ListResourcesRequest. + */ +export interface ListResourcesRequest extends common.BaseRequest { + /** + * unique SchedulerJob identifier + */ + "schedulerJobId": string; + /** + * unique jobActivity identifier + */ + "jobActivityId": string; + /** + * Task Id + */ + "resourceTaskId"?: string; + /** + * Unique step name + */ + "stepName"?: string; + /** + * Unique target name + */ + "targetName"?: string; + /** + * Task Order Sequence + */ + "sequence"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeStarted is descending. + * + */ + "sortBy"?: ListResourcesRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListResourcesRequest { + export enum SortBy { + TimeStarted = "timeStarted" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-runbooks-request.ts b/lib/fleetappsmanagement/lib/request/list-runbooks-request.ts index 1dec178990..0a43c62f24 100644 --- a/lib/fleetappsmanagement/lib/request/list-runbooks-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-runbooks-request.ts @@ -23,7 +23,7 @@ export interface ListRunbooksRequest extends common.BaseRequest { */ "compartmentId"?: string; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only resources whose lifecycleState matches the given lifecycleState. */ "lifecycleState"?: string; /** @@ -31,23 +31,23 @@ export interface ListRunbooksRequest extends common.BaseRequest { */ "displayName"?: string; /** - * unique Runbook identifier + * A filter to return runbooks whose identifier matches the given identifier. */ "id"?: string; /** - * The ID of the runbook type. + * A filter to return runbooks whose type matches the given type. */ "type"?: string; /** - * The runbook relevance of product or full-stack. + * A filter to return runbooks whose runbookRelevance matches the given runbookRelevance. */ "runbookRelevance"?: string; /** - * The ID of the runbook platform. + * A filter to return runbooks whose platform matches the given platform. */ "platform"?: string; /** - * The runbook lifecycle. + * A filter to return runbooks whose operation matches the given lifecycle operation. */ "operation"?: string; /** diff --git a/lib/fleetappsmanagement/lib/request/list-scheduler-definitions-request.ts b/lib/fleetappsmanagement/lib/request/list-scheduler-definitions-request.ts index b62e46f4d9..f1e7d13eee 100644 --- a/lib/fleetappsmanagement/lib/request/list-scheduler-definitions-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-scheduler-definitions-request.ts @@ -23,7 +23,7 @@ export interface ListSchedulerDefinitionsRequest extends common.BaseRequest { */ "compartmentId"?: string; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only scheduleDefinitions whose lifecycleState matches the given lifecycleState. */ "lifecycleState"?: string; /** @@ -31,17 +31,21 @@ export interface ListSchedulerDefinitionsRequest extends common.BaseRequest { */ "displayName"?: string; /** - * A filter to return only Scheduler Definitions whose assocaited product matches the given product + * A filter to return only dchedule definitions whose assocaited product matches the given product */ "product"?: string; /** - * unique SchedulerDefinition identifier + * A filter to return only schedule definitions whose identifier matches the given identifier. */ "id"?: string; /** - * unique MaintenanceWindow identifier + * A filter to return only schedule definitions whose associated maintenanceWindowId matches the given maintenanceWindowId. */ "maintenanceWindowId"?: string; + /** + * A filter to return only schedule definitions whose associated runbookId matches the given runbookId. + */ + "runbookId"?: string; /** * unique Fleet identifier */ diff --git a/lib/fleetappsmanagement/lib/request/list-scheduler-jobs-request.ts b/lib/fleetappsmanagement/lib/request/list-scheduler-jobs-request.ts index 813d96214f..050b1d6574 100644 --- a/lib/fleetappsmanagement/lib/request/list-scheduler-jobs-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-scheduler-jobs-request.ts @@ -23,7 +23,7 @@ export interface ListSchedulerJobsRequest extends common.BaseRequest { */ "compartmentId"?: string; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only resources whose lifecycleState matches the given lifecycleState. */ "lifecycleState"?: string; /** @@ -42,6 +42,10 @@ export interface ListSchedulerJobsRequest extends common.BaseRequest { * Fetch next remediation Job */ "isRemediationJobNeeded"?: boolean; + /** + * A filter to return only resources their subState matches the given subState. + */ + "subState"?: string; /** * A filter to return only resources that match the entire display name given. */ diff --git a/lib/fleetappsmanagement/lib/request/list-steps-request.ts b/lib/fleetappsmanagement/lib/request/list-steps-request.ts new file mode 100644 index 0000000000..435065d7d5 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-steps-request.ts @@ -0,0 +1,72 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListSteps.ts.html |here} to see how to use ListStepsRequest. + */ +export interface ListStepsRequest extends common.BaseRequest { + /** + * unique SchedulerJob identifier + */ + "schedulerJobId": string; + /** + * unique jobActivity identifier + */ + "jobActivityId": string; + /** + * Task Id + */ + "resourceTaskId"?: string; + /** + * Unique step name + */ + "stepName"?: string; + /** + * Unique target name + */ + "targetName"?: string; + /** + * Task Order Sequence + */ + "sequence"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeStarted is descending. + * + */ + "sortBy"?: ListStepsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListStepsRequest { + export enum SortBy { + TimeStarted = "timeStarted" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-targets-request.ts b/lib/fleetappsmanagement/lib/request/list-targets-request.ts index 2c3b66c209..48c8cf2af3 100644 --- a/lib/fleetappsmanagement/lib/request/list-targets-request.ts +++ b/lib/fleetappsmanagement/lib/request/list-targets-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface ListTargetsRequest extends common.BaseRequest { /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/manage-job-execution-request.ts b/lib/fleetappsmanagement/lib/request/manage-job-execution-request.ts new file mode 100644 index 0000000000..ca9e8777f0 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/manage-job-execution-request.ts @@ -0,0 +1,51 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ManageJobExecution.ts.html |here} to see how to use ManageJobExecutionRequest. + */ +export interface ManageJobExecutionRequest extends common.BaseRequest { + /** + * Details for confirming Targets. + */ + "manageJobExecutionDetails": model.ManageJobExecutionDetails; + /** + * unique SchedulerJob identifier + */ + "schedulerJobId": string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/manage-settings-request.ts b/lib/fleetappsmanagement/lib/request/manage-settings-request.ts new file mode 100644 index 0000000000..2086bd75e2 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/manage-settings-request.ts @@ -0,0 +1,51 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ManageSettings.ts.html |here} to see how to use ManageSettingsRequest. + */ +export interface ManageSettingsRequest extends common.BaseRequest { + /** + * A filter to return resources whose Onboarding identifier matches the given identifier. + */ + "onboardingId": string; + /** + * The information to be updated. + */ + "manageSettingsDetails": model.ManageSettingsDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/publish-runbook-request.ts b/lib/fleetappsmanagement/lib/request/publish-runbook-request.ts new file mode 100644 index 0000000000..354b33dafc --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/publish-runbook-request.ts @@ -0,0 +1,47 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/PublishRunbook.ts.html |here} to see how to use PublishRunbookRequest. + */ +export interface PublishRunbookRequest extends common.BaseRequest { + /** + * Details for publishing the Runbook. + */ + "publishRunbookDetails": model.PublishRunbookDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/request-resource-validation-request.ts b/lib/fleetappsmanagement/lib/request/request-resource-validation-request.ts index 8403f33102..a89a204e2f 100644 --- a/lib/fleetappsmanagement/lib/request/request-resource-validation-request.ts +++ b/lib/fleetappsmanagement/lib/request/request-resource-validation-request.ts @@ -19,11 +19,11 @@ import common = require("oci-common"); */ export interface RequestResourceValidationRequest extends common.BaseRequest { /** - * Details for requesting resource validation + * Details for requesting resource validation. */ "requestResourceValidationDetails": model.RequestResourceValidationDetails; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/request-target-discovery-request.ts b/lib/fleetappsmanagement/lib/request/request-target-discovery-request.ts index ca326201de..9de35a1769 100644 --- a/lib/fleetappsmanagement/lib/request/request-target-discovery-request.ts +++ b/lib/fleetappsmanagement/lib/request/request-target-discovery-request.ts @@ -19,11 +19,11 @@ import common = require("oci-common"); */ export interface RequestTargetDiscoveryRequest extends common.BaseRequest { /** - * Details for requesting target discovery + * Details for requesting target discovery. */ "requestTargetDiscoveryDetails": model.RequestTargetDiscoveryDetails; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/set-default-runbook-request.ts b/lib/fleetappsmanagement/lib/request/set-default-runbook-request.ts new file mode 100644 index 0000000000..7bae892839 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/set-default-runbook-request.ts @@ -0,0 +1,47 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/SetDefaultRunbook.ts.html |here} to see how to use SetDefaultRunbookRequest. + */ +export interface SetDefaultRunbookRequest extends common.BaseRequest { + /** + * Details for setting the Runbook as default. + */ + "setDefaultRunbookDetails": model.SetDefaultRunbookDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/summarize-compliance-record-counts-request.ts b/lib/fleetappsmanagement/lib/request/summarize-compliance-record-counts-request.ts new file mode 100644 index 0000000000..525803a3eb --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/summarize-compliance-record-counts-request.ts @@ -0,0 +1,41 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/SummarizeComplianceRecordCounts.ts.html |here} to see how to use SummarizeComplianceRecordCountsRequest. + */ +export interface SummarizeComplianceRecordCountsRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; +} diff --git a/lib/fleetappsmanagement/lib/request/summarize-managed-entity-counts-request.ts b/lib/fleetappsmanagement/lib/request/summarize-managed-entity-counts-request.ts new file mode 100644 index 0000000000..9ed5e99915 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/summarize-managed-entity-counts-request.ts @@ -0,0 +1,41 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/SummarizeManagedEntityCounts.ts.html |here} to see how to use SummarizeManagedEntityCountsRequest. + */ +export interface SummarizeManagedEntityCountsRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; +} diff --git a/lib/fleetappsmanagement/lib/request/summarize-scheduler-job-counts-request.ts b/lib/fleetappsmanagement/lib/request/summarize-scheduler-job-counts-request.ts new file mode 100644 index 0000000000..b6f07b891f --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/summarize-scheduler-job-counts-request.ts @@ -0,0 +1,41 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/SummarizeSchedulerJobCounts.ts.html |here} to see how to use SummarizeSchedulerJobCountsRequest. + */ +export interface SummarizeSchedulerJobCountsRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; +} diff --git a/lib/fleetappsmanagement/lib/request/update-compliance-policy-rule-request.ts b/lib/fleetappsmanagement/lib/request/update-compliance-policy-rule-request.ts new file mode 100644 index 0000000000..a6526a5b36 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-compliance-policy-rule-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateCompliancePolicyRule.ts.html |here} to see how to use UpdateCompliancePolicyRuleRequest. + */ +export interface UpdateCompliancePolicyRuleRequest extends common.BaseRequest { + /** + * unique CompliancePolicyRule identifier. + */ + "compliancePolicyRuleId": string; + /** + * The information to be updated. + */ + "updateCompliancePolicyRuleDetails": model.UpdateCompliancePolicyRuleDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-fleet-credential-request.ts b/lib/fleetappsmanagement/lib/request/update-fleet-credential-request.ts index 31da4ad221..3a1a4706e8 100644 --- a/lib/fleetappsmanagement/lib/request/update-fleet-credential-request.ts +++ b/lib/fleetappsmanagement/lib/request/update-fleet-credential-request.ts @@ -23,11 +23,11 @@ export interface UpdateFleetCredentialRequest extends common.BaseRequest { */ "fleetCredentialId": string; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** - * The information to be updated. + * The credential information to be updated. */ "updateFleetCredentialDetails": model.UpdateFleetCredentialDetails; /** diff --git a/lib/fleetappsmanagement/lib/request/update-fleet-property-request.ts b/lib/fleetappsmanagement/lib/request/update-fleet-property-request.ts index 46acf1a27e..292ebbfcde 100644 --- a/lib/fleetappsmanagement/lib/request/update-fleet-property-request.ts +++ b/lib/fleetappsmanagement/lib/request/update-fleet-property-request.ts @@ -19,11 +19,11 @@ import common = require("oci-common"); */ export interface UpdateFleetPropertyRequest extends common.BaseRequest { /** - * unique FleetProperty identifier + * unique FleetProperty identifier. */ "fleetPropertyId": string; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/update-fleet-request.ts b/lib/fleetappsmanagement/lib/request/update-fleet-request.ts index 14231f5dda..b085c74498 100644 --- a/lib/fleetappsmanagement/lib/request/update-fleet-request.ts +++ b/lib/fleetappsmanagement/lib/request/update-fleet-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface UpdateFleetRequest extends common.BaseRequest { /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/update-fleet-resource-request.ts b/lib/fleetappsmanagement/lib/request/update-fleet-resource-request.ts index 1f4195a19c..9d308a72e0 100644 --- a/lib/fleetappsmanagement/lib/request/update-fleet-resource-request.ts +++ b/lib/fleetappsmanagement/lib/request/update-fleet-resource-request.ts @@ -23,7 +23,7 @@ export interface UpdateFleetResourceRequest extends common.BaseRequest { */ "fleetResourceId": string; /** - * unique Fleet identifier + * Unique Fleet identifier. */ "fleetId": string; /** diff --git a/lib/fleetappsmanagement/lib/request/update-maintenance-window-request.ts b/lib/fleetappsmanagement/lib/request/update-maintenance-window-request.ts index 08361451af..ee8edb1db9 100644 --- a/lib/fleetappsmanagement/lib/request/update-maintenance-window-request.ts +++ b/lib/fleetappsmanagement/lib/request/update-maintenance-window-request.ts @@ -23,7 +23,7 @@ export interface UpdateMaintenanceWindowRequest extends common.BaseRequest { */ "maintenanceWindowId": string; /** - * The information to be updated. + * The information to be updated for the maintenance window. */ "updateMaintenanceWindowDetails": model.UpdateMaintenanceWindowDetails; /** diff --git a/lib/cloudbridge/lib/request/update-plugin-request.ts b/lib/fleetappsmanagement/lib/request/update-onboarding-request.ts similarity index 72% rename from lib/cloudbridge/lib/request/update-plugin-request.ts rename to lib/fleetappsmanagement/lib/request/update-onboarding-request.ts index 9102871791..715ce523dd 100644 --- a/lib/cloudbridge/lib/request/update-plugin-request.ts +++ b/lib/fleetappsmanagement/lib/request/update-onboarding-request.ts @@ -1,7 +1,7 @@ /** * * - * OpenAPI spec version: 20220509 + * OpenAPI spec version: 20230831 * * * NOTE: This class is auto generated by OracleSDKGenerator. @@ -15,21 +15,17 @@ import * as model from "../model"; import common = require("oci-common"); /** - * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/cloudbridge/UpdatePlugin.ts.html |here} to see how to use UpdatePluginRequest. + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateOnboarding.ts.html |here} to see how to use UpdateOnboardingRequest. */ -export interface UpdatePluginRequest extends common.BaseRequest { +export interface UpdateOnboardingRequest extends common.BaseRequest { /** - * Unique Agent identifier path parameter. + * A filter to return resources whose Onboarding identifier matches the given identifier. */ - "agentId": string; - /** - * Unique plugin identifier path parameter. - */ - "pluginName": string; + "onboardingId": string; /** * The information to be updated. */ - "updatePluginDetails": model.UpdatePluginDetails; + "updateOnboardingDetails": model.UpdateOnboardingDetails; /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the diff --git a/lib/fleetappsmanagement/lib/request/update-patch-request.ts b/lib/fleetappsmanagement/lib/request/update-patch-request.ts new file mode 100644 index 0000000000..eaf23efa80 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-patch-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdatePatch.ts.html |here} to see how to use UpdatePatchRequest. + */ +export interface UpdatePatchRequest extends common.BaseRequest { + /** + * unique Patch identifier + */ + "patchId": string; + /** + * The information to be updated. + */ + "updatePatchDetails": model.UpdatePatchDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-platform-configuration-request.ts b/lib/fleetappsmanagement/lib/request/update-platform-configuration-request.ts new file mode 100644 index 0000000000..31bf38cb59 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-platform-configuration-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdatePlatformConfiguration.ts.html |here} to see how to use UpdatePlatformConfigurationRequest. + */ +export interface UpdatePlatformConfigurationRequest extends common.BaseRequest { + /** + * unique PlatformConfiguration identifier + */ + "platformConfigurationId": string; + /** + * The information to be updated. + */ + "updatePlatformConfigurationDetails": model.UpdatePlatformConfigurationDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-runbook-request.ts b/lib/fleetappsmanagement/lib/request/update-runbook-request.ts new file mode 100644 index 0000000000..a4fc69d937 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-runbook-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateRunbook.ts.html |here} to see how to use UpdateRunbookRequest. + */ +export interface UpdateRunbookRequest extends common.BaseRequest { + /** + * Unique Runbook identifier + */ + "runbookId": string; + /** + * The information to be updated. + */ + "updateRunbookDetails": model.UpdateRunbookDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-task-record-request.ts b/lib/fleetappsmanagement/lib/request/update-task-record-request.ts new file mode 100644 index 0000000000..e5b4ebf32f --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-task-record-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateTaskRecord.ts.html |here} to see how to use UpdateTaskRecordRequest. + */ +export interface UpdateTaskRecordRequest extends common.BaseRequest { + /** + * unique TaskDetail identifier + */ + "taskRecordId": string; + /** + * The information to be updated. + */ + "updateTaskRecordDetails": model.UpdateTaskRecordDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/response/create-compliance-policy-rule-response.ts b/lib/fleetappsmanagement/lib/response/create-compliance-policy-rule-response.ts new file mode 100644 index 0000000000..32d056c6d0 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-compliance-policy-rule-response.ts @@ -0,0 +1,46 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreateCompliancePolicyRuleResponse { + /** + * URL for the created CompliancePolicyRule. The CompliancePolicyRule OCID is generated after this request is sent. + */ + "location": string; + /** + * Same as location. + */ + "contentLocation": string; + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.CompliancePolicyRule instance. + */ + "compliancePolicyRule": model.CompliancePolicyRule; +} diff --git a/lib/cloudbridge/lib/response/update-plugin-response.ts b/lib/fleetappsmanagement/lib/response/create-patch-response.ts similarity index 85% rename from lib/cloudbridge/lib/response/update-plugin-response.ts rename to lib/fleetappsmanagement/lib/response/create-patch-response.ts index 36017677eb..779764f163 100644 --- a/lib/cloudbridge/lib/response/update-plugin-response.ts +++ b/lib/fleetappsmanagement/lib/response/create-patch-response.ts @@ -1,7 +1,7 @@ /** * * - * OpenAPI spec version: 20220509 + * OpenAPI spec version: 20230831 * * * NOTE: This class is auto generated by OracleSDKGenerator. @@ -14,7 +14,7 @@ import * as model from "../model"; import common = require("oci-common"); -export interface UpdatePluginResponse { +export interface CreatePatchResponse { /** * For optimistic concurrency control. See {@code if-match}. * @@ -27,7 +27,7 @@ export interface UpdatePluginResponse { */ "opcRequestId": string; /** - * The returned model.Plugin instance. + * The returned model.Patch instance. */ - "plugin": model.Plugin; + "patch": model.Patch; } diff --git a/lib/fleetappsmanagement/lib/response/create-platform-configuration-response.ts b/lib/fleetappsmanagement/lib/response/create-platform-configuration-response.ts new file mode 100644 index 0000000000..c91916dc9e --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-platform-configuration-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreatePlatformConfigurationResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.PlatformConfiguration instance. + */ + "platformConfiguration": model.PlatformConfiguration; +} diff --git a/lib/fleetappsmanagement/lib/response/create-runbook-response.ts b/lib/fleetappsmanagement/lib/response/create-runbook-response.ts new file mode 100644 index 0000000000..25bcfa806d --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-runbook-response.ts @@ -0,0 +1,46 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreateRunbookResponse { + /** + * URL for the created runbook, the runbook id will be generated after this request is sent. + */ + "location": string; + /** + * Same as location + */ + "contentLocation": string; + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Runbook instance. + */ + "runbook": model.Runbook; +} diff --git a/lib/fleetappsmanagement/lib/response/create-task-record-response.ts b/lib/fleetappsmanagement/lib/response/create-task-record-response.ts new file mode 100644 index 0000000000..f1d851b76d --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-task-record-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreateTaskRecordResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.TaskRecord instance. + */ + "taskRecord": model.TaskRecord; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-compliance-policy-rule-response.ts b/lib/fleetappsmanagement/lib/response/delete-compliance-policy-rule-response.ts new file mode 100644 index 0000000000..0062a74e01 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-compliance-policy-rule-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeleteCompliancePolicyRuleResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-onboarding-response.ts b/lib/fleetappsmanagement/lib/response/delete-onboarding-response.ts new file mode 100644 index 0000000000..6c42de8435 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-onboarding-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeleteOnboardingResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-patch-response.ts b/lib/fleetappsmanagement/lib/response/delete-patch-response.ts new file mode 100644 index 0000000000..04205b564c --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-patch-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeletePatchResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-platform-configuration-response.ts b/lib/fleetappsmanagement/lib/response/delete-platform-configuration-response.ts new file mode 100644 index 0000000000..8c30ba77e6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-platform-configuration-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeletePlatformConfigurationResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-runbook-response.ts b/lib/fleetappsmanagement/lib/response/delete-runbook-response.ts new file mode 100644 index 0000000000..930fa467f6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-runbook-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeleteRunbookResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-task-record-response.ts b/lib/fleetappsmanagement/lib/response/delete-task-record-response.ts new file mode 100644 index 0000000000..ed08b35b03 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-task-record-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeleteTaskRecordResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/enable-latest-policy-response.ts b/lib/fleetappsmanagement/lib/response/enable-latest-policy-response.ts new file mode 100644 index 0000000000..78d8396653 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/enable-latest-policy-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface EnableLatestPolicyResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/export-compliance-report-response.ts b/lib/fleetappsmanagement/lib/response/export-compliance-report-response.ts new file mode 100644 index 0000000000..a89a18c19d --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/export-compliance-report-response.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); +import stream = require("stream"); + +export interface ExportComplianceReportResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The content size of the body in bytes. + */ + "contentLength": number; + /** + * The content type of the body. + */ + "contentType": string; + /** + * The returned stream.Readable | ReadableStream instance. + */ + "value": stream.Readable | ReadableStream; +} diff --git a/lib/fleetappsmanagement/lib/response/get-compliance-policy-response.ts b/lib/fleetappsmanagement/lib/response/get-compliance-policy-response.ts new file mode 100644 index 0000000000..2afd02ec44 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-compliance-policy-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetCompliancePolicyResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.CompliancePolicy instance. + */ + "compliancePolicy": model.CompliancePolicy; +} diff --git a/lib/fleetappsmanagement/lib/response/get-compliance-policy-rule-response.ts b/lib/fleetappsmanagement/lib/response/get-compliance-policy-rule-response.ts new file mode 100644 index 0000000000..897b76713c --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-compliance-policy-rule-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetCompliancePolicyRuleResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.CompliancePolicyRule instance. + */ + "compliancePolicyRule": model.CompliancePolicyRule; +} diff --git a/lib/fleetappsmanagement/lib/response/get-onboarding-response.ts b/lib/fleetappsmanagement/lib/response/get-onboarding-response.ts new file mode 100644 index 0000000000..d75f84a2cd --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-onboarding-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetOnboardingResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Onboarding instance. + */ + "onboarding": model.Onboarding; +} diff --git a/lib/fleetappsmanagement/lib/response/get-patch-response.ts b/lib/fleetappsmanagement/lib/response/get-patch-response.ts new file mode 100644 index 0000000000..3f278ee571 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-patch-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetPatchResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Patch instance. + */ + "patch": model.Patch; +} diff --git a/lib/fleetappsmanagement/lib/response/get-platform-configuration-response.ts b/lib/fleetappsmanagement/lib/response/get-platform-configuration-response.ts new file mode 100644 index 0000000000..491b3c6818 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-platform-configuration-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetPlatformConfigurationResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.PlatformConfiguration instance. + */ + "platformConfiguration": model.PlatformConfiguration; +} diff --git a/lib/fleetappsmanagement/lib/response/index.ts b/lib/fleetappsmanagement/lib/response/index.ts index f4145c3ea0..26dc654687 100644 --- a/lib/fleetappsmanagement/lib/response/index.ts +++ b/lib/fleetappsmanagement/lib/response/index.ts @@ -1,7 +1,6 @@ /** * Fleet Application Management Service API - * Fleet Application Management Service API. Use this API to for all FAMS related activities. -To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + * Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise. * OpenAPI spec version: 20230831 * @@ -83,20 +82,54 @@ import * as UpdateFleetPropertyResponse from "./update-fleet-property-response"; export import UpdateFleetPropertyResponse = UpdateFleetPropertyResponse.UpdateFleetPropertyResponse; import * as UpdateFleetResourceResponse from "./update-fleet-resource-response"; export import UpdateFleetResourceResponse = UpdateFleetResourceResponse.UpdateFleetResourceResponse; +import * as CreateCompliancePolicyRuleResponse from "./create-compliance-policy-rule-response"; +export import CreateCompliancePolicyRuleResponse = CreateCompliancePolicyRuleResponse.CreateCompliancePolicyRuleResponse; import * as CreateOnboardingResponse from "./create-onboarding-response"; export import CreateOnboardingResponse = CreateOnboardingResponse.CreateOnboardingResponse; +import * as CreatePlatformConfigurationResponse from "./create-platform-configuration-response"; +export import CreatePlatformConfigurationResponse = CreatePlatformConfigurationResponse.CreatePlatformConfigurationResponse; import * as CreatePropertyResponse from "./create-property-response"; export import CreatePropertyResponse = CreatePropertyResponse.CreatePropertyResponse; +import * as DeleteCompliancePolicyRuleResponse from "./delete-compliance-policy-rule-response"; +export import DeleteCompliancePolicyRuleResponse = DeleteCompliancePolicyRuleResponse.DeleteCompliancePolicyRuleResponse; +import * as DeleteOnboardingResponse from "./delete-onboarding-response"; +export import DeleteOnboardingResponse = DeleteOnboardingResponse.DeleteOnboardingResponse; +import * as DeletePlatformConfigurationResponse from "./delete-platform-configuration-response"; +export import DeletePlatformConfigurationResponse = DeletePlatformConfigurationResponse.DeletePlatformConfigurationResponse; import * as DeletePropertyResponse from "./delete-property-response"; export import DeletePropertyResponse = DeletePropertyResponse.DeletePropertyResponse; +import * as EnableLatestPolicyResponse from "./enable-latest-policy-response"; +export import EnableLatestPolicyResponse = EnableLatestPolicyResponse.EnableLatestPolicyResponse; +import * as GetCompliancePolicyResponse from "./get-compliance-policy-response"; +export import GetCompliancePolicyResponse = GetCompliancePolicyResponse.GetCompliancePolicyResponse; +import * as GetCompliancePolicyRuleResponse from "./get-compliance-policy-rule-response"; +export import GetCompliancePolicyRuleResponse = GetCompliancePolicyRuleResponse.GetCompliancePolicyRuleResponse; +import * as GetOnboardingResponse from "./get-onboarding-response"; +export import GetOnboardingResponse = GetOnboardingResponse.GetOnboardingResponse; +import * as GetPlatformConfigurationResponse from "./get-platform-configuration-response"; +export import GetPlatformConfigurationResponse = GetPlatformConfigurationResponse.GetPlatformConfigurationResponse; import * as GetPropertyResponse from "./get-property-response"; export import GetPropertyResponse = GetPropertyResponse.GetPropertyResponse; +import * as ListCompliancePoliciesResponse from "./list-compliance-policies-response"; +export import ListCompliancePoliciesResponse = ListCompliancePoliciesResponse.ListCompliancePoliciesResponse; +import * as ListCompliancePolicyRulesResponse from "./list-compliance-policy-rules-response"; +export import ListCompliancePolicyRulesResponse = ListCompliancePolicyRulesResponse.ListCompliancePolicyRulesResponse; import * as ListOnboardingPoliciesResponse from "./list-onboarding-policies-response"; export import ListOnboardingPoliciesResponse = ListOnboardingPoliciesResponse.ListOnboardingPoliciesResponse; import * as ListOnboardingsResponse from "./list-onboardings-response"; export import ListOnboardingsResponse = ListOnboardingsResponse.ListOnboardingsResponse; +import * as ListPlatformConfigurationsResponse from "./list-platform-configurations-response"; +export import ListPlatformConfigurationsResponse = ListPlatformConfigurationsResponse.ListPlatformConfigurationsResponse; import * as ListPropertiesResponse from "./list-properties-response"; export import ListPropertiesResponse = ListPropertiesResponse.ListPropertiesResponse; +import * as ManageSettingsResponse from "./manage-settings-response"; +export import ManageSettingsResponse = ManageSettingsResponse.ManageSettingsResponse; +import * as UpdateCompliancePolicyRuleResponse from "./update-compliance-policy-rule-response"; +export import UpdateCompliancePolicyRuleResponse = UpdateCompliancePolicyRuleResponse.UpdateCompliancePolicyRuleResponse; +import * as UpdateOnboardingResponse from "./update-onboarding-response"; +export import UpdateOnboardingResponse = UpdateOnboardingResponse.UpdateOnboardingResponse; +import * as UpdatePlatformConfigurationResponse from "./update-platform-configuration-response"; +export import UpdatePlatformConfigurationResponse = UpdatePlatformConfigurationResponse.UpdatePlatformConfigurationResponse; import * as UpdatePropertyResponse from "./update-property-response"; export import UpdatePropertyResponse = UpdatePropertyResponse.UpdatePropertyResponse; import * as CreateMaintenanceWindowResponse from "./create-maintenance-window-response"; @@ -109,32 +142,66 @@ import * as ListMaintenanceWindowsResponse from "./list-maintenance-windows-resp export import ListMaintenanceWindowsResponse = ListMaintenanceWindowsResponse.ListMaintenanceWindowsResponse; import * as UpdateMaintenanceWindowResponse from "./update-maintenance-window-response"; export import UpdateMaintenanceWindowResponse = UpdateMaintenanceWindowResponse.UpdateMaintenanceWindowResponse; +import * as CreatePatchResponse from "./create-patch-response"; +export import CreatePatchResponse = CreatePatchResponse.CreatePatchResponse; import * as CreateSchedulerDefinitionResponse from "./create-scheduler-definition-response"; export import CreateSchedulerDefinitionResponse = CreateSchedulerDefinitionResponse.CreateSchedulerDefinitionResponse; +import * as DeletePatchResponse from "./delete-patch-response"; +export import DeletePatchResponse = DeletePatchResponse.DeletePatchResponse; import * as DeleteSchedulerDefinitionResponse from "./delete-scheduler-definition-response"; export import DeleteSchedulerDefinitionResponse = DeleteSchedulerDefinitionResponse.DeleteSchedulerDefinitionResponse; import * as DeleteSchedulerJobResponse from "./delete-scheduler-job-response"; export import DeleteSchedulerJobResponse = DeleteSchedulerJobResponse.DeleteSchedulerJobResponse; +import * as ExportComplianceReportResponse from "./export-compliance-report-response"; +export import ExportComplianceReportResponse = ExportComplianceReportResponse.ExportComplianceReportResponse; import * as GetExecutionResponse from "./get-execution-response"; export import GetExecutionResponse = GetExecutionResponse.GetExecutionResponse; import * as GetJobActivityResponse from "./get-job-activity-response"; export import GetJobActivityResponse = GetJobActivityResponse.GetJobActivityResponse; +import * as GetPatchResponse from "./get-patch-response"; +export import GetPatchResponse = GetPatchResponse.GetPatchResponse; import * as GetSchedulerDefinitionResponse from "./get-scheduler-definition-response"; export import GetSchedulerDefinitionResponse = GetSchedulerDefinitionResponse.GetSchedulerDefinitionResponse; import * as GetSchedulerJobResponse from "./get-scheduler-job-response"; export import GetSchedulerJobResponse = GetSchedulerJobResponse.GetSchedulerJobResponse; +import * as ListComplianceRecordsResponse from "./list-compliance-records-response"; +export import ListComplianceRecordsResponse = ListComplianceRecordsResponse.ListComplianceRecordsResponse; import * as ListExecutionsResponse from "./list-executions-response"; export import ListExecutionsResponse = ListExecutionsResponse.ListExecutionsResponse; +import * as ListPatchesResponse from "./list-patches-response"; +export import ListPatchesResponse = ListPatchesResponse.ListPatchesResponse; +import * as ListResourcesResponse from "./list-resources-response"; +export import ListResourcesResponse = ListResourcesResponse.ListResourcesResponse; import * as ListScheduledFleetsResponse from "./list-scheduled-fleets-response"; export import ListScheduledFleetsResponse = ListScheduledFleetsResponse.ListScheduledFleetsResponse; import * as ListSchedulerDefinitionsResponse from "./list-scheduler-definitions-response"; export import ListSchedulerDefinitionsResponse = ListSchedulerDefinitionsResponse.ListSchedulerDefinitionsResponse; import * as ListSchedulerJobsResponse from "./list-scheduler-jobs-response"; export import ListSchedulerJobsResponse = ListSchedulerJobsResponse.ListSchedulerJobsResponse; +import * as ListStepsResponse from "./list-steps-response"; +export import ListStepsResponse = ListStepsResponse.ListStepsResponse; +import * as ManageJobExecutionResponse from "./manage-job-execution-response"; +export import ManageJobExecutionResponse = ManageJobExecutionResponse.ManageJobExecutionResponse; +import * as SummarizeComplianceRecordCountsResponse from "./summarize-compliance-record-counts-response"; +export import SummarizeComplianceRecordCountsResponse = SummarizeComplianceRecordCountsResponse.SummarizeComplianceRecordCountsResponse; +import * as SummarizeManagedEntityCountsResponse from "./summarize-managed-entity-counts-response"; +export import SummarizeManagedEntityCountsResponse = SummarizeManagedEntityCountsResponse.SummarizeManagedEntityCountsResponse; +import * as SummarizeSchedulerJobCountsResponse from "./summarize-scheduler-job-counts-response"; +export import SummarizeSchedulerJobCountsResponse = SummarizeSchedulerJobCountsResponse.SummarizeSchedulerJobCountsResponse; +import * as UpdatePatchResponse from "./update-patch-response"; +export import UpdatePatchResponse = UpdatePatchResponse.UpdatePatchResponse; import * as UpdateSchedulerDefinitionResponse from "./update-scheduler-definition-response"; export import UpdateSchedulerDefinitionResponse = UpdateSchedulerDefinitionResponse.UpdateSchedulerDefinitionResponse; import * as UpdateSchedulerJobResponse from "./update-scheduler-job-response"; export import UpdateSchedulerJobResponse = UpdateSchedulerJobResponse.UpdateSchedulerJobResponse; +import * as CreateRunbookResponse from "./create-runbook-response"; +export import CreateRunbookResponse = CreateRunbookResponse.CreateRunbookResponse; +import * as CreateTaskRecordResponse from "./create-task-record-response"; +export import CreateTaskRecordResponse = CreateTaskRecordResponse.CreateTaskRecordResponse; +import * as DeleteRunbookResponse from "./delete-runbook-response"; +export import DeleteRunbookResponse = DeleteRunbookResponse.DeleteRunbookResponse; +import * as DeleteTaskRecordResponse from "./delete-task-record-response"; +export import DeleteTaskRecordResponse = DeleteTaskRecordResponse.DeleteTaskRecordResponse; import * as GetRunbookResponse from "./get-runbook-response"; export import GetRunbookResponse = GetRunbookResponse.GetRunbookResponse; import * as GetTaskRecordResponse from "./get-task-record-response"; @@ -143,3 +210,11 @@ import * as ListRunbooksResponse from "./list-runbooks-response"; export import ListRunbooksResponse = ListRunbooksResponse.ListRunbooksResponse; import * as ListTaskRecordsResponse from "./list-task-records-response"; export import ListTaskRecordsResponse = ListTaskRecordsResponse.ListTaskRecordsResponse; +import * as PublishRunbookResponse from "./publish-runbook-response"; +export import PublishRunbookResponse = PublishRunbookResponse.PublishRunbookResponse; +import * as SetDefaultRunbookResponse from "./set-default-runbook-response"; +export import SetDefaultRunbookResponse = SetDefaultRunbookResponse.SetDefaultRunbookResponse; +import * as UpdateRunbookResponse from "./update-runbook-response"; +export import UpdateRunbookResponse = UpdateRunbookResponse.UpdateRunbookResponse; +import * as UpdateTaskRecordResponse from "./update-task-record-response"; +export import UpdateTaskRecordResponse = UpdateTaskRecordResponse.UpdateTaskRecordResponse; diff --git a/lib/fleetappsmanagement/lib/response/list-compliance-policies-response.ts b/lib/fleetappsmanagement/lib/response/list-compliance-policies-response.ts new file mode 100644 index 0000000000..7696db07e2 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-compliance-policies-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListCompliancePoliciesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.CompliancePolicyCollection instance. + */ + "compliancePolicyCollection": model.CompliancePolicyCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-compliance-policy-rules-response.ts b/lib/fleetappsmanagement/lib/response/list-compliance-policy-rules-response.ts new file mode 100644 index 0000000000..8992436bc7 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-compliance-policy-rules-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListCompliancePolicyRulesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.CompliancePolicyRuleCollection instance. + */ + "compliancePolicyRuleCollection": model.CompliancePolicyRuleCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-compliance-records-response.ts b/lib/fleetappsmanagement/lib/response/list-compliance-records-response.ts new file mode 100644 index 0000000000..5837a24f37 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-compliance-records-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListComplianceRecordsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.ComplianceRecordCollection instance. + */ + "complianceRecordCollection": model.ComplianceRecordCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-patches-response.ts b/lib/fleetappsmanagement/lib/response/list-patches-response.ts new file mode 100644 index 0000000000..7fbf5be7bf --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-patches-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListPatchesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.PatchCollection instance. + */ + "patchCollection": model.PatchCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-platform-configurations-response.ts b/lib/fleetappsmanagement/lib/response/list-platform-configurations-response.ts new file mode 100644 index 0000000000..eee1b87e0d --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-platform-configurations-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListPlatformConfigurationsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.PlatformConfigurationCollection instance. + */ + "platformConfigurationCollection": model.PlatformConfigurationCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-resources-response.ts b/lib/fleetappsmanagement/lib/response/list-resources-response.ts new file mode 100644 index 0000000000..32e513806e --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-resources-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListResourcesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.ResourceCollection instance. + */ + "resourceCollection": model.ResourceCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-steps-response.ts b/lib/fleetappsmanagement/lib/response/list-steps-response.ts new file mode 100644 index 0000000000..5f8af246bf --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-steps-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListStepsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.StepCollection instance. + */ + "stepCollection": model.StepCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/manage-job-execution-response.ts b/lib/fleetappsmanagement/lib/response/manage-job-execution-response.ts new file mode 100644 index 0000000000..a1b3360b43 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/manage-job-execution-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ManageJobExecutionResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/manage-settings-response.ts b/lib/fleetappsmanagement/lib/response/manage-settings-response.ts new file mode 100644 index 0000000000..c492f987c7 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/manage-settings-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ManageSettingsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/publish-runbook-response.ts b/lib/fleetappsmanagement/lib/response/publish-runbook-response.ts new file mode 100644 index 0000000000..19d82e4fba --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/publish-runbook-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface PublishRunbookResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/set-default-runbook-response.ts b/lib/fleetappsmanagement/lib/response/set-default-runbook-response.ts new file mode 100644 index 0000000000..24bf1ba078 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/set-default-runbook-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface SetDefaultRunbookResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Runbook instance. + */ + "runbook": model.Runbook; +} diff --git a/lib/fleetappsmanagement/lib/response/summarize-compliance-record-counts-response.ts b/lib/fleetappsmanagement/lib/response/summarize-compliance-record-counts-response.ts new file mode 100644 index 0000000000..ebb1e4b8a4 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/summarize-compliance-record-counts-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface SummarizeComplianceRecordCountsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.ComplianceRecordAggregationCollection instance. + */ + "complianceRecordAggregationCollection": model.ComplianceRecordAggregationCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/summarize-managed-entity-counts-response.ts b/lib/fleetappsmanagement/lib/response/summarize-managed-entity-counts-response.ts new file mode 100644 index 0000000000..a77adfe7c1 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/summarize-managed-entity-counts-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface SummarizeManagedEntityCountsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.ManagedEntityAggregationCollection instance. + */ + "managedEntityAggregationCollection": model.ManagedEntityAggregationCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/summarize-scheduler-job-counts-response.ts b/lib/fleetappsmanagement/lib/response/summarize-scheduler-job-counts-response.ts new file mode 100644 index 0000000000..82ab154cbc --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/summarize-scheduler-job-counts-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface SummarizeSchedulerJobCountsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.SchedulerJobAggregationCollection instance. + */ + "schedulerJobAggregationCollection": model.SchedulerJobAggregationCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/update-compliance-policy-rule-response.ts b/lib/fleetappsmanagement/lib/response/update-compliance-policy-rule-response.ts new file mode 100644 index 0000000000..5d9249913a --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-compliance-policy-rule-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdateCompliancePolicyRuleResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/update-onboarding-response.ts b/lib/fleetappsmanagement/lib/response/update-onboarding-response.ts new file mode 100644 index 0000000000..eb020c04af --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-onboarding-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdateOnboardingResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/update-patch-response.ts b/lib/fleetappsmanagement/lib/response/update-patch-response.ts new file mode 100644 index 0000000000..1a6d430ca0 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-patch-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdatePatchResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/update-platform-configuration-response.ts b/lib/fleetappsmanagement/lib/response/update-platform-configuration-response.ts new file mode 100644 index 0000000000..32d8cb914d --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-platform-configuration-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdatePlatformConfigurationResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/update-runbook-response.ts b/lib/fleetappsmanagement/lib/response/update-runbook-response.ts new file mode 100644 index 0000000000..99e3297ffd --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-runbook-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdateRunbookResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/update-task-record-response.ts b/lib/fleetappsmanagement/lib/response/update-task-record-response.ts new file mode 100644 index 0000000000..ebf6328246 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-task-record-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdateTaskRecordResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/package.json b/lib/fleetappsmanagement/package.json index d33f78ccff..a755062e34 100644 --- a/lib/fleetappsmanagement/package.json +++ b/lib/fleetappsmanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-fleetappsmanagement", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Fleet Apps Management Service", "repository": { "type": "git", diff --git a/lib/fleetsoftwareupdate/package.json b/lib/fleetsoftwareupdate/package.json index 76109f7e34..17b9a6d329 100644 --- a/lib/fleetsoftwareupdate/package.json +++ b/lib/fleetsoftwareupdate/package.json @@ -1,6 +1,6 @@ { "name": "oci-fleetsoftwareupdate", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Fleet Software Update Service", "repository": { "type": "git", diff --git a/lib/functions/package.json b/lib/functions/package.json index 9ab7162897..4281351822 100644 --- a/lib/functions/package.json +++ b/lib/functions/package.json @@ -1,6 +1,6 @@ { "name": "oci-functions", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Functions", "repository": { "type": "git", diff --git a/lib/fusionapps/package.json b/lib/fusionapps/package.json index c3c1e5f89c..62066ce2be 100644 --- a/lib/fusionapps/package.json +++ b/lib/fusionapps/package.json @@ -1,6 +1,6 @@ { "name": "oci-fusionapps", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Fusion Apps Service", "repository": { "type": "git", diff --git a/lib/generativeai/package.json b/lib/generativeai/package.json index cc581ab8e5..65e8ebe4a9 100644 --- a/lib/generativeai/package.json +++ b/lib/generativeai/package.json @@ -1,6 +1,6 @@ { "name": "oci-generativeai", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Generative Ai Service", "repository": { "type": "git", diff --git a/lib/generativeaiagent/package.json b/lib/generativeaiagent/package.json index bd1762f1ad..1a3933e7f0 100644 --- a/lib/generativeaiagent/package.json +++ b/lib/generativeaiagent/package.json @@ -1,6 +1,6 @@ { "name": "oci-generativeaiagent", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Generative Ai Agent Service", "repository": { "type": "git", diff --git a/lib/generativeaiagentruntime/package.json b/lib/generativeaiagentruntime/package.json index 5a046fc2ba..a3f467152c 100644 --- a/lib/generativeaiagentruntime/package.json +++ b/lib/generativeaiagentruntime/package.json @@ -1,6 +1,6 @@ { "name": "oci-generativeaiagentruntime", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Generative Ai Agent Runtime Service", "repository": { "type": "git", diff --git a/lib/generativeaiinference/package.json b/lib/generativeaiinference/package.json index fe80569791..95ff8730a5 100644 --- a/lib/generativeaiinference/package.json +++ b/lib/generativeaiinference/package.json @@ -1,6 +1,6 @@ { "name": "oci-generativeaiinference", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Generative Ai Inference Service", "repository": { "type": "git", diff --git a/lib/genericartifactscontent/package.json b/lib/genericartifactscontent/package.json index 5026977bf5..680d9a49bf 100644 --- a/lib/genericartifactscontent/package.json +++ b/lib/genericartifactscontent/package.json @@ -1,6 +1,6 @@ { "name": "oci-genericartifactscontent", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Generic Artifacts Content Service", "repository": { "type": "git", diff --git a/lib/globallydistributeddatabase/package.json b/lib/globallydistributeddatabase/package.json index 4cc409a2cc..4d75d6a0a0 100644 --- a/lib/globallydistributeddatabase/package.json +++ b/lib/globallydistributeddatabase/package.json @@ -1,6 +1,6 @@ { "name": "oci-globallydistributeddatabase", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Globally Distributed Database Service", "repository": { "type": "git", diff --git a/lib/goldengate/package.json b/lib/goldengate/package.json index f06c6d9fe7..337eba3891 100644 --- a/lib/goldengate/package.json +++ b/lib/goldengate/package.json @@ -1,6 +1,6 @@ { "name": "oci-goldengate", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Golden Gate Service", "repository": { "type": "git", diff --git a/lib/governancerulescontrolplane/package.json b/lib/governancerulescontrolplane/package.json index 089fb8ba7a..3eeab61f7f 100644 --- a/lib/governancerulescontrolplane/package.json +++ b/lib/governancerulescontrolplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-governancerulescontrolplane", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Governance Rules Control Plane Service", "repository": { "type": "git", diff --git a/lib/healthchecks/package.json b/lib/healthchecks/package.json index c42b9b2fd1..2d9294abf3 100644 --- a/lib/healthchecks/package.json +++ b/lib/healthchecks/package.json @@ -1,6 +1,6 @@ { "name": "oci-healthchecks", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Healthchecks Service", "repository": { "type": "git", diff --git a/lib/identity/package.json b/lib/identity/package.json index 2231ce7323..6ff8ae9ba7 100644 --- a/lib/identity/package.json +++ b/lib/identity/package.json @@ -1,6 +1,6 @@ { "name": "oci-identity", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Identity", "repository": { "type": "git", diff --git a/lib/identitydataplane/package.json b/lib/identitydataplane/package.json index fd81162b28..a3e22193ac 100644 --- a/lib/identitydataplane/package.json +++ b/lib/identitydataplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-identitydataplane", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Identity Data Plane Service", "repository": { "type": "git", diff --git a/lib/identitydomains/lib/model/auth-token.ts b/lib/identitydomains/lib/model/auth-token.ts index 6ccf01aeec..fb62c19b3f 100644 --- a/lib/identitydomains/lib/model/auth-token.ts +++ b/lib/identitydomains/lib/model/auth-token.ts @@ -175,6 +175,20 @@ export interface AuthToken { * - returned: default */ "description"?: string; + /** + * token + *

+ **Added In:** 2010242156 + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: string + * - mutability: readOnly + * - required: false + * - returned: default + * - idcsSensitive: hash_sc + */ + "token"?: string; /** * The user's credential status. *

diff --git a/lib/identitydomains/lib/model/customer-secret-key.ts b/lib/identitydomains/lib/model/customer-secret-key.ts index c2791a6386..360ddbd6f3 100644 --- a/lib/identitydomains/lib/model/customer-secret-key.ts +++ b/lib/identitydomains/lib/model/customer-secret-key.ts @@ -227,6 +227,17 @@ export interface CustomerSecretKey { * - returned: default */ "accessKey"?: string; + /** + * The secret key. + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: string + * - mutability: readOnly + * - required: false + * - returned: default + */ + "secretKey"?: string; "user"?: model.CustomerSecretKeyUser; "urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser"?: model.ExtensionSelfChangeUser; } diff --git a/lib/identitydomains/lib/model/o-auth2-client-credential.ts b/lib/identitydomains/lib/model/o-auth2-client-credential.ts index d72b16b13d..0c6d6007e1 100644 --- a/lib/identitydomains/lib/model/o-auth2-client-credential.ts +++ b/lib/identitydomains/lib/model/o-auth2-client-credential.ts @@ -234,6 +234,19 @@ export interface OAuth2ClientCredential { * - uniqueness: none */ "isResetSecret"?: boolean; + /** + * Secret + *

+ **SCIM++ Properties:** + * - caseExact: false + * - type: string + * - mutability: readOnly + * - required: false + * - returned: default + * - idcsScimCompliant: false + * - idcsSensitive: hash_sc + */ + "secret"?: string; /** * Scopes *

diff --git a/lib/identitydomains/lib/model/smtp-credential.ts b/lib/identitydomains/lib/model/smtp-credential.ts index 78f85c0c29..cf72779b13 100644 --- a/lib/identitydomains/lib/model/smtp-credential.ts +++ b/lib/identitydomains/lib/model/smtp-credential.ts @@ -216,6 +216,18 @@ export interface SmtpCredential { * - returned: default */ "userName": string; + /** + * Password + *

+ **SCIM++ Properties:** + * - caseExact: true + * - type: string + * - mutability: readOnly + * - required: false + * - returned: default + * - idcsSensitive: hash_sc + */ + "password"?: string; "user"?: model.SmtpCredentialUser; "urnIetfParamsScimSchemasOracleIdcsExtensionSelfChangeUser"?: model.ExtensionSelfChangeUser; } diff --git a/lib/identitydomains/package.json b/lib/identitydomains/package.json index de8530f890..8fb8506bb1 100644 --- a/lib/identitydomains/package.json +++ b/lib/identitydomains/package.json @@ -1,6 +1,6 @@ { "name": "oci-identitydomains", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Identity Domains Service", "repository": { "type": "git", diff --git a/lib/integration/package.json b/lib/integration/package.json index ffaf7dd890..e42a03f1c5 100644 --- a/lib/integration/package.json +++ b/lib/integration/package.json @@ -1,6 +1,6 @@ { "name": "oci-integration", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Integration service", "repository": { "type": "git", diff --git a/lib/jms/package.json b/lib/jms/package.json index bc0349c936..8316dc6c08 100644 --- a/lib/jms/package.json +++ b/lib/jms/package.json @@ -1,6 +1,6 @@ { "name": "oci-jms", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Jms Service", "repository": { "type": "git", diff --git a/lib/jmsjavadownloads/package.json b/lib/jmsjavadownloads/package.json index 87295f8456..f9686ad0b6 100644 --- a/lib/jmsjavadownloads/package.json +++ b/lib/jmsjavadownloads/package.json @@ -1,6 +1,6 @@ { "name": "oci-jmsjavadownloads", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Jms Java Downloads Service", "repository": { "type": "git", diff --git a/lib/keymanagement/package.json b/lib/keymanagement/package.json index 574e72a2b2..49b69a553b 100644 --- a/lib/keymanagement/package.json +++ b/lib/keymanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-keymanagement", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Key Management", "repository": { "type": "git", diff --git a/lib/licensemanager/package.json b/lib/licensemanager/package.json index c991b29139..222889cb11 100644 --- a/lib/licensemanager/package.json +++ b/lib/licensemanager/package.json @@ -1,6 +1,6 @@ { "name": "oci-licensemanager", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for License Manager Service", "repository": { "type": "git", diff --git a/lib/limits/package.json b/lib/limits/package.json index dbca056544..8f7af764cc 100644 --- a/lib/limits/package.json +++ b/lib/limits/package.json @@ -1,6 +1,6 @@ { "name": "oci-limits", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Limits Service", "repository": { "type": "git", diff --git a/lib/loadbalancer/package.json b/lib/loadbalancer/package.json index 8e0329e1c4..cbd477937d 100644 --- a/lib/loadbalancer/package.json +++ b/lib/loadbalancer/package.json @@ -1,6 +1,6 @@ { "name": "oci-loadbalancer", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Load Balancer", "repository": { "type": "git", diff --git a/lib/lockbox/package.json b/lib/lockbox/package.json index 048678268b..83b78aacc8 100644 --- a/lib/lockbox/package.json +++ b/lib/lockbox/package.json @@ -1,6 +1,6 @@ { "name": "oci-lockbox", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Lockbox Service", "repository": { "type": "git", diff --git a/lib/loganalytics/package.json b/lib/loganalytics/package.json index f5175dd9a5..a3c1a7b288 100644 --- a/lib/loganalytics/package.json +++ b/lib/loganalytics/package.json @@ -1,6 +1,6 @@ { "name": "oci-loganalytics", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Log Analytics Service", "repository": { "type": "git", diff --git a/lib/logging/package.json b/lib/logging/package.json index 4a146ef106..e27f94fff8 100644 --- a/lib/logging/package.json +++ b/lib/logging/package.json @@ -1,6 +1,6 @@ { "name": "oci-logging", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Logging Service", "repository": { "type": "git", diff --git a/lib/loggingingestion/package.json b/lib/loggingingestion/package.json index c434364065..4a446f1fe7 100644 --- a/lib/loggingingestion/package.json +++ b/lib/loggingingestion/package.json @@ -1,6 +1,6 @@ { "name": "oci-loggingingestion", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Loggingingestion Service", "repository": { "type": "git", diff --git a/lib/loggingsearch/package.json b/lib/loggingsearch/package.json index 1621ff688c..6c72824dc8 100644 --- a/lib/loggingsearch/package.json +++ b/lib/loggingsearch/package.json @@ -1,6 +1,6 @@ { "name": "oci-loggingsearch", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Loggingsearch Service", "repository": { "type": "git", diff --git a/lib/managementagent/package.json b/lib/managementagent/package.json index c92f187cba..fd6652477e 100644 --- a/lib/managementagent/package.json +++ b/lib/managementagent/package.json @@ -1,6 +1,6 @@ { "name": "oci-managementagent", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Management Agent Service", "repository": { "type": "git", diff --git a/lib/managementdashboard/package.json b/lib/managementdashboard/package.json index 5f464f4b3e..331246284e 100644 --- a/lib/managementdashboard/package.json +++ b/lib/managementdashboard/package.json @@ -1,6 +1,6 @@ { "name": "oci-managementdashboard", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Management Dashboard Service", "repository": { "type": "git", diff --git a/lib/marketplace/package.json b/lib/marketplace/package.json index 94fc064ddf..dd5ca502ea 100644 --- a/lib/marketplace/package.json +++ b/lib/marketplace/package.json @@ -1,6 +1,6 @@ { "name": "oci-marketplace", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Marketplace Service", "repository": { "type": "git", diff --git a/lib/marketplaceprivateoffer/package.json b/lib/marketplaceprivateoffer/package.json index 1af535ca35..099b2f1773 100644 --- a/lib/marketplaceprivateoffer/package.json +++ b/lib/marketplaceprivateoffer/package.json @@ -1,6 +1,6 @@ { "name": "oci-marketplaceprivateoffer", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Marketplace Private Offer Service", "repository": { "type": "git", diff --git a/lib/marketplacepublisher/package.json b/lib/marketplacepublisher/package.json index 7b9df9705d..9895ab125f 100644 --- a/lib/marketplacepublisher/package.json +++ b/lib/marketplacepublisher/package.json @@ -1,6 +1,6 @@ { "name": "oci-marketplacepublisher", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Marketplace Publisher Service", "repository": { "type": "git", diff --git a/lib/mediaservices/package.json b/lib/mediaservices/package.json index fc8470459f..1c8aa64af3 100644 --- a/lib/mediaservices/package.json +++ b/lib/mediaservices/package.json @@ -1,6 +1,6 @@ { "name": "oci-mediaservices", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Media Services Service", "repository": { "type": "git", diff --git a/lib/monitoring/package.json b/lib/monitoring/package.json index e7080da100..4dcf88b2d9 100644 --- a/lib/monitoring/package.json +++ b/lib/monitoring/package.json @@ -1,6 +1,6 @@ { "name": "oci-monitoring", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Monitoring", "repository": { "type": "git", diff --git a/lib/mysql/package.json b/lib/mysql/package.json index 333327bc19..3f6175d3f7 100644 --- a/lib/mysql/package.json +++ b/lib/mysql/package.json @@ -1,6 +1,6 @@ { "name": "oci-mysql", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Mysql ", "repository": { "type": "git", diff --git a/lib/networkfirewall/package.json b/lib/networkfirewall/package.json index fe1218eb4e..146ad88a77 100644 --- a/lib/networkfirewall/package.json +++ b/lib/networkfirewall/package.json @@ -1,6 +1,6 @@ { "name": "oci-networkfirewall", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Network Firewall Service", "repository": { "type": "git", diff --git a/lib/networkloadbalancer/package.json b/lib/networkloadbalancer/package.json index fada772a2b..de76a8450d 100644 --- a/lib/networkloadbalancer/package.json +++ b/lib/networkloadbalancer/package.json @@ -1,6 +1,6 @@ { "name": "oci-networkloadbalancer", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Network Load Balancer Service", "repository": { "type": "git", diff --git a/lib/nosql/package.json b/lib/nosql/package.json index 9a7b3ac049..1fb413dd2b 100644 --- a/lib/nosql/package.json +++ b/lib/nosql/package.json @@ -1,6 +1,6 @@ { "name": "oci-nosql", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Nosql Service", "repository": { "type": "git", diff --git a/lib/objectstorage/package.json b/lib/objectstorage/package.json index 176c2a0e73..c7e2ec848d 100644 --- a/lib/objectstorage/package.json +++ b/lib/objectstorage/package.json @@ -1,6 +1,6 @@ { "name": "oci-objectstorage", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for ObjectStorage", "repository": { "type": "git", diff --git a/lib/oce/package.json b/lib/oce/package.json index 7ffc262e6e..6d9055ba2f 100644 --- a/lib/oce/package.json +++ b/lib/oce/package.json @@ -1,6 +1,6 @@ { "name": "oci-oce", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for OCE Service", "repository": { "type": "git", diff --git a/lib/ocicontrolcenter/package.json b/lib/ocicontrolcenter/package.json index 6d34a1965d..5d53e171a2 100644 --- a/lib/ocicontrolcenter/package.json +++ b/lib/ocicontrolcenter/package.json @@ -1,6 +1,6 @@ { "name": "oci-ocicontrolcenter", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Oci Control Center Service", "repository": { "type": "git", diff --git a/lib/ocvp/package.json b/lib/ocvp/package.json index a3c9537ce2..54f282b362 100644 --- a/lib/ocvp/package.json +++ b/lib/ocvp/package.json @@ -1,6 +1,6 @@ { "name": "oci-ocvp", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Ocvp Service", "repository": { "type": "git", diff --git a/lib/oda/package.json b/lib/oda/package.json index 8e8cccc9cb..3bfcc84cfc 100644 --- a/lib/oda/package.json +++ b/lib/oda/package.json @@ -1,6 +1,6 @@ { "name": "oci-oda", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Oda Service", "repository": { "type": "git", diff --git a/lib/onesubscription/package.json b/lib/onesubscription/package.json index b62d100008..5bb6430ffa 100644 --- a/lib/onesubscription/package.json +++ b/lib/onesubscription/package.json @@ -1,6 +1,6 @@ { "name": "oci-onesubscription", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Onesubscription Service", "repository": { "type": "git", diff --git a/lib/ons/package.json b/lib/ons/package.json index aa00544d77..f3417dc7d8 100644 --- a/lib/ons/package.json +++ b/lib/ons/package.json @@ -1,6 +1,6 @@ { "name": "oci-ons", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for ONS", "repository": { "type": "git", diff --git a/lib/opa/package.json b/lib/opa/package.json index 1a0bcf9319..b48570b06f 100644 --- a/lib/opa/package.json +++ b/lib/opa/package.json @@ -1,6 +1,6 @@ { "name": "oci-opa", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Opa Service", "repository": { "type": "git", diff --git a/lib/opensearch/package.json b/lib/opensearch/package.json index fcdffaa42e..71b5a6dd96 100644 --- a/lib/opensearch/package.json +++ b/lib/opensearch/package.json @@ -1,6 +1,6 @@ { "name": "oci-opensearch", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Opensearch Service", "repository": { "type": "git", diff --git a/lib/operatoraccesscontrol/package.json b/lib/operatoraccesscontrol/package.json index d8c83ca5eb..bdd73852c2 100644 --- a/lib/operatoraccesscontrol/package.json +++ b/lib/operatoraccesscontrol/package.json @@ -1,6 +1,6 @@ { "name": "oci-operatoraccesscontrol", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Operator Access Control Service", "repository": { "type": "git", diff --git a/lib/opsi/lib/client.ts b/lib/opsi/lib/client.ts index e7eda0f5e4..ef959ffd91 100644 --- a/lib/opsi/lib/client.ts +++ b/lib/opsi/lib/client.ts @@ -13515,6 +13515,94 @@ Note that this API does not return information on the number of times each datab } } + /** + * Returns response with usage time series data with breakdown by IO interface for the time period specified. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param SummarizeHostInsightIoUsageTrendRequest + * @return SummarizeHostInsightIoUsageTrendResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/opsi/SummarizeHostInsightIoUsageTrend.ts.html |here} to see how to use SummarizeHostInsightIoUsageTrend API. + */ + public async summarizeHostInsightIoUsageTrend( + summarizeHostInsightIoUsageTrendRequest: requests.SummarizeHostInsightIoUsageTrendRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation OperationsInsightsClient#summarizeHostInsightIoUsageTrend." + ); + const operationName = "summarizeHostInsightIoUsageTrend"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": summarizeHostInsightIoUsageTrendRequest.compartmentId, + "id": summarizeHostInsightIoUsageTrendRequest.id, + "analysisTimeInterval": summarizeHostInsightIoUsageTrendRequest.analysisTimeInterval, + "timeIntervalStart": summarizeHostInsightIoUsageTrendRequest.timeIntervalStart, + "timeIntervalEnd": summarizeHostInsightIoUsageTrendRequest.timeIntervalEnd, + "hostId": summarizeHostInsightIoUsageTrendRequest.hostId, + "page": summarizeHostInsightIoUsageTrendRequest.page, + "limit": summarizeHostInsightIoUsageTrendRequest.limit, + "statistic": summarizeHostInsightIoUsageTrendRequest.statistic, + "status": summarizeHostInsightIoUsageTrendRequest.status + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": summarizeHostInsightIoUsageTrendRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + summarizeHostInsightIoUsageTrendRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/hostInsights/ioUsageTrend", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "summarizeHostInsightIoUsageTrendAggregationCollection", + bodyModel: model.SummarizeHostInsightIoUsageTrendAggregationCollection, + type: "model.SummarizeHostInsightIoUsageTrendAggregationCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + /** * Returns response with usage time series data with breakdown by network interface for the time period specified. * diff --git a/lib/opsi/lib/model/host-configuration-metric-group.ts b/lib/opsi/lib/model/host-configuration-metric-group.ts index d25f7057bb..daa9789e26 100644 --- a/lib/opsi/lib/model/host-configuration-metric-group.ts +++ b/lib/opsi/lib/model/host-configuration-metric-group.ts @@ -50,6 +50,8 @@ export namespace HostConfigurationMetricGroup { (jsonObj), true ); + case "HOST_CONTAINERS": + return model.HostContainers.getJsonObj((jsonObj), true); case "HOST_NETWORK_CONFIGURATION": return model.HostNetworkConfiguration.getJsonObj( (jsonObj), @@ -103,6 +105,11 @@ export namespace HostConfigurationMetricGroup { (jsonObj), true ); + case "HOST_CONTAINERS": + return model.HostContainers.getDeserializedJsonObj( + (jsonObj), + true + ); case "HOST_NETWORK_CONFIGURATION": return model.HostNetworkConfiguration.getDeserializedJsonObj( (jsonObj), diff --git a/lib/opsi/lib/model/host-containers.ts b/lib/opsi/lib/model/host-containers.ts index fb72f024fe..0504fa2c1f 100644 --- a/lib/opsi/lib/model/host-containers.ts +++ b/lib/opsi/lib/model/host-containers.ts @@ -21,7 +21,7 @@ import common = require("oci-common"); * Host Containers details * */ -export interface HostContainers extends model.HostPerformanceMetricGroup { +export interface HostContainers extends model.HostConfigurationMetricGroup { /** * Container Id (full) */ @@ -34,6 +34,14 @@ export interface HostContainers extends model.HostPerformanceMetricGroup { * Container Image */ "containerImage"?: string; + /** + * Container Image Tag (version) + */ + "containerImageTag"?: string; + /** + * Container Image Digest + */ + "containerImageDigest"?: string; /** * Container open ports */ @@ -47,7 +55,7 @@ export namespace HostContainers { const jsonObj = { ...(isParentJsonObj ? obj - : (model.HostPerformanceMetricGroup.getJsonObj(obj) as HostContainers)), + : (model.HostConfigurationMetricGroup.getJsonObj(obj) as HostContainers)), ...{} }; @@ -58,7 +66,7 @@ export namespace HostContainers { const jsonObj = { ...(isParentJsonObj ? obj - : (model.HostPerformanceMetricGroup.getDeserializedJsonObj(obj) as HostContainers)), + : (model.HostConfigurationMetricGroup.getDeserializedJsonObj(obj) as HostContainers)), ...{} }; diff --git a/lib/opsi/lib/model/host-insight-resource-statistics-aggregation.ts b/lib/opsi/lib/model/host-insight-resource-statistics-aggregation.ts index a2b12cb33e..6da4705c8c 100644 --- a/lib/opsi/lib/model/host-insight-resource-statistics-aggregation.ts +++ b/lib/opsi/lib/model/host-insight-resource-statistics-aggregation.ts @@ -27,6 +27,7 @@ export interface HostInsightResourceStatisticsAggregation { | model.HostNetworkStatistics | model.HostStorageStatistics | model.HostMemoryStatistics + | model.HostIoStatistics | model.HostCpuStatistics; } diff --git a/lib/opsi/lib/model/host-io-statistics.ts b/lib/opsi/lib/model/host-io-statistics.ts new file mode 100644 index 0000000000..530554cbff --- /dev/null +++ b/lib/opsi/lib/model/host-io-statistics.ts @@ -0,0 +1,53 @@ +/** + * Ops Insights API + * Use the Ops Insights API to perform data extraction operations to obtain database +resource utilization, performance statistics, and reference information. For more information, +see [About Oracle Cloud Infrastructure Ops Insights](https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). + + * OpenAPI spec version: 20200630 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Contains io statistics. + */ +export interface HostIoStatistics extends model.HostResourceStatistics { + "diskReadInMBs"?: number; + "diskWriteInMBs"?: number; + "diskIops"?: number; + + "resourceName": string; +} + +export namespace HostIoStatistics { + export function getJsonObj(obj: HostIoStatistics, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.HostResourceStatistics.getJsonObj(obj) as HostIoStatistics)), + ...{} + }; + + return jsonObj; + } + export const resourceName = "HOST_IO_STATISTICS"; + export function getDeserializedJsonObj(obj: HostIoStatistics, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.HostResourceStatistics.getDeserializedJsonObj(obj) as HostIoStatistics)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/opsi/lib/model/host-performance-metric-group.ts b/lib/opsi/lib/model/host-performance-metric-group.ts index 8fc38ffd5a..37e1119b1d 100644 --- a/lib/opsi/lib/model/host-performance-metric-group.ts +++ b/lib/opsi/lib/model/host-performance-metric-group.ts @@ -44,8 +44,6 @@ export namespace HostPerformanceMetricGroup { return model.HostTopProcesses.getJsonObj((jsonObj), true); case "HOST_CPU_USAGE": return model.HostCpuUsage.getJsonObj((jsonObj), true); - case "HOST_CONTAINERS": - return model.HostContainers.getJsonObj((jsonObj), true); case "HOST_GPU_USAGE": return model.HostGpuUsage.getJsonObj((jsonObj), true); case "HOST_GPU_PROCESSES": @@ -88,11 +86,6 @@ export namespace HostPerformanceMetricGroup { (jsonObj), true ); - case "HOST_CONTAINERS": - return model.HostContainers.getDeserializedJsonObj( - (jsonObj), - true - ); case "HOST_GPU_USAGE": return model.HostGpuUsage.getDeserializedJsonObj( (jsonObj), diff --git a/lib/opsi/lib/model/host-resource-statistics.ts b/lib/opsi/lib/model/host-resource-statistics.ts index 18e8ba0c5c..8f1e1b9a6b 100644 --- a/lib/opsi/lib/model/host-resource-statistics.ts +++ b/lib/opsi/lib/model/host-resource-statistics.ts @@ -66,6 +66,8 @@ export namespace HostResourceStatistics { (jsonObj), true ); + case "HOST_IO_STATISTICS": + return model.HostIoStatistics.getJsonObj((jsonObj), true); case "HOST_CPU_STATISTICS": return model.HostCpuStatistics.getJsonObj( (jsonObj), @@ -97,6 +99,11 @@ export namespace HostResourceStatistics { (jsonObj), true ); + case "HOST_IO_STATISTICS": + return model.HostIoStatistics.getDeserializedJsonObj( + (jsonObj), + true + ); case "HOST_CPU_STATISTICS": return model.HostCpuStatistics.getDeserializedJsonObj( (jsonObj), diff --git a/lib/opsi/lib/model/index.ts b/lib/opsi/lib/model/index.ts index c308443170..0248f78a2f 100644 --- a/lib/opsi/lib/model/index.ts +++ b/lib/opsi/lib/model/index.ts @@ -400,6 +400,10 @@ import * as IngestSqlTextResponseDetails from "./ingest-sql-text-response-detail export import IngestSqlTextResponseDetails = IngestSqlTextResponseDetails.IngestSqlTextResponseDetails; import * as InstanceMetrics from "./instance-metrics"; export import InstanceMetrics = InstanceMetrics.InstanceMetrics; +import * as IoUsageTrend from "./io-usage-trend"; +export import IoUsageTrend = IoUsageTrend.IoUsageTrend; +import * as IoUsageTrendAggregation from "./io-usage-trend-aggregation"; +export import IoUsageTrendAggregation = IoUsageTrendAggregation.IoUsageTrendAggregation; import * as LifecycleState from "./lifecycle-state"; export import LifecycleState = LifecycleState.LifecycleState; import * as ListObjects from "./list-objects"; @@ -634,6 +638,8 @@ import * as SummarizeExadataInsightResourceUtilizationInsightAggregation from ". export import SummarizeExadataInsightResourceUtilizationInsightAggregation = SummarizeExadataInsightResourceUtilizationInsightAggregation.SummarizeExadataInsightResourceUtilizationInsightAggregation; import * as SummarizeHostInsightHostRecommendationAggregation from "./summarize-host-insight-host-recommendation-aggregation"; export import SummarizeHostInsightHostRecommendationAggregation = SummarizeHostInsightHostRecommendationAggregation.SummarizeHostInsightHostRecommendationAggregation; +import * as SummarizeHostInsightIoUsageTrendAggregationCollection from "./summarize-host-insight-io-usage-trend-aggregation-collection"; +export import SummarizeHostInsightIoUsageTrendAggregationCollection = SummarizeHostInsightIoUsageTrendAggregationCollection.SummarizeHostInsightIoUsageTrendAggregationCollection; import * as SummarizeHostInsightNetworkUsageTrendAggregationCollection from "./summarize-host-insight-network-usage-trend-aggregation-collection"; export import SummarizeHostInsightNetworkUsageTrendAggregationCollection = SummarizeHostInsightNetworkUsageTrendAggregationCollection.SummarizeHostInsightNetworkUsageTrendAggregationCollection; import * as SummarizeHostInsightResourceCapacityTrendAggregationCollection from "./summarize-host-insight-resource-capacity-trend-aggregation-collection"; @@ -937,6 +943,8 @@ import * as HostInsightsDataObject from "./host-insights-data-object"; export import HostInsightsDataObject = HostInsightsDataObject.HostInsightsDataObject; import * as HostInsightsDataObjectSummary from "./host-insights-data-object-summary"; export import HostInsightsDataObjectSummary = HostInsightsDataObjectSummary.HostInsightsDataObjectSummary; +import * as HostIoStatistics from "./host-io-statistics"; +export import HostIoStatistics = HostIoStatistics.HostIoStatistics; import * as HostIoUsage from "./host-io-usage"; export import HostIoUsage = HostIoUsage.HostIoUsage; import * as HostMemoryConfiguration from "./host-memory-configuration"; diff --git a/lib/opsi/lib/model/io-usage-trend-aggregation.ts b/lib/opsi/lib/model/io-usage-trend-aggregation.ts new file mode 100644 index 0000000000..c9f5e6fe9a --- /dev/null +++ b/lib/opsi/lib/model/io-usage-trend-aggregation.ts @@ -0,0 +1,63 @@ +/** + * Ops Insights API + * Use the Ops Insights API to perform data extraction operations to obtain database +resource utilization, performance statistics, and reference information. For more information, +see [About Oracle Cloud Infrastructure Ops Insights](https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). + + * OpenAPI spec version: 20200630 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Usage data per io interface. + */ +export interface IoUsageTrendAggregation { + /** + * Mount point is specialized NTFS filesystem object. + */ + "mountPoint": string; + /** + * List of usage data samples for a IO interface. + */ + "usageData": Array; +} + +export namespace IoUsageTrendAggregation { + export function getJsonObj(obj: IoUsageTrendAggregation): object { + const jsonObj = { + ...obj, + ...{ + "usageData": obj.usageData + ? obj.usageData.map(item => { + return model.IoUsageTrend.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: IoUsageTrendAggregation): object { + const jsonObj = { + ...obj, + ...{ + "usageData": obj.usageData + ? obj.usageData.map(item => { + return model.IoUsageTrend.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/opsi/lib/model/io-usage-trend.ts b/lib/opsi/lib/model/io-usage-trend.ts new file mode 100644 index 0000000000..80d20ab78f --- /dev/null +++ b/lib/opsi/lib/model/io-usage-trend.ts @@ -0,0 +1,61 @@ +/** + * Ops Insights API + * Use the Ops Insights API to perform data extraction operations to obtain database +resource utilization, performance statistics, and reference information. For more information, +see [About Oracle Cloud Infrastructure Ops Insights](https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). + + * OpenAPI spec version: 20200630 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Usage data for IO interface per usage unit. + */ +export interface IoUsageTrend { + /** + * The timestamp in which the current sampling period ends in RFC 3339 format. + */ + "endTimestamp": Date; + /** + * MBs Read. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "diskBytesReadInMBs": number; + /** + * MBs Written. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "diskBytesWrittenInMBs": number; + /** + * Read IO operations per second. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "diskIopsRead": number; + /** + * Write IO operations per second. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "diskIopsWritten": number; + /** + * IO operations per second. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "diskIops": number; +} + +export namespace IoUsageTrend { + export function getJsonObj(obj: IoUsageTrend): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: IoUsageTrend): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/opsi/lib/model/summarize-host-insight-host-recommendation-aggregation.ts b/lib/opsi/lib/model/summarize-host-insight-host-recommendation-aggregation.ts index 1622e17d07..af6c119ebc 100644 --- a/lib/opsi/lib/model/summarize-host-insight-host-recommendation-aggregation.ts +++ b/lib/opsi/lib/model/summarize-host-insight-host-recommendation-aggregation.ts @@ -60,6 +60,7 @@ export namespace SummarizeHostInsightHostRecommendationAggregation { Network = "NETWORK", GpuUtilization = "GPU_UTILIZATION", GpuMemoryUsage = "GPU_MEMORY_USAGE", + Io = "IO", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/opsi/lib/model/summarize-host-insight-io-usage-trend-aggregation-collection.ts b/lib/opsi/lib/model/summarize-host-insight-io-usage-trend-aggregation-collection.ts new file mode 100644 index 0000000000..0aef746c3e --- /dev/null +++ b/lib/opsi/lib/model/summarize-host-insight-io-usage-trend-aggregation-collection.ts @@ -0,0 +1,74 @@ +/** + * Ops Insights API + * Use the Ops Insights API to perform data extraction operations to obtain database +resource utilization, performance statistics, and reference information. For more information, +see [About Oracle Cloud Infrastructure Ops Insights](https://docs.cloud.oracle.com/en-us/iaas/operations-insights/doc/operations-insights.html). + + * OpenAPI spec version: 20200630 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Top level response object. + */ +export interface SummarizeHostInsightIoUsageTrendAggregationCollection { + /** + * The start timestamp that was passed into the request. + */ + "timeIntervalStart": Date; + /** + * The end timestamp that was passed into the request. + */ + "timeIntervalEnd": Date; + /** + * Time duration in milliseconds between data points (one hour or one day). + * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "itemDurationInMs": number; + /** + * Collection of Usage Data with time stamps for all IO interfaces. + */ + "items": Array; +} + +export namespace SummarizeHostInsightIoUsageTrendAggregationCollection { + export function getJsonObj(obj: SummarizeHostInsightIoUsageTrendAggregationCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.IoUsageTrendAggregation.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj( + obj: SummarizeHostInsightIoUsageTrendAggregationCollection + ): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.IoUsageTrendAggregation.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/opsi/lib/model/summarize-host-insight-resource-capacity-trend-aggregation-collection.ts b/lib/opsi/lib/model/summarize-host-insight-resource-capacity-trend-aggregation-collection.ts index df8395d8d9..80e9936fe0 100644 --- a/lib/opsi/lib/model/summarize-host-insight-resource-capacity-trend-aggregation-collection.ts +++ b/lib/opsi/lib/model/summarize-host-insight-resource-capacity-trend-aggregation-collection.ts @@ -68,6 +68,7 @@ export namespace SummarizeHostInsightResourceCapacityTrendAggregationCollection Network = "NETWORK", GpuUtilization = "GPU_UTILIZATION", GpuMemoryUsage = "GPU_MEMORY_USAGE", + Io = "IO", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/opsi/lib/model/summarize-host-insight-resource-forecast-trend-aggregation.ts b/lib/opsi/lib/model/summarize-host-insight-resource-forecast-trend-aggregation.ts index 7520b91e89..1ab3f72cd0 100644 --- a/lib/opsi/lib/model/summarize-host-insight-resource-forecast-trend-aggregation.ts +++ b/lib/opsi/lib/model/summarize-host-insight-resource-forecast-trend-aggregation.ts @@ -74,6 +74,7 @@ export namespace SummarizeHostInsightResourceForecastTrendAggregation { Network = "NETWORK", GpuUtilization = "GPU_UTILIZATION", GpuMemoryUsage = "GPU_MEMORY_USAGE", + Io = "IO", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/opsi/lib/model/summarize-host-insight-resource-statistics-aggregation-collection.ts b/lib/opsi/lib/model/summarize-host-insight-resource-statistics-aggregation-collection.ts index e52d843acb..b70c2965cd 100644 --- a/lib/opsi/lib/model/summarize-host-insight-resource-statistics-aggregation-collection.ts +++ b/lib/opsi/lib/model/summarize-host-insight-resource-statistics-aggregation-collection.ts @@ -62,6 +62,7 @@ export namespace SummarizeHostInsightResourceStatisticsAggregationCollection { Network = "NETWORK", GpuUtilization = "GPU_UTILIZATION", GpuMemoryUsage = "GPU_MEMORY_USAGE", + Io = "IO", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/opsi/lib/model/summarize-host-insight-resource-usage-aggregation.ts b/lib/opsi/lib/model/summarize-host-insight-resource-usage-aggregation.ts index 606a2f7ef3..d4589bd141 100644 --- a/lib/opsi/lib/model/summarize-host-insight-resource-usage-aggregation.ts +++ b/lib/opsi/lib/model/summarize-host-insight-resource-usage-aggregation.ts @@ -64,6 +64,7 @@ export namespace SummarizeHostInsightResourceUsageAggregation { Network = "NETWORK", GpuUtilization = "GPU_UTILIZATION", GpuMemoryUsage = "GPU_MEMORY_USAGE", + Io = "IO", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/opsi/lib/model/summarize-host-insight-resource-usage-trend-aggregation-collection.ts b/lib/opsi/lib/model/summarize-host-insight-resource-usage-trend-aggregation-collection.ts index 67de0c9da6..d3672cb2a7 100644 --- a/lib/opsi/lib/model/summarize-host-insight-resource-usage-trend-aggregation-collection.ts +++ b/lib/opsi/lib/model/summarize-host-insight-resource-usage-trend-aggregation-collection.ts @@ -60,6 +60,7 @@ export namespace SummarizeHostInsightResourceUsageTrendAggregationCollection { Network = "NETWORK", GpuUtilization = "GPU_UTILIZATION", GpuMemoryUsage = "GPU_MEMORY_USAGE", + Io = "IO", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/opsi/lib/model/summarize-host-insight-resource-utilization-insight-aggregation.ts b/lib/opsi/lib/model/summarize-host-insight-resource-utilization-insight-aggregation.ts index d6ef952f1a..f7a78cd768 100644 --- a/lib/opsi/lib/model/summarize-host-insight-resource-utilization-insight-aggregation.ts +++ b/lib/opsi/lib/model/summarize-host-insight-resource-utilization-insight-aggregation.ts @@ -56,6 +56,7 @@ export namespace SummarizeHostInsightResourceUtilizationInsightAggregation { Network = "NETWORK", GpuUtilization = "GPU_UTILIZATION", GpuMemoryUsage = "GPU_MEMORY_USAGE", + Io = "IO", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/opsi/lib/request/index.ts b/lib/opsi/lib/request/index.ts index 7d4339fce9..e3d4fe3683 100644 --- a/lib/opsi/lib/request/index.ts +++ b/lib/opsi/lib/request/index.ts @@ -314,6 +314,8 @@ import * as SummarizeHostInsightDiskStatisticsRequest from "./summarize-host-ins export import SummarizeHostInsightDiskStatisticsRequest = SummarizeHostInsightDiskStatisticsRequest.SummarizeHostInsightDiskStatisticsRequest; import * as SummarizeHostInsightHostRecommendationRequest from "./summarize-host-insight-host-recommendation-request"; export import SummarizeHostInsightHostRecommendationRequest = SummarizeHostInsightHostRecommendationRequest.SummarizeHostInsightHostRecommendationRequest; +import * as SummarizeHostInsightIoUsageTrendRequest from "./summarize-host-insight-io-usage-trend-request"; +export import SummarizeHostInsightIoUsageTrendRequest = SummarizeHostInsightIoUsageTrendRequest.SummarizeHostInsightIoUsageTrendRequest; import * as SummarizeHostInsightNetworkUsageTrendRequest from "./summarize-host-insight-network-usage-trend-request"; export import SummarizeHostInsightNetworkUsageTrendRequest = SummarizeHostInsightNetworkUsageTrendRequest.SummarizeHostInsightNetworkUsageTrendRequest; import * as SummarizeHostInsightResourceCapacityTrendRequest from "./summarize-host-insight-resource-capacity-trend-request"; diff --git a/lib/opsi/lib/request/summarize-host-insight-io-usage-trend-request.ts b/lib/opsi/lib/request/summarize-host-insight-io-usage-trend-request.ts new file mode 100644 index 0000000000..beb534b22b --- /dev/null +++ b/lib/opsi/lib/request/summarize-host-insight-io-usage-trend-request.ts @@ -0,0 +1,97 @@ +/** + * + * + * OpenAPI spec version: 20200630 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/opsi/SummarizeHostInsightIoUsageTrend.ts.html |here} to see how to use SummarizeHostInsightIoUsageTrendRequest. + */ +export interface SummarizeHostInsightIoUsageTrendRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + */ + "compartmentId": string; + /** + * Required [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host insight resource. + * + */ + "id": string; + /** + * Specify time period in ISO 8601 format with respect to current time. + * Default is last 30 days represented by P30D. + * If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. + * Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M). + * + */ + "analysisTimeInterval"?: string; + /** + * Analysis start time in UTC in ISO 8601 format(inclusive). + * Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). + * The minimum allowed value is 2 years prior to the current day. + * timeIntervalStart and timeIntervalEnd parameters are used together. + * If analysisTimeInterval is specified, this parameter is ignored. + * + */ + "timeIntervalStart"?: Date; + /** + * Analysis end time in UTC in ISO 8601 format(exclusive). + * Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). + * timeIntervalStart and timeIntervalEnd are used together. + * If timeIntervalEnd is not specified, current time is used as timeIntervalEnd. + * + */ + "timeIntervalEnd"?: Date; + /** + * Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id) + * + */ + "hostId"?: string; + /** + * For list pagination. The value of the {@code opc-next-page} response header from + * the previous \"List\" call. For important details about how pagination works, + * see [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + */ + "page"?: string; + /** + * For list pagination. The maximum number of results per page, or items to + * return in a paginated \"List\" call. + * For important details about how pagination works, see + * [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * Example: {@code 50} + * + */ + "limit"?: number; + /** + * Choose the type of statistic metric data to be used for forecasting. + */ + "statistic"?: SummarizeHostInsightIoUsageTrendRequest.Statistic; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Resource Status + */ + "status"?: Array; +} + +export namespace SummarizeHostInsightIoUsageTrendRequest { + export enum Statistic { + Avg = "AVG", + Max = "MAX" + } +} diff --git a/lib/opsi/lib/response/index.ts b/lib/opsi/lib/response/index.ts index 0bcfb3a577..ce5a02ffa4 100644 --- a/lib/opsi/lib/response/index.ts +++ b/lib/opsi/lib/response/index.ts @@ -314,6 +314,8 @@ import * as SummarizeHostInsightDiskStatisticsResponse from "./summarize-host-in export import SummarizeHostInsightDiskStatisticsResponse = SummarizeHostInsightDiskStatisticsResponse.SummarizeHostInsightDiskStatisticsResponse; import * as SummarizeHostInsightHostRecommendationResponse from "./summarize-host-insight-host-recommendation-response"; export import SummarizeHostInsightHostRecommendationResponse = SummarizeHostInsightHostRecommendationResponse.SummarizeHostInsightHostRecommendationResponse; +import * as SummarizeHostInsightIoUsageTrendResponse from "./summarize-host-insight-io-usage-trend-response"; +export import SummarizeHostInsightIoUsageTrendResponse = SummarizeHostInsightIoUsageTrendResponse.SummarizeHostInsightIoUsageTrendResponse; import * as SummarizeHostInsightNetworkUsageTrendResponse from "./summarize-host-insight-network-usage-trend-response"; export import SummarizeHostInsightNetworkUsageTrendResponse = SummarizeHostInsightNetworkUsageTrendResponse.SummarizeHostInsightNetworkUsageTrendResponse; import * as SummarizeHostInsightResourceCapacityTrendResponse from "./summarize-host-insight-resource-capacity-trend-response"; diff --git a/lib/opsi/lib/response/summarize-host-insight-io-usage-trend-response.ts b/lib/opsi/lib/response/summarize-host-insight-io-usage-trend-response.ts new file mode 100644 index 0000000000..cb5d544a8b --- /dev/null +++ b/lib/opsi/lib/response/summarize-host-insight-io-usage-trend-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20200630 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * 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. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface SummarizeHostInsightIoUsageTrendResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.SummarizeHostInsightIoUsageTrendAggregationCollection instance. + */ + "summarizeHostInsightIoUsageTrendAggregationCollection": model.SummarizeHostInsightIoUsageTrendAggregationCollection; +} diff --git a/lib/opsi/package.json b/lib/opsi/package.json index bd7c1829df..ed29711d30 100644 --- a/lib/opsi/package.json +++ b/lib/opsi/package.json @@ -1,6 +1,6 @@ { "name": "oci-opsi", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Opsi Service", "repository": { "type": "git", diff --git a/lib/optimizer/package.json b/lib/optimizer/package.json index 3a7ff79c1b..da6c8bf6a3 100644 --- a/lib/optimizer/package.json +++ b/lib/optimizer/package.json @@ -1,6 +1,6 @@ { "name": "oci-optimizer", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Optimizer Service", "repository": { "type": "git", diff --git a/lib/osmanagement/package.json b/lib/osmanagement/package.json index 9708a3b71f..312c38e8c1 100644 --- a/lib/osmanagement/package.json +++ b/lib/osmanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-osmanagement", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for OS Management", "repository": { "type": "git", diff --git a/lib/osmanagementhub/package.json b/lib/osmanagementhub/package.json index e838bde569..04ab4fbaa1 100644 --- a/lib/osmanagementhub/package.json +++ b/lib/osmanagementhub/package.json @@ -1,6 +1,6 @@ { "name": "oci-osmanagementhub", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Os Management Hub Service", "repository": { "type": "git", diff --git a/lib/ospgateway/package.json b/lib/ospgateway/package.json index e2f28aff76..c1390ee090 100644 --- a/lib/ospgateway/package.json +++ b/lib/ospgateway/package.json @@ -1,6 +1,6 @@ { "name": "oci-ospgateway", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Osp Gateway Service", "repository": { "type": "git", diff --git a/lib/osubbillingschedule/package.json b/lib/osubbillingschedule/package.json index f873690b3e..9a748eeaa6 100644 --- a/lib/osubbillingschedule/package.json +++ b/lib/osubbillingschedule/package.json @@ -1,6 +1,6 @@ { "name": "oci-osubbillingschedule", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Osub Billing Schedule Service", "repository": { "type": "git", diff --git a/lib/osuborganizationsubscription/package.json b/lib/osuborganizationsubscription/package.json index f7b6cb5cdb..0ff8d7c80d 100644 --- a/lib/osuborganizationsubscription/package.json +++ b/lib/osuborganizationsubscription/package.json @@ -1,6 +1,6 @@ { "name": "oci-osuborganizationsubscription", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Osub Organization Subscription Service", "repository": { "type": "git", diff --git a/lib/osubsubscription/package.json b/lib/osubsubscription/package.json index 0906df80b5..17904bcee0 100644 --- a/lib/osubsubscription/package.json +++ b/lib/osubsubscription/package.json @@ -1,6 +1,6 @@ { "name": "oci-osubsubscription", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Osub Subscription Service", "repository": { "type": "git", diff --git a/lib/osubusage/package.json b/lib/osubusage/package.json index 00e5d5867e..365d6f2c77 100644 --- a/lib/osubusage/package.json +++ b/lib/osubusage/package.json @@ -1,6 +1,6 @@ { "name": "oci-osubusage", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Osub Usage Service", "repository": { "type": "git", diff --git a/lib/psql/package.json b/lib/psql/package.json index 58df325a0e..aa89cdc2f5 100644 --- a/lib/psql/package.json +++ b/lib/psql/package.json @@ -1,6 +1,6 @@ { "name": "oci-psql", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Psql Service", "repository": { "type": "git", diff --git a/lib/queue/package.json b/lib/queue/package.json index c6fd1ad5ca..f6f224f927 100644 --- a/lib/queue/package.json +++ b/lib/queue/package.json @@ -1,6 +1,6 @@ { "name": "oci-queue", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Queue Service", "repository": { "type": "git", diff --git a/lib/recovery/package.json b/lib/recovery/package.json index cb6dc7ee54..94998bf606 100644 --- a/lib/recovery/package.json +++ b/lib/recovery/package.json @@ -1,6 +1,6 @@ { "name": "oci-recovery", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Recovery Service", "repository": { "type": "git", diff --git a/lib/redis/package.json b/lib/redis/package.json index 7b6d1c18d5..175538f8cd 100644 --- a/lib/redis/package.json +++ b/lib/redis/package.json @@ -1,6 +1,6 @@ { "name": "oci-redis", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Redis Service", "repository": { "type": "git", diff --git a/lib/resourcemanager/package.json b/lib/resourcemanager/package.json index f77069e688..89c5caa036 100644 --- a/lib/resourcemanager/package.json +++ b/lib/resourcemanager/package.json @@ -1,6 +1,6 @@ { "name": "oci-resourcemanager", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Resource manager Service", "repository": { "type": "git", diff --git a/lib/resourcescheduler/package.json b/lib/resourcescheduler/package.json index 5c47333150..a747a98e7c 100644 --- a/lib/resourcescheduler/package.json +++ b/lib/resourcescheduler/package.json @@ -1,6 +1,6 @@ { "name": "oci-resourcescheduler", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Resource Scheduler Service", "repository": { "type": "git", diff --git a/lib/resourcesearch/package.json b/lib/resourcesearch/package.json index f979bad1ba..4702111c22 100644 --- a/lib/resourcesearch/package.json +++ b/lib/resourcesearch/package.json @@ -1,6 +1,6 @@ { "name": "oci-resourcesearch", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for resource research Service", "repository": { "type": "git", diff --git a/lib/rover/package.json b/lib/rover/package.json index 467920a8d2..025b868c5d 100644 --- a/lib/rover/package.json +++ b/lib/rover/package.json @@ -1,6 +1,6 @@ { "name": "oci-rover", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Rover Service", "repository": { "type": "git", diff --git a/lib/sch/package.json b/lib/sch/package.json index 7c12f792cc..a9bb26506f 100644 --- a/lib/sch/package.json +++ b/lib/sch/package.json @@ -1,6 +1,6 @@ { "name": "oci-sch", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Sch Service", "repository": { "type": "git", diff --git a/lib/secrets/package.json b/lib/secrets/package.json index ad7f99e320..ca066002f5 100644 --- a/lib/secrets/package.json +++ b/lib/secrets/package.json @@ -1,6 +1,6 @@ { "name": "oci-secrets", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Secrets Service", "repository": { "type": "git", diff --git a/lib/securityattribute/package.json b/lib/securityattribute/package.json index 667ef6b0dd..3594e01a86 100644 --- a/lib/securityattribute/package.json +++ b/lib/securityattribute/package.json @@ -1,6 +1,6 @@ { "name": "oci-securityattribute", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Security Attribute Service", "repository": { "type": "git", diff --git a/lib/servicecatalog/package.json b/lib/servicecatalog/package.json index baff7835c2..32e333f4b4 100644 --- a/lib/servicecatalog/package.json +++ b/lib/servicecatalog/package.json @@ -1,6 +1,6 @@ { "name": "oci-servicecatalog", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Service Catalog Service", "repository": { "type": "git", diff --git a/lib/servicemanagerproxy/package.json b/lib/servicemanagerproxy/package.json index 3f51b6b536..6b2a4f204e 100644 --- a/lib/servicemanagerproxy/package.json +++ b/lib/servicemanagerproxy/package.json @@ -1,6 +1,6 @@ { "name": "oci-servicemanagerproxy", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Service Manager Proxy Service", "repository": { "type": "git", diff --git a/lib/servicemesh/package.json b/lib/servicemesh/package.json index ba6b3460c5..dac6dc0c8c 100644 --- a/lib/servicemesh/package.json +++ b/lib/servicemesh/package.json @@ -1,6 +1,6 @@ { "name": "oci-servicemesh", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Service Mesh Service", "repository": { "type": "git", diff --git a/lib/stackmonitoring/package.json b/lib/stackmonitoring/package.json index 592029dd73..b1decd573f 100644 --- a/lib/stackmonitoring/package.json +++ b/lib/stackmonitoring/package.json @@ -1,6 +1,6 @@ { "name": "oci-stackmonitoring", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Stack Monitoring Service", "repository": { "type": "git", diff --git a/lib/streaming/package.json b/lib/streaming/package.json index d94c5e1ca7..c2106a4214 100644 --- a/lib/streaming/package.json +++ b/lib/streaming/package.json @@ -1,6 +1,6 @@ { "name": "oci-streaming", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Streaming", "repository": { "type": "git", diff --git a/lib/tenantmanagercontrolplane/package.json b/lib/tenantmanagercontrolplane/package.json index e73a907097..e2bbc22df4 100644 --- a/lib/tenantmanagercontrolplane/package.json +++ b/lib/tenantmanagercontrolplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-tenantmanagercontrolplane", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Tenant Manager Control Plane Service", "repository": { "type": "git", diff --git a/lib/threatintelligence/package.json b/lib/threatintelligence/package.json index f24e9eb655..74a0b3a383 100644 --- a/lib/threatintelligence/package.json +++ b/lib/threatintelligence/package.json @@ -1,6 +1,6 @@ { "name": "oci-threatintelligence", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Threat Intelligence Service", "repository": { "type": "git", diff --git a/lib/usage/package.json b/lib/usage/package.json index b461a98296..eebba83a63 100644 --- a/lib/usage/package.json +++ b/lib/usage/package.json @@ -1,6 +1,6 @@ { "name": "oci-usage", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Usage Service", "repository": { "type": "git", diff --git a/lib/usageapi/package.json b/lib/usageapi/package.json index 88719d096e..aec8264500 100644 --- a/lib/usageapi/package.json +++ b/lib/usageapi/package.json @@ -1,6 +1,6 @@ { "name": "oci-usageapi", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Usage Api Service", "repository": { "type": "git", diff --git a/lib/vault/package.json b/lib/vault/package.json index 876eec78bd..12c49471c9 100644 --- a/lib/vault/package.json +++ b/lib/vault/package.json @@ -1,6 +1,6 @@ { "name": "oci-vault", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Vault Service", "repository": { "type": "git", diff --git a/lib/vbsinst/package.json b/lib/vbsinst/package.json index 3a0659d750..7ff438303e 100644 --- a/lib/vbsinst/package.json +++ b/lib/vbsinst/package.json @@ -1,6 +1,6 @@ { "name": "oci-vbsinst", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Vbs Inst Service", "repository": { "type": "git", diff --git a/lib/visualbuilder/package.json b/lib/visualbuilder/package.json index d0d233623b..d3570b3dc8 100644 --- a/lib/visualbuilder/package.json +++ b/lib/visualbuilder/package.json @@ -1,6 +1,6 @@ { "name": "oci-visualbuilder", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Visual Builder Service", "repository": { "type": "git", diff --git a/lib/vnmonitoring/package.json b/lib/vnmonitoring/package.json index 4ccd22459e..adb58ef9d7 100644 --- a/lib/vnmonitoring/package.json +++ b/lib/vnmonitoring/package.json @@ -1,6 +1,6 @@ { "name": "oci-vnmonitoring", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Vn Monitoring Service", "repository": { "type": "git", diff --git a/lib/vulnerabilityscanning/package.json b/lib/vulnerabilityscanning/package.json index 6b3be264f4..f014bf84e5 100644 --- a/lib/vulnerabilityscanning/package.json +++ b/lib/vulnerabilityscanning/package.json @@ -1,6 +1,6 @@ { "name": "oci-vulnerabilityscanning", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Vulnerability Scanning Service", "repository": { "type": "git", diff --git a/lib/waa/package.json b/lib/waa/package.json index f4b2a7cfce..ddc943fd54 100644 --- a/lib/waa/package.json +++ b/lib/waa/package.json @@ -1,6 +1,6 @@ { "name": "oci-waa", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Waa Service", "repository": { "type": "git", diff --git a/lib/waas/package.json b/lib/waas/package.json index 6848f1d64c..225535f6d0 100644 --- a/lib/waas/package.json +++ b/lib/waas/package.json @@ -1,6 +1,6 @@ { "name": "oci-waas", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for WAAS", "repository": { "type": "git", diff --git a/lib/waf/package.json b/lib/waf/package.json index 6dcc95d1c8..2ce73d1a87 100644 --- a/lib/waf/package.json +++ b/lib/waf/package.json @@ -1,6 +1,6 @@ { "name": "oci-waf", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Waf Service", "repository": { "type": "git", diff --git a/lib/workrequests/package.json b/lib/workrequests/package.json index 610788c88c..e43997c3cd 100644 --- a/lib/workrequests/package.json +++ b/lib/workrequests/package.json @@ -1,6 +1,6 @@ { "name": "oci-workrequests", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for WorkRequests", "repository": { "type": "git", diff --git a/lib/zpr/package.json b/lib/zpr/package.json index 9e394b7e9e..79b83dbc51 100644 --- a/lib/zpr/package.json +++ b/lib/zpr/package.json @@ -1,6 +1,6 @@ { "name": "oci-zpr", - "version": "2.96.0", + "version": "2.97.0", "description": "OCI NodeJS client for Zpr Service", "repository": { "type": "git", diff --git a/package.json b/package.json index 49dc853008..95f8002aad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oci-sdk", - "version": "2.96.0", + "version": "2.97.0", "author": { "name": "Oracle Cloud Infrastructure", "email": ""