From 01d18ce164a70b2568fab040753f088e316a4fb5 Mon Sep 17 00:00:00 2001 From: Walt Tran Date: Tue, 23 Jun 2020 16:48:38 +0000 Subject: [PATCH] Releasing version 1.2.0 --- CHANGELOG.md | 28 +- examples/javascript/objectstorage.js | 40 +- examples/typescript/audit.ts | 11 +- examples/typescript/identity.ts | 4 - examples/typescript/objectstorage.ts | 41 +- index.ts | 1 + lib/analytics/package.json | 2 +- lib/announcementsservice/package.json | 2 +- lib/apigateway/package.json | 2 +- lib/applicationmigration/package.json | 2 +- lib/audit/package.json | 2 +- lib/autoscaling/package.json | 2 +- lib/bds/package.json | 2 +- lib/budget/package.json | 2 +- lib/cims/package.json | 2 +- lib/common/lib/config-file-reader.ts | 8 + lib/common/package.json | 2 +- lib/common/tests/config-file-reader.spec.ts | 59 +- lib/common/tests/resources/fake-rsa.pem | 1 + .../resources/unit-test-environment-config | 7 + lib/containerengine/package.json | 2 +- lib/core/package.json | 2 +- lib/database/lib/client.ts | 416 ++ lib/database/lib/database-waiter.ts | 19 + .../lib/model/automated-mount-details.ts | 46 + ...nomous-container-database-backup-config.ts | 15 +- .../autonomous-container-database-summary.ts | 25 +- .../model/autonomous-container-database.ts | 25 +- .../lib/model/autonomous-database-summary.ts | 15 + lib/database/lib/model/autonomous-database.ts | 15 + .../model/autonomous-vm-cluster-summary.ts | 142 + .../lib/model/autonomous-vm-cluster.ts | 142 + .../lib/model/backup-destination-details.ts | 4 + .../lib/model/backup-destination-summary.ts | 23 + lib/database/lib/model/backup-destination.ts | 23 + ...tonomous-vm-cluster-compartment-details.ts | 36 + ...e-autonomous-container-database-details.ts | 10 +- .../create-autonomous-vm-cluster-details.ts | 80 + lib/database/lib/model/create-db-home-base.ts | 14 + .../lib/model/create-db-home-details.ts | 14 + .../create-db-home-from-backup-details.ts | 14 + .../create-db-home-from-database-details.ts | 14 + .../create-nf-sbackup-destination-details.ts | 12 +- lib/database/lib/model/db-home-summary.ts | 14 + lib/database/lib/model/db-home.ts | 14 + lib/database/lib/model/index.ts | 16 + lib/database/lib/model/mount-type-details.ts | 44 + lib/database/lib/model/self-mount-details.ts | 41 + .../update-autonomous-vm-cluster-details.ts | 54 + .../update-backup-destination-details.ts | 17 + .../lib/model/update-db-home-details.ts | 14 + ...tonomous-vm-cluster-compartment-request.ts | 46 + .../create-autonomous-vm-cluster-request.ts | 35 + .../delete-autonomous-vm-cluster-request.ts | 33 + .../get-autonomous-vm-cluster-request.ts | 26 + lib/database/lib/request/index.ts | 12 + ...-autonomous-container-databases-request.ts | 8 + .../list-autonomous-databases-request.ts | 4 + .../list-autonomous-vm-clusters-request.ts | 67 + .../update-autonomous-vm-cluster-request.ts | 37 + ...onomous-vm-cluster-compartment-response.ts | 28 + .../create-autonomous-vm-cluster-response.ts | 37 + .../delete-autonomous-vm-cluster-response.ts | 29 + .../get-autonomous-vm-cluster-response.ts | 32 + lib/database/lib/response/index.ts | 12 + .../list-autonomous-vm-clusters-response.ts | 36 + .../update-autonomous-vm-cluster-response.ts | 37 + lib/database/package.json | 2 +- lib/datacatalog/lib/client.ts | 521 +- lib/datacatalog/lib/datacatalog-waiter.ts | 340 ++ ...attach-catalog-private-endpoint-details.ts | 33 + .../lib/model/attribute-summary.ts | 2 +- .../lib/model/attribute-tag-summary.ts | 2 +- lib/datacatalog/lib/model/attribute-tag.ts | 2 +- lib/datacatalog/lib/model/attribute.ts | 2 +- lib/datacatalog/lib/model/base-tag-summary.ts | 2 +- lib/datacatalog/lib/model/base-tag.ts | 2 +- .../model/catalog-private-endpoint-summary.ts | 83 + .../lib/model/catalog-private-endpoint.ts | 83 + lib/datacatalog/lib/model/catalog-summary.ts | 6 +- lib/datacatalog/lib/model/catalog.ts | 6 +- .../change-catalog-compartment-details.ts | 3 + ...og-private-endpoint-compartment-details.ts | 33 + .../lib/model/connection-result.ts | 8 +- .../lib/model/connection-summary.ts | 2 +- lib/datacatalog/lib/model/connection.ts | 2 +- ...create-catalog-private-endpoint-details.ts | 60 + .../lib/model/create-entity-details.ts | 2 +- .../lib/model/create-folder-details.ts | 2 +- .../lib/model/create-glossary-details.ts | 2 +- .../model/create-job-definition-details.ts | 2 +- .../lib/model/create-job-execution-details.ts | 4 +- .../lib/model/create-term-details.ts | 2 +- .../lib/model/data-asset-summary.ts | 2 +- .../lib/model/data-asset-tag-summary.ts | 2 +- lib/datacatalog/lib/model/data-asset-tag.ts | 2 +- lib/datacatalog/lib/model/data-asset.ts | 2 +- ...detach-catalog-private-endpoint-details.ts | 33 + lib/datacatalog/lib/model/entity-summary.ts | 2 +- .../lib/model/entity-tag-summary.ts | 2 +- lib/datacatalog/lib/model/entity-tag.ts | 2 +- lib/datacatalog/lib/model/entity.ts | 4 +- lib/datacatalog/lib/model/folder-summary.ts | 2 +- .../lib/model/folder-tag-summary.ts | 2 +- lib/datacatalog/lib/model/folder-tag.ts | 2 +- lib/datacatalog/lib/model/folder.ts | 4 +- lib/datacatalog/lib/model/glossary-summary.ts | 4 +- .../lib/model/glossary-tree-element.ts | 4 +- lib/datacatalog/lib/model/glossary.ts | 4 +- lib/datacatalog/lib/model/harvest-status.ts | 8 +- lib/datacatalog/lib/model/index.ts | 14 + .../lib/model/job-definition-summary.ts | 4 +- lib/datacatalog/lib/model/job-definition.ts | 4 +- .../lib/model/job-execution-state.ts | 8 +- .../lib/model/job-execution-summary.ts | 4 +- lib/datacatalog/lib/model/job-execution.ts | 4 +- .../lib/model/job-lifecycle-state.ts | 8 +- .../lib/model/job-schedule-type.ts | 8 +- lib/datacatalog/lib/model/job-summary.ts | 4 +- lib/datacatalog/lib/model/job-type.ts | 8 +- lib/datacatalog/lib/model/job.ts | 6 +- lib/datacatalog/lib/model/lifecycle-state.ts | 1 + .../lib/model/term-relationship-summary.ts | 2 +- .../lib/model/term-relationship.ts | 2 +- lib/datacatalog/lib/model/term-summary.ts | 4 +- .../lib/model/term-workflow-status.ts | 8 +- lib/datacatalog/lib/model/term.ts | 4 +- lib/datacatalog/lib/model/type-summary.ts | 2 +- lib/datacatalog/lib/model/type.ts | 2 +- .../lib/model/update-catalog-details.ts | 2 +- ...update-catalog-private-endpoint-details.ts | 51 + .../lib/model/update-entity-details.ts | 2 +- .../lib/model/update-folder-details.ts | 2 +- .../lib/model/update-glossary-details.ts | 2 +- .../lib/model/update-term-details.ts | 2 +- .../lib/model/validate-connection-result.ts | 2 +- lib/datacatalog/lib/model/work-request.ts | 6 + ...attach-catalog-private-endpoint-request.ts | 47 + ...og-private-endpoint-compartment-request.ts | 38 + ...create-catalog-private-endpoint-request.ts | 34 + ...delete-catalog-private-endpoint-request.ts | 34 + ...detach-catalog-private-endpoint-request.ts | 38 + .../get-catalog-private-endpoint-request.ts | 25 + lib/datacatalog/lib/request/index.ts | 16 + .../request/list-attribute-tags-request.ts | 2 +- .../lib/request/list-attributes-request.ts | 2 +- .../list-catalog-private-endpoints-request.ts | 62 + .../lib/request/list-catalogs-request.ts | 2 +- .../lib/request/list-connections-request.ts | 2 +- .../request/list-data-asset-tags-request.ts | 2 +- .../lib/request/list-data-assets-request.ts | 2 +- .../lib/request/list-entities-request.ts | 4 +- .../lib/request/list-entity-tags-request.ts | 2 +- .../lib/request/list-folder-tags-request.ts | 2 +- .../lib/request/list-folders-request.ts | 4 +- .../lib/request/list-glossaries-request.ts | 2 +- .../request/list-job-definitions-request.ts | 4 +- .../request/list-job-executions-request.ts | 4 +- .../lib/request/list-job-logs-request.ts | 2 +- .../lib/request/list-jobs-request.ts | 6 +- .../lib/request/list-tags-request.ts | 2 +- .../list-term-relationships-request.ts | 2 +- .../lib/request/list-terms-request.ts | 4 +- .../lib/request/list-types-request.ts | 2 +- .../lib/request/search-criteria-request.ts | 2 +- ...update-catalog-private-endpoint-request.ts | 38 + ...ttach-catalog-private-endpoint-response.ts | 29 + .../change-catalog-compartment-response.ts | 11 +- ...g-private-endpoint-compartment-response.ts | 29 + ...reate-catalog-private-endpoint-response.ts | 29 + ...elete-catalog-private-endpoint-response.ts | 29 + ...etach-catalog-private-endpoint-response.ts | 29 + .../get-catalog-private-endpoint-response.ts | 33 + lib/datacatalog/lib/response/index.ts | 16 + ...list-catalog-private-endpoints-response.ts | 33 + ...pdate-catalog-private-endpoint-response.ts | 29 + lib/datacatalog/package.json | 2 +- lib/dataflow/lib/model/application.ts | 6 + .../lib/model/create-application-details.ts | 6 + lib/dataflow/lib/model/run.ts | 6 + .../lib/model/update-application-details.ts | 6 + lib/dataflow/package.json | 2 +- lib/dataintegration/README.md | 22 + lib/dataintegration/index.ts | 24 + lib/dataintegration/lib/client.ts | 5330 +++++++++++++++++ .../lib/dataintegration-waiter.ts | 60 + .../model/abstract-data-operation-config.ts | 46 + .../lib/model/abstract-field.ts | 34 + .../lib/model/abstract-format-attribute.ts | 46 + .../lib/model/abstract-read-attribute.ts | 41 + .../lib/model/abstract-write-attribute.ts | 51 + lib/dataintegration/lib/model/aggregator.ts | 40 + .../lib/model/application-details.ts | 74 + .../model/application-summary-collection.ts | 42 + .../lib/model/application-summary.ts | 94 + lib/dataintegration/lib/model/application.ts | 94 + lib/dataintegration/lib/model/base-type.ts | 75 + .../lib/model/change-compartment-details.ts | 33 + .../lib/model/composite-field-map.ts | 64 + .../lib/model/composite-type.ts | 51 + .../lib/model/conditional-input-link.ts | 46 + .../lib/model/config-definition.ts | 70 + .../lib/model/config-parameter-definition.ts | 67 + .../lib/model/config-parameter-value.ts | 45 + .../lib/model/config-provider.ts | 47 + .../lib/model/config-values.ts | 42 + .../lib/model/configured-type.ts | 52 + .../lib/model/connection-details.ts | 110 + .../lib/model/connection-from-adwc-details.ts | 45 + .../lib/model/connection-from-adwc.ts | 43 + .../lib/model/connection-from-atp-details.ts | 45 + .../lib/model/connection-from-atp.ts | 43 + .../connection-from-object-storage-details.ts | 56 + .../model/connection-from-object-storage.ts | 53 + .../model/connection-from-oracle-details.ts | 45 + .../lib/model/connection-from-oracle.ts | 43 + .../lib/model/connection-property.ts | 37 + .../model/connection-summary-collection.ts | 42 + .../lib/model/connection-summary-from-adwc.ts | 45 + .../lib/model/connection-summary-from-atp.ts | 45 + .../connection-summary-from-object-storage.ts | 56 + .../model/connection-summary-from-oracle.ts | 45 + .../lib/model/connection-summary.ts | 114 + ...onnection-validation-summary-collection.ts | 42 + .../model/connection-validation-summary.ts | 75 + .../lib/model/connection-validation.ts | 75 + lib/dataintegration/lib/model/connection.ts | 114 + .../lib/model/count-statistic-summary.ts | 53 + .../lib/model/count-statistic.ts | 42 + .../lib/model/create-application-details.ts | 69 + .../lib/model/create-config-provider.ts | 40 + .../lib/model/create-connection-details.ts | 101 + .../lib/model/create-connection-from-adwc.ts | 45 + .../lib/model/create-connection-from-atp.ts | 45 + .../create-connection-from-object-storage.ts | 56 + .../model/create-connection-from-oracle.ts | 45 + .../create-connection-validation-details.ts | 53 + .../lib/model/create-data-asset-details.ts | 97 + .../lib/model/create-data-asset-from-adwc.ts | 54 + .../lib/model/create-data-asset-from-atp.ts | 54 + .../create-data-asset-from-object-storage.ts | 57 + .../model/create-data-asset-from-oracle.ts | 66 + .../lib/model/create-data-flow-details.ts | 88 + .../create-data-flow-validation-details.ts | 98 + .../lib/model/create-entity-shape-details.ts | 41 + .../model/create-entity-shape-from-file.ts | 125 + .../lib/model/create-folder-details.ts | 65 + .../lib/model/create-patch-details.ts | 74 + .../lib/model/create-project-details.ts | 61 + .../lib/model/create-task-details.ts | 117 + .../create-task-from-data-loader-task.ts | 40 + .../create-task-from-integration-task.ts | 43 + .../lib/model/create-task-run-details.ts | 66 + .../model/create-task-validation-details.ts | 119 + ...e-task-validation-from-data-loader-task.ts | 45 + ...e-task-validation-from-integration-task.ts | 45 + .../lib/model/create-workspace-details.ts | 73 + .../lib/model/csv-format-attribute.ts | 61 + .../lib/model/data-asset-from-adwc-details.ts | 52 + .../lib/model/data-asset-from-atp-details.ts | 52 + .../data-asset-from-object-storage-details.ts | 57 + .../model/data-asset-from-oracle-details.ts | 64 + .../model/data-asset-summary-collection.ts | 42 + .../lib/model/data-asset-summary-from-adwc.ts | 54 + .../lib/model/data-asset-summary-from-atp.ts | 54 + .../data-asset-summary-from-object-storage.ts | 57 + .../model/data-asset-summary-from-oracle.ts | 66 + .../lib/model/data-asset-summary.ts | 106 + lib/dataintegration/lib/model/data-asset.ts | 110 + .../lib/model/data-entity-details.ts | 51 + .../data-entity-from-file-entity-details.ts | 128 + .../lib/model/data-entity-from-file.ts | 129 + .../data-entity-from-table-entity-details.ts | 125 + .../lib/model/data-entity-from-table.ts | 126 + .../data-entity-from-view-entity-details.ts | 125 + .../lib/model/data-entity-from-view.ts | 126 + .../model/data-entity-summary-collection.ts | 42 + .../model/data-entity-summary-from-file.ts | 131 + .../model/data-entity-summary-from-table.ts | 128 + .../model/data-entity-summary-from-view.ts | 128 + .../lib/model/data-entity-summary.ts | 58 + lib/dataintegration/lib/model/data-entity.ts | 58 + .../lib/model/data-flow-details.ts | 96 + .../lib/model/data-flow-summary-collection.ts | 42 + .../lib/model/data-flow-summary.ts | 98 + ...data-flow-validation-summary-collection.ts | 42 + .../lib/model/data-flow-validation-summary.ts | 90 + .../lib/model/data-flow-validation.ts | 90 + lib/dataintegration/lib/model/data-flow.ts | 98 + lib/dataintegration/lib/model/data-format.ts | 55 + lib/dataintegration/lib/model/data-type.ts | 59 + .../dependent-object-summary-collection.ts | 42 + .../lib/model/dependent-object-summary.ts | 73 + .../lib/model/dependent-object.ts | 94 + .../lib/model/derived-field.ts | 46 + lib/dataintegration/lib/model/derived-type.ts | 34 + .../lib/model/direct-field-map.ts | 62 + .../lib/model/direct-named-field-map.ts | 70 + .../lib/model/dynamic-input-field.ts | 48 + .../lib/model/dynamic-proxy-field.ts | 48 + .../lib/model/dynamic-type-handler.ts | 38 + lib/dataintegration/lib/model/dynamic-type.ts | 44 + .../lib/model/entity-shape-from-file.ts | 129 + lib/dataintegration/lib/model/entity-shape.ts | 48 + .../lib/model/error-details.ts | 39 + lib/dataintegration/lib/model/expression.ts | 60 + lib/dataintegration/lib/model/field-map.ts | 58 + lib/dataintegration/lib/model/filter-push.ts | 39 + lib/dataintegration/lib/model/filter.ts | 40 + lib/dataintegration/lib/model/flow-node.ts | 94 + .../lib/model/flow-port-link.ts | 72 + lib/dataintegration/lib/model/flow-port.ts | 34 + .../lib/model/folder-details.ts | 76 + .../lib/model/folder-summary-collection.ts | 42 + .../lib/model/folder-summary.ts | 78 + lib/dataintegration/lib/model/folder.ts | 78 + lib/dataintegration/lib/model/foreign-key.ts | 77 + lib/dataintegration/lib/model/index.ts | 508 ++ lib/dataintegration/lib/model/input-field.ts | 48 + lib/dataintegration/lib/model/input-link.ts | 46 + lib/dataintegration/lib/model/input-port.ts | 61 + lib/dataintegration/lib/model/java-type.ts | 44 + lib/dataintegration/lib/model/join.ts | 56 + lib/dataintegration/lib/model/joiner.ts | 57 + .../lib/model/json-format-attribute.ts | 41 + .../lib/model/key-attribute.ts | 39 + .../lib/model/key-range-partition-config.ts | 44 + lib/dataintegration/lib/model/key-range.ts | 39 + lib/dataintegration/lib/model/key.ts | 40 + lib/dataintegration/lib/model/message.ts | 53 + .../lib/model/name-list-rule.ts | 86 + .../lib/model/name-pattern-rule.ts | 86 + .../lib/model/native-shape-field.ts | 61 + .../lib/model/object-metadata.ts | 73 + lib/dataintegration/lib/model/operator.ts | 116 + .../lib/model/oracle-adwc-write-attribute.ts | 62 + .../lib/model/oracle-atp-write-attribute.ts | 62 + .../lib/model/oracle-read-attribute.ts | 41 + .../lib/model/oracle-write-attribute.ts | 49 + lib/dataintegration/lib/model/output-field.ts | 48 + lib/dataintegration/lib/model/output-link.ts | 39 + lib/dataintegration/lib/model/output-port.ts | 61 + .../lib/model/parameter-value.ts | 37 + lib/dataintegration/lib/model/parameter.ts | 81 + .../lib/model/parent-reference.ts | 33 + .../lib/model/partition-config.ts | 41 + .../lib/model/patch-object-metadata.ts | 80 + .../lib/model/patch-summary-collection.ts | 42 + .../lib/model/patch-summary.ts | 135 + lib/dataintegration/lib/model/patch.ts | 135 + lib/dataintegration/lib/model/primary-key.ts | 61 + .../lib/model/project-details.ts | 71 + .../lib/model/project-summary-collection.ts | 42 + .../lib/model/project-summary.ts | 73 + lib/dataintegration/lib/model/project.ts | 73 + .../lib/model/projection-rule.ts | 81 + lib/dataintegration/lib/model/projection.ts | 34 + lib/dataintegration/lib/model/proxy-field.ts | 52 + .../published-object-from-data-loader-task.ts | 78 + .../published-object-from-integration-task.ts | 78 + .../published-object-summary-collection.ts | 42 + ...ed-object-summary-from-data-loader-task.ts | 80 + ...ed-object-summary-from-integration-task.ts | 80 + .../lib/model/published-object-summary.ts | 84 + .../lib/model/published-object.ts | 81 + .../lib/model/push-down-operation.ts | 46 + lib/dataintegration/lib/model/query.ts | 39 + .../lib/model/read-operation-config.ts | 71 + .../lib/model/registry-metadata.ts | 45 + lib/dataintegration/lib/model/rename-rule.ts | 47 + lib/dataintegration/lib/model/root-object.ts | 51 + .../lib/model/rule-based-field-map.ts | 91 + .../lib/model/rule-type-config.ts | 72 + .../lib/model/schema-summary-collection.ts | 42 + .../lib/model/schema-summary.ts | 82 + lib/dataintegration/lib/model/schema.ts | 82 + lib/dataintegration/lib/model/select.ts | 49 + lib/dataintegration/lib/model/shape-field.ts | 48 + lib/dataintegration/lib/model/shape.ts | 44 + lib/dataintegration/lib/model/sort-clause.ts | 50 + lib/dataintegration/lib/model/sort.ts | 45 + lib/dataintegration/lib/model/source.ts | 55 + .../lib/model/structured-type.ts | 59 + lib/dataintegration/lib/model/target.ts | 74 + .../task-from-data-loader-task-details.ts | 41 + .../task-from-integration-task-details.ts | 41 + .../lib/model/task-run-details.ts | 125 + .../lib/model/task-run-log-summary.ts | 33 + .../lib/model/task-run-summary-collection.ts | 42 + .../lib/model/task-run-summary.ts | 125 + lib/dataintegration/lib/model/task-run.ts | 142 + .../lib/model/task-summary-collection.ts | 42 + .../task-summary-from-data-loader-task.ts | 43 + .../task-summary-from-integration-task.ts | 43 + lib/dataintegration/lib/model/task-summary.ts | 123 + .../task-validation-summary-collection.ts | 42 + .../lib/model/task-validation-summary.ts | 90 + .../lib/model/task-validation.ts | 90 + lib/dataintegration/lib/model/task.ts | 123 + lib/dataintegration/lib/model/type-library.ts | 75 + .../lib/model/type-list-rule.ts | 92 + lib/dataintegration/lib/model/type-system.ts | 85 + .../lib/model/typed-name-pattern-rule.ts | 96 + lib/dataintegration/lib/model/typed-object.ts | 99 + .../lib/model/u-iproperties.ts | 37 + lib/dataintegration/lib/model/unique-key.ts | 64 + .../lib/model/update-application-details.ts | 74 + .../lib/model/update-connection-details.ts | 105 + .../lib/model/update-connection-from-adwc.ts | 45 + .../lib/model/update-connection-from-atp.ts | 45 + .../update-connection-from-object-storage.ts | 56 + .../model/update-connection-from-oracle.ts | 45 + .../lib/model/update-data-asset-details.ts | 101 + .../lib/model/update-data-asset-from-adwc.ts | 54 + .../lib/model/update-data-asset-from-atp.ts | 54 + .../update-data-asset-from-object-storage.ts | 57 + .../model/update-data-asset-from-oracle.ts | 66 + .../lib/model/update-data-flow-details.ts | 96 + .../lib/model/update-folder-details.ts | 76 + .../lib/model/update-project-details.ts | 71 + .../lib/model/update-task-details.ts | 121 + .../update-task-from-data-loader-task.ts | 40 + .../update-task-from-integration-task.ts | 43 + .../lib/model/update-task-run-details.ts | 69 + .../lib/model/update-workspace-details.ts | 49 + .../lib/model/validation-message.ts | 41 + .../lib/model/work-request-error.ts | 42 + .../lib/model/work-request-log-entry.ts | 37 + .../lib/model/work-request-resource.ts | 66 + .../lib/model/work-request-summary.ts | 109 + lib/dataintegration/lib/model/work-request.ts | 109 + .../lib/model/workspace-summary.ts | 94 + lib/dataintegration/lib/model/workspace.ts | 125 + .../lib/model/write-operation-config.ts | 91 + .../lib/request/change-compartment-request.ts | 45 + .../lib/request/create-application-request.ts | 37 + .../lib/request/create-connection-request.ts | 41 + .../create-connection-validation-request.ts | 37 + .../lib/request/create-data-asset-request.ts | 41 + .../lib/request/create-data-flow-request.ts | 37 + .../create-data-flow-validation-request.ts | 37 + .../request/create-entity-shape-request.ts | 53 + .../lib/request/create-folder-request.ts | 37 + .../lib/request/create-patch-request.ts | 41 + .../lib/request/create-project-request.ts | 37 + .../lib/request/create-task-request.ts | 37 + .../lib/request/create-task-run-request.ts | 41 + .../request/create-task-validation-request.ts | 39 + .../lib/request/create-workspace-request.ts | 33 + .../lib/request/delete-application-request.ts | 40 + .../lib/request/delete-connection-request.ts | 40 + .../delete-connection-validation-request.ts | 40 + .../lib/request/delete-data-asset-request.ts | 40 + .../lib/request/delete-data-flow-request.ts | 40 + .../delete-data-flow-validation-request.ts | 40 + .../lib/request/delete-folder-request.ts | 40 + .../lib/request/delete-patch-request.ts | 44 + .../lib/request/delete-project-request.ts | 40 + .../lib/request/delete-task-request.ts | 40 + .../lib/request/delete-task-run-request.ts | 44 + .../request/delete-task-validation-request.ts | 40 + .../lib/request/delete-workspace-request.ts | 44 + .../lib/request/get-application-request.ts | 32 + .../lib/request/get-connection-request.ts | 32 + .../get-connection-validation-request.ts | 32 + .../request/get-count-statistic-request.ts | 32 + .../lib/request/get-data-asset-request.ts | 32 + .../lib/request/get-data-entity-request.ts | 40 + .../lib/request/get-data-flow-request.ts | 32 + .../get-data-flow-validation-request.ts | 32 + .../request/get-dependent-object-request.ts | 36 + .../lib/request/get-folder-request.ts | 32 + .../lib/request/get-patch-request.ts | 36 + .../lib/request/get-project-request.ts | 32 + .../request/get-published-object-request.ts | 40 + .../lib/request/get-schema-request.ts | 36 + .../lib/request/get-task-request.ts | 32 + .../lib/request/get-task-run-request.ts | 36 + .../request/get-task-validation-request.ts | 32 + .../lib/request/get-work-request-request.ts | 28 + .../lib/request/get-workspace-request.ts | 28 + lib/dataintegration/lib/request/index.ts | 171 + .../lib/request/list-applications-request.ts | 70 + .../list-connection-validations-request.ts | 72 + .../lib/request/list-connections-request.ts | 72 + .../lib/request/list-data-assets-request.ts | 68 + .../lib/request/list-data-entities-request.ts | 76 + .../list-data-flow-validations-request.ts | 72 + .../lib/request/list-data-flows-request.ts | 72 + .../request/list-dependent-objects-request.ts | 88 + .../lib/request/list-folders-request.ts | 73 + .../lib/request/list-patches-request.ts | 74 + .../lib/request/list-projects-request.ts | 68 + .../request/list-published-objects-request.ts | 88 + .../lib/request/list-schemas-request.ts | 72 + .../lib/request/list-task-run-logs-request.ts | 64 + .../lib/request/list-task-runs-request.ts | 72 + .../request/list-task-validations-request.ts | 72 + .../lib/request/list-tasks-request.ts | 80 + .../list-work-request-errors-request.ts | 56 + .../request/list-work-request-logs-request.ts | 56 + .../lib/request/list-work-requests-request.ts | 69 + .../lib/request/list-workspaces-request.ts | 76 + .../lib/request/start-workspace-request.ts | 41 + .../lib/request/stop-workspace-request.ts | 49 + .../lib/request/update-application-request.ts | 44 + .../lib/request/update-connection-request.ts | 48 + .../lib/request/update-data-asset-request.ts | 48 + .../lib/request/update-data-flow-request.ts | 44 + .../lib/request/update-folder-request.ts | 44 + .../lib/request/update-project-request.ts | 44 + .../lib/request/update-task-request.ts | 44 + .../lib/request/update-task-run-request.ts | 48 + .../lib/request/update-workspace-request.ts | 40 + .../response/change-compartment-response.ts | 30 + .../response/create-application-response.ts | 33 + .../response/create-connection-response.ts | 33 + .../create-connection-validation-response.ts | 33 + .../response/create-data-asset-response.ts | 33 + .../lib/response/create-data-flow-response.ts | 33 + .../create-data-flow-validation-response.ts | 33 + .../response/create-entity-shape-response.ts | 28 + .../lib/response/create-folder-response.ts | 33 + .../lib/response/create-patch-response.ts | 33 + .../lib/response/create-project-response.ts | 33 + .../lib/response/create-task-response.ts | 33 + .../lib/response/create-task-run-response.ts | 33 + .../create-task-validation-response.ts | 33 + .../lib/response/create-workspace-response.ts | 30 + .../response/delete-application-response.ts | 24 + .../response/delete-connection-response.ts | 24 + .../delete-connection-validation-response.ts | 24 + .../response/delete-data-asset-response.ts | 24 + .../lib/response/delete-data-flow-response.ts | 24 + .../delete-data-flow-validation-response.ts | 24 + .../lib/response/delete-folder-response.ts | 24 + .../lib/response/delete-patch-response.ts | 24 + .../lib/response/delete-project-response.ts | 24 + .../lib/response/delete-task-response.ts | 24 + .../lib/response/delete-task-run-response.ts | 24 + .../delete-task-validation-response.ts | 24 + .../lib/response/delete-workspace-response.ts | 30 + .../lib/response/get-application-response.ts | 33 + .../lib/response/get-connection-response.ts | 33 + .../get-connection-validation-response.ts | 33 + .../response/get-count-statistic-response.ts | 33 + .../lib/response/get-data-asset-response.ts | 33 + .../lib/response/get-data-entity-response.ts | 28 + .../lib/response/get-data-flow-response.ts | 33 + .../get-data-flow-validation-response.ts | 33 + .../response/get-dependent-object-response.ts | 33 + .../lib/response/get-folder-response.ts | 33 + .../lib/response/get-patch-response.ts | 33 + .../lib/response/get-project-response.ts | 33 + .../response/get-published-object-response.ts | 33 + .../lib/response/get-schema-response.ts | 28 + .../lib/response/get-task-response.ts | 33 + .../lib/response/get-task-run-response.ts | 33 + .../response/get-task-validation-response.ts | 33 + .../lib/response/get-work-request-response.ts | 37 + .../lib/response/get-workspace-response.ts | 33 + lib/dataintegration/lib/response/index.ts | 171 + .../response/list-applications-response.ts | 43 + .../list-connection-validations-response.ts | 43 + .../lib/response/list-connections-response.ts | 43 + .../lib/response/list-data-assets-response.ts | 43 + .../response/list-data-entities-response.ts | 43 + .../list-data-flow-validations-response.ts | 43 + .../lib/response/list-data-flows-response.ts | 43 + .../list-dependent-objects-response.ts | 43 + .../lib/response/list-folders-response.ts | 43 + .../lib/response/list-patches-response.ts | 43 + .../lib/response/list-projects-response.ts | 43 + .../list-published-objects-response.ts | 43 + .../lib/response/list-schemas-response.ts | 43 + .../response/list-task-run-logs-response.ts | 43 + .../lib/response/list-task-runs-response.ts | 43 + .../list-task-validations-response.ts | 43 + .../lib/response/list-tasks-response.ts | 43 + .../list-work-request-errors-response.ts | 33 + .../list-work-request-logs-response.ts | 33 + .../response/list-work-requests-response.ts | 33 + .../lib/response/list-workspaces-response.ts | 33 + .../lib/response/start-workspace-response.ts | 30 + .../lib/response/stop-workspace-response.ts | 30 + .../response/update-application-response.ts | 33 + .../response/update-connection-response.ts | 33 + .../response/update-data-asset-response.ts | 33 + .../lib/response/update-data-flow-response.ts | 33 + .../lib/response/update-folder-response.ts | 33 + .../lib/response/update-project-response.ts | 33 + .../lib/response/update-task-response.ts | 33 + .../lib/response/update-task-run-response.ts | 33 + .../lib/response/update-workspace-response.ts | 39 + lib/dataintegration/package.json | 28 + lib/dataintegration/tsconfig.json | 12 + lib/datasafe/package.json | 2 +- lib/datascience/package.json | 2 +- lib/dns/package.json | 2 +- lib/dts/package.json | 2 +- lib/email/package.json | 2 +- lib/events/package.json | 2 +- lib/filestorage/package.json | 2 +- lib/functions/package.json | 2 +- lib/healthchecks/package.json | 2 +- lib/identity/package.json | 2 +- lib/integration/package.json | 2 +- lib/keymanagement/package.json | 2 +- lib/limits/package.json | 2 +- lib/loadbalancer/package.json | 2 +- lib/marketplace/package.json | 2 +- lib/monitoring/package.json | 2 +- lib/mysql/package.json | 2 +- lib/nosql/package.json | 2 +- lib/objectstorage/package.json | 2 +- lib/oce/package.json | 2 +- lib/oda/package.json | 2 +- lib/ons/package.json | 2 +- lib/osmanagement/package.json | 2 +- lib/resourcemanager/package.json | 2 +- lib/resourcesearch/package.json | 2 +- lib/secrets/package.json | 2 +- lib/streaming/package.json | 2 +- lib/vault/package.json | 2 +- lib/waas/package.json | 2 +- lib/workrequests/package.json | 2 +- package.json | 12 +- 627 files changed, 33115 insertions(+), 229 deletions(-) create mode 100644 lib/common/tests/resources/fake-rsa.pem create mode 100644 lib/common/tests/resources/unit-test-environment-config create mode 100644 lib/database/lib/model/automated-mount-details.ts create mode 100644 lib/database/lib/model/autonomous-vm-cluster-summary.ts create mode 100644 lib/database/lib/model/autonomous-vm-cluster.ts create mode 100644 lib/database/lib/model/change-autonomous-vm-cluster-compartment-details.ts create mode 100644 lib/database/lib/model/create-autonomous-vm-cluster-details.ts create mode 100644 lib/database/lib/model/mount-type-details.ts create mode 100644 lib/database/lib/model/self-mount-details.ts create mode 100644 lib/database/lib/model/update-autonomous-vm-cluster-details.ts create mode 100644 lib/database/lib/request/change-autonomous-vm-cluster-compartment-request.ts create mode 100644 lib/database/lib/request/create-autonomous-vm-cluster-request.ts create mode 100644 lib/database/lib/request/delete-autonomous-vm-cluster-request.ts create mode 100644 lib/database/lib/request/get-autonomous-vm-cluster-request.ts create mode 100644 lib/database/lib/request/list-autonomous-vm-clusters-request.ts create mode 100644 lib/database/lib/request/update-autonomous-vm-cluster-request.ts create mode 100644 lib/database/lib/response/change-autonomous-vm-cluster-compartment-response.ts create mode 100644 lib/database/lib/response/create-autonomous-vm-cluster-response.ts create mode 100644 lib/database/lib/response/delete-autonomous-vm-cluster-response.ts create mode 100644 lib/database/lib/response/get-autonomous-vm-cluster-response.ts create mode 100644 lib/database/lib/response/list-autonomous-vm-clusters-response.ts create mode 100644 lib/database/lib/response/update-autonomous-vm-cluster-response.ts create mode 100644 lib/datacatalog/lib/model/attach-catalog-private-endpoint-details.ts create mode 100644 lib/datacatalog/lib/model/catalog-private-endpoint-summary.ts create mode 100644 lib/datacatalog/lib/model/catalog-private-endpoint.ts create mode 100644 lib/datacatalog/lib/model/change-catalog-private-endpoint-compartment-details.ts create mode 100644 lib/datacatalog/lib/model/create-catalog-private-endpoint-details.ts create mode 100644 lib/datacatalog/lib/model/detach-catalog-private-endpoint-details.ts create mode 100644 lib/datacatalog/lib/model/update-catalog-private-endpoint-details.ts create mode 100644 lib/datacatalog/lib/request/attach-catalog-private-endpoint-request.ts create mode 100644 lib/datacatalog/lib/request/change-catalog-private-endpoint-compartment-request.ts create mode 100644 lib/datacatalog/lib/request/create-catalog-private-endpoint-request.ts create mode 100644 lib/datacatalog/lib/request/delete-catalog-private-endpoint-request.ts create mode 100644 lib/datacatalog/lib/request/detach-catalog-private-endpoint-request.ts create mode 100644 lib/datacatalog/lib/request/get-catalog-private-endpoint-request.ts create mode 100644 lib/datacatalog/lib/request/list-catalog-private-endpoints-request.ts create mode 100644 lib/datacatalog/lib/request/update-catalog-private-endpoint-request.ts create mode 100644 lib/datacatalog/lib/response/attach-catalog-private-endpoint-response.ts create mode 100644 lib/datacatalog/lib/response/change-catalog-private-endpoint-compartment-response.ts create mode 100644 lib/datacatalog/lib/response/create-catalog-private-endpoint-response.ts create mode 100644 lib/datacatalog/lib/response/delete-catalog-private-endpoint-response.ts create mode 100644 lib/datacatalog/lib/response/detach-catalog-private-endpoint-response.ts create mode 100644 lib/datacatalog/lib/response/get-catalog-private-endpoint-response.ts create mode 100644 lib/datacatalog/lib/response/list-catalog-private-endpoints-response.ts create mode 100644 lib/datacatalog/lib/response/update-catalog-private-endpoint-response.ts create mode 100644 lib/dataintegration/README.md create mode 100644 lib/dataintegration/index.ts create mode 100644 lib/dataintegration/lib/client.ts create mode 100644 lib/dataintegration/lib/dataintegration-waiter.ts create mode 100644 lib/dataintegration/lib/model/abstract-data-operation-config.ts create mode 100644 lib/dataintegration/lib/model/abstract-field.ts create mode 100644 lib/dataintegration/lib/model/abstract-format-attribute.ts create mode 100644 lib/dataintegration/lib/model/abstract-read-attribute.ts create mode 100644 lib/dataintegration/lib/model/abstract-write-attribute.ts create mode 100644 lib/dataintegration/lib/model/aggregator.ts create mode 100644 lib/dataintegration/lib/model/application-details.ts create mode 100644 lib/dataintegration/lib/model/application-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/application-summary.ts create mode 100644 lib/dataintegration/lib/model/application.ts create mode 100644 lib/dataintegration/lib/model/base-type.ts create mode 100644 lib/dataintegration/lib/model/change-compartment-details.ts create mode 100644 lib/dataintegration/lib/model/composite-field-map.ts create mode 100644 lib/dataintegration/lib/model/composite-type.ts create mode 100644 lib/dataintegration/lib/model/conditional-input-link.ts create mode 100644 lib/dataintegration/lib/model/config-definition.ts create mode 100644 lib/dataintegration/lib/model/config-parameter-definition.ts create mode 100644 lib/dataintegration/lib/model/config-parameter-value.ts create mode 100644 lib/dataintegration/lib/model/config-provider.ts create mode 100644 lib/dataintegration/lib/model/config-values.ts create mode 100644 lib/dataintegration/lib/model/configured-type.ts create mode 100644 lib/dataintegration/lib/model/connection-details.ts create mode 100644 lib/dataintegration/lib/model/connection-from-adwc-details.ts create mode 100644 lib/dataintegration/lib/model/connection-from-adwc.ts create mode 100644 lib/dataintegration/lib/model/connection-from-atp-details.ts create mode 100644 lib/dataintegration/lib/model/connection-from-atp.ts create mode 100644 lib/dataintegration/lib/model/connection-from-object-storage-details.ts create mode 100644 lib/dataintegration/lib/model/connection-from-object-storage.ts create mode 100644 lib/dataintegration/lib/model/connection-from-oracle-details.ts create mode 100644 lib/dataintegration/lib/model/connection-from-oracle.ts create mode 100644 lib/dataintegration/lib/model/connection-property.ts create mode 100644 lib/dataintegration/lib/model/connection-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/connection-summary-from-adwc.ts create mode 100644 lib/dataintegration/lib/model/connection-summary-from-atp.ts create mode 100644 lib/dataintegration/lib/model/connection-summary-from-object-storage.ts create mode 100644 lib/dataintegration/lib/model/connection-summary-from-oracle.ts create mode 100644 lib/dataintegration/lib/model/connection-summary.ts create mode 100644 lib/dataintegration/lib/model/connection-validation-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/connection-validation-summary.ts create mode 100644 lib/dataintegration/lib/model/connection-validation.ts create mode 100644 lib/dataintegration/lib/model/connection.ts create mode 100644 lib/dataintegration/lib/model/count-statistic-summary.ts create mode 100644 lib/dataintegration/lib/model/count-statistic.ts create mode 100644 lib/dataintegration/lib/model/create-application-details.ts create mode 100644 lib/dataintegration/lib/model/create-config-provider.ts create mode 100644 lib/dataintegration/lib/model/create-connection-details.ts create mode 100644 lib/dataintegration/lib/model/create-connection-from-adwc.ts create mode 100644 lib/dataintegration/lib/model/create-connection-from-atp.ts create mode 100644 lib/dataintegration/lib/model/create-connection-from-object-storage.ts create mode 100644 lib/dataintegration/lib/model/create-connection-from-oracle.ts create mode 100644 lib/dataintegration/lib/model/create-connection-validation-details.ts create mode 100644 lib/dataintegration/lib/model/create-data-asset-details.ts create mode 100644 lib/dataintegration/lib/model/create-data-asset-from-adwc.ts create mode 100644 lib/dataintegration/lib/model/create-data-asset-from-atp.ts create mode 100644 lib/dataintegration/lib/model/create-data-asset-from-object-storage.ts create mode 100644 lib/dataintegration/lib/model/create-data-asset-from-oracle.ts create mode 100644 lib/dataintegration/lib/model/create-data-flow-details.ts create mode 100644 lib/dataintegration/lib/model/create-data-flow-validation-details.ts create mode 100644 lib/dataintegration/lib/model/create-entity-shape-details.ts create mode 100644 lib/dataintegration/lib/model/create-entity-shape-from-file.ts create mode 100644 lib/dataintegration/lib/model/create-folder-details.ts create mode 100644 lib/dataintegration/lib/model/create-patch-details.ts create mode 100644 lib/dataintegration/lib/model/create-project-details.ts create mode 100644 lib/dataintegration/lib/model/create-task-details.ts create mode 100644 lib/dataintegration/lib/model/create-task-from-data-loader-task.ts create mode 100644 lib/dataintegration/lib/model/create-task-from-integration-task.ts create mode 100644 lib/dataintegration/lib/model/create-task-run-details.ts create mode 100644 lib/dataintegration/lib/model/create-task-validation-details.ts create mode 100644 lib/dataintegration/lib/model/create-task-validation-from-data-loader-task.ts create mode 100644 lib/dataintegration/lib/model/create-task-validation-from-integration-task.ts create mode 100644 lib/dataintegration/lib/model/create-workspace-details.ts create mode 100644 lib/dataintegration/lib/model/csv-format-attribute.ts create mode 100644 lib/dataintegration/lib/model/data-asset-from-adwc-details.ts create mode 100644 lib/dataintegration/lib/model/data-asset-from-atp-details.ts create mode 100644 lib/dataintegration/lib/model/data-asset-from-object-storage-details.ts create mode 100644 lib/dataintegration/lib/model/data-asset-from-oracle-details.ts create mode 100644 lib/dataintegration/lib/model/data-asset-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/data-asset-summary-from-adwc.ts create mode 100644 lib/dataintegration/lib/model/data-asset-summary-from-atp.ts create mode 100644 lib/dataintegration/lib/model/data-asset-summary-from-object-storage.ts create mode 100644 lib/dataintegration/lib/model/data-asset-summary-from-oracle.ts create mode 100644 lib/dataintegration/lib/model/data-asset-summary.ts create mode 100644 lib/dataintegration/lib/model/data-asset.ts create mode 100644 lib/dataintegration/lib/model/data-entity-details.ts create mode 100644 lib/dataintegration/lib/model/data-entity-from-file-entity-details.ts create mode 100644 lib/dataintegration/lib/model/data-entity-from-file.ts create mode 100644 lib/dataintegration/lib/model/data-entity-from-table-entity-details.ts create mode 100644 lib/dataintegration/lib/model/data-entity-from-table.ts create mode 100644 lib/dataintegration/lib/model/data-entity-from-view-entity-details.ts create mode 100644 lib/dataintegration/lib/model/data-entity-from-view.ts create mode 100644 lib/dataintegration/lib/model/data-entity-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/data-entity-summary-from-file.ts create mode 100644 lib/dataintegration/lib/model/data-entity-summary-from-table.ts create mode 100644 lib/dataintegration/lib/model/data-entity-summary-from-view.ts create mode 100644 lib/dataintegration/lib/model/data-entity-summary.ts create mode 100644 lib/dataintegration/lib/model/data-entity.ts create mode 100644 lib/dataintegration/lib/model/data-flow-details.ts create mode 100644 lib/dataintegration/lib/model/data-flow-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/data-flow-summary.ts create mode 100644 lib/dataintegration/lib/model/data-flow-validation-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/data-flow-validation-summary.ts create mode 100644 lib/dataintegration/lib/model/data-flow-validation.ts create mode 100644 lib/dataintegration/lib/model/data-flow.ts create mode 100644 lib/dataintegration/lib/model/data-format.ts create mode 100644 lib/dataintegration/lib/model/data-type.ts create mode 100644 lib/dataintegration/lib/model/dependent-object-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/dependent-object-summary.ts create mode 100644 lib/dataintegration/lib/model/dependent-object.ts create mode 100644 lib/dataintegration/lib/model/derived-field.ts create mode 100644 lib/dataintegration/lib/model/derived-type.ts create mode 100644 lib/dataintegration/lib/model/direct-field-map.ts create mode 100644 lib/dataintegration/lib/model/direct-named-field-map.ts create mode 100644 lib/dataintegration/lib/model/dynamic-input-field.ts create mode 100644 lib/dataintegration/lib/model/dynamic-proxy-field.ts create mode 100644 lib/dataintegration/lib/model/dynamic-type-handler.ts create mode 100644 lib/dataintegration/lib/model/dynamic-type.ts create mode 100644 lib/dataintegration/lib/model/entity-shape-from-file.ts create mode 100644 lib/dataintegration/lib/model/entity-shape.ts create mode 100644 lib/dataintegration/lib/model/error-details.ts create mode 100644 lib/dataintegration/lib/model/expression.ts create mode 100644 lib/dataintegration/lib/model/field-map.ts create mode 100644 lib/dataintegration/lib/model/filter-push.ts create mode 100644 lib/dataintegration/lib/model/filter.ts create mode 100644 lib/dataintegration/lib/model/flow-node.ts create mode 100644 lib/dataintegration/lib/model/flow-port-link.ts create mode 100644 lib/dataintegration/lib/model/flow-port.ts create mode 100644 lib/dataintegration/lib/model/folder-details.ts create mode 100644 lib/dataintegration/lib/model/folder-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/folder-summary.ts create mode 100644 lib/dataintegration/lib/model/folder.ts create mode 100644 lib/dataintegration/lib/model/foreign-key.ts create mode 100644 lib/dataintegration/lib/model/index.ts create mode 100644 lib/dataintegration/lib/model/input-field.ts create mode 100644 lib/dataintegration/lib/model/input-link.ts create mode 100644 lib/dataintegration/lib/model/input-port.ts create mode 100644 lib/dataintegration/lib/model/java-type.ts create mode 100644 lib/dataintegration/lib/model/join.ts create mode 100644 lib/dataintegration/lib/model/joiner.ts create mode 100644 lib/dataintegration/lib/model/json-format-attribute.ts create mode 100644 lib/dataintegration/lib/model/key-attribute.ts create mode 100644 lib/dataintegration/lib/model/key-range-partition-config.ts create mode 100644 lib/dataintegration/lib/model/key-range.ts create mode 100644 lib/dataintegration/lib/model/key.ts create mode 100644 lib/dataintegration/lib/model/message.ts create mode 100644 lib/dataintegration/lib/model/name-list-rule.ts create mode 100644 lib/dataintegration/lib/model/name-pattern-rule.ts create mode 100644 lib/dataintegration/lib/model/native-shape-field.ts create mode 100644 lib/dataintegration/lib/model/object-metadata.ts create mode 100644 lib/dataintegration/lib/model/operator.ts create mode 100644 lib/dataintegration/lib/model/oracle-adwc-write-attribute.ts create mode 100644 lib/dataintegration/lib/model/oracle-atp-write-attribute.ts create mode 100644 lib/dataintegration/lib/model/oracle-read-attribute.ts create mode 100644 lib/dataintegration/lib/model/oracle-write-attribute.ts create mode 100644 lib/dataintegration/lib/model/output-field.ts create mode 100644 lib/dataintegration/lib/model/output-link.ts create mode 100644 lib/dataintegration/lib/model/output-port.ts create mode 100644 lib/dataintegration/lib/model/parameter-value.ts create mode 100644 lib/dataintegration/lib/model/parameter.ts create mode 100644 lib/dataintegration/lib/model/parent-reference.ts create mode 100644 lib/dataintegration/lib/model/partition-config.ts create mode 100644 lib/dataintegration/lib/model/patch-object-metadata.ts create mode 100644 lib/dataintegration/lib/model/patch-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/patch-summary.ts create mode 100644 lib/dataintegration/lib/model/patch.ts create mode 100644 lib/dataintegration/lib/model/primary-key.ts create mode 100644 lib/dataintegration/lib/model/project-details.ts create mode 100644 lib/dataintegration/lib/model/project-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/project-summary.ts create mode 100644 lib/dataintegration/lib/model/project.ts create mode 100644 lib/dataintegration/lib/model/projection-rule.ts create mode 100644 lib/dataintegration/lib/model/projection.ts create mode 100644 lib/dataintegration/lib/model/proxy-field.ts create mode 100644 lib/dataintegration/lib/model/published-object-from-data-loader-task.ts create mode 100644 lib/dataintegration/lib/model/published-object-from-integration-task.ts create mode 100644 lib/dataintegration/lib/model/published-object-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/published-object-summary-from-data-loader-task.ts create mode 100644 lib/dataintegration/lib/model/published-object-summary-from-integration-task.ts create mode 100644 lib/dataintegration/lib/model/published-object-summary.ts create mode 100644 lib/dataintegration/lib/model/published-object.ts create mode 100644 lib/dataintegration/lib/model/push-down-operation.ts create mode 100644 lib/dataintegration/lib/model/query.ts create mode 100644 lib/dataintegration/lib/model/read-operation-config.ts create mode 100644 lib/dataintegration/lib/model/registry-metadata.ts create mode 100644 lib/dataintegration/lib/model/rename-rule.ts create mode 100644 lib/dataintegration/lib/model/root-object.ts create mode 100644 lib/dataintegration/lib/model/rule-based-field-map.ts create mode 100644 lib/dataintegration/lib/model/rule-type-config.ts create mode 100644 lib/dataintegration/lib/model/schema-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/schema-summary.ts create mode 100644 lib/dataintegration/lib/model/schema.ts create mode 100644 lib/dataintegration/lib/model/select.ts create mode 100644 lib/dataintegration/lib/model/shape-field.ts create mode 100644 lib/dataintegration/lib/model/shape.ts create mode 100644 lib/dataintegration/lib/model/sort-clause.ts create mode 100644 lib/dataintegration/lib/model/sort.ts create mode 100644 lib/dataintegration/lib/model/source.ts create mode 100644 lib/dataintegration/lib/model/structured-type.ts create mode 100644 lib/dataintegration/lib/model/target.ts create mode 100644 lib/dataintegration/lib/model/task-from-data-loader-task-details.ts create mode 100644 lib/dataintegration/lib/model/task-from-integration-task-details.ts create mode 100644 lib/dataintegration/lib/model/task-run-details.ts create mode 100644 lib/dataintegration/lib/model/task-run-log-summary.ts create mode 100644 lib/dataintegration/lib/model/task-run-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/task-run-summary.ts create mode 100644 lib/dataintegration/lib/model/task-run.ts create mode 100644 lib/dataintegration/lib/model/task-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/task-summary-from-data-loader-task.ts create mode 100644 lib/dataintegration/lib/model/task-summary-from-integration-task.ts create mode 100644 lib/dataintegration/lib/model/task-summary.ts create mode 100644 lib/dataintegration/lib/model/task-validation-summary-collection.ts create mode 100644 lib/dataintegration/lib/model/task-validation-summary.ts create mode 100644 lib/dataintegration/lib/model/task-validation.ts create mode 100644 lib/dataintegration/lib/model/task.ts create mode 100644 lib/dataintegration/lib/model/type-library.ts create mode 100644 lib/dataintegration/lib/model/type-list-rule.ts create mode 100644 lib/dataintegration/lib/model/type-system.ts create mode 100644 lib/dataintegration/lib/model/typed-name-pattern-rule.ts create mode 100644 lib/dataintegration/lib/model/typed-object.ts create mode 100644 lib/dataintegration/lib/model/u-iproperties.ts create mode 100644 lib/dataintegration/lib/model/unique-key.ts create mode 100644 lib/dataintegration/lib/model/update-application-details.ts create mode 100644 lib/dataintegration/lib/model/update-connection-details.ts create mode 100644 lib/dataintegration/lib/model/update-connection-from-adwc.ts create mode 100644 lib/dataintegration/lib/model/update-connection-from-atp.ts create mode 100644 lib/dataintegration/lib/model/update-connection-from-object-storage.ts create mode 100644 lib/dataintegration/lib/model/update-connection-from-oracle.ts create mode 100644 lib/dataintegration/lib/model/update-data-asset-details.ts create mode 100644 lib/dataintegration/lib/model/update-data-asset-from-adwc.ts create mode 100644 lib/dataintegration/lib/model/update-data-asset-from-atp.ts create mode 100644 lib/dataintegration/lib/model/update-data-asset-from-object-storage.ts create mode 100644 lib/dataintegration/lib/model/update-data-asset-from-oracle.ts create mode 100644 lib/dataintegration/lib/model/update-data-flow-details.ts create mode 100644 lib/dataintegration/lib/model/update-folder-details.ts create mode 100644 lib/dataintegration/lib/model/update-project-details.ts create mode 100644 lib/dataintegration/lib/model/update-task-details.ts create mode 100644 lib/dataintegration/lib/model/update-task-from-data-loader-task.ts create mode 100644 lib/dataintegration/lib/model/update-task-from-integration-task.ts create mode 100644 lib/dataintegration/lib/model/update-task-run-details.ts create mode 100644 lib/dataintegration/lib/model/update-workspace-details.ts create mode 100644 lib/dataintegration/lib/model/validation-message.ts create mode 100644 lib/dataintegration/lib/model/work-request-error.ts create mode 100644 lib/dataintegration/lib/model/work-request-log-entry.ts create mode 100644 lib/dataintegration/lib/model/work-request-resource.ts create mode 100644 lib/dataintegration/lib/model/work-request-summary.ts create mode 100644 lib/dataintegration/lib/model/work-request.ts create mode 100644 lib/dataintegration/lib/model/workspace-summary.ts create mode 100644 lib/dataintegration/lib/model/workspace.ts create mode 100644 lib/dataintegration/lib/model/write-operation-config.ts create mode 100644 lib/dataintegration/lib/request/change-compartment-request.ts create mode 100644 lib/dataintegration/lib/request/create-application-request.ts create mode 100644 lib/dataintegration/lib/request/create-connection-request.ts create mode 100644 lib/dataintegration/lib/request/create-connection-validation-request.ts create mode 100644 lib/dataintegration/lib/request/create-data-asset-request.ts create mode 100644 lib/dataintegration/lib/request/create-data-flow-request.ts create mode 100644 lib/dataintegration/lib/request/create-data-flow-validation-request.ts create mode 100644 lib/dataintegration/lib/request/create-entity-shape-request.ts create mode 100644 lib/dataintegration/lib/request/create-folder-request.ts create mode 100644 lib/dataintegration/lib/request/create-patch-request.ts create mode 100644 lib/dataintegration/lib/request/create-project-request.ts create mode 100644 lib/dataintegration/lib/request/create-task-request.ts create mode 100644 lib/dataintegration/lib/request/create-task-run-request.ts create mode 100644 lib/dataintegration/lib/request/create-task-validation-request.ts create mode 100644 lib/dataintegration/lib/request/create-workspace-request.ts create mode 100644 lib/dataintegration/lib/request/delete-application-request.ts create mode 100644 lib/dataintegration/lib/request/delete-connection-request.ts create mode 100644 lib/dataintegration/lib/request/delete-connection-validation-request.ts create mode 100644 lib/dataintegration/lib/request/delete-data-asset-request.ts create mode 100644 lib/dataintegration/lib/request/delete-data-flow-request.ts create mode 100644 lib/dataintegration/lib/request/delete-data-flow-validation-request.ts create mode 100644 lib/dataintegration/lib/request/delete-folder-request.ts create mode 100644 lib/dataintegration/lib/request/delete-patch-request.ts create mode 100644 lib/dataintegration/lib/request/delete-project-request.ts create mode 100644 lib/dataintegration/lib/request/delete-task-request.ts create mode 100644 lib/dataintegration/lib/request/delete-task-run-request.ts create mode 100644 lib/dataintegration/lib/request/delete-task-validation-request.ts create mode 100644 lib/dataintegration/lib/request/delete-workspace-request.ts create mode 100644 lib/dataintegration/lib/request/get-application-request.ts create mode 100644 lib/dataintegration/lib/request/get-connection-request.ts create mode 100644 lib/dataintegration/lib/request/get-connection-validation-request.ts create mode 100644 lib/dataintegration/lib/request/get-count-statistic-request.ts create mode 100644 lib/dataintegration/lib/request/get-data-asset-request.ts create mode 100644 lib/dataintegration/lib/request/get-data-entity-request.ts create mode 100644 lib/dataintegration/lib/request/get-data-flow-request.ts create mode 100644 lib/dataintegration/lib/request/get-data-flow-validation-request.ts create mode 100644 lib/dataintegration/lib/request/get-dependent-object-request.ts create mode 100644 lib/dataintegration/lib/request/get-folder-request.ts create mode 100644 lib/dataintegration/lib/request/get-patch-request.ts create mode 100644 lib/dataintegration/lib/request/get-project-request.ts create mode 100644 lib/dataintegration/lib/request/get-published-object-request.ts create mode 100644 lib/dataintegration/lib/request/get-schema-request.ts create mode 100644 lib/dataintegration/lib/request/get-task-request.ts create mode 100644 lib/dataintegration/lib/request/get-task-run-request.ts create mode 100644 lib/dataintegration/lib/request/get-task-validation-request.ts create mode 100644 lib/dataintegration/lib/request/get-work-request-request.ts create mode 100644 lib/dataintegration/lib/request/get-workspace-request.ts create mode 100644 lib/dataintegration/lib/request/index.ts create mode 100644 lib/dataintegration/lib/request/list-applications-request.ts create mode 100644 lib/dataintegration/lib/request/list-connection-validations-request.ts create mode 100644 lib/dataintegration/lib/request/list-connections-request.ts create mode 100644 lib/dataintegration/lib/request/list-data-assets-request.ts create mode 100644 lib/dataintegration/lib/request/list-data-entities-request.ts create mode 100644 lib/dataintegration/lib/request/list-data-flow-validations-request.ts create mode 100644 lib/dataintegration/lib/request/list-data-flows-request.ts create mode 100644 lib/dataintegration/lib/request/list-dependent-objects-request.ts create mode 100644 lib/dataintegration/lib/request/list-folders-request.ts create mode 100644 lib/dataintegration/lib/request/list-patches-request.ts create mode 100644 lib/dataintegration/lib/request/list-projects-request.ts create mode 100644 lib/dataintegration/lib/request/list-published-objects-request.ts create mode 100644 lib/dataintegration/lib/request/list-schemas-request.ts create mode 100644 lib/dataintegration/lib/request/list-task-run-logs-request.ts create mode 100644 lib/dataintegration/lib/request/list-task-runs-request.ts create mode 100644 lib/dataintegration/lib/request/list-task-validations-request.ts create mode 100644 lib/dataintegration/lib/request/list-tasks-request.ts create mode 100644 lib/dataintegration/lib/request/list-work-request-errors-request.ts create mode 100644 lib/dataintegration/lib/request/list-work-request-logs-request.ts create mode 100644 lib/dataintegration/lib/request/list-work-requests-request.ts create mode 100644 lib/dataintegration/lib/request/list-workspaces-request.ts create mode 100644 lib/dataintegration/lib/request/start-workspace-request.ts create mode 100644 lib/dataintegration/lib/request/stop-workspace-request.ts create mode 100644 lib/dataintegration/lib/request/update-application-request.ts create mode 100644 lib/dataintegration/lib/request/update-connection-request.ts create mode 100644 lib/dataintegration/lib/request/update-data-asset-request.ts create mode 100644 lib/dataintegration/lib/request/update-data-flow-request.ts create mode 100644 lib/dataintegration/lib/request/update-folder-request.ts create mode 100644 lib/dataintegration/lib/request/update-project-request.ts create mode 100644 lib/dataintegration/lib/request/update-task-request.ts create mode 100644 lib/dataintegration/lib/request/update-task-run-request.ts create mode 100644 lib/dataintegration/lib/request/update-workspace-request.ts create mode 100644 lib/dataintegration/lib/response/change-compartment-response.ts create mode 100644 lib/dataintegration/lib/response/create-application-response.ts create mode 100644 lib/dataintegration/lib/response/create-connection-response.ts create mode 100644 lib/dataintegration/lib/response/create-connection-validation-response.ts create mode 100644 lib/dataintegration/lib/response/create-data-asset-response.ts create mode 100644 lib/dataintegration/lib/response/create-data-flow-response.ts create mode 100644 lib/dataintegration/lib/response/create-data-flow-validation-response.ts create mode 100644 lib/dataintegration/lib/response/create-entity-shape-response.ts create mode 100644 lib/dataintegration/lib/response/create-folder-response.ts create mode 100644 lib/dataintegration/lib/response/create-patch-response.ts create mode 100644 lib/dataintegration/lib/response/create-project-response.ts create mode 100644 lib/dataintegration/lib/response/create-task-response.ts create mode 100644 lib/dataintegration/lib/response/create-task-run-response.ts create mode 100644 lib/dataintegration/lib/response/create-task-validation-response.ts create mode 100644 lib/dataintegration/lib/response/create-workspace-response.ts create mode 100644 lib/dataintegration/lib/response/delete-application-response.ts create mode 100644 lib/dataintegration/lib/response/delete-connection-response.ts create mode 100644 lib/dataintegration/lib/response/delete-connection-validation-response.ts create mode 100644 lib/dataintegration/lib/response/delete-data-asset-response.ts create mode 100644 lib/dataintegration/lib/response/delete-data-flow-response.ts create mode 100644 lib/dataintegration/lib/response/delete-data-flow-validation-response.ts create mode 100644 lib/dataintegration/lib/response/delete-folder-response.ts create mode 100644 lib/dataintegration/lib/response/delete-patch-response.ts create mode 100644 lib/dataintegration/lib/response/delete-project-response.ts create mode 100644 lib/dataintegration/lib/response/delete-task-response.ts create mode 100644 lib/dataintegration/lib/response/delete-task-run-response.ts create mode 100644 lib/dataintegration/lib/response/delete-task-validation-response.ts create mode 100644 lib/dataintegration/lib/response/delete-workspace-response.ts create mode 100644 lib/dataintegration/lib/response/get-application-response.ts create mode 100644 lib/dataintegration/lib/response/get-connection-response.ts create mode 100644 lib/dataintegration/lib/response/get-connection-validation-response.ts create mode 100644 lib/dataintegration/lib/response/get-count-statistic-response.ts create mode 100644 lib/dataintegration/lib/response/get-data-asset-response.ts create mode 100644 lib/dataintegration/lib/response/get-data-entity-response.ts create mode 100644 lib/dataintegration/lib/response/get-data-flow-response.ts create mode 100644 lib/dataintegration/lib/response/get-data-flow-validation-response.ts create mode 100644 lib/dataintegration/lib/response/get-dependent-object-response.ts create mode 100644 lib/dataintegration/lib/response/get-folder-response.ts create mode 100644 lib/dataintegration/lib/response/get-patch-response.ts create mode 100644 lib/dataintegration/lib/response/get-project-response.ts create mode 100644 lib/dataintegration/lib/response/get-published-object-response.ts create mode 100644 lib/dataintegration/lib/response/get-schema-response.ts create mode 100644 lib/dataintegration/lib/response/get-task-response.ts create mode 100644 lib/dataintegration/lib/response/get-task-run-response.ts create mode 100644 lib/dataintegration/lib/response/get-task-validation-response.ts create mode 100644 lib/dataintegration/lib/response/get-work-request-response.ts create mode 100644 lib/dataintegration/lib/response/get-workspace-response.ts create mode 100644 lib/dataintegration/lib/response/index.ts create mode 100644 lib/dataintegration/lib/response/list-applications-response.ts create mode 100644 lib/dataintegration/lib/response/list-connection-validations-response.ts create mode 100644 lib/dataintegration/lib/response/list-connections-response.ts create mode 100644 lib/dataintegration/lib/response/list-data-assets-response.ts create mode 100644 lib/dataintegration/lib/response/list-data-entities-response.ts create mode 100644 lib/dataintegration/lib/response/list-data-flow-validations-response.ts create mode 100644 lib/dataintegration/lib/response/list-data-flows-response.ts create mode 100644 lib/dataintegration/lib/response/list-dependent-objects-response.ts create mode 100644 lib/dataintegration/lib/response/list-folders-response.ts create mode 100644 lib/dataintegration/lib/response/list-patches-response.ts create mode 100644 lib/dataintegration/lib/response/list-projects-response.ts create mode 100644 lib/dataintegration/lib/response/list-published-objects-response.ts create mode 100644 lib/dataintegration/lib/response/list-schemas-response.ts create mode 100644 lib/dataintegration/lib/response/list-task-run-logs-response.ts create mode 100644 lib/dataintegration/lib/response/list-task-runs-response.ts create mode 100644 lib/dataintegration/lib/response/list-task-validations-response.ts create mode 100644 lib/dataintegration/lib/response/list-tasks-response.ts create mode 100644 lib/dataintegration/lib/response/list-work-request-errors-response.ts create mode 100644 lib/dataintegration/lib/response/list-work-request-logs-response.ts create mode 100644 lib/dataintegration/lib/response/list-work-requests-response.ts create mode 100644 lib/dataintegration/lib/response/list-workspaces-response.ts create mode 100644 lib/dataintegration/lib/response/start-workspace-response.ts create mode 100644 lib/dataintegration/lib/response/stop-workspace-response.ts create mode 100644 lib/dataintegration/lib/response/update-application-response.ts create mode 100644 lib/dataintegration/lib/response/update-connection-response.ts create mode 100644 lib/dataintegration/lib/response/update-data-asset-response.ts create mode 100644 lib/dataintegration/lib/response/update-data-flow-response.ts create mode 100644 lib/dataintegration/lib/response/update-folder-response.ts create mode 100644 lib/dataintegration/lib/response/update-project-response.ts create mode 100644 lib/dataintegration/lib/response/update-task-response.ts create mode 100644 lib/dataintegration/lib/response/update-task-run-response.ts create mode 100644 lib/dataintegration/lib/response/update-workspace-response.ts create mode 100644 lib/dataintegration/package.json create mode 100644 lib/dataintegration/tsconfig.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 55238e04e5..d9c795789f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,27 @@ # Change Log - All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). -## 1.1.1 - 2020-06-16 - +## 1.2.0 - 2020-06-23 ### Added +- Support for the Data Integration service +- Support for updating database home IDs on databases in the Database service +- Support for backing up autonomous databases on Cloud at Customer in the Database service +- Support for managing autonomous VM clusters on Cloud at Customer in the Database service +- Support for accessing data assets via private endpoints in the Data Catalog service +- Support for dependency archive zip files to be specified for use by applications in the Data Flow service + +### Breaking +- Attribute LifecycleState in the Data Catalog service has restricted values to LifecycleState ENUMs (CREATING, ACTIVE, INACTIVE, UPDATING, DELETING, DELETED, FAILED, MOVING, UNKNOWN_VALUE) +- Attribute HarvestStatus in the Data Catalog service has restricted values to HarvestStatus ENUMs (COMPLETE, ERROR, IN_PROGRESS, DEFERRED, UNKNOWN_VALUE) +- Attribute TermWorkflowStatus in the Data Catalog service has restricted values to TermWorkflowStatus ENUMs (NEW, APPROVED, UNDER_REVIEW, ESCALATED, UNKNOWN_VALUE) +- Attribute JobType in the Data Catalog service has restricted values to JobType ENUMs (HARVEST, PROFILING, SAMPLING, PREVIEW, IMPORT, EXPORT, INTERNAL, PURGE, IMMEDIATE, SCHEDULED, IMMEDIATE_EXECUTION, SCHEDULED_EXECUTION, SCHEDULED_EXECUTION_INSTANCE, UNKNOWN_VALUE) +- Attribute JobExecutionState in the Data Catalog service has restricted values to JobExecutionState ENUMs (CREATED, IN_PROGRESS, INACTIVE, FAILED, SUCCEEDED, CANCELED, UNKNOWN_VALUE) + +## 1.1.1 - 2020-06-16 +### Added - Support for creating a new database from an existing database based on a given timestamp in the Database service - Support for enabling archive log backups of databases in the Database service - Support for returning the database version on autonomous container databases in the Database service @@ -16,9 +30,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - Support for filtering of list APIs for groups, identity providers, identity provider groups, compartments, dynamic groups, network sources, policies, and users by name or lifecycle state in the Identity Service ## 1.1.0 - 2020-06-09 - ### Added - - Support for returning the database version of backups in the Database service - Support for patching on Exadata Cloud at Customer resources in the Database service - Support for new lifecycle substates on instances in the Digital Assistant service @@ -26,21 +38,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). - Support for deleting non-empty tag namespaces and bulk deleting tags in the Identity service - Support for bulk move and bulk delete of resources by compartment in the Identity service -### Breaking +### Breaking - Parameter LifecycleState removed state OFFLINE and added DISCONNECTED in the Database service ## 1.0.2 - 2020-06-02 - ### Added - - Support for optionally supplying a signature when deleting an agreement in the Marketplace service - Support for launching paid listings in non-US regions in the Marketplace service - Support for returning the image id of packages in the Marketplace service - Support for calling Oracle Cloud Infrastructure services in the ap-chuncheon-1 region ## 1.0.1 - 2020-05-27 - ### Added - - Initial Release diff --git a/examples/javascript/objectstorage.js b/examples/javascript/objectstorage.js index 42e2130d28..fd0bd02aaa 100644 --- a/examples/javascript/objectstorage.js +++ b/examples/javascript/objectstorage.js @@ -13,7 +13,7 @@ const os = require("oci-objectstorage"); const common = require("oci-common"); -const st = require("stream"); +const fs = require("fs"); const configurationFilePath = "~/.oci/config"; const configProfile = "DEFAULT"; @@ -69,21 +69,17 @@ client.region = common.Region.US_PHOENIX_1; console.log("Get bucket executed successfully." + getBucketResponse.bucket); // Create stream to upload - const ObjectData = - "Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data"; - const putObjectStream = new st.Readable(); - putObjectStream._read = function() {}; - putObjectStream.push(ObjectData); - putObjectStream.push(null); // null defines end of the stream + const fileLocation = "/Users/File/location"; + const stats = fs.statSync(fileLocation); + const objectData = fs.createReadStream(fileLocation); console.log("Bucket is created. Now adding object to the Bucket."); const putObjectRequest = { namespaceName: namespace, bucketName: bucket, - putObjectBody: putObjectStream, + putObjectBody: objectData, objectName: object, - contentLength: ObjectData.length, - contentType: "application/octet-stream" + contentLength: stats.size }; const putObjectResponse = await client.putObject(putObjectRequest); console.log("Put Object executed successfully" + putObjectResponse); @@ -97,10 +93,9 @@ client.region = common.Region.US_PHOENIX_1; const getObjectResponse = await client.getObject(getObjectRequest); console.log("Get Object executed successfully."); - console.log( - "Upload stream and downloaded stream are same? ", - await compareStreams(putObjectStream, getObjectResponse.value) - ); + const isSameStream = compareStreams(objectData, getObjectResponse.value); + console.log(`Upload stream and downloaded stream are same? ${isSameStream}`); + console.log("Delete Object"); const deleteObjectRequest = { namespaceName: namespace, @@ -122,17 +117,16 @@ client.region = common.Region.US_PHOENIX_1; } })(); -async function compareStreams(stream1, stream2) { - const dataforStream1 = await streamToString(stream1); - const dataforStream2 = await streamToString(stream2); - return dataforStream1 === dataforStream2; +function compareStreams(stream1, stream2) { + return streamToString(stream1) === streamToString(stream2); } function streamToString(stream) { - const chunks = []; - return new Promise((resolve, reject) => { - stream.on("data", chunk => chunks.push(chunk)); - stream.on("error", reject); - stream.on("end", () => resolve(Buffer.concat(chunks).toString("utf8"))); + let output = ""; + stream.on("data", function(data) { + output += data.toString(); + }); + stream.on("end", function() { + return output; }); } diff --git a/examples/typescript/audit.ts b/examples/typescript/audit.ts index 4a02e6dbf4..4607ec5d45 100644 --- a/examples/typescript/audit.ts +++ b/examples/typescript/audit.ts @@ -9,7 +9,6 @@ */ import * as identity from "oci-identity"; -import { ConfigFileReader } from "oci-common/lib/config-file-reader"; import * as audit from "oci-audit"; import common = require("oci-common"); @@ -20,14 +19,8 @@ const provider: common.ConfigFileAuthenticationDetailsProvider = new common.Conf configurationFilePath, configProfile ); -const config = ConfigFileReader.parseDefault(null); -const profile = config.accumulator.configurationsByProfile.get("DEFAULT"); -let compartmentId = ""; -if (profile) { - compartmentId = profile.get("tenancy") as string; -} else { - compartmentId = ""; -} + +const compartmentId = provider.getTenantId(); let identityClient: identity.IdentityClient; let auditClient: audit.AuditClient; diff --git a/examples/typescript/identity.ts b/examples/typescript/identity.ts index 6d000b30b2..dc6f7417eb 100644 --- a/examples/typescript/identity.ts +++ b/examples/typescript/identity.ts @@ -8,10 +8,6 @@ import * as identity from "oci-identity"; import common = require("oci-common"); -import { ConfigFileReader } from "oci-common/lib/config-file-reader"; - -const config = ConfigFileReader.parseDefault(null); - const configurationFilePath = "~/.oci/config"; const configProfile = "DEFAULT"; diff --git a/examples/typescript/objectstorage.ts b/examples/typescript/objectstorage.ts index c9f043dad7..d1270fc9d0 100644 --- a/examples/typescript/objectstorage.ts +++ b/examples/typescript/objectstorage.ts @@ -14,6 +14,7 @@ import os = require("oci-objectstorage"); import common = require("oci-common"); import st = require("stream"); +import { createReadStream, statSync } from "fs"; const configurationFilePath = "~/.oci/config"; const configProfile = "DEFAULT"; @@ -65,22 +66,18 @@ client.region = common.Region.US_PHOENIX_1; const getBucketResponse = await client.getBucket(getBucketRequest); console.log("Get bucket executed successfully." + getBucketResponse.bucket); - // Create stream to upload - const ObjectData: string = - "Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data, Test Data"; - const putObjectStream = new st.Readable(); - putObjectStream._read = function() {}; - putObjectStream.push(ObjectData); - putObjectStream.push(null); // null defines end of the stream + // Create read stream to file + const fileLocation = "/Users/File/location"; + const stats = statSync(fileLocation); + const objectData = createReadStream(fileLocation); console.log("Bucket is created. Now adding object to the Bucket."); const putObjectRequest: os.requests.PutObjectRequest = { namespaceName: namespace, bucketName: bucket, - putObjectBody: putObjectStream, + putObjectBody: objectData, objectName: object, - contentLength: ObjectData.length, - contentType: "application/octet-stream" + contentLength: stats.size }; const putObjectResponse = await client.putObject(putObjectRequest); console.log("Put Object executed successfully" + putObjectResponse); @@ -94,10 +91,9 @@ client.region = common.Region.US_PHOENIX_1; const getObjectResponse = await client.getObject(getObjectRequest); console.log("Get Object executed successfully."); - console.log( - "Upload stream and downloaded stream are same? ", - await compareStreams(putObjectStream, getObjectResponse.value as st.Readable) - ); + const isSameStream = compareStreams(objectData, getObjectResponse.value as st.Readable); + console.log(`Upload stream and downloaded stream are same? ${isSameStream}`); + console.log("Delete Object"); const deleteObjectRequest: os.requests.DeleteObjectRequest = { namespaceName: namespace, @@ -119,17 +115,16 @@ client.region = common.Region.US_PHOENIX_1; } })(); -async function compareStreams(stream1: st.Readable, stream2: st.Readable): Promise { - const dataforStream1 = await streamToString(stream1); - const dataforStream2 = await streamToString(stream2); - return dataforStream1 === dataforStream2; +function compareStreams(stream1: st.Readable, stream2: st.Readable): boolean { + return streamToString(stream1) === streamToString(stream2); } function streamToString(stream: st.Readable) { - const chunks: Buffer[] = []; - return new Promise((resolve, reject) => { - stream.on("data", chunk => chunks.push(chunk)); - stream.on("error", reject); - stream.on("end", () => resolve(Buffer.concat(chunks).toString("utf8"))); + let output = ""; + stream.on("data", function(data) { + output += data.toString(); + }); + stream.on("end", function() { + return output; }); } diff --git a/index.ts b/index.ts index cd0205d3d6..bd984c537c 100755 --- a/index.ts +++ b/index.ts @@ -132,3 +132,4 @@ export import mysql = require("oci-mysql"); export import nosql = require("oci-nosql"); export import vault = require("oci-vault"); export import secrets = require("oci-secrets"); +export import dataintegration = require("oci-dataintegration"); diff --git a/lib/analytics/package.json b/lib/analytics/package.json index 5888a15cb7..31d858f49a 100644 --- a/lib/analytics/package.json +++ b/lib/analytics/package.json @@ -1,6 +1,6 @@ { "name": "oci-analytics", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Analytics Service", "repository": { "type": "git", diff --git a/lib/announcementsservice/package.json b/lib/announcementsservice/package.json index af7bc9e0f3..3268047419 100644 --- a/lib/announcementsservice/package.json +++ b/lib/announcementsservice/package.json @@ -1,6 +1,6 @@ { "name": "oci-announcementsservice", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Announcement Service", "repository": { "type": "git", diff --git a/lib/apigateway/package.json b/lib/apigateway/package.json index 532d58c2d8..b66a557dab 100644 --- a/lib/apigateway/package.json +++ b/lib/apigateway/package.json @@ -1,6 +1,6 @@ { "name": "oci-apigateway", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for API gateway service", "repository": { "type": "git", diff --git a/lib/applicationmigration/package.json b/lib/applicationmigration/package.json index df8c1b7721..daa846a8fa 100644 --- a/lib/applicationmigration/package.json +++ b/lib/applicationmigration/package.json @@ -1,6 +1,6 @@ { "name": "oci-applicationmigration", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Application Migration service", "repository": { "type": "git", diff --git a/lib/audit/package.json b/lib/audit/package.json index 447b07aaaa..bf443d759d 100644 --- a/lib/audit/package.json +++ b/lib/audit/package.json @@ -1,6 +1,6 @@ { "name": "oci-audit", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Audit Service", "repository": { "type": "git", diff --git a/lib/autoscaling/package.json b/lib/autoscaling/package.json index 377339c8c9..db0206aca4 100644 --- a/lib/autoscaling/package.json +++ b/lib/autoscaling/package.json @@ -1,6 +1,6 @@ { "name": "oci-autoscaling", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Autoscaling Service", "repository": { "type": "git", diff --git a/lib/bds/package.json b/lib/bds/package.json index 6c9024b47a..de982b8001 100644 --- a/lib/bds/package.json +++ b/lib/bds/package.json @@ -1,6 +1,6 @@ { "name": "oci-bds", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for BDS Service", "repository": { "type": "git", diff --git a/lib/budget/package.json b/lib/budget/package.json index 5f5cb1a033..b26e319081 100644 --- a/lib/budget/package.json +++ b/lib/budget/package.json @@ -1,6 +1,6 @@ { "name": "oci-budget", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Budget Service", "repository": { "type": "git", diff --git a/lib/cims/package.json b/lib/cims/package.json index cb7eb65b42..1567357849 100644 --- a/lib/cims/package.json +++ b/lib/cims/package.json @@ -1,6 +1,6 @@ { "name": "oci-cims", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Cims ", "repository": { "type": "git", diff --git a/lib/common/lib/config-file-reader.ts b/lib/common/lib/config-file-reader.ts index 49bd96659e..9728d174d6 100644 --- a/lib/common/lib/config-file-reader.ts +++ b/lib/common/lib/config-file-reader.ts @@ -28,13 +28,21 @@ export class ConfigFileReader { * @throws Error, if the file could not be read. */ static parseDefault(profile: string | null): ConfigFile { + const envVarConfigFile: string | undefined = process.env.OCI_CONFIG_FILE; + // Check if file exists in the location const defaultExists = ConfigFileReader.fileExists(ConfigFileReader.DEFAULT_FILE_PATH); const fallbackExists = ConfigFileReader.fileExists(ConfigFileReader.FALLBACK_DEFAULT_FILE_PATH); + let configFileFromEnvVarExists = false; + if (envVarConfigFile) { + configFileFromEnvVarExists = ConfigFileReader.fileExists(envVarConfigFile); + } // If default file exists, assign effecive file as default file, else fallback as effective file if (defaultExists) { return ConfigFileReader.parseFileFromPath(ConfigFileReader.DEFAULT_FILE_PATH, profile); + } else if (configFileFromEnvVarExists) { + return ConfigFileReader.parseFileFromPath(envVarConfigFile!, profile); } else if (fallbackExists) { return ConfigFileReader.parseFileFromPath( ConfigFileReader.FALLBACK_DEFAULT_FILE_PATH, diff --git a/lib/common/package.json b/lib/common/package.json index 5ef0221216..71e6b3ce25 100644 --- a/lib/common/package.json +++ b/lib/common/package.json @@ -1,6 +1,6 @@ { "name": "oci-common", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI Common module for NodeJS", "repository": { "type": "git", diff --git a/lib/common/tests/config-file-reader.spec.ts b/lib/common/tests/config-file-reader.spec.ts index 4bd72ab8b1..7a4bb3be59 100644 --- a/lib/common/tests/config-file-reader.spec.ts +++ b/lib/common/tests/config-file-reader.spec.ts @@ -2,9 +2,10 @@ * Copyright (c) 2020, 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 { renameSync } from "fs"; import { expect } from "chai"; import { ConfigFileReader, ConfigFile } from "../lib/config-file-reader"; +import common = require("oci-common"); describe("Config File reader Test", () => { // Commenting this as this test does not work on TC @@ -94,4 +95,60 @@ describe("Config File reader Test", () => { expect(profile2.get("key")).equals("value=foobar"); expect(profile2.get("key2")).equals("nota#comment"); }); + + it("should use environmental variable for config file path", () => { + const envVarConfigValue = process.env.OCI_CONFIG_FILE; + const tmpDefaultFilePath = ConfigFileReader.expandUserHome("~/.oci/config-tmp"); + const tmpFallbackDefaultFilePath = ConfigFileReader.expandUserHome("~/.oraclebmc/config-tmp"); + const defaultExists = ConfigFileReader.fileExists(ConfigFileReader.DEFAULT_FILE_PATH); + const fallbackExists = ConfigFileReader.fileExists(ConfigFileReader.FALLBACK_DEFAULT_FILE_PATH); + fileNameAndEnvVarChanges(false); + + // If things go wrong, we want to at least put this in a try/catch block and revert back the file renaming on catch block + try { + const provider: common.ConfigFileAuthenticationDetailsProvider = new common.ConfigFileAuthenticationDetailsProvider(); + expect(provider.getFingerprint()).equals("20:3b:97:13:55:1c:5b:0d:d3:37:d8:50:4e:c5:3a:34"); + expect(provider.getTenantId()).equals( + "ocidv1:tenancy:oc1:phx:1460406592660:aaaaaaaab4faofrfkxecohhjuivjq262pu" + ); + fileNameAndEnvVarChanges(true); + } catch (e) { + console.log(`Failed to run this unit test due to: ${e}`); + fileNameAndEnvVarChanges(true); + } + + /* Helper function change file name and OCI_CONFIG_FILE environmental variable + * @param revert: boolean, to tell the function to revert back to its original file name and environment variable + */ + function fileNameAndEnvVarChanges(revert: boolean) { + // Check if file exists in the location, temporary change it so we can resort to using environmental variable, + // if revert is true, change it back to its original name. + if (defaultExists) { + revert + ? renameSync( + tmpDefaultFilePath, + ConfigFileReader.expandUserHome(ConfigFileReader.DEFAULT_FILE_PATH) + ) + : renameSync( + ConfigFileReader.expandUserHome(ConfigFileReader.DEFAULT_FILE_PATH), + tmpDefaultFilePath + ); + } else if (fallbackExists) { + revert + ? renameSync( + tmpFallbackDefaultFilePath, + ConfigFileReader.expandUserHome(ConfigFileReader.DEFAULT_FILE_PATH) + ) + : renameSync( + ConfigFileReader.expandUserHome(ConfigFileReader.DEFAULT_FILE_PATH), + tmpFallbackDefaultFilePath + ); + } + + // Set OCI_CONFIG_FILE environment variable to our test config file or original value if revert is true + process.env.OCI_CONFIG_FILE = revert + ? envVarConfigValue + : "./lib/common/tests/resources/unit-test-environment-config"; + } + }); }); diff --git a/lib/common/tests/resources/fake-rsa.pem b/lib/common/tests/resources/fake-rsa.pem new file mode 100644 index 0000000000..568a352796 --- /dev/null +++ b/lib/common/tests/resources/fake-rsa.pem @@ -0,0 +1 @@ +fake content \ No newline at end of file diff --git a/lib/common/tests/resources/unit-test-environment-config b/lib/common/tests/resources/unit-test-environment-config new file mode 100644 index 0000000000..fc86b8c05b --- /dev/null +++ b/lib/common/tests/resources/unit-test-environment-config @@ -0,0 +1,7 @@ +[DEFAULT] +user=ocidv1:user:oc1:phx:1460406592659:aaaaaaaawcbqrkycbolrirg2n3xjl5fyxe +fingerprint=20:3b:97:13:55:1c:5b:0d:d3:37:d8:50:4e:c5:3a:34 +key_file=./lib/common/tests/resources/fake-rsa.pem +tenancy=ocidv1:tenancy:oc1:phx:1460406592660:aaaaaaaab4faofrfkxecohhjuivjq262pu +region=us-phoenix-1 +profile=fake.fake@oracle.com \ No newline at end of file diff --git a/lib/containerengine/package.json b/lib/containerengine/package.json index 3dd84d22b5..23f3c2d49c 100644 --- a/lib/containerengine/package.json +++ b/lib/containerengine/package.json @@ -1,6 +1,6 @@ { "name": "oci-containerengine", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Container Engine", "repository": { "type": "git", diff --git a/lib/core/package.json b/lib/core/package.json index 6497ed10ca..d1236e1e22 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -1,6 +1,6 @@ { "name": "oci-core", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Core", "repository": { "type": "git", diff --git a/lib/database/lib/client.ts b/lib/database/lib/client.ts index 2c83dbd92b..a206dfeb17 100644 --- a/lib/database/lib/client.ts +++ b/lib/database/lib/client.ts @@ -406,6 +406,71 @@ export class DatabaseClient { } } + /** + * To move an Autonomous VM cluster and its dependent resources to another compartment, use the + * {@link #changeAutonomousVmClusterCompartment(ChangeAutonomousVmClusterCompartmentRequest) changeAutonomousVmClusterCompartment} operation. + * + * @param ChangeAutonomousVmClusterCompartmentRequest + * @return ChangeAutonomousVmClusterCompartmentResponse + * @throws OciError when an error occurs + */ + public async changeAutonomousVmClusterCompartment( + changeAutonomousVmClusterCompartmentRequest: requests.ChangeAutonomousVmClusterCompartmentRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DatabaseClient#changeAutonomousVmClusterCompartment."); + const pathParams = { + "{autonomousVmClusterId}": changeAutonomousVmClusterCompartmentRequest.autonomousVmClusterId + }; + + const queryParams = {}; + + let headerParams = { + "opc-retry-token": changeAutonomousVmClusterCompartmentRequest.opcRetryToken, + "opc-request-id": changeAutonomousVmClusterCompartmentRequest.opcRequestId, + "if-match": changeAutonomousVmClusterCompartmentRequest.ifMatch + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/autonomousVmClusters/{autonomousVmClusterId}/actions/changeCompartment", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + changeAutonomousVmClusterCompartmentRequest.changeAutonomousVmClusterCompartmentDetails, + "ChangeAutonomousVmClusterCompartmentDetails", + models.ChangeAutonomousVmClusterCompartmentDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + /** * Move the backup destination and its dependent resources to the specified compartment. * For more information about moving backup destinations, see @@ -1084,6 +1149,75 @@ export class DatabaseClient { } } + /** + * Creates an Autonomous VM cluster. + * + * @param CreateAutonomousVmClusterRequest + * @return CreateAutonomousVmClusterResponse + * @throws OciError when an error occurs + */ + public async createAutonomousVmCluster( + createAutonomousVmClusterRequest: requests.CreateAutonomousVmClusterRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DatabaseClient#createAutonomousVmCluster."); + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "opc-retry-token": createAutonomousVmClusterRequest.opcRetryToken, + "opc-request-id": createAutonomousVmClusterRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/autonomousVmClusters", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createAutonomousVmClusterRequest.createAutonomousVmClusterDetails, + "CreateAutonomousVmClusterDetails", + models.CreateAutonomousVmClusterDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "autonomousVmCluster", + bodyModel: "model.AutonomousVmCluster", + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + /** * Creates a new backup in the specified database based on the request parameters you provide. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work. * @@ -1956,6 +2090,64 @@ All Oracle Cloud Infrastructure resources, including Data Guard associations, ge } } + /** + * Deletes the specified Autonomous VM cluster. + * + * @param DeleteAutonomousVmClusterRequest + * @return DeleteAutonomousVmClusterResponse + * @throws OciError when an error occurs + */ + public async deleteAutonomousVmCluster( + deleteAutonomousVmClusterRequest: requests.DeleteAutonomousVmClusterRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DatabaseClient#deleteAutonomousVmCluster."); + const pathParams = { + "{autonomousVmClusterId}": deleteAutonomousVmClusterRequest.autonomousVmClusterId + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteAutonomousVmClusterRequest.ifMatch, + "opc-request-id": deleteAutonomousVmClusterRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/autonomousVmClusters/{autonomousVmClusterId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + /** * Deletes a full backup. You cannot delete automatic backups using this API. * @param DeleteBackupRequest @@ -3369,6 +3561,64 @@ A failover might result in data loss depending on the protection mode in effect } } + /** + * Gets information about the specified Autonomous VM cluster. + * @param GetAutonomousVmClusterRequest + * @return GetAutonomousVmClusterResponse + * @throws OciError when an error occurs + */ + public async getAutonomousVmCluster( + getAutonomousVmClusterRequest: requests.GetAutonomousVmClusterRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DatabaseClient#getAutonomousVmCluster."); + const pathParams = { + "{autonomousVmClusterId}": getAutonomousVmClusterRequest.autonomousVmClusterId + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getAutonomousVmClusterRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/autonomousVmClusters/{autonomousVmClusterId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "autonomousVmCluster", + bodyModel: "model.AutonomousVmCluster", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + /** * Gets information about the specified backup. * @param GetBackupRequest @@ -4722,6 +4972,8 @@ An initial database is created on the DB system based on the request parameters "compartmentId": listAutonomousContainerDatabasesRequest.compartmentId, "autonomousExadataInfrastructureId": listAutonomousContainerDatabasesRequest.autonomousExadataInfrastructureId, + "autonomousVmClusterId": listAutonomousContainerDatabasesRequest.autonomousVmClusterId, + "infrastructureType": listAutonomousContainerDatabasesRequest.infrastructureType, "limit": listAutonomousContainerDatabasesRequest.limit, "page": listAutonomousContainerDatabasesRequest.page, "sortBy": listAutonomousContainerDatabasesRequest.sortBy, @@ -5088,6 +5340,7 @@ An initial database is created on the DB system based on the request parameters "page": listAutonomousDatabasesRequest.page, "sortBy": listAutonomousDatabasesRequest.sortBy, "sortOrder": listAutonomousDatabasesRequest.sortOrder, + "infrastructureType": listAutonomousDatabasesRequest.infrastructureType, "lifecycleState": listAutonomousDatabasesRequest.lifecycleState, "dbWorkload": listAutonomousDatabasesRequest.dbWorkload, "dbVersion": listAutonomousDatabasesRequest.dbVersion, @@ -5519,6 +5772,98 @@ An initial database is created on the DB system based on the request parameters return paginateResponses(request, req => this.listAutonomousExadataInfrastructures(req)); } + /** + * Gets a list of Autonomous VM clusters in the specified compartment. + * + * @param ListAutonomousVmClustersRequest + * @return ListAutonomousVmClustersResponse + * @throws OciError when an error occurs + */ + public async listAutonomousVmClusters( + listAutonomousVmClustersRequest: requests.ListAutonomousVmClustersRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DatabaseClient#listAutonomousVmClusters."); + const pathParams = {}; + + const queryParams = { + "compartmentId": listAutonomousVmClustersRequest.compartmentId, + "exadataInfrastructureId": listAutonomousVmClustersRequest.exadataInfrastructureId, + "limit": listAutonomousVmClustersRequest.limit, + "page": listAutonomousVmClustersRequest.page, + "sortBy": listAutonomousVmClustersRequest.sortBy, + "sortOrder": listAutonomousVmClustersRequest.sortOrder, + "lifecycleState": listAutonomousVmClustersRequest.lifecycleState, + "displayName": listAutonomousVmClustersRequest.displayName + }; + + let headerParams = { + "opc-request-id": listAutonomousVmClustersRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/autonomousVmClusters", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: "AutonomousVmClusterSummary[]", + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a new async iterator which will iterate over the models.AutonomousVmClusterSummary objects + * contained in responses from the listAutonomousVmClusters 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 listAllAutonomousVmClusters( + request: requests.ListAutonomousVmClustersRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listAutonomousVmClusters(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listAutonomousVmClusters 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 listAllAutonomousVmClustersResponses( + request: requests.ListAutonomousVmClustersRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listAutonomousVmClusters(req)); + } + /** * Gets a list of backup destinations in the specified compartment. * @@ -8690,6 +9035,77 @@ A switchover guarantees no data loss. } } + /** + * Updates the specified Autonomous VM cluster. + * + * @param UpdateAutonomousVmClusterRequest + * @return UpdateAutonomousVmClusterResponse + * @throws OciError when an error occurs + */ + public async updateAutonomousVmCluster( + updateAutonomousVmClusterRequest: requests.UpdateAutonomousVmClusterRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DatabaseClient#updateAutonomousVmCluster."); + const pathParams = { + "{autonomousVmClusterId}": updateAutonomousVmClusterRequest.autonomousVmClusterId + }; + + const queryParams = {}; + + let headerParams = { + "if-match": updateAutonomousVmClusterRequest.ifMatch, + "opc-request-id": updateAutonomousVmClusterRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/autonomousVmClusters/{autonomousVmClusterId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateAutonomousVmClusterRequest.updateAutonomousVmClusterDetails, + "UpdateAutonomousVmClusterDetails", + models.UpdateAutonomousVmClusterDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "autonomousVmCluster", + bodyModel: "model.AutonomousVmCluster", + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + /** * If no database is associated with the backup destination: * - For a RECOVERY_APPLIANCE backup destination, updates the connection string and/or the list of VPC users. diff --git a/lib/database/lib/database-waiter.ts b/lib/database/lib/database-waiter.ts index 5aab0cd55c..58babe619f 100644 --- a/lib/database/lib/database-waiter.ts +++ b/lib/database/lib/database-waiter.ts @@ -156,6 +156,25 @@ export class DatabaseWaiter { ); } + /** + * Waits forAutonomousVmCluster 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 GetAutonomousVmClusterResponse | null (null in case of 404 response) + */ + public async forAutonomousVmCluster( + request: serviceRequests.GetAutonomousVmClusterRequest, + ...targetStates: models.AutonomousVmCluster.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getAutonomousVmCluster(request), + response => targetStates.exists(response.autonomousVmCluster.lifecycleState), + targetStates.includes(models.AutonomousVmCluster.LifecycleState.TERMINATED) + ); + } + /** * Waits forBackup till it reaches any of the provided states * diff --git a/lib/database/lib/model/automated-mount-details.ts b/lib/database/lib/model/automated-mount-details.ts new file mode 100644 index 0000000000..75395e2c33 --- /dev/null +++ b/lib/database/lib/model/automated-mount-details.ts @@ -0,0 +1,46 @@ +/** + * 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, 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"); + +/** + * Used for creating NFS Auto Mount backup destinations for autonomous on ExaCC. + */ +export interface AutomatedMountDetails extends model.MountTypeDetails { + /** + * IP addresses for NFS Auto mount. + */ + "nfsServer": Array; + /** + * Specifies the directory on which to mount the file system + */ + "nfsServerExport": string; + + "mountType": string; +} + +export namespace AutomatedMountDetails { + export function getJsonObj(obj: AutomatedMountDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.MountTypeDetails.getJsonObj(obj) as AutomatedMountDetails)), + ...{} + }; + + return jsonObj; + } + export const mountType = "AUTOMATED_MOUNT"; +} diff --git a/lib/database/lib/model/autonomous-container-database-backup-config.ts b/lib/database/lib/model/autonomous-container-database-backup-config.ts index a3cee8717c..052b0744f6 100644 --- a/lib/database/lib/model/autonomous-container-database-backup-config.ts +++ b/lib/database/lib/model/autonomous-container-database-backup-config.ts @@ -20,6 +20,10 @@ import common = require("oci-common"); * */ export interface AutonomousContainerDatabaseBackupConfig { + /** + * Backup destination details. + */ + "backupDestinationDetails"?: Array; /** * Number of days between the current and the earliest point of recoverability covered by automatic backups. * This value applies to automatic backups. After a new automatic backup has been created, Oracle removes old automatic backups that are created before the window. @@ -31,7 +35,16 @@ export interface AutonomousContainerDatabaseBackupConfig { export namespace AutonomousContainerDatabaseBackupConfig { export function getJsonObj(obj: AutonomousContainerDatabaseBackupConfig): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "backupDestinationDetails": obj.backupDestinationDetails + ? obj.backupDestinationDetails.map(item => { + return model.BackupDestinationDetails.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/database/lib/model/autonomous-container-database-summary.ts b/lib/database/lib/model/autonomous-container-database-summary.ts index 58d90e3b7e..3f5992a414 100644 --- a/lib/database/lib/model/autonomous-container-database-summary.ts +++ b/lib/database/lib/model/autonomous-container-database-summary.ts @@ -32,6 +32,10 @@ export interface AutonomousContainerDatabaseSummary { * The user-provided name for the Autonomous Container Database. */ "displayName": string; + /** + * The `DB_UNIQUE_NAME` of the Oracle Database being backed up. + */ + "dbUniqueName"?: string; /** * The service level agreement type of the container database. The default is STANDARD. */ @@ -39,7 +43,15 @@ export interface AutonomousContainerDatabaseSummary { /** * The OCID of the Autonomous Exadata Infrastructure. */ - "autonomousExadataInfrastructureId": string; + "autonomousExadataInfrastructureId"?: string; + /** + * The OCID of the Autonomous VM Cluster. + */ + "autonomousVmClusterId"?: string; + /** + * The infrastructure type this resource belongs to. + */ + "infrastructureType"?: AutonomousContainerDatabaseSummary.InfrastructureType; /** * The current state of the Autonomous Container Database. */ @@ -102,6 +114,17 @@ export namespace AutonomousContainerDatabaseSummary { UNKNOWN_VALUE = "UNKNOWN_VALUE" } + export enum InfrastructureType { + CLOUD = "CLOUD", + CLOUDATCUSTOMER = "CLOUD_AT_CUSTOMER", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + export enum LifecycleState { PROVISIONING = "PROVISIONING", AVAILABLE = "AVAILABLE", diff --git a/lib/database/lib/model/autonomous-container-database.ts b/lib/database/lib/model/autonomous-container-database.ts index 4ffb7898e5..b9f9d6851a 100644 --- a/lib/database/lib/model/autonomous-container-database.ts +++ b/lib/database/lib/model/autonomous-container-database.ts @@ -28,6 +28,10 @@ export interface AutonomousContainerDatabase { * The user-provided name for the Autonomous Container Database. */ "displayName": string; + /** + * The `DB_UNIQUE_NAME` of the Oracle Database being backed up. + */ + "dbUniqueName"?: string; /** * The service level agreement type of the container database. The default is STANDARD. */ @@ -35,7 +39,15 @@ export interface AutonomousContainerDatabase { /** * The OCID of the Autonomous Exadata Infrastructure. */ - "autonomousExadataInfrastructureId": string; + "autonomousExadataInfrastructureId"?: string; + /** + * The OCID of the Autonomous VM Cluster. + */ + "autonomousVmClusterId"?: string; + /** + * The infrastructure type this resource belongs to. + */ + "infrastructureType"?: AutonomousContainerDatabase.InfrastructureType; /** * The current state of the Autonomous Container Database. */ @@ -98,6 +110,17 @@ export namespace AutonomousContainerDatabase { UNKNOWN_VALUE = "UNKNOWN_VALUE" } + export enum InfrastructureType { + CLOUD = "CLOUD", + CLOUDATCUSTOMER = "CLOUD_AT_CUSTOMER", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + export enum LifecycleState { PROVISIONING = "PROVISIONING", AVAILABLE = "AVAILABLE", diff --git a/lib/database/lib/model/autonomous-database-summary.ts b/lib/database/lib/model/autonomous-database-summary.ts index 2850d92502..a90c0a71bf 100644 --- a/lib/database/lib/model/autonomous-database-summary.ts +++ b/lib/database/lib/model/autonomous-database-summary.ts @@ -71,6 +71,10 @@ export interface AutonomousDatabaseSummary { * The quantity of data in the database, in terabytes. */ "dataStorageSizeInTBs": number; + /** + * The infrastructure type this resource belongs to. + */ + "infrastructureType"?: AutonomousDatabaseSummary.InfrastructureType; /** * True if the database uses [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm). * @@ -229,6 +233,17 @@ export namespace AutonomousDatabaseSummary { UNKNOWN_VALUE = "UNKNOWN_VALUE" } + export enum InfrastructureType { + CLOUD = "CLOUD", + CLOUDATCUSTOMER = "CLOUD_AT_CUSTOMER", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + export enum LicenseModel { LICENSEINCLUDED = "LICENSE_INCLUDED", BRINGYOUROWNLICENSE = "BRING_YOUR_OWN_LICENSE", diff --git a/lib/database/lib/model/autonomous-database.ts b/lib/database/lib/model/autonomous-database.ts index eee75d0975..a900b5d2e0 100644 --- a/lib/database/lib/model/autonomous-database.ts +++ b/lib/database/lib/model/autonomous-database.ts @@ -69,6 +69,10 @@ export interface AutonomousDatabase { * The quantity of data in the database, in terabytes. */ "dataStorageSizeInTBs": number; + /** + * The infrastructure type this resource belongs to. + */ + "infrastructureType"?: AutonomousDatabase.InfrastructureType; /** * True if the database uses [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm). * @@ -227,6 +231,17 @@ export namespace AutonomousDatabase { UNKNOWN_VALUE = "UNKNOWN_VALUE" } + export enum InfrastructureType { + CLOUD = "CLOUD", + CLOUDATCUSTOMER = "CLOUD_AT_CUSTOMER", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + export enum LicenseModel { LICENSEINCLUDED = "LICENSE_INCLUDED", BRINGYOUROWNLICENSE = "BRING_YOUR_OWN_LICENSE", diff --git a/lib/database/lib/model/autonomous-vm-cluster-summary.ts b/lib/database/lib/model/autonomous-vm-cluster-summary.ts new file mode 100644 index 0000000000..14d29a8b43 --- /dev/null +++ b/lib/database/lib/model/autonomous-vm-cluster-summary.ts @@ -0,0 +1,142 @@ +/** + * 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, 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 VM cluster. + * + */ +export interface AutonomousVmClusterSummary { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Autonomous VM cluster. + */ + "id": string; + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + */ + "compartmentId": string; + /** + * The user-friendly name for the Autonomous VM cluster. The name does not need to be unique. + */ + "displayName": string; + /** + * The date and time that the Autonomous VM cluster was created. + */ + "timeCreated"?: Date; + /** + * The current state of the Autonomous VM cluster. + */ + "lifecycleState": AutonomousVmClusterSummary.LifecycleState; + /** + * Additional information about the current lifecycle state. + */ + "lifecycleDetails"?: string; + /** + * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.cloud.oracle.com/Content/Database/References/timezones.htm). + */ + "timeZone"?: string; + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. + */ + "exadataInfrastructureId": string; + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + "vmClusterNetworkId": string; + /** + * If true, database backup on local Exadata storage is configured for the Autonomous VM cluster. If false, database backup on local Exadata storage is not available in the Autonomous VM cluster. + * + */ + "isLocalBackupEnabled"?: boolean; + /** + * The number of enabled CPU cores. + */ + "cpusEnabled"?: number; + /** + * The numnber of CPU cores available. + */ + "availableCpus"?: number; + /** + * The memory allocated in GBs. + */ + "memorySizeInGBs"?: number; + /** + * The local node storage allocated in GBs. + */ + "dbNodeStorageSizeInGBs"?: number; + /** + * The total data storage allocated in TBs + */ + "dataStorageSizeInTBs"?: number; + /** + * The data storage available in TBs + */ + "availableDataStorageSizeInTBs"?: number; + /** + * The Oracle license model that applies to the Autonomous VM cluster. The default is LICENSE_INCLUDED. + * + */ + "licenseModel"?: AutonomousVmClusterSummary.LicenseModel; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. +* For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: `{\"Department\": \"Finance\"}` +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace AutonomousVmClusterSummary { + export enum LifecycleState { + PROVISIONING = "PROVISIONING", + AVAILABLE = "AVAILABLE", + UPDATING = "UPDATING", + TERMINATING = "TERMINATING", + TERMINATED = "TERMINATED", + FAILED = "FAILED", + MAINTENANCEINPROGRESS = "MAINTENANCE_IN_PROGRESS", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum LicenseModel { + LICENSEINCLUDED = "LICENSE_INCLUDED", + BRINGYOUROWNLICENSE = "BRING_YOUR_OWN_LICENSE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: AutonomousVmClusterSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/database/lib/model/autonomous-vm-cluster.ts b/lib/database/lib/model/autonomous-vm-cluster.ts new file mode 100644 index 0000000000..41e10d2184 --- /dev/null +++ b/lib/database/lib/model/autonomous-vm-cluster.ts @@ -0,0 +1,142 @@ +/** + * 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, 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 VM cluster. + * + */ +export interface AutonomousVmCluster { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Autonomous VM cluster. + */ + "id": string; + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + */ + "compartmentId": string; + /** + * The user-friendly name for the Autonomous VM cluster. The name does not need to be unique. + */ + "displayName": string; + /** + * The date and time that the Autonomous VM cluster was created. + */ + "timeCreated"?: Date; + /** + * The current state of the Autonomous VM cluster. + */ + "lifecycleState": AutonomousVmCluster.LifecycleState; + /** + * Additional information about the current lifecycle state. + */ + "lifecycleDetails"?: string; + /** + * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.cloud.oracle.com/Content/Database/References/timezones.htm). + */ + "timeZone"?: string; + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. + */ + "exadataInfrastructureId": string; + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + "vmClusterNetworkId": string; + /** + * If true, database backup on local Exadata storage is configured for the Autonomous VM cluster. If false, database backup on local Exadata storage is not available in the Autonomous VM cluster. + * + */ + "isLocalBackupEnabled"?: boolean; + /** + * The number of enabled CPU cores. + */ + "cpusEnabled"?: number; + /** + * The numnber of CPU cores available. + */ + "availableCpus"?: number; + /** + * The memory allocated in GBs. + */ + "memorySizeInGBs"?: number; + /** + * The local node storage allocated in GBs. + */ + "dbNodeStorageSizeInGBs"?: number; + /** + * The total data storage allocated in TBs + */ + "dataStorageSizeInTBs"?: number; + /** + * The data storage available in TBs + */ + "availableDataStorageSizeInTBs"?: number; + /** + * The Oracle license model that applies to the Autonomous VM cluster. The default is LICENSE_INCLUDED. + * + */ + "licenseModel"?: AutonomousVmCluster.LicenseModel; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. +* For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: `{\"Department\": \"Finance\"}` +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace AutonomousVmCluster { + export enum LifecycleState { + PROVISIONING = "PROVISIONING", + AVAILABLE = "AVAILABLE", + UPDATING = "UPDATING", + TERMINATING = "TERMINATING", + TERMINATED = "TERMINATED", + FAILED = "FAILED", + MAINTENANCEINPROGRESS = "MAINTENANCE_IN_PROGRESS", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum LicenseModel { + LICENSEINCLUDED = "LICENSE_INCLUDED", + BRINGYOUROWNLICENSE = "BRING_YOUR_OWN_LICENSE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: AutonomousVmCluster): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/database/lib/model/backup-destination-details.ts b/lib/database/lib/model/backup-destination-details.ts index dad96c7348..1d5fecd133 100644 --- a/lib/database/lib/model/backup-destination-details.ts +++ b/lib/database/lib/model/backup-destination-details.ts @@ -35,6 +35,10 @@ export interface BackupDestinationDetails { * For a RECOVERY_APPLIANCE backup destination, the password for the VPC user that is used to access the Recovery Appliance. */ "vpcPassword"?: string; + /** + * Proxy URL to connect to object store. + */ + "internetProxy"?: string; } export namespace BackupDestinationDetails { diff --git a/lib/database/lib/model/backup-destination-summary.ts b/lib/database/lib/model/backup-destination-summary.ts index 08c0708201..54a7d86dac 100644 --- a/lib/database/lib/model/backup-destination-summary.ts +++ b/lib/database/lib/model/backup-destination-summary.ts @@ -52,6 +52,18 @@ export interface BackupDestinationSummary { * */ "localMountPointPath"?: string; + /** + * NFS Mount type for backup destination. + */ + "nfsMountType"?: BackupDestinationSummary.NfsMountType; + /** + * Host names or IP addresses for NFS Auto mount. + */ + "nfsServer"?: Array; + /** + * Specifies the directory on which to mount the file system + */ + "nfsServerExport"?: string; /** * The current lifecycle state of the backup destination. */ @@ -94,6 +106,17 @@ export namespace BackupDestinationSummary { UNKNOWN_VALUE = "UNKNOWN_VALUE" } + export enum NfsMountType { + SELFMOUNT = "SELF_MOUNT", + AUTOMATEDMOUNT = "AUTOMATED_MOUNT", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + export enum LifecycleState { ACTIVE = "ACTIVE", FAILED = "FAILED", diff --git a/lib/database/lib/model/backup-destination.ts b/lib/database/lib/model/backup-destination.ts index 8e653a4222..aea66c2b44 100644 --- a/lib/database/lib/model/backup-destination.ts +++ b/lib/database/lib/model/backup-destination.ts @@ -52,6 +52,18 @@ export interface BackupDestination { * */ "localMountPointPath"?: string; + /** + * NFS Mount type for backup destination. + */ + "nfsMountType"?: BackupDestination.NfsMountType; + /** + * Host names or IP addresses for NFS Auto mount. + */ + "nfsServer"?: Array; + /** + * Specifies the directory on which to mount the file system + */ + "nfsServerExport"?: string; /** * The current lifecycle state of the backup destination. */ @@ -94,6 +106,17 @@ export namespace BackupDestination { UNKNOWN_VALUE = "UNKNOWN_VALUE" } + export enum NfsMountType { + SELFMOUNT = "SELF_MOUNT", + AUTOMATEDMOUNT = "AUTOMATED_MOUNT", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + export enum LifecycleState { ACTIVE = "ACTIVE", FAILED = "FAILED", diff --git a/lib/database/lib/model/change-autonomous-vm-cluster-compartment-details.ts b/lib/database/lib/model/change-autonomous-vm-cluster-compartment-details.ts new file mode 100644 index 0000000000..f1263559ad --- /dev/null +++ b/lib/database/lib/model/change-autonomous-vm-cluster-compartment-details.ts @@ -0,0 +1,36 @@ +/** + * 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, 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 configuration details for moving the Autonomous VM cluster. + * + */ +export interface ChangeAutonomousVmClusterCompartmentDetails { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Autonomous VM cluster to. + * + */ + "compartmentId": string; +} + +export namespace ChangeAutonomousVmClusterCompartmentDetails { + export function getJsonObj(obj: ChangeAutonomousVmClusterCompartmentDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/database/lib/model/create-autonomous-container-database-details.ts b/lib/database/lib/model/create-autonomous-container-database-details.ts index 6bd24853b1..2c64f7ff93 100644 --- a/lib/database/lib/model/create-autonomous-container-database-details.ts +++ b/lib/database/lib/model/create-autonomous-container-database-details.ts @@ -24,6 +24,10 @@ export interface CreateAutonomousContainerDatabaseDetails { * The display name for the Autonomous Container Database. */ "displayName": string; + /** + * The `DB_UNIQUE_NAME` of the Oracle Database being backed up. + */ + "dbUniqueName"?: string; /** * The service level agreement type of the Autonomous Container Database. The default is STANDARD. For a mission critical Autonomous Container Database, the specified Autonomous Exadata Infrastructure must be associated with a remote Autonomous Exadata Infrastructure. */ @@ -31,7 +35,11 @@ export interface CreateAutonomousContainerDatabaseDetails { /** * The OCID of the Autonomous Exadata Infrastructure. */ - "autonomousExadataInfrastructureId": string; + "autonomousExadataInfrastructureId"?: string; + /** + * The OCID of the Autonomous VM Cluster. + */ + "autonomousVmClusterId"?: string; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the Autonomous Container Database. */ diff --git a/lib/database/lib/model/create-autonomous-vm-cluster-details.ts b/lib/database/lib/model/create-autonomous-vm-cluster-details.ts new file mode 100644 index 0000000000..504d2dcee7 --- /dev/null +++ b/lib/database/lib/model/create-autonomous-vm-cluster-details.ts @@ -0,0 +1,80 @@ +/** + * 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, 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 the create Autonomous VM cluster operation. + * + */ +export interface CreateAutonomousVmClusterDetails { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + */ + "compartmentId": string; + /** + * The user-friendly name for the Autonomous VM cluster. The name does not need to be unique. + */ + "displayName": string; + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. + */ + "exadataInfrastructureId": string; + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VM cluster network. + */ + "vmClusterNetworkId": string; + /** + * The time zone to use for the Autonomous VM cluster. For details, see [DB System Time Zones](https://docs.cloud.oracle.com/Content/Database/References/timezones.htm). + */ + "timeZone"?: string; + /** + * If true, database backup on local Exadata storage is configured for the Autonomous VM cluster. If false, database backup on local Exadata storage is not available in the Autonomous VM cluster. + * + */ + "isLocalBackupEnabled"?: boolean; + /** + * The Oracle license model that applies to the Autonomous VM cluster. The default is BRING_YOUR_OWN_LICENSE. + * + */ + "licenseModel"?: CreateAutonomousVmClusterDetails.LicenseModel; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. +* For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: `{\"Department\": \"Finance\"}` +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CreateAutonomousVmClusterDetails { + export enum LicenseModel { + LICENSEINCLUDED = "LICENSE_INCLUDED", + BRINGYOUROWNLICENSE = "BRING_YOUR_OWN_LICENSE" + } + + export function getJsonObj(obj: CreateAutonomousVmClusterDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/database/lib/model/create-db-home-base.ts b/lib/database/lib/model/create-db-home-base.ts index 162c6be045..0b7d468165 100644 --- a/lib/database/lib/model/create-db-home-base.ts +++ b/lib/database/lib/model/create-db-home-base.ts @@ -26,6 +26,20 @@ export interface CreateDbHomeBase { * The user-provided name of the Database Home. */ "displayName"?: string; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. +* For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: `{\"Department\": \"Finance\"}` +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; "source": string; } diff --git a/lib/database/lib/model/create-db-home-details.ts b/lib/database/lib/model/create-db-home-details.ts index 8d551f9c2b..f139ae13bf 100644 --- a/lib/database/lib/model/create-db-home-details.ts +++ b/lib/database/lib/model/create-db-home-details.ts @@ -31,6 +31,20 @@ export interface CreateDbHomeDetails { */ "dbVersion": string; "database": model.CreateDatabaseDetails; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. +* For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: `{\"Department\": \"Finance\"}` +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; } export namespace CreateDbHomeDetails { diff --git a/lib/database/lib/model/create-db-home-from-backup-details.ts b/lib/database/lib/model/create-db-home-from-backup-details.ts index 89bddc9d20..c1a5c1fe8f 100644 --- a/lib/database/lib/model/create-db-home-from-backup-details.ts +++ b/lib/database/lib/model/create-db-home-from-backup-details.ts @@ -27,6 +27,20 @@ export interface CreateDbHomeFromBackupDetails { */ "displayName"?: string; "database": model.CreateDatabaseFromBackupDetails; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. +* For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: `{\"Department\": \"Finance\"}` +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; } export namespace CreateDbHomeFromBackupDetails { diff --git a/lib/database/lib/model/create-db-home-from-database-details.ts b/lib/database/lib/model/create-db-home-from-database-details.ts index 48188a0658..0177b4824c 100644 --- a/lib/database/lib/model/create-db-home-from-database-details.ts +++ b/lib/database/lib/model/create-db-home-from-database-details.ts @@ -27,6 +27,20 @@ export interface CreateDbHomeFromDatabaseDetails { */ "displayName"?: string; "database": model.CreateDatabaseFromAnotherDatabaseDetails; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. +* For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: `{\"Department\": \"Finance\"}` +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; } export namespace CreateDbHomeFromDatabaseDetails { diff --git a/lib/database/lib/model/create-nf-sbackup-destination-details.ts b/lib/database/lib/model/create-nf-sbackup-destination-details.ts index 6f1ca9fae1..dd009d1991 100644 --- a/lib/database/lib/model/create-nf-sbackup-destination-details.ts +++ b/lib/database/lib/model/create-nf-sbackup-destination-details.ts @@ -20,10 +20,12 @@ import common = require("oci-common"); */ export interface CreateNFSBackupDestinationDetails extends model.CreateBackupDestinationDetails { /** - * The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes. + * **Deprecated.** The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes. + * This field is deprecated. Use the mountTypeDetails field instead to specify the mount type for NFS. * */ - "localMountPointPath": string; + "localMountPointPath"?: string; + "mountTypeDetails"?: model.SelfMountDetails | model.AutomatedMountDetails; "type": string; } @@ -39,7 +41,11 @@ export namespace CreateNFSBackupDestinationDetails { : (model.CreateBackupDestinationDetails.getJsonObj( obj ) as CreateNFSBackupDestinationDetails)), - ...{} + ...{ + "mountTypeDetails": obj.mountTypeDetails + ? model.MountTypeDetails.getJsonObj(obj.mountTypeDetails) + : undefined + } }; return jsonObj; diff --git a/lib/database/lib/model/db-home-summary.ts b/lib/database/lib/model/db-home-summary.ts index c0787b900b..f5fe166e88 100644 --- a/lib/database/lib/model/db-home-summary.ts +++ b/lib/database/lib/model/db-home-summary.ts @@ -72,6 +72,20 @@ export interface DbHomeSummary { * The date and time the Database Home was created. */ "timeCreated"?: Date; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. +* For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: `{\"Department\": \"Finance\"}` +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; } export namespace DbHomeSummary { diff --git a/lib/database/lib/model/db-home.ts b/lib/database/lib/model/db-home.ts index 35ec41b1a0..3346649a8d 100644 --- a/lib/database/lib/model/db-home.ts +++ b/lib/database/lib/model/db-home.ts @@ -60,6 +60,20 @@ export interface DbHome { * The date and time the Database Home was created. */ "timeCreated"?: Date; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. +* For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: `{\"Department\": \"Finance\"}` +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; } export namespace DbHome { diff --git a/lib/database/lib/model/index.ts b/lib/database/lib/model/index.ts index 29e7b02a5b..c16b74387b 100644 --- a/lib/database/lib/model/index.ts +++ b/lib/database/lib/model/index.ts @@ -60,6 +60,10 @@ import * as AutonomousExadataInfrastructureShapeSummary from "./autonomous-exada export import AutonomousExadataInfrastructureShapeSummary = AutonomousExadataInfrastructureShapeSummary.AutonomousExadataInfrastructureShapeSummary; import * as AutonomousExadataInfrastructureSummary from "./autonomous-exadata-infrastructure-summary"; export import AutonomousExadataInfrastructureSummary = AutonomousExadataInfrastructureSummary.AutonomousExadataInfrastructureSummary; +import * as AutonomousVmCluster from "./autonomous-vm-cluster"; +export import AutonomousVmCluster = AutonomousVmCluster.AutonomousVmCluster; +import * as AutonomousVmClusterSummary from "./autonomous-vm-cluster-summary"; +export import AutonomousVmClusterSummary = AutonomousVmClusterSummary.AutonomousVmClusterSummary; import * as Backup from "./backup"; export import Backup = Backup.Backup; import * as BackupDestination from "./backup-destination"; @@ -70,6 +74,8 @@ import * as BackupDestinationSummary from "./backup-destination-summary"; export import BackupDestinationSummary = BackupDestinationSummary.BackupDestinationSummary; import * as BackupSummary from "./backup-summary"; export import BackupSummary = BackupSummary.BackupSummary; +import * as ChangeAutonomousVmClusterCompartmentDetails from "./change-autonomous-vm-cluster-compartment-details"; +export import ChangeAutonomousVmClusterCompartmentDetails = ChangeAutonomousVmClusterCompartmentDetails.ChangeAutonomousVmClusterCompartmentDetails; import * as ChangeCompartmentDetails from "./change-compartment-details"; export import ChangeCompartmentDetails = ChangeCompartmentDetails.ChangeCompartmentDetails; import * as ChangeExadataInfrastructureCompartmentDetails from "./change-exadata-infrastructure-compartment-details"; @@ -92,6 +98,8 @@ import * as CreateAutonomousDatabaseBackupDetails from "./create-autonomous-data export import CreateAutonomousDatabaseBackupDetails = CreateAutonomousDatabaseBackupDetails.CreateAutonomousDatabaseBackupDetails; import * as CreateAutonomousDatabaseBase from "./create-autonomous-database-base"; export import CreateAutonomousDatabaseBase = CreateAutonomousDatabaseBase.CreateAutonomousDatabaseBase; +import * as CreateAutonomousVmClusterDetails from "./create-autonomous-vm-cluster-details"; +export import CreateAutonomousVmClusterDetails = CreateAutonomousVmClusterDetails.CreateAutonomousVmClusterDetails; import * as CreateBackupDestinationDetails from "./create-backup-destination-details"; export import CreateBackupDestinationDetails = CreateBackupDestinationDetails.CreateBackupDestinationDetails; import * as CreateBackupDetails from "./create-backup-details"; @@ -192,6 +200,8 @@ import * as MaintenanceWindow from "./maintenance-window"; export import MaintenanceWindow = MaintenanceWindow.MaintenanceWindow; import * as Month from "./month"; export import Month = Month.Month; +import * as MountTypeDetails from "./mount-type-details"; +export import MountTypeDetails = MountTypeDetails.MountTypeDetails; import * as NodeDetails from "./node-details"; export import NodeDetails = NodeDetails.NodeDetails; import * as OCPUs from "./o-cp-us"; @@ -228,6 +238,8 @@ import * as UpdateAutonomousDatabaseWalletDetails from "./update-autonomous-data export import UpdateAutonomousDatabaseWalletDetails = UpdateAutonomousDatabaseWalletDetails.UpdateAutonomousDatabaseWalletDetails; import * as UpdateAutonomousExadataInfrastructureDetails from "./update-autonomous-exadata-infrastructure-details"; export import UpdateAutonomousExadataInfrastructureDetails = UpdateAutonomousExadataInfrastructureDetails.UpdateAutonomousExadataInfrastructureDetails; +import * as UpdateAutonomousVmClusterDetails from "./update-autonomous-vm-cluster-details"; +export import UpdateAutonomousVmClusterDetails = UpdateAutonomousVmClusterDetails.UpdateAutonomousVmClusterDetails; import * as UpdateBackupDestinationDetails from "./update-backup-destination-details"; export import UpdateBackupDestinationDetails = UpdateBackupDestinationDetails.UpdateBackupDestinationDetails; import * as UpdateDatabaseDetails from "./update-database-details"; @@ -259,6 +271,8 @@ export import VmNetworkDetails = VmNetworkDetails.VmNetworkDetails; import * as WorkloadType from "./workload-type"; export import WorkloadType = WorkloadType.WorkloadType; +import * as AutomatedMountDetails from "./automated-mount-details"; +export import AutomatedMountDetails = AutomatedMountDetails.AutomatedMountDetails; import * as CreateAutonomousDatabaseCloneDetails from "./create-autonomous-database-clone-details"; export import CreateAutonomousDatabaseCloneDetails = CreateAutonomousDatabaseCloneDetails.CreateAutonomousDatabaseCloneDetails; import * as CreateAutonomousDatabaseDetails from "./create-autonomous-database-details"; @@ -293,3 +307,5 @@ import * as LaunchDbSystemFromBackupDetails from "./launch-db-system-from-backup export import LaunchDbSystemFromBackupDetails = LaunchDbSystemFromBackupDetails.LaunchDbSystemFromBackupDetails; import * as LaunchDbSystemFromDatabaseDetails from "./launch-db-system-from-database-details"; export import LaunchDbSystemFromDatabaseDetails = LaunchDbSystemFromDatabaseDetails.LaunchDbSystemFromDatabaseDetails; +import * as SelfMountDetails from "./self-mount-details"; +export import SelfMountDetails = SelfMountDetails.SelfMountDetails; diff --git a/lib/database/lib/model/mount-type-details.ts b/lib/database/lib/model/mount-type-details.ts new file mode 100644 index 0000000000..e897799667 --- /dev/null +++ b/lib/database/lib/model/mount-type-details.ts @@ -0,0 +1,44 @@ +/** + * 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, 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"); + +/** + * Mount type details for backup destination. + */ +export interface MountTypeDetails { + "mountType": string; +} + +export namespace MountTypeDetails { + export function getJsonObj(obj: MountTypeDetails): object { + const jsonObj = { ...obj, ...{} }; + + if ("mountType" in obj && obj.mountType) { + switch (obj.mountType) { + case "SELF_MOUNT": + return model.SelfMountDetails.getJsonObj((jsonObj), true); + case "AUTOMATED_MOUNT": + return model.AutomatedMountDetails.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.mountType); + } + } + return jsonObj; + } +} diff --git a/lib/database/lib/model/self-mount-details.ts b/lib/database/lib/model/self-mount-details.ts new file mode 100644 index 0000000000..6436f8775b --- /dev/null +++ b/lib/database/lib/model/self-mount-details.ts @@ -0,0 +1,41 @@ +/** + * 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, 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"); + +/** + * Used for creating NFS Self mount backup destinations for non-autonomous ExaCC. + */ +export interface SelfMountDetails extends model.MountTypeDetails { + /** + * The local directory path on each VM cluster node where the NFS server location is mounted. The local directory path and the NFS server location must each be the same across all of the VM cluster nodes. Ensure that the NFS mount is maintained continuously on all of the VM cluster nodes. + * + */ + "localMountPointPath": string; + + "mountType": string; +} + +export namespace SelfMountDetails { + export function getJsonObj(obj: SelfMountDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.MountTypeDetails.getJsonObj(obj) as SelfMountDetails)), + ...{} + }; + + return jsonObj; + } + export const mountType = "SELF_MOUNT"; +} diff --git a/lib/database/lib/model/update-autonomous-vm-cluster-details.ts b/lib/database/lib/model/update-autonomous-vm-cluster-details.ts new file mode 100644 index 0000000000..fdc8eb830f --- /dev/null +++ b/lib/database/lib/model/update-autonomous-vm-cluster-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, 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 updating the Autonomous VM cluster. + */ +export interface UpdateAutonomousVmClusterDetails { + /** + * The Oracle license model that applies to the Autonomous VM cluster. The default is BRING_YOUR_OWN_LICENSE. + * + */ + "licenseModel"?: UpdateAutonomousVmClusterDetails.LicenseModel; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. +* For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: `{\"Department\": \"Finance\"}` +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace UpdateAutonomousVmClusterDetails { + export enum LicenseModel { + LICENSEINCLUDED = "LICENSE_INCLUDED", + BRINGYOUROWNLICENSE = "BRING_YOUR_OWN_LICENSE" + } + + export function getJsonObj(obj: UpdateAutonomousVmClusterDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/database/lib/model/update-backup-destination-details.ts b/lib/database/lib/model/update-backup-destination-details.ts index d50ce7f60a..aa17f5b444 100644 --- a/lib/database/lib/model/update-backup-destination-details.ts +++ b/lib/database/lib/model/update-backup-destination-details.ts @@ -34,6 +34,18 @@ export interface UpdateBackupDestinationDetails { * */ "localMountPointPath"?: string; + /** + * NFS Mount type for backup destination. + */ + "nfsMountType"?: UpdateBackupDestinationDetails.NfsMountType; + /** + * IP addresses for NFS Auto mount. + */ + "nfsServer"?: Array; + /** + * Specifies the directory on which to mount the file system + */ + "nfsServerExport"?: string; /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). @@ -51,6 +63,11 @@ Example: `{\"Department\": \"Finance\"}` } export namespace UpdateBackupDestinationDetails { + export enum NfsMountType { + SELFMOUNT = "SELF_MOUNT", + AUTOMATEDMOUNT = "AUTOMATED_MOUNT" + } + export function getJsonObj(obj: UpdateBackupDestinationDetails): object { const jsonObj = { ...obj, ...{} }; diff --git a/lib/database/lib/model/update-db-home-details.ts b/lib/database/lib/model/update-db-home-details.ts index c01bd91885..7a7dce5a53 100644 --- a/lib/database/lib/model/update-db-home-details.ts +++ b/lib/database/lib/model/update-db-home-details.ts @@ -21,6 +21,20 @@ import common = require("oci-common"); */ export interface UpdateDbHomeDetails { "dbVersion"?: model.PatchDetails; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. +* For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: `{\"Department\": \"Finance\"}` +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; } export namespace UpdateDbHomeDetails { diff --git a/lib/database/lib/request/change-autonomous-vm-cluster-compartment-request.ts b/lib/database/lib/request/change-autonomous-vm-cluster-compartment-request.ts new file mode 100644 index 0000000000..f427c16ba3 --- /dev/null +++ b/lib/database/lib/request/change-autonomous-vm-cluster-compartment-request.ts @@ -0,0 +1,46 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ChangeAutonomousVmClusterCompartmentRequest { + /** + * Request to move Autonomous VM cluster to a different compartment + */ + "changeAutonomousVmClusterCompartmentDetails": model.ChangeAutonomousVmClusterCompartmentDetails; + /** + * The autonomous VM cluster [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + "autonomousVmClusterId": 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 + * may be rejected). + * + */ + "opcRetryToken"?: string; + /** + * Unique identifier for the request. + * + */ + "opcRequestId"?: string; + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; +} diff --git a/lib/database/lib/request/create-autonomous-vm-cluster-request.ts b/lib/database/lib/request/create-autonomous-vm-cluster-request.ts new file mode 100644 index 0000000000..c5ee5ba925 --- /dev/null +++ b/lib/database/lib/request/create-autonomous-vm-cluster-request.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateAutonomousVmClusterRequest { + /** + * Request to create an Autonomous VM cluster. + */ + "createAutonomousVmClusterDetails": model.CreateAutonomousVmClusterDetails; + /** + * 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 + * may be rejected). + * + */ + "opcRetryToken"?: string; + /** + * Unique identifier for the request. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/database/lib/request/delete-autonomous-vm-cluster-request.ts b/lib/database/lib/request/delete-autonomous-vm-cluster-request.ts new file mode 100644 index 0000000000..a213325292 --- /dev/null +++ b/lib/database/lib/request/delete-autonomous-vm-cluster-request.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteAutonomousVmClusterRequest { + /** + * The autonomous VM cluster [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + "autonomousVmClusterId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/database/lib/request/get-autonomous-vm-cluster-request.ts b/lib/database/lib/request/get-autonomous-vm-cluster-request.ts new file mode 100644 index 0000000000..af20cb2e93 --- /dev/null +++ b/lib/database/lib/request/get-autonomous-vm-cluster-request.ts @@ -0,0 +1,26 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetAutonomousVmClusterRequest { + /** + * The autonomous VM cluster [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + "autonomousVmClusterId": string; + /** + * Unique identifier for the request. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/database/lib/request/index.ts b/lib/database/lib/request/index.ts index 441361b999..4221c87709 100644 --- a/lib/database/lib/request/index.ts +++ b/lib/database/lib/request/index.ts @@ -20,6 +20,8 @@ import * as ChangeAutonomousDatabaseCompartmentRequest from "./change-autonomous export import ChangeAutonomousDatabaseCompartmentRequest = ChangeAutonomousDatabaseCompartmentRequest.ChangeAutonomousDatabaseCompartmentRequest; import * as ChangeAutonomousExadataInfrastructureCompartmentRequest from "./change-autonomous-exadata-infrastructure-compartment-request"; export import ChangeAutonomousExadataInfrastructureCompartmentRequest = ChangeAutonomousExadataInfrastructureCompartmentRequest.ChangeAutonomousExadataInfrastructureCompartmentRequest; +import * as ChangeAutonomousVmClusterCompartmentRequest from "./change-autonomous-vm-cluster-compartment-request"; +export import ChangeAutonomousVmClusterCompartmentRequest = ChangeAutonomousVmClusterCompartmentRequest.ChangeAutonomousVmClusterCompartmentRequest; import * as ChangeBackupDestinationCompartmentRequest from "./change-backup-destination-compartment-request"; export import ChangeBackupDestinationCompartmentRequest = ChangeBackupDestinationCompartmentRequest.ChangeBackupDestinationCompartmentRequest; import * as ChangeDbSystemCompartmentRequest from "./change-db-system-compartment-request"; @@ -40,6 +42,8 @@ import * as CreateAutonomousDatabaseRequest from "./create-autonomous-database-r export import CreateAutonomousDatabaseRequest = CreateAutonomousDatabaseRequest.CreateAutonomousDatabaseRequest; import * as CreateAutonomousDatabaseBackupRequest from "./create-autonomous-database-backup-request"; export import CreateAutonomousDatabaseBackupRequest = CreateAutonomousDatabaseBackupRequest.CreateAutonomousDatabaseBackupRequest; +import * as CreateAutonomousVmClusterRequest from "./create-autonomous-vm-cluster-request"; +export import CreateAutonomousVmClusterRequest = CreateAutonomousVmClusterRequest.CreateAutonomousVmClusterRequest; import * as CreateBackupRequest from "./create-backup-request"; export import CreateBackupRequest = CreateBackupRequest.CreateBackupRequest; import * as CreateBackupDestinationRequest from "./create-backup-destination-request"; @@ -66,6 +70,8 @@ import * as DeleteAutonomousDataWarehouseRequest from "./delete-autonomous-data- export import DeleteAutonomousDataWarehouseRequest = DeleteAutonomousDataWarehouseRequest.DeleteAutonomousDataWarehouseRequest; import * as DeleteAutonomousDatabaseRequest from "./delete-autonomous-database-request"; export import DeleteAutonomousDatabaseRequest = DeleteAutonomousDatabaseRequest.DeleteAutonomousDatabaseRequest; +import * as DeleteAutonomousVmClusterRequest from "./delete-autonomous-vm-cluster-request"; +export import DeleteAutonomousVmClusterRequest = DeleteAutonomousVmClusterRequest.DeleteAutonomousVmClusterRequest; import * as DeleteBackupRequest from "./delete-backup-request"; export import DeleteBackupRequest = DeleteBackupRequest.DeleteBackupRequest; import * as DeleteBackupDestinationRequest from "./delete-backup-destination-request"; @@ -112,6 +118,8 @@ import * as GetAutonomousDatabaseWalletRequest from "./get-autonomous-database-w export import GetAutonomousDatabaseWalletRequest = GetAutonomousDatabaseWalletRequest.GetAutonomousDatabaseWalletRequest; import * as GetAutonomousExadataInfrastructureRequest from "./get-autonomous-exadata-infrastructure-request"; export import GetAutonomousExadataInfrastructureRequest = GetAutonomousExadataInfrastructureRequest.GetAutonomousExadataInfrastructureRequest; +import * as GetAutonomousVmClusterRequest from "./get-autonomous-vm-cluster-request"; +export import GetAutonomousVmClusterRequest = GetAutonomousVmClusterRequest.GetAutonomousVmClusterRequest; import * as GetBackupRequest from "./get-backup-request"; export import GetBackupRequest = GetBackupRequest.GetBackupRequest; import * as GetBackupDestinationRequest from "./get-backup-destination-request"; @@ -176,6 +184,8 @@ import * as ListAutonomousExadataInfrastructureShapesRequest from "./list-autono export import ListAutonomousExadataInfrastructureShapesRequest = ListAutonomousExadataInfrastructureShapesRequest.ListAutonomousExadataInfrastructureShapesRequest; import * as ListAutonomousExadataInfrastructuresRequest from "./list-autonomous-exadata-infrastructures-request"; export import ListAutonomousExadataInfrastructuresRequest = ListAutonomousExadataInfrastructuresRequest.ListAutonomousExadataInfrastructuresRequest; +import * as ListAutonomousVmClustersRequest from "./list-autonomous-vm-clusters-request"; +export import ListAutonomousVmClustersRequest = ListAutonomousVmClustersRequest.ListAutonomousVmClustersRequest; import * as ListBackupDestinationRequest from "./list-backup-destination-request"; export import ListBackupDestinationRequest = ListBackupDestinationRequest.ListBackupDestinationRequest; import * as ListBackupsRequest from "./list-backups-request"; @@ -260,6 +270,8 @@ import * as UpdateAutonomousDatabaseWalletRequest from "./update-autonomous-data export import UpdateAutonomousDatabaseWalletRequest = UpdateAutonomousDatabaseWalletRequest.UpdateAutonomousDatabaseWalletRequest; import * as UpdateAutonomousExadataInfrastructureRequest from "./update-autonomous-exadata-infrastructure-request"; export import UpdateAutonomousExadataInfrastructureRequest = UpdateAutonomousExadataInfrastructureRequest.UpdateAutonomousExadataInfrastructureRequest; +import * as UpdateAutonomousVmClusterRequest from "./update-autonomous-vm-cluster-request"; +export import UpdateAutonomousVmClusterRequest = UpdateAutonomousVmClusterRequest.UpdateAutonomousVmClusterRequest; import * as UpdateBackupDestinationRequest from "./update-backup-destination-request"; export import UpdateBackupDestinationRequest = UpdateBackupDestinationRequest.UpdateBackupDestinationRequest; import * as UpdateDatabaseRequest from "./update-database-request"; diff --git a/lib/database/lib/request/list-autonomous-container-databases-request.ts b/lib/database/lib/request/list-autonomous-container-databases-request.ts index b347d252fc..4bbe239681 100644 --- a/lib/database/lib/request/list-autonomous-container-databases-request.ts +++ b/lib/database/lib/request/list-autonomous-container-databases-request.ts @@ -22,6 +22,14 @@ export interface ListAutonomousContainerDatabasesRequest { * The Autonomous Exadata Infrastructure [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). */ "autonomousExadataInfrastructureId"?: string; + /** + * The Autonomous VM Cluster [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + "autonomousVmClusterId"?: string; + /** + * A filter to return only resources that match the given Infrastructure Type. + */ + "infrastructureType"?: string; /** * The maximum number of items to return per page. */ diff --git a/lib/database/lib/request/list-autonomous-databases-request.ts b/lib/database/lib/request/list-autonomous-databases-request.ts index ec65902efd..a3701c1ce1 100644 --- a/lib/database/lib/request/list-autonomous-databases-request.ts +++ b/lib/database/lib/request/list-autonomous-databases-request.ts @@ -41,6 +41,10 @@ export interface ListAutonomousDatabasesRequest { * The sort order to use, either ascending (`ASC`) or descending (`DESC`). */ "sortOrder"?: ListAutonomousDatabasesRequest.SortOrder; + /** + * A filter to return only resources that match the given Infrastructure Type. + */ + "infrastructureType"?: string; /** * A filter to return only resources that match the given lifecycle state exactly. */ diff --git a/lib/database/lib/request/list-autonomous-vm-clusters-request.ts b/lib/database/lib/request/list-autonomous-vm-clusters-request.ts new file mode 100644 index 0000000000..a161b7bbef --- /dev/null +++ b/lib/database/lib/request/list-autonomous-vm-clusters-request.ts @@ -0,0 +1,67 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListAutonomousVmClustersRequest { + /** + * The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + "compartmentId": string; + /** + * If provided, filters the results for the given Exadata Infrastructure. + */ + "exadataInfrastructureId"?: string; + /** + * The maximum number of items to return per page. + */ + "limit"?: number; + /** + * The pagination token to continue listing from. + */ + "page"?: string; + /** + * The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + * + */ + "sortBy"?: ListAutonomousVmClustersRequest.SortBy; + /** + * The sort order to use, either ascending (`ASC`) or descending (`DESC`). + */ + "sortOrder"?: ListAutonomousVmClustersRequest.SortOrder; + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + "displayName"?: string; + /** + * Unique identifier for the request. + * + */ + "opcRequestId"?: string; +} + +export namespace ListAutonomousVmClustersRequest { + export enum SortBy { + TIMECREATED = "TIMECREATED", + DISPLAYNAME = "DISPLAYNAME" + } + + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } +} diff --git a/lib/database/lib/request/update-autonomous-vm-cluster-request.ts b/lib/database/lib/request/update-autonomous-vm-cluster-request.ts new file mode 100644 index 0000000000..bde6518bd6 --- /dev/null +++ b/lib/database/lib/request/update-autonomous-vm-cluster-request.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateAutonomousVmClusterRequest { + /** + * The autonomous VM cluster [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + "autonomousVmClusterId": string; + /** + * Request to update the attributes of an Autonomous VM cluster. + */ + "updateAutonomousVmClusterDetails": model.UpdateAutonomousVmClusterDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * + */ + "opcRequestId"?: string; +} diff --git a/lib/database/lib/response/change-autonomous-vm-cluster-compartment-response.ts b/lib/database/lib/response/change-autonomous-vm-cluster-compartment-response.ts new file mode 100644 index 0000000000..e6f25e6f38 --- /dev/null +++ b/lib/database/lib/response/change-autonomous-vm-cluster-compartment-response.ts @@ -0,0 +1,28 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ChangeAutonomousVmClusterCompartmentResponse { + /** + * Unique Oracle-assigned identifier of the work request. + */ + "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/database/lib/response/create-autonomous-vm-cluster-response.ts b/lib/database/lib/response/create-autonomous-vm-cluster-response.ts new file mode 100644 index 0000000000..d275d4e94b --- /dev/null +++ b/lib/database/lib/response/create-autonomous-vm-cluster-response.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateAutonomousVmClusterResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + "opcWorkRequestId": string; + /** + * For optimistic concurrency control. See `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.AutonomousVmCluster instance. + */ + "autonomousVmCluster": model.AutonomousVmCluster; +} diff --git a/lib/database/lib/response/delete-autonomous-vm-cluster-response.ts b/lib/database/lib/response/delete-autonomous-vm-cluster-response.ts new file mode 100644 index 0000000000..002c59cb1c --- /dev/null +++ b/lib/database/lib/response/delete-autonomous-vm-cluster-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteAutonomousVmClusterResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + "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/database/lib/response/get-autonomous-vm-cluster-response.ts b/lib/database/lib/response/get-autonomous-vm-cluster-response.ts new file mode 100644 index 0000000000..0909bddc1e --- /dev/null +++ b/lib/database/lib/response/get-autonomous-vm-cluster-response.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetAutonomousVmClusterResponse { + /** + * For optimistic concurrency control. See `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.AutonomousVmCluster instance. + */ + "autonomousVmCluster": model.AutonomousVmCluster; +} diff --git a/lib/database/lib/response/index.ts b/lib/database/lib/response/index.ts index ff5b6a9de7..45022636db 100644 --- a/lib/database/lib/response/index.ts +++ b/lib/database/lib/response/index.ts @@ -20,6 +20,8 @@ import * as ChangeAutonomousDatabaseCompartmentResponse from "./change-autonomou export import ChangeAutonomousDatabaseCompartmentResponse = ChangeAutonomousDatabaseCompartmentResponse.ChangeAutonomousDatabaseCompartmentResponse; import * as ChangeAutonomousExadataInfrastructureCompartmentResponse from "./change-autonomous-exadata-infrastructure-compartment-response"; export import ChangeAutonomousExadataInfrastructureCompartmentResponse = ChangeAutonomousExadataInfrastructureCompartmentResponse.ChangeAutonomousExadataInfrastructureCompartmentResponse; +import * as ChangeAutonomousVmClusterCompartmentResponse from "./change-autonomous-vm-cluster-compartment-response"; +export import ChangeAutonomousVmClusterCompartmentResponse = ChangeAutonomousVmClusterCompartmentResponse.ChangeAutonomousVmClusterCompartmentResponse; import * as ChangeBackupDestinationCompartmentResponse from "./change-backup-destination-compartment-response"; export import ChangeBackupDestinationCompartmentResponse = ChangeBackupDestinationCompartmentResponse.ChangeBackupDestinationCompartmentResponse; import * as ChangeDbSystemCompartmentResponse from "./change-db-system-compartment-response"; @@ -40,6 +42,8 @@ import * as CreateAutonomousDatabaseResponse from "./create-autonomous-database- export import CreateAutonomousDatabaseResponse = CreateAutonomousDatabaseResponse.CreateAutonomousDatabaseResponse; import * as CreateAutonomousDatabaseBackupResponse from "./create-autonomous-database-backup-response"; export import CreateAutonomousDatabaseBackupResponse = CreateAutonomousDatabaseBackupResponse.CreateAutonomousDatabaseBackupResponse; +import * as CreateAutonomousVmClusterResponse from "./create-autonomous-vm-cluster-response"; +export import CreateAutonomousVmClusterResponse = CreateAutonomousVmClusterResponse.CreateAutonomousVmClusterResponse; import * as CreateBackupResponse from "./create-backup-response"; export import CreateBackupResponse = CreateBackupResponse.CreateBackupResponse; import * as CreateBackupDestinationResponse from "./create-backup-destination-response"; @@ -66,6 +70,8 @@ import * as DeleteAutonomousDataWarehouseResponse from "./delete-autonomous-data export import DeleteAutonomousDataWarehouseResponse = DeleteAutonomousDataWarehouseResponse.DeleteAutonomousDataWarehouseResponse; import * as DeleteAutonomousDatabaseResponse from "./delete-autonomous-database-response"; export import DeleteAutonomousDatabaseResponse = DeleteAutonomousDatabaseResponse.DeleteAutonomousDatabaseResponse; +import * as DeleteAutonomousVmClusterResponse from "./delete-autonomous-vm-cluster-response"; +export import DeleteAutonomousVmClusterResponse = DeleteAutonomousVmClusterResponse.DeleteAutonomousVmClusterResponse; import * as DeleteBackupResponse from "./delete-backup-response"; export import DeleteBackupResponse = DeleteBackupResponse.DeleteBackupResponse; import * as DeleteBackupDestinationResponse from "./delete-backup-destination-response"; @@ -112,6 +118,8 @@ import * as GetAutonomousDatabaseWalletResponse from "./get-autonomous-database- export import GetAutonomousDatabaseWalletResponse = GetAutonomousDatabaseWalletResponse.GetAutonomousDatabaseWalletResponse; import * as GetAutonomousExadataInfrastructureResponse from "./get-autonomous-exadata-infrastructure-response"; export import GetAutonomousExadataInfrastructureResponse = GetAutonomousExadataInfrastructureResponse.GetAutonomousExadataInfrastructureResponse; +import * as GetAutonomousVmClusterResponse from "./get-autonomous-vm-cluster-response"; +export import GetAutonomousVmClusterResponse = GetAutonomousVmClusterResponse.GetAutonomousVmClusterResponse; import * as GetBackupResponse from "./get-backup-response"; export import GetBackupResponse = GetBackupResponse.GetBackupResponse; import * as GetBackupDestinationResponse from "./get-backup-destination-response"; @@ -176,6 +184,8 @@ import * as ListAutonomousExadataInfrastructureShapesResponse from "./list-auton export import ListAutonomousExadataInfrastructureShapesResponse = ListAutonomousExadataInfrastructureShapesResponse.ListAutonomousExadataInfrastructureShapesResponse; import * as ListAutonomousExadataInfrastructuresResponse from "./list-autonomous-exadata-infrastructures-response"; export import ListAutonomousExadataInfrastructuresResponse = ListAutonomousExadataInfrastructuresResponse.ListAutonomousExadataInfrastructuresResponse; +import * as ListAutonomousVmClustersResponse from "./list-autonomous-vm-clusters-response"; +export import ListAutonomousVmClustersResponse = ListAutonomousVmClustersResponse.ListAutonomousVmClustersResponse; import * as ListBackupDestinationResponse from "./list-backup-destination-response"; export import ListBackupDestinationResponse = ListBackupDestinationResponse.ListBackupDestinationResponse; import * as ListBackupsResponse from "./list-backups-response"; @@ -260,6 +270,8 @@ import * as UpdateAutonomousDatabaseWalletResponse from "./update-autonomous-dat export import UpdateAutonomousDatabaseWalletResponse = UpdateAutonomousDatabaseWalletResponse.UpdateAutonomousDatabaseWalletResponse; import * as UpdateAutonomousExadataInfrastructureResponse from "./update-autonomous-exadata-infrastructure-response"; export import UpdateAutonomousExadataInfrastructureResponse = UpdateAutonomousExadataInfrastructureResponse.UpdateAutonomousExadataInfrastructureResponse; +import * as UpdateAutonomousVmClusterResponse from "./update-autonomous-vm-cluster-response"; +export import UpdateAutonomousVmClusterResponse = UpdateAutonomousVmClusterResponse.UpdateAutonomousVmClusterResponse; import * as UpdateBackupDestinationResponse from "./update-backup-destination-response"; export import UpdateBackupDestinationResponse = UpdateBackupDestinationResponse.UpdateBackupDestinationResponse; import * as UpdateDatabaseResponse from "./update-database-response"; diff --git a/lib/database/lib/response/list-autonomous-vm-clusters-response.ts b/lib/database/lib/response/list-autonomous-vm-clusters-response.ts new file mode 100644 index 0000000000..4a3dc092b1 --- /dev/null +++ b/lib/database/lib/response/list-autonomous-vm-clusters-response.ts @@ -0,0 +1,36 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListAutonomousVmClustersResponse { + /** + * 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 there are additional items still to get. Include this value as the `page` parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * A list of AutonomousVmClusterSummary instances. + */ + "items": model.AutonomousVmClusterSummary[]; +} diff --git a/lib/database/lib/response/update-autonomous-vm-cluster-response.ts b/lib/database/lib/response/update-autonomous-vm-cluster-response.ts new file mode 100644 index 0000000000..e175873ff4 --- /dev/null +++ b/lib/database/lib/response/update-autonomous-vm-cluster-response.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20160918 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateAutonomousVmClusterResponse { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + "opcWorkRequestId": string; + /** + * For optimistic concurrency control. See `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.AutonomousVmCluster instance. + */ + "autonomousVmCluster": model.AutonomousVmCluster; +} diff --git a/lib/database/package.json b/lib/database/package.json index 7aa45c261d..8de7e154b0 100644 --- a/lib/database/package.json +++ b/lib/database/package.json @@ -1,6 +1,6 @@ { "name": "oci-database", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Database", "repository": { "type": "git", diff --git a/lib/datacatalog/lib/client.ts b/lib/datacatalog/lib/client.ts index 9b664b4ec0..b482680a85 100644 --- a/lib/datacatalog/lib/client.ts +++ b/lib/datacatalog/lib/client.ts @@ -114,6 +114,69 @@ export class DataCatalogClient { throw Error("Waiters do not exist. Please create waiters."); } + /** + * Attaches a private reverse connection endpoint resource to a data catalog resource. When provided, 'If-Match' is checked against 'ETag' values of the resource. + * @param AttachCatalogPrivateEndpointRequest + * @return AttachCatalogPrivateEndpointResponse + * @throws OciError when an error occurs + */ + public async attachCatalogPrivateEndpoint( + attachCatalogPrivateEndpointRequest: requests.AttachCatalogPrivateEndpointRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataCatalogClient#attachCatalogPrivateEndpoint."); + const pathParams = { + "{catalogId}": attachCatalogPrivateEndpointRequest.catalogId + }; + + const queryParams = {}; + + let headerParams = { + "if-match": attachCatalogPrivateEndpointRequest.ifMatch, + "opc-request-id": attachCatalogPrivateEndpointRequest.opcRequestId, + "opc-retry-token": attachCatalogPrivateEndpointRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/catalogs/{catalogId}/actions/attachCatalogPrivateEndpoint", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + attachCatalogPrivateEndpointRequest.attachCatalogPrivateEndpointDetails, + "AttachCatalogPrivateEndpointDetails", + models.AttachCatalogPrivateEndpointDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + /** * Moves a resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource. * @param ChangeCatalogCompartmentRequest @@ -156,15 +219,80 @@ export class DataCatalogClient { 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Moves a resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource. + * @param ChangeCatalogPrivateEndpointCompartmentRequest + * @return ChangeCatalogPrivateEndpointCompartmentResponse + * @throws OciError when an error occurs + */ + public async changeCatalogPrivateEndpointCompartment( + changeCatalogPrivateEndpointCompartmentRequest: requests.ChangeCatalogPrivateEndpointCompartmentRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation DataCatalogClient#changeCatalogPrivateEndpointCompartment." + ); + const pathParams = { + "{catalogPrivateEndpointId}": + changeCatalogPrivateEndpointCompartmentRequest.catalogPrivateEndpointId + }; + + const queryParams = {}; + + let headerParams = { + "if-match": changeCatalogPrivateEndpointCompartmentRequest.ifMatch, + "opc-request-id": changeCatalogPrivateEndpointCompartmentRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/catalogPrivateEndpoints/{catalogPrivateEndpointId}/actions/changeCompartment", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + changeCatalogPrivateEndpointCompartmentRequest.changeCatalogPrivateEndpointCompartmentDetails, + "ChangeCatalogPrivateEndpointCompartmentDetails", + models.ChangeCatalogPrivateEndpointCompartmentDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + 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" } ] }); @@ -371,6 +499,66 @@ export class DataCatalogClient { } } + /** + * Create a new private reverse connection endpoint. + * @param CreateCatalogPrivateEndpointRequest + * @return CreateCatalogPrivateEndpointResponse + * @throws OciError when an error occurs + */ + public async createCatalogPrivateEndpoint( + createCatalogPrivateEndpointRequest: requests.CreateCatalogPrivateEndpointRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataCatalogClient#createCatalogPrivateEndpoint."); + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": createCatalogPrivateEndpointRequest.opcRequestId, + "opc-retry-token": createCatalogPrivateEndpointRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/catalogPrivateEndpoints", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createCatalogPrivateEndpointRequest.createCatalogPrivateEndpointDetails, + "CreateCatalogPrivateEndpointDetails", + models.CreateCatalogPrivateEndpointDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + /** * Creates a new connection. * @param CreateConnectionRequest @@ -1383,6 +1571,63 @@ export class DataCatalogClient { } } + /** + * Deletes a private reverse connection endpoint by identifier. + * @param DeleteCatalogPrivateEndpointRequest + * @return DeleteCatalogPrivateEndpointResponse + * @throws OciError when an error occurs + */ + public async deleteCatalogPrivateEndpoint( + deleteCatalogPrivateEndpointRequest: requests.DeleteCatalogPrivateEndpointRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataCatalogClient#deleteCatalogPrivateEndpoint."); + const pathParams = { + "{catalogPrivateEndpointId}": deleteCatalogPrivateEndpointRequest.catalogPrivateEndpointId + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteCatalogPrivateEndpointRequest.ifMatch, + "opc-request-id": deleteCatalogPrivateEndpointRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/catalogPrivateEndpoints/{catalogPrivateEndpointId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + /** * Deletes a specific connection of a data asset. * @param DeleteConnectionRequest @@ -2020,6 +2265,68 @@ export class DataCatalogClient { } } + /** + * Detaches a private reverse connection endpoint resource to a data catalog resource. When provided, 'If-Match' is checked against 'ETag' values of the resource. + * @param DetachCatalogPrivateEndpointRequest + * @return DetachCatalogPrivateEndpointResponse + * @throws OciError when an error occurs + */ + public async detachCatalogPrivateEndpoint( + detachCatalogPrivateEndpointRequest: requests.DetachCatalogPrivateEndpointRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataCatalogClient#detachCatalogPrivateEndpoint."); + const pathParams = { + "{catalogId}": detachCatalogPrivateEndpointRequest.catalogId + }; + + const queryParams = {}; + + let headerParams = { + "if-match": detachCatalogPrivateEndpointRequest.ifMatch, + "opc-request-id": detachCatalogPrivateEndpointRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/catalogs/{catalogId}/actions/detachCatalogPrivateEndpoint", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + detachCatalogPrivateEndpointRequest.detachCatalogPrivateEndpointDetails, + "DetachCatalogPrivateEndpointDetails", + models.DetachCatalogPrivateEndpointDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + /** * Returns the fully expanded tree hierarchy of parent and child terms in this glossary. * @param ExpandTreeForGlossaryRequest @@ -2330,6 +2637,65 @@ export class DataCatalogClient { } } + /** + * Gets a specific private reverse connection by identifier. + * @param GetCatalogPrivateEndpointRequest + * @return GetCatalogPrivateEndpointResponse + * @throws OciError when an error occurs + */ + public async getCatalogPrivateEndpoint( + getCatalogPrivateEndpointRequest: requests.GetCatalogPrivateEndpointRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataCatalogClient#getCatalogPrivateEndpoint."); + const pathParams = { + "{catalogPrivateEndpointId}": getCatalogPrivateEndpointRequest.catalogPrivateEndpointId + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getCatalogPrivateEndpointRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/catalogPrivateEndpoints/{catalogPrivateEndpointId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "catalogPrivateEndpoint", + bodyModel: "model.CatalogPrivateEndpoint", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + /** * Gets a specific data asset connection by key. * @param GetConnectionRequest @@ -3670,6 +4036,97 @@ export class DataCatalogClient { } } + /** + * Returns a list of all the catalog private endpoints in the specified compartment. + * + * @param ListCatalogPrivateEndpointsRequest + * @return ListCatalogPrivateEndpointsResponse + * @throws OciError when an error occurs + */ + public async listCatalogPrivateEndpoints( + listCatalogPrivateEndpointsRequest: requests.ListCatalogPrivateEndpointsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataCatalogClient#listCatalogPrivateEndpoints."); + const pathParams = {}; + + const queryParams = { + "compartmentId": listCatalogPrivateEndpointsRequest.compartmentId, + "displayName": listCatalogPrivateEndpointsRequest.displayName, + "limit": listCatalogPrivateEndpointsRequest.limit, + "page": listCatalogPrivateEndpointsRequest.page, + "lifecycleState": listCatalogPrivateEndpointsRequest.lifecycleState, + "sortOrder": listCatalogPrivateEndpointsRequest.sortOrder, + "sortBy": listCatalogPrivateEndpointsRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listCatalogPrivateEndpointsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/catalogPrivateEndpoints", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: "CatalogPrivateEndpointSummary[]", + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a new async iterator which will iterate over the models.CatalogPrivateEndpointSummary objects + * contained in responses from the listCatalogPrivateEndpoints 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 listAllCatalogPrivateEndpoints( + request: requests.ListCatalogPrivateEndpointsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listCatalogPrivateEndpoints(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listCatalogPrivateEndpoints 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 listAllCatalogPrivateEndpointsResponses( + request: requests.ListCatalogPrivateEndpointsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listCatalogPrivateEndpoints(req)); + } + /** * Returns a list of all the data catalogs in the specified compartment. * @@ -5669,6 +6126,68 @@ export class DataCatalogClient { } } + /** + * Updates the private reverse connection endpoint. + * @param UpdateCatalogPrivateEndpointRequest + * @return UpdateCatalogPrivateEndpointResponse + * @throws OciError when an error occurs + */ + public async updateCatalogPrivateEndpoint( + updateCatalogPrivateEndpointRequest: requests.UpdateCatalogPrivateEndpointRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataCatalogClient#updateCatalogPrivateEndpoint."); + const pathParams = { + "{catalogPrivateEndpointId}": updateCatalogPrivateEndpointRequest.catalogPrivateEndpointId + }; + + const queryParams = {}; + + let headerParams = { + "if-match": updateCatalogPrivateEndpointRequest.ifMatch, + "opc-request-id": updateCatalogPrivateEndpointRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/catalogPrivateEndpoints/{catalogPrivateEndpointId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateCatalogPrivateEndpointRequest.updateCatalogPrivateEndpointDetails, + "UpdateCatalogPrivateEndpointDetails", + models.UpdateCatalogPrivateEndpointDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + /** * Updates a specific connection of a data asset. * @param UpdateConnectionRequest diff --git a/lib/datacatalog/lib/datacatalog-waiter.ts b/lib/datacatalog/lib/datacatalog-waiter.ts index 8dfa2d0f87..c453ab0dbc 100644 --- a/lib/datacatalog/lib/datacatalog-waiter.ts +++ b/lib/datacatalog/lib/datacatalog-waiter.ts @@ -23,6 +23,346 @@ export class DataCatalogWaiter { private readonly config?: WaiterConfiguration ) {} + /** + * Waits forAttribute 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 GetAttributeResponse | null (null in case of 404 response) + */ + public async forAttribute( + request: serviceRequests.GetAttributeRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getAttribute(request), + response => targetStates.exists(response.attribute.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forAttributeTag 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 GetAttributeTagResponse | null (null in case of 404 response) + */ + public async forAttributeTag( + request: serviceRequests.GetAttributeTagRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getAttributeTag(request), + response => targetStates.exists(response.attributeTag.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forCatalog 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 GetCatalogResponse | null (null in case of 404 response) + */ + public async forCatalog( + request: serviceRequests.GetCatalogRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getCatalog(request), + response => targetStates.exists(response.catalog.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forCatalogPrivateEndpoint 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 GetCatalogPrivateEndpointResponse | null (null in case of 404 response) + */ + public async forCatalogPrivateEndpoint( + request: serviceRequests.GetCatalogPrivateEndpointRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getCatalogPrivateEndpoint(request), + response => targetStates.exists(response.catalogPrivateEndpoint.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forConnection 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 GetConnectionResponse | null (null in case of 404 response) + */ + public async forConnection( + request: serviceRequests.GetConnectionRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getConnection(request), + response => targetStates.exists(response.connection.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forDataAsset 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 GetDataAssetResponse | null (null in case of 404 response) + */ + public async forDataAsset( + request: serviceRequests.GetDataAssetRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getDataAsset(request), + response => targetStates.exists(response.dataAsset.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forDataAssetTag 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 GetDataAssetTagResponse | null (null in case of 404 response) + */ + public async forDataAssetTag( + request: serviceRequests.GetDataAssetTagRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getDataAssetTag(request), + response => targetStates.exists(response.dataAssetTag.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forEntity 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 GetEntityResponse | null (null in case of 404 response) + */ + public async forEntity( + request: serviceRequests.GetEntityRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getEntity(request), + response => targetStates.exists(response.entity.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forEntityTag 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 GetEntityTagResponse | null (null in case of 404 response) + */ + public async forEntityTag( + request: serviceRequests.GetEntityTagRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getEntityTag(request), + response => targetStates.exists(response.entityTag.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forFolder 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 GetFolderResponse | null (null in case of 404 response) + */ + public async forFolder( + request: serviceRequests.GetFolderRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getFolder(request), + response => targetStates.exists(response.folder.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forFolderTag 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 GetFolderTagResponse | null (null in case of 404 response) + */ + public async forFolderTag( + request: serviceRequests.GetFolderTagRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getFolderTag(request), + response => targetStates.exists(response.folderTag.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forGlossary 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 GetGlossaryResponse | null (null in case of 404 response) + */ + public async forGlossary( + request: serviceRequests.GetGlossaryRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getGlossary(request), + response => targetStates.exists(response.glossary.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forJob 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 GetJobResponse + */ + public async forJob( + request: serviceRequests.GetJobRequest, + ...targetStates: models.JobLifecycleState[] + ): Promise { + return genericWaiter( + this.config, + () => this.client.getJob(request), + response => targetStates.exists(response.job.lifecycleState) + ); + } + + /** + * Waits forJobDefinition 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 GetJobDefinitionResponse | null (null in case of 404 response) + */ + public async forJobDefinition( + request: serviceRequests.GetJobDefinitionRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getJobDefinition(request), + response => targetStates.exists(response.jobDefinition.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forJobExecution 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 GetJobExecutionResponse + */ + public async forJobExecution( + request: serviceRequests.GetJobExecutionRequest, + ...targetStates: models.JobExecutionState[] + ): Promise { + return genericWaiter( + this.config, + () => this.client.getJobExecution(request), + response => targetStates.exists(response.jobExecution.lifecycleState) + ); + } + + /** + * Waits forTerm 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 GetTermResponse | null (null in case of 404 response) + */ + public async forTerm( + request: serviceRequests.GetTermRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getTerm(request), + response => targetStates.exists(response.term.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forTermRelationship 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 GetTermRelationshipResponse | null (null in case of 404 response) + */ + public async forTermRelationship( + request: serviceRequests.GetTermRelationshipRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getTermRelationship(request), + response => targetStates.exists(response.termRelationship.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + + /** + * Waits forType 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 GetTypeResponse | null (null in case of 404 response) + */ + public async forType( + request: serviceRequests.GetTypeRequest, + ...targetStates: models.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getType(request), + response => targetStates.exists(response.type.lifecycleState), + targetStates.includes(models.LifecycleState.DELETED) + ); + } + /** * Waits forWorkRequest * diff --git a/lib/datacatalog/lib/model/attach-catalog-private-endpoint-details.ts b/lib/datacatalog/lib/model/attach-catalog-private-endpoint-details.ts new file mode 100644 index 0000000000..cee6fa5b81 --- /dev/null +++ b/lib/datacatalog/lib/model/attach-catalog-private-endpoint-details.ts @@ -0,0 +1,33 @@ +/** + * Data Catalog API + * Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata. + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Information about the attaching the private endpoint resource to a catalog + */ +export interface AttachCatalogPrivateEndpointDetails { + /** + * The identifier of the private endpoint to be attached to the catalog resource. + */ + "catalogPrivateEndpointId": string; +} + +export namespace AttachCatalogPrivateEndpointDetails { + export function getJsonObj(obj: AttachCatalogPrivateEndpointDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/datacatalog/lib/model/attribute-summary.ts b/lib/datacatalog/lib/model/attribute-summary.ts index 0bb1125bcc..9b96f10e8f 100644 --- a/lib/datacatalog/lib/model/attribute-summary.ts +++ b/lib/datacatalog/lib/model/attribute-summary.ts @@ -55,7 +55,7 @@ export interface AttributeSummary { /** * State of the attribute. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The date and time the attribute was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` diff --git a/lib/datacatalog/lib/model/attribute-tag-summary.ts b/lib/datacatalog/lib/model/attribute-tag-summary.ts index faeb76f640..fb6f39ecaf 100644 --- a/lib/datacatalog/lib/model/attribute-tag-summary.ts +++ b/lib/datacatalog/lib/model/attribute-tag-summary.ts @@ -59,7 +59,7 @@ export interface AttributeTagSummary { /** * State of the Tag. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace AttributeTagSummary { diff --git a/lib/datacatalog/lib/model/attribute-tag.ts b/lib/datacatalog/lib/model/attribute-tag.ts index e7be041ec7..e57ded7147 100644 --- a/lib/datacatalog/lib/model/attribute-tag.ts +++ b/lib/datacatalog/lib/model/attribute-tag.ts @@ -45,7 +45,7 @@ export interface AttributeTag { /** * The current state of the tag. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` diff --git a/lib/datacatalog/lib/model/attribute.ts b/lib/datacatalog/lib/model/attribute.ts index 0286ae846b..c9f11dcb11 100644 --- a/lib/datacatalog/lib/model/attribute.ts +++ b/lib/datacatalog/lib/model/attribute.ts @@ -41,7 +41,7 @@ export interface Attribute { /** * State of the attribute. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The date and time the attribute was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` diff --git a/lib/datacatalog/lib/model/base-tag-summary.ts b/lib/datacatalog/lib/model/base-tag-summary.ts index 508b24fcaa..aee00334b1 100644 --- a/lib/datacatalog/lib/model/base-tag-summary.ts +++ b/lib/datacatalog/lib/model/base-tag-summary.ts @@ -55,7 +55,7 @@ export interface BaseTagSummary { /** * State of the Tag. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace BaseTagSummary { diff --git a/lib/datacatalog/lib/model/base-tag.ts b/lib/datacatalog/lib/model/base-tag.ts index aa8d68016f..e38d6f6ee1 100644 --- a/lib/datacatalog/lib/model/base-tag.ts +++ b/lib/datacatalog/lib/model/base-tag.ts @@ -41,7 +41,7 @@ export interface BaseTag { /** * The current state of the tag. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` diff --git a/lib/datacatalog/lib/model/catalog-private-endpoint-summary.ts b/lib/datacatalog/lib/model/catalog-private-endpoint-summary.ts new file mode 100644 index 0000000000..c6f74a340e --- /dev/null +++ b/lib/datacatalog/lib/model/catalog-private-endpoint-summary.ts @@ -0,0 +1,83 @@ +/** + * Data Catalog API + * Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata. + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 private network reverse connection creates a connection from service to customer subnet over a private network. + */ +export interface CatalogPrivateEndpointSummary { + /** + * Unique identifier that is immutable + */ + "id": string; + /** + * Subnet Identifier + */ + "subnetId": string; + /** + * List of DNS zones to be used by the data assets to be harvested. + * Example: custpvtsubnet.oraclevcn.com for data asset: db.custpvtsubnet.oraclevcn.com + * + */ + "dnsZones": Array; + /** + * Identifier of the compartment this private endpoint belongs to + */ + "compartmentId": string; + /** + * The time the private endpoint was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + "timeCreated"?: Date; + /** + * The time the private endpoint was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Mutable name of the Private Reverse Connection Endpoint + */ + "displayName"?: 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: `{\"bar-key\": \"value\"}` + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Usage of predefined tag keys. These predefined keys are scoped to namespaces. + * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * The current state of the private endpoint resource. + */ + "lifecycleState"?: model.LifecycleState; + /** + * The list of catalogs using the private reverse connection endpoint + */ + "attachedCatalogs"?: Array; +} + +export namespace CatalogPrivateEndpointSummary { + export function getJsonObj(obj: CatalogPrivateEndpointSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/datacatalog/lib/model/catalog-private-endpoint.ts b/lib/datacatalog/lib/model/catalog-private-endpoint.ts new file mode 100644 index 0000000000..c92d622695 --- /dev/null +++ b/lib/datacatalog/lib/model/catalog-private-endpoint.ts @@ -0,0 +1,83 @@ +/** + * Data Catalog API + * Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata. + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 private network reverse connection creates a connection from service to customer subnet over a private network. + */ +export interface CatalogPrivateEndpoint { + /** + * Unique identifier that is immutable + */ + "id": string; + /** + * Compartment Identifier. + */ + "compartmentId": string; + /** + * Subnet Identifier + */ + "subnetId": string; + /** + * Private Reverse Connection Endpoint display name + */ + "displayName"?: string; + /** + * List of DNS zones to be used by the data assets to be harvested. + * Example: custpvtsubnet.oraclevcn.com for data asset: db.custpvtsubnet.oraclevcn.com + * + */ + "dnsZones": Array; + /** + * The time the private endpoint was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + "timeCreated"?: Date; + /** + * The time the private endpoint was updated. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. + * Example: `{\"bar-key\": \"value\"}` + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Usage of predefined tag keys. These predefined keys are scoped to namespaces. + * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * The current state of the private endpoint resource. + */ + "lifecycleState"?: model.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; + /** + * The list of catalogs using the private reverse connection endpoint + */ + "attachedCatalogs"?: Array; +} + +export namespace CatalogPrivateEndpoint { + export function getJsonObj(obj: CatalogPrivateEndpoint): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/datacatalog/lib/model/catalog-summary.ts b/lib/datacatalog/lib/model/catalog-summary.ts index 8eb9e9c886..53ab9e645e 100644 --- a/lib/datacatalog/lib/model/catalog-summary.ts +++ b/lib/datacatalog/lib/model/catalog-summary.ts @@ -45,7 +45,7 @@ export interface CatalogSummary { /** * The current state of the data catalog resource. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * An message describing the current state in more detail. For example, can be used to provide actionable information for a resource in 'Failed' state. */ @@ -62,6 +62,10 @@ export interface CatalogSummary { * */ "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * The list of private reverse connection endpoints attached to the catalog + */ + "attachedCatalogPrivateEndpoints"?: Array; } export namespace CatalogSummary { diff --git a/lib/datacatalog/lib/model/catalog.ts b/lib/datacatalog/lib/model/catalog.ts index 01bee8fb14..41db371dd1 100644 --- a/lib/datacatalog/lib/model/catalog.ts +++ b/lib/datacatalog/lib/model/catalog.ts @@ -55,7 +55,7 @@ export interface Catalog { /** * The current state of the data catalog resource. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * An message describing the current state in more detail. * For example, it can be used to provide actionable information for a resource in 'Failed' state. @@ -74,6 +74,10 @@ export interface Catalog { * */ "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * The list of private reverse connection endpoints attached to the catalog + */ + "attachedCatalogPrivateEndpoints"?: Array; } export namespace Catalog { diff --git a/lib/datacatalog/lib/model/change-catalog-compartment-details.ts b/lib/datacatalog/lib/model/change-catalog-compartment-details.ts index 3aaf706555..b64862f0fa 100644 --- a/lib/datacatalog/lib/model/change-catalog-compartment-details.ts +++ b/lib/datacatalog/lib/model/change-catalog-compartment-details.ts @@ -14,6 +14,9 @@ import * as model from "../model"; import common = require("oci-common"); +/** + * Information about the change compartment + */ export interface ChangeCatalogCompartmentDetails { /** * The identifier of the compartment where the resource should be moved. diff --git a/lib/datacatalog/lib/model/change-catalog-private-endpoint-compartment-details.ts b/lib/datacatalog/lib/model/change-catalog-private-endpoint-compartment-details.ts new file mode 100644 index 0000000000..d13641fed8 --- /dev/null +++ b/lib/datacatalog/lib/model/change-catalog-private-endpoint-compartment-details.ts @@ -0,0 +1,33 @@ +/** + * Data Catalog API + * Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata. + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Information about the change compartment for the private endpoint resource + */ +export interface ChangeCatalogPrivateEndpointCompartmentDetails { + /** + * The identifier of the compartment where the resource should be moved. + */ + "compartmentId": string; +} + +export namespace ChangeCatalogPrivateEndpointCompartmentDetails { + export function getJsonObj(obj: ChangeCatalogPrivateEndpointCompartmentDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/datacatalog/lib/model/connection-result.ts b/lib/datacatalog/lib/model/connection-result.ts index 7a69062f6f..608d4cc14e 100644 --- a/lib/datacatalog/lib/model/connection-result.ts +++ b/lib/datacatalog/lib/model/connection-result.ts @@ -22,7 +22,13 @@ import common = require("oci-common"); **/ export enum ConnectionResult { SUCCEEDED = "SUCCEEDED", - FAILED = "FAILED" + 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. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" } export namespace ConnectionResult { diff --git a/lib/datacatalog/lib/model/connection-summary.ts b/lib/datacatalog/lib/model/connection-summary.ts index 1fe2125452..80fadfa058 100644 --- a/lib/datacatalog/lib/model/connection-summary.ts +++ b/lib/datacatalog/lib/model/connection-summary.ts @@ -51,7 +51,7 @@ export interface ConnectionSummary { /** * The current state of the connection. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Indicates whether this connection is the default connection. */ diff --git a/lib/datacatalog/lib/model/connection.ts b/lib/datacatalog/lib/model/connection.ts index 26f07f3dfe..fb1aa767b5 100644 --- a/lib/datacatalog/lib/model/connection.ts +++ b/lib/datacatalog/lib/model/connection.ts @@ -71,7 +71,7 @@ export interface Connection { /** * The current state of the connection. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Indicates whether this connection is the default connection. */ diff --git a/lib/datacatalog/lib/model/create-catalog-private-endpoint-details.ts b/lib/datacatalog/lib/model/create-catalog-private-endpoint-details.ts new file mode 100644 index 0000000000..c7e83d0f24 --- /dev/null +++ b/lib/datacatalog/lib/model/create-catalog-private-endpoint-details.ts @@ -0,0 +1,60 @@ +/** + * Data Catalog API + * Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata. + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Information about the new private endpoint resource + */ +export interface CreateCatalogPrivateEndpointDetails { + /** + * List of DNS zones to be used by the data assets to be harvested. + * Example: custpvtsubnet.oraclevcn.com for data asset: db.custpvtsubnet.oraclevcn.com + * + */ + "dnsZones": Array; + /** + * The OCID of subnet to which the reverse connection is to be created + * + */ + "subnetId": string; + /** + * Compartment identifier. + */ + "compartmentId": string; + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. + * Example: `{\"bar-key\": \"value\"}` + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Usage of predefined tag keys. These predefined keys are scoped to namespaces. + * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * Display name of the private endpoint resource being created. + */ + "displayName"?: string; +} + +export namespace CreateCatalogPrivateEndpointDetails { + export function getJsonObj(obj: CreateCatalogPrivateEndpointDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/datacatalog/lib/model/create-entity-details.ts b/lib/datacatalog/lib/model/create-entity-details.ts index 6642c42ef1..19e258347c 100644 --- a/lib/datacatalog/lib/model/create-entity-details.ts +++ b/lib/datacatalog/lib/model/create-entity-details.ts @@ -51,7 +51,7 @@ export interface CreateEntityDetails { * This requires a harvest status indicator for catalog objects. * */ - "harvestStatus"?: string; + "harvestStatus"?: model.HarvestStatus; /** * Key of the last harvest process to update this object. */ diff --git a/lib/datacatalog/lib/model/create-folder-details.ts b/lib/datacatalog/lib/model/create-folder-details.ts index 313743d32c..0ae6df80dd 100644 --- a/lib/datacatalog/lib/model/create-folder-details.ts +++ b/lib/datacatalog/lib/model/create-folder-details.ts @@ -55,7 +55,7 @@ export interface CreateFolderDetails { /** * Folder harvesting status. */ - "harvestStatus"?: string; + "harvestStatus"?: model.HarvestStatus; } export namespace CreateFolderDetails { diff --git a/lib/datacatalog/lib/model/create-glossary-details.ts b/lib/datacatalog/lib/model/create-glossary-details.ts index 76544725c1..2f5d78902b 100644 --- a/lib/datacatalog/lib/model/create-glossary-details.ts +++ b/lib/datacatalog/lib/model/create-glossary-details.ts @@ -31,7 +31,7 @@ export interface CreateGlossaryDetails { /** * Status of the approval process workflow for this business glossary. */ - "workflowStatus"?: string; + "workflowStatus"?: model.TermWorkflowStatus; /** * OCID of the user who is the owner of the glossary. */ diff --git a/lib/datacatalog/lib/model/create-job-definition-details.ts b/lib/datacatalog/lib/model/create-job-definition-details.ts index 0d7079a627..71bf48f8b1 100644 --- a/lib/datacatalog/lib/model/create-job-definition-details.ts +++ b/lib/datacatalog/lib/model/create-job-definition-details.ts @@ -34,7 +34,7 @@ export interface CreateJobDefinitionDetails { /** * Type of the job definition. */ - "jobType": string; + "jobType": model.JobType; /** * Specifies if the job definition is incremental or full. */ diff --git a/lib/datacatalog/lib/model/create-job-execution-details.ts b/lib/datacatalog/lib/model/create-job-execution-details.ts index 711ec6bb95..a4fc111930 100644 --- a/lib/datacatalog/lib/model/create-job-execution-details.ts +++ b/lib/datacatalog/lib/model/create-job-execution-details.ts @@ -25,7 +25,7 @@ export interface CreateJobExecutionDetails { /** * Type of the job execution. */ - "jobType"?: string; + "jobType"?: model.JobType; /** * The unique key of the parent execution or null if this job execution has no parent. */ @@ -43,7 +43,7 @@ export interface CreateJobExecutionDetails { /** * Status of the job execution, such as running, paused, or completed. */ - "lifecycleState"?: string; + "lifecycleState"?: model.JobExecutionState; /** * Error code returned from the job execution or null if job is still running or didn't return an error. * diff --git a/lib/datacatalog/lib/model/create-term-details.ts b/lib/datacatalog/lib/model/create-term-details.ts index f620adc162..db19a32d69 100644 --- a/lib/datacatalog/lib/model/create-term-details.ts +++ b/lib/datacatalog/lib/model/create-term-details.ts @@ -43,7 +43,7 @@ export interface CreateTermDetails { /** * Status of the approval process workflow for this business term in the glossary. */ - "workflowStatus"?: string; + "workflowStatus"?: model.TermWorkflowStatus; } export namespace CreateTermDetails { diff --git a/lib/datacatalog/lib/model/data-asset-summary.ts b/lib/datacatalog/lib/model/data-asset-summary.ts index 0bbfdd39f0..2ffe61d448 100644 --- a/lib/datacatalog/lib/model/data-asset-summary.ts +++ b/lib/datacatalog/lib/model/data-asset-summary.ts @@ -61,7 +61,7 @@ export interface DataAssetSummary { /** * State of the data asset. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace DataAssetSummary { diff --git a/lib/datacatalog/lib/model/data-asset-tag-summary.ts b/lib/datacatalog/lib/model/data-asset-tag-summary.ts index 122732b06a..59cbe73582 100644 --- a/lib/datacatalog/lib/model/data-asset-tag-summary.ts +++ b/lib/datacatalog/lib/model/data-asset-tag-summary.ts @@ -59,7 +59,7 @@ export interface DataAssetTagSummary { /** * State of the Tag. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace DataAssetTagSummary { diff --git a/lib/datacatalog/lib/model/data-asset-tag.ts b/lib/datacatalog/lib/model/data-asset-tag.ts index 2e3cf67abd..0f1cb51e82 100644 --- a/lib/datacatalog/lib/model/data-asset-tag.ts +++ b/lib/datacatalog/lib/model/data-asset-tag.ts @@ -45,7 +45,7 @@ export interface DataAssetTag { /** * The current state of the tag. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` diff --git a/lib/datacatalog/lib/model/data-asset.ts b/lib/datacatalog/lib/model/data-asset.ts index 0ab54ea3c3..20dcd5c908 100644 --- a/lib/datacatalog/lib/model/data-asset.ts +++ b/lib/datacatalog/lib/model/data-asset.ts @@ -51,7 +51,7 @@ export interface DataAsset { /** * The current state of the data asset. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The date and time the data asset was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` diff --git a/lib/datacatalog/lib/model/detach-catalog-private-endpoint-details.ts b/lib/datacatalog/lib/model/detach-catalog-private-endpoint-details.ts new file mode 100644 index 0000000000..3ff862da86 --- /dev/null +++ b/lib/datacatalog/lib/model/detach-catalog-private-endpoint-details.ts @@ -0,0 +1,33 @@ +/** + * Data Catalog API + * Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata. + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Information about the detaching the private endpoint resource from a catalog + */ +export interface DetachCatalogPrivateEndpointDetails { + /** + * The identifier of the private endpoint to be detached from catalog resource. + */ + "catalogPrivateEndpointId": string; +} + +export namespace DetachCatalogPrivateEndpointDetails { + export function getJsonObj(obj: DetachCatalogPrivateEndpointDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/datacatalog/lib/model/entity-summary.ts b/lib/datacatalog/lib/model/entity-summary.ts index 1ef98b9e7b..585b30c40f 100644 --- a/lib/datacatalog/lib/model/entity-summary.ts +++ b/lib/datacatalog/lib/model/entity-summary.ts @@ -73,7 +73,7 @@ export interface EntitySummary { /** * State of the data entity. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace EntitySummary { diff --git a/lib/datacatalog/lib/model/entity-tag-summary.ts b/lib/datacatalog/lib/model/entity-tag-summary.ts index 9853a8909c..5528f21b79 100644 --- a/lib/datacatalog/lib/model/entity-tag-summary.ts +++ b/lib/datacatalog/lib/model/entity-tag-summary.ts @@ -59,7 +59,7 @@ export interface EntityTagSummary { /** * State of the Tag. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace EntityTagSummary { diff --git a/lib/datacatalog/lib/model/entity-tag.ts b/lib/datacatalog/lib/model/entity-tag.ts index 1937639727..0fb29d0977 100644 --- a/lib/datacatalog/lib/model/entity-tag.ts +++ b/lib/datacatalog/lib/model/entity-tag.ts @@ -45,7 +45,7 @@ export interface EntityTag { /** * The current state of the tag. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` diff --git a/lib/datacatalog/lib/model/entity.ts b/lib/datacatalog/lib/model/entity.ts index f0e38a0ea0..f487905eee 100644 --- a/lib/datacatalog/lib/model/entity.ts +++ b/lib/datacatalog/lib/model/entity.ts @@ -57,7 +57,7 @@ export interface Entity { /** * The current state of the data entity. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Unique external key of this object in the source system. */ @@ -95,7 +95,7 @@ export interface Entity { /** * Status of the object as updated by the harvest process. */ - "harvestStatus"?: string; + "harvestStatus"?: model.HarvestStatus; /** * Key of the last harvest process to update this object. */ diff --git a/lib/datacatalog/lib/model/folder-summary.ts b/lib/datacatalog/lib/model/folder-summary.ts index 4f3bbcfc31..96fb6ef3a1 100644 --- a/lib/datacatalog/lib/model/folder-summary.ts +++ b/lib/datacatalog/lib/model/folder-summary.ts @@ -70,7 +70,7 @@ export interface FolderSummary { /** * State of the folder. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace FolderSummary { diff --git a/lib/datacatalog/lib/model/folder-tag-summary.ts b/lib/datacatalog/lib/model/folder-tag-summary.ts index ad452889e8..f499d7b392 100644 --- a/lib/datacatalog/lib/model/folder-tag-summary.ts +++ b/lib/datacatalog/lib/model/folder-tag-summary.ts @@ -59,7 +59,7 @@ export interface FolderTagSummary { /** * State of the Tag. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace FolderTagSummary { diff --git a/lib/datacatalog/lib/model/folder-tag.ts b/lib/datacatalog/lib/model/folder-tag.ts index c477277aa0..566afe2979 100644 --- a/lib/datacatalog/lib/model/folder-tag.ts +++ b/lib/datacatalog/lib/model/folder-tag.ts @@ -45,7 +45,7 @@ export interface FolderTag { /** * The current state of the tag. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The date and time the tag was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` diff --git a/lib/datacatalog/lib/model/folder.ts b/lib/datacatalog/lib/model/folder.ts index e124633914..c2e14c5ec2 100644 --- a/lib/datacatalog/lib/model/folder.ts +++ b/lib/datacatalog/lib/model/folder.ts @@ -87,11 +87,11 @@ export interface Folder { /** * The current state of the folder. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Status of the object as updated by the harvest process. */ - "harvestStatus"?: string; + "harvestStatus"?: model.HarvestStatus; /** * The key of the last harvest process to update the metadata of this object. */ diff --git a/lib/datacatalog/lib/model/glossary-summary.ts b/lib/datacatalog/lib/model/glossary-summary.ts index 9678de484e..84b8a29553 100644 --- a/lib/datacatalog/lib/model/glossary-summary.ts +++ b/lib/datacatalog/lib/model/glossary-summary.ts @@ -57,11 +57,11 @@ export interface GlossarySummary { /** * Status of the approval process workflow for this business glossary. */ - "workflowStatus"?: string; + "workflowStatus"?: model.TermWorkflowStatus; /** * State of the Glossary. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace GlossarySummary { diff --git a/lib/datacatalog/lib/model/glossary-tree-element.ts b/lib/datacatalog/lib/model/glossary-tree-element.ts index 4a4e8dbe5c..b946f68736 100644 --- a/lib/datacatalog/lib/model/glossary-tree-element.ts +++ b/lib/datacatalog/lib/model/glossary-tree-element.ts @@ -65,7 +65,7 @@ export interface GlossaryTreeElement { /** * Status of the approval process workflow for this business term in the glossary. */ - "workflowStatus"?: string; + "workflowStatus"?: model.TermWorkflowStatus; /** * The number of objects tagged with this term. */ @@ -73,7 +73,7 @@ export interface GlossaryTreeElement { /** * State of the term. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace GlossaryTreeElement { diff --git a/lib/datacatalog/lib/model/glossary.ts b/lib/datacatalog/lib/model/glossary.ts index 1e3b1d9316..53f1902a16 100644 --- a/lib/datacatalog/lib/model/glossary.ts +++ b/lib/datacatalog/lib/model/glossary.ts @@ -47,7 +47,7 @@ export interface Glossary { /** * The current state of the glossary. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The date and time the glossary was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` @@ -74,7 +74,7 @@ export interface Glossary { /** * Status of the approval process workflow for this business glossary. */ - "workflowStatus"?: string; + "workflowStatus"?: model.TermWorkflowStatus; /** * URI to the tag instance in the API. */ diff --git a/lib/datacatalog/lib/model/harvest-status.ts b/lib/datacatalog/lib/model/harvest-status.ts index f9e516c48c..2467e69669 100644 --- a/lib/datacatalog/lib/model/harvest-status.ts +++ b/lib/datacatalog/lib/model/harvest-status.ts @@ -29,7 +29,13 @@ export enum HarvestStatus { COMPLETE = "COMPLETE", ERROR = "ERROR", IN_PROGRESS = "IN_PROGRESS", - DEFERRED = "DEFERRED" + DEFERRED = "DEFERRED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" } export namespace HarvestStatus { diff --git a/lib/datacatalog/lib/model/index.ts b/lib/datacatalog/lib/model/index.ts index b3143b4b3f..e9af04af9f 100644 --- a/lib/datacatalog/lib/model/index.ts +++ b/lib/datacatalog/lib/model/index.ts @@ -11,6 +11,8 @@ * 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 AttachCatalogPrivateEndpointDetails from "./attach-catalog-private-endpoint-details"; +export import AttachCatalogPrivateEndpointDetails = AttachCatalogPrivateEndpointDetails.AttachCatalogPrivateEndpointDetails; import * as Attribute from "./attribute"; export import Attribute = Attribute.Attribute; import * as AttributeCollection from "./attribute-collection"; @@ -33,10 +35,16 @@ import * as Catalog from "./catalog"; export import Catalog = Catalog.Catalog; import * as CatalogPermissionsSummary from "./catalog-permissions-summary"; export import CatalogPermissionsSummary = CatalogPermissionsSummary.CatalogPermissionsSummary; +import * as CatalogPrivateEndpoint from "./catalog-private-endpoint"; +export import CatalogPrivateEndpoint = CatalogPrivateEndpoint.CatalogPrivateEndpoint; +import * as CatalogPrivateEndpointSummary from "./catalog-private-endpoint-summary"; +export import CatalogPrivateEndpointSummary = CatalogPrivateEndpointSummary.CatalogPrivateEndpointSummary; import * as CatalogSummary from "./catalog-summary"; export import CatalogSummary = CatalogSummary.CatalogSummary; import * as ChangeCatalogCompartmentDetails from "./change-catalog-compartment-details"; export import ChangeCatalogCompartmentDetails = ChangeCatalogCompartmentDetails.ChangeCatalogCompartmentDetails; +import * as ChangeCatalogPrivateEndpointCompartmentDetails from "./change-catalog-private-endpoint-compartment-details"; +export import ChangeCatalogPrivateEndpointCompartmentDetails = ChangeCatalogPrivateEndpointCompartmentDetails.ChangeCatalogPrivateEndpointCompartmentDetails; import * as Connection from "./connection"; export import Connection = Connection.Connection; import * as ConnectionAliasSummary from "./connection-alias-summary"; @@ -51,6 +59,8 @@ import * as CreateAttributeDetails from "./create-attribute-details"; export import CreateAttributeDetails = CreateAttributeDetails.CreateAttributeDetails; import * as CreateCatalogDetails from "./create-catalog-details"; export import CreateCatalogDetails = CreateCatalogDetails.CreateCatalogDetails; +import * as CreateCatalogPrivateEndpointDetails from "./create-catalog-private-endpoint-details"; +export import CreateCatalogPrivateEndpointDetails = CreateCatalogPrivateEndpointDetails.CreateCatalogPrivateEndpointDetails; import * as CreateConnectionDetails from "./create-connection-details"; export import CreateConnectionDetails = CreateConnectionDetails.CreateConnectionDetails; import * as CreateDataAssetDetails from "./create-data-asset-details"; @@ -87,6 +97,8 @@ import * as DataAssetTagCollection from "./data-asset-tag-collection"; export import DataAssetTagCollection = DataAssetTagCollection.DataAssetTagCollection; import * as DataAssetTagSummary from "./data-asset-tag-summary"; export import DataAssetTagSummary = DataAssetTagSummary.DataAssetTagSummary; +import * as DetachCatalogPrivateEndpointDetails from "./detach-catalog-private-endpoint-details"; +export import DetachCatalogPrivateEndpointDetails = DetachCatalogPrivateEndpointDetails.DetachCatalogPrivateEndpointDetails; import * as Entity from "./entity"; export import Entity = Entity.Entity; import * as EntityCollection from "./entity-collection"; @@ -211,6 +223,8 @@ import * as UpdateAttributeDetails from "./update-attribute-details"; export import UpdateAttributeDetails = UpdateAttributeDetails.UpdateAttributeDetails; import * as UpdateCatalogDetails from "./update-catalog-details"; export import UpdateCatalogDetails = UpdateCatalogDetails.UpdateCatalogDetails; +import * as UpdateCatalogPrivateEndpointDetails from "./update-catalog-private-endpoint-details"; +export import UpdateCatalogPrivateEndpointDetails = UpdateCatalogPrivateEndpointDetails.UpdateCatalogPrivateEndpointDetails; import * as UpdateConnectionDetails from "./update-connection-details"; export import UpdateConnectionDetails = UpdateConnectionDetails.UpdateConnectionDetails; import * as UpdateDataAssetDetails from "./update-data-asset-details"; diff --git a/lib/datacatalog/lib/model/job-definition-summary.ts b/lib/datacatalog/lib/model/job-definition-summary.ts index 28e2049da9..c9942fd3c1 100644 --- a/lib/datacatalog/lib/model/job-definition-summary.ts +++ b/lib/datacatalog/lib/model/job-definition-summary.ts @@ -46,11 +46,11 @@ export interface JobDefinitionSummary { /** * Type of the job definition. */ - "jobType"?: string; + "jobType"?: model.JobType; /** * Lifecycle state of the job definition. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Specify if sample data to be extracted as part of this harvest. */ diff --git a/lib/datacatalog/lib/model/job-definition.ts b/lib/datacatalog/lib/model/job-definition.ts index e30cd14120..45ed9ffeaa 100644 --- a/lib/datacatalog/lib/model/job-definition.ts +++ b/lib/datacatalog/lib/model/job-definition.ts @@ -38,7 +38,7 @@ export interface JobDefinition { /** * Type of the job definition. */ - "jobType"?: string; + "jobType"?: model.JobType; /** * Specifies if the job definition is incremental or full. */ @@ -64,7 +64,7 @@ export interface JobDefinition { /** * Lifecycle state of the job definition. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The date and time the job definition was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` diff --git a/lib/datacatalog/lib/model/job-execution-state.ts b/lib/datacatalog/lib/model/job-execution-state.ts index a5c2896d80..12627ad3cb 100644 --- a/lib/datacatalog/lib/model/job-execution-state.ts +++ b/lib/datacatalog/lib/model/job-execution-state.ts @@ -30,7 +30,13 @@ export enum JobExecutionState { INACTIVE = "INACTIVE", FAILED = "FAILED", SUCCEEDED = "SUCCEEDED", - CANCELED = "CANCELED" + CANCELED = "CANCELED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" } export namespace JobExecutionState { diff --git a/lib/datacatalog/lib/model/job-execution-summary.ts b/lib/datacatalog/lib/model/job-execution-summary.ts index cc6add7212..1e5339a53b 100644 --- a/lib/datacatalog/lib/model/job-execution-summary.ts +++ b/lib/datacatalog/lib/model/job-execution-summary.ts @@ -29,7 +29,7 @@ export interface JobExecutionSummary { /** * Type of the job execution. */ - "jobType"?: string; + "jobType"?: model.JobType; /** * The unique key of the parent execution or null if this job execution has no parent. */ @@ -41,7 +41,7 @@ export interface JobExecutionSummary { /** * Status of the job execution, such as running, paused, or completed. */ - "lifecycleState"?: string; + "lifecycleState"?: model.JobExecutionState; /** * The date and time the job execution was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` diff --git a/lib/datacatalog/lib/model/job-execution.ts b/lib/datacatalog/lib/model/job-execution.ts index a08f511fee..560660ddb5 100644 --- a/lib/datacatalog/lib/model/job-execution.ts +++ b/lib/datacatalog/lib/model/job-execution.ts @@ -29,7 +29,7 @@ export interface JobExecution { /** * Type of the job execution. */ - "jobType"?: string; + "jobType"?: model.JobType; /** * Sub-type of this job execution. */ @@ -45,7 +45,7 @@ export interface JobExecution { /** * Status of the job execution, such as running, paused, or completed. */ - "lifecycleState"?: string; + "lifecycleState"?: model.JobExecutionState; /** * The date and time the job execution was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` diff --git a/lib/datacatalog/lib/model/job-lifecycle-state.ts b/lib/datacatalog/lib/model/job-lifecycle-state.ts index 84fe8d6a83..62e480e5a2 100644 --- a/lib/datacatalog/lib/model/job-lifecycle-state.ts +++ b/lib/datacatalog/lib/model/job-lifecycle-state.ts @@ -24,7 +24,13 @@ import common = require("oci-common"); export enum JobLifecycleState { ACTIVE = "ACTIVE", INACTIVE = "INACTIVE", - EXPIRED = "EXPIRED" + EXPIRED = "EXPIRED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" } export namespace JobLifecycleState { diff --git a/lib/datacatalog/lib/model/job-schedule-type.ts b/lib/datacatalog/lib/model/job-schedule-type.ts index 5e25e64af2..9c56629eb4 100644 --- a/lib/datacatalog/lib/model/job-schedule-type.ts +++ b/lib/datacatalog/lib/model/job-schedule-type.ts @@ -22,7 +22,13 @@ import common = require("oci-common"); **/ export enum JobScheduleType { SCHEDULED = "SCHEDULED", - IMMEDIATE = "IMMEDIATE" + IMMEDIATE = "IMMEDIATE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" } export namespace JobScheduleType { diff --git a/lib/datacatalog/lib/model/job-summary.ts b/lib/datacatalog/lib/model/job-summary.ts index 02d825f38a..c083b0ad80 100644 --- a/lib/datacatalog/lib/model/job-summary.ts +++ b/lib/datacatalog/lib/model/job-summary.ts @@ -44,11 +44,11 @@ export interface JobSummary { /** * Lifecycle state of the job, such as running, paused, or completed. */ - "lifecycleState"?: string; + "lifecycleState"?: model.JobLifecycleState; /** * Type of the job. */ - "jobType"?: string; + "jobType"?: model.JobType; /** * Type of job schedule that is inferred from the scheduling properties. */ diff --git a/lib/datacatalog/lib/model/job-type.ts b/lib/datacatalog/lib/model/job-type.ts index 737c81e11c..90ec4d4b8b 100644 --- a/lib/datacatalog/lib/model/job-type.ts +++ b/lib/datacatalog/lib/model/job-type.ts @@ -37,7 +37,13 @@ export enum JobType { SCHEDULED = "SCHEDULED", IMMEDIATE_EXECUTION = "IMMEDIATE_EXECUTION", SCHEDULED_EXECUTION = "SCHEDULED_EXECUTION", - SCHEDULED_EXECUTION_INSTANCE = "SCHEDULED_EXECUTION_INSTANCE" + SCHEDULED_EXECUTION_INSTANCE = "SCHEDULED_EXECUTION_INSTANCE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" } export namespace JobType { diff --git a/lib/datacatalog/lib/model/job.ts b/lib/datacatalog/lib/model/job.ts index 57c66b8cda..5276a2064f 100644 --- a/lib/datacatalog/lib/model/job.ts +++ b/lib/datacatalog/lib/model/job.ts @@ -39,7 +39,7 @@ export interface Job { /** * Lifecycle state for job. */ - "lifecycleState"?: string; + "lifecycleState"?: model.JobLifecycleState; /** * The date and time the job was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` @@ -53,7 +53,7 @@ export interface Job { /** * Type of the job. */ - "jobType"?: string; + "jobType"?: model.JobType; /** * Schedule specified in the cron expression format that has seven fields for second, minute, hour, day-of-month, month, day-of-week, year. * It can also include special characters like * for all and ? for any. There are also pre-defined schedules that can be specified using @@ -72,7 +72,7 @@ export interface Job { /** * Type of job schedule that is inferred from the scheduling properties. */ - "scheduleType"?: string; + "scheduleType"?: model.JobScheduleType; /** * The key of the connection used by the job. This connection will override the default connection specified in * the associated job definition. All executions will use this connection. diff --git a/lib/datacatalog/lib/model/lifecycle-state.ts b/lib/datacatalog/lib/model/lifecycle-state.ts index 92016a2a09..d41648747f 100644 --- a/lib/datacatalog/lib/model/lifecycle-state.ts +++ b/lib/datacatalog/lib/model/lifecycle-state.ts @@ -24,6 +24,7 @@ import common = require("oci-common"); * administrative reasons. * DELETED - The resource has been deleted and isn't available. * FAILED - The resource is in a failed state due to validation or other errors. + * MOVING - The resource is being moved to another compartment (action changeCompartment) * **/ export enum LifecycleState { diff --git a/lib/datacatalog/lib/model/term-relationship-summary.ts b/lib/datacatalog/lib/model/term-relationship-summary.ts index d643f379f7..ec647b65f9 100644 --- a/lib/datacatalog/lib/model/term-relationship-summary.ts +++ b/lib/datacatalog/lib/model/term-relationship-summary.ts @@ -70,7 +70,7 @@ export interface TermRelationshipSummary { /** * State of the term relationship. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace TermRelationshipSummary { diff --git a/lib/datacatalog/lib/model/term-relationship.ts b/lib/datacatalog/lib/model/term-relationship.ts index 7f95cb5464..376c1deb1d 100644 --- a/lib/datacatalog/lib/model/term-relationship.ts +++ b/lib/datacatalog/lib/model/term-relationship.ts @@ -70,7 +70,7 @@ export interface TermRelationship { /** * State of the term relationship. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace TermRelationship { diff --git a/lib/datacatalog/lib/model/term-summary.ts b/lib/datacatalog/lib/model/term-summary.ts index 6ad24a4f69..77dff16bc5 100644 --- a/lib/datacatalog/lib/model/term-summary.ts +++ b/lib/datacatalog/lib/model/term-summary.ts @@ -64,7 +64,7 @@ export interface TermSummary { /** * Status of the approval process workflow for this business term in the glossary. */ - "workflowStatus"?: string; + "workflowStatus"?: model.TermWorkflowStatus; /** * The number of objects tagged with this term. */ @@ -72,7 +72,7 @@ export interface TermSummary { /** * State of the term. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace TermSummary { diff --git a/lib/datacatalog/lib/model/term-workflow-status.ts b/lib/datacatalog/lib/model/term-workflow-status.ts index f53da97ac4..c6fae40874 100644 --- a/lib/datacatalog/lib/model/term-workflow-status.ts +++ b/lib/datacatalog/lib/model/term-workflow-status.ts @@ -28,7 +28,13 @@ export enum TermWorkflowStatus { NEW = "NEW", APPROVED = "APPROVED", UNDER_REVIEW = "UNDER_REVIEW", - ESCALATED = "ESCALATED" + ESCALATED = "ESCALATED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" } export namespace TermWorkflowStatus { diff --git a/lib/datacatalog/lib/model/term.ts b/lib/datacatalog/lib/model/term.ts index 101512b325..01b8b01e5f 100644 --- a/lib/datacatalog/lib/model/term.ts +++ b/lib/datacatalog/lib/model/term.ts @@ -54,7 +54,7 @@ export interface Term { /** * The current state of the term. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The date and time the term was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * Example: `2019-03-25T21:10:29.600Z` @@ -81,7 +81,7 @@ export interface Term { /** * Status of the approval process workflow for this business term in the glossary. */ - "workflowStatus"?: string; + "workflowStatus"?: model.TermWorkflowStatus; /** * URI to the term instance in the API. */ diff --git a/lib/datacatalog/lib/model/type-summary.ts b/lib/datacatalog/lib/model/type-summary.ts index 71558efd3e..3e3aab3f2c 100644 --- a/lib/datacatalog/lib/model/type-summary.ts +++ b/lib/datacatalog/lib/model/type-summary.ts @@ -47,7 +47,7 @@ export interface TypeSummary { /** * State of the folder. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; } export namespace TypeSummary { diff --git a/lib/datacatalog/lib/model/type.ts b/lib/datacatalog/lib/model/type.ts index aac10b3d88..28491938b9 100644 --- a/lib/datacatalog/lib/model/type.ts +++ b/lib/datacatalog/lib/model/type.ts @@ -62,7 +62,7 @@ export interface Type { /** * The current state of the type. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Indicates whether the type is internal, making it unavailable for use by metadata elements. */ diff --git a/lib/datacatalog/lib/model/update-catalog-details.ts b/lib/datacatalog/lib/model/update-catalog-details.ts index 59d02cf6e7..ad05e2e4b5 100644 --- a/lib/datacatalog/lib/model/update-catalog-details.ts +++ b/lib/datacatalog/lib/model/update-catalog-details.ts @@ -15,7 +15,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The information to be updated. + * The information to be updated for catalog resource. */ export interface UpdateCatalogDetails { /** diff --git a/lib/datacatalog/lib/model/update-catalog-private-endpoint-details.ts b/lib/datacatalog/lib/model/update-catalog-private-endpoint-details.ts new file mode 100644 index 0000000000..249eba3e49 --- /dev/null +++ b/lib/datacatalog/lib/model/update-catalog-private-endpoint-details.ts @@ -0,0 +1,51 @@ +/** + * Data Catalog API + * Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata. + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Information about the modified private endpoint resource + */ +export interface UpdateCatalogPrivateEndpointDetails { + /** + * List of DNS zones to be used by the data assets to be harvested. + * Example: custpvtsubnet.oraclevcn.com for data asset: db.custpvtsubnet.oraclevcn.com + * + */ + "dnsZones"?: Array; + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. + * Example: `{\"bar-key\": \"value\"}` + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Usage of predefined tag keys. These predefined keys are scoped to namespaces. + * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * Display name of the private endpoint resource. + */ + "displayName"?: string; +} + +export namespace UpdateCatalogPrivateEndpointDetails { + export function getJsonObj(obj: UpdateCatalogPrivateEndpointDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/datacatalog/lib/model/update-entity-details.ts b/lib/datacatalog/lib/model/update-entity-details.ts index 093f87402c..ca150df09f 100644 --- a/lib/datacatalog/lib/model/update-entity-details.ts +++ b/lib/datacatalog/lib/model/update-entity-details.ts @@ -51,7 +51,7 @@ export interface UpdateEntityDetails { * This requires a harvest status indicator for catalog objects. * */ - "harvestStatus"?: string; + "harvestStatus"?: model.HarvestStatus; /** * Key of the last harvest process to update this object. */ diff --git a/lib/datacatalog/lib/model/update-folder-details.ts b/lib/datacatalog/lib/model/update-folder-details.ts index ccef22f2e4..2e8a43b975 100644 --- a/lib/datacatalog/lib/model/update-folder-details.ts +++ b/lib/datacatalog/lib/model/update-folder-details.ts @@ -51,7 +51,7 @@ export interface UpdateFolderDetails { /** * Harvest status of the folder. */ - "harvestStatus"?: string; + "harvestStatus"?: model.HarvestStatus; /** * The key of the last harvest process to update the metadata of this object. */ diff --git a/lib/datacatalog/lib/model/update-glossary-details.ts b/lib/datacatalog/lib/model/update-glossary-details.ts index 4570c00105..a57c3b0392 100644 --- a/lib/datacatalog/lib/model/update-glossary-details.ts +++ b/lib/datacatalog/lib/model/update-glossary-details.ts @@ -35,7 +35,7 @@ export interface UpdateGlossaryDetails { /** * Status of the approval process workflow for this business glossary. */ - "workflowStatus"?: string; + "workflowStatus"?: model.TermWorkflowStatus; } export namespace UpdateGlossaryDetails { diff --git a/lib/datacatalog/lib/model/update-term-details.ts b/lib/datacatalog/lib/model/update-term-details.ts index 4dac39a49a..25bcba273a 100644 --- a/lib/datacatalog/lib/model/update-term-details.ts +++ b/lib/datacatalog/lib/model/update-term-details.ts @@ -39,7 +39,7 @@ export interface UpdateTermDetails { /** * Status of the approval process workflow for this business term in the glossary */ - "workflowStatus"?: string; + "workflowStatus"?: model.TermWorkflowStatus; } export namespace UpdateTermDetails { diff --git a/lib/datacatalog/lib/model/validate-connection-result.ts b/lib/datacatalog/lib/model/validate-connection-result.ts index 10dce85be9..55d57bb3a5 100644 --- a/lib/datacatalog/lib/model/validate-connection-result.ts +++ b/lib/datacatalog/lib/model/validate-connection-result.ts @@ -25,7 +25,7 @@ export interface ValidateConnectionResult { /** * The status returned from the connection validation. */ - "status": string; + "status": model.ConnectionResult; } export namespace ValidateConnectionResult { diff --git a/lib/datacatalog/lib/model/work-request.ts b/lib/datacatalog/lib/model/work-request.ts index 3a3a05f9cc..b89c5da68b 100644 --- a/lib/datacatalog/lib/model/work-request.ts +++ b/lib/datacatalog/lib/model/work-request.ts @@ -71,6 +71,12 @@ export namespace WorkRequest { UPDATECATALOG = "UPDATE_CATALOG", DELETECATALOG = "DELETE_CATALOG", MOVECATALOG = "MOVE_CATALOG", + CREATECATALOGPRIVATEENDPOINT = "CREATE_CATALOG_PRIVATE_ENDPOINT", + DELETECATALOGPRIVATEENDPOINT = "DELETE_CATALOG_PRIVATE_ENDPOINT", + UPDATECATALOGPRIVATEENDPOINT = "UPDATE_CATALOG_PRIVATE_ENDPOINT", + MOVECATALOGPRIVATEENDPOINT = "MOVE_CATALOG_PRIVATE_ENDPOINT", + ATTACHCATALOGPRIVATEENDPOINT = "ATTACH_CATALOG_PRIVATE_ENDPOINT", + DETACHCATALOGPRIVATEENDPOINT = "DETACH_CATALOG_PRIVATE_ENDPOINT", /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/lib/datacatalog/lib/request/attach-catalog-private-endpoint-request.ts b/lib/datacatalog/lib/request/attach-catalog-private-endpoint-request.ts new file mode 100644 index 0000000000..66f02ea63e --- /dev/null +++ b/lib/datacatalog/lib/request/attach-catalog-private-endpoint-request.ts @@ -0,0 +1,47 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 AttachCatalogPrivateEndpointRequest { + /** + * Details for private reverse connection endpoint to be used for attachment. + */ + "attachCatalogPrivateEndpointDetails": model.AttachCatalogPrivateEndpointDetails; + /** + * Unique catalog identifier. + */ + "catalogId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "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/datacatalog/lib/request/change-catalog-private-endpoint-compartment-request.ts b/lib/datacatalog/lib/request/change-catalog-private-endpoint-compartment-request.ts new file mode 100644 index 0000000000..05d56d5cb7 --- /dev/null +++ b/lib/datacatalog/lib/request/change-catalog-private-endpoint-compartment-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ChangeCatalogPrivateEndpointCompartmentRequest { + /** + * Details for the target compartment. + */ + "changeCatalogPrivateEndpointCompartmentDetails": model.ChangeCatalogPrivateEndpointCompartmentDetails; + /** + * Unique private reverse connection identifier. + */ + "catalogPrivateEndpointId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/datacatalog/lib/request/create-catalog-private-endpoint-request.ts b/lib/datacatalog/lib/request/create-catalog-private-endpoint-request.ts new file mode 100644 index 0000000000..e92d8acdba --- /dev/null +++ b/lib/datacatalog/lib/request/create-catalog-private-endpoint-request.ts @@ -0,0 +1,34 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateCatalogPrivateEndpointRequest { + /** + * The information used to create the private reverse connection. + */ + "createCatalogPrivateEndpointDetails": model.CreateCatalogPrivateEndpointDetails; + /** + * 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/datacatalog/lib/request/delete-catalog-private-endpoint-request.ts b/lib/datacatalog/lib/request/delete-catalog-private-endpoint-request.ts new file mode 100644 index 0000000000..2e460a8475 --- /dev/null +++ b/lib/datacatalog/lib/request/delete-catalog-private-endpoint-request.ts @@ -0,0 +1,34 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteCatalogPrivateEndpointRequest { + /** + * Unique private reverse connection identifier. + */ + "catalogPrivateEndpointId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/datacatalog/lib/request/detach-catalog-private-endpoint-request.ts b/lib/datacatalog/lib/request/detach-catalog-private-endpoint-request.ts new file mode 100644 index 0000000000..4d6930f7fd --- /dev/null +++ b/lib/datacatalog/lib/request/detach-catalog-private-endpoint-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DetachCatalogPrivateEndpointRequest { + /** + * Details for private reverse connection endpoint to be used for attachment + */ + "detachCatalogPrivateEndpointDetails": model.DetachCatalogPrivateEndpointDetails; + /** + * Unique catalog identifier. + */ + "catalogId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/datacatalog/lib/request/get-catalog-private-endpoint-request.ts b/lib/datacatalog/lib/request/get-catalog-private-endpoint-request.ts new file mode 100644 index 0000000000..07c834cbd7 --- /dev/null +++ b/lib/datacatalog/lib/request/get-catalog-private-endpoint-request.ts @@ -0,0 +1,25 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetCatalogPrivateEndpointRequest { + /** + * Unique private reverse connection identifier. + */ + "catalogPrivateEndpointId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/datacatalog/lib/request/index.ts b/lib/datacatalog/lib/request/index.ts index 7a6766bd72..6e54eaa851 100644 --- a/lib/datacatalog/lib/request/index.ts +++ b/lib/datacatalog/lib/request/index.ts @@ -11,14 +11,20 @@ * 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 AttachCatalogPrivateEndpointRequest from "./attach-catalog-private-endpoint-request"; +export import AttachCatalogPrivateEndpointRequest = AttachCatalogPrivateEndpointRequest.AttachCatalogPrivateEndpointRequest; import * as ChangeCatalogCompartmentRequest from "./change-catalog-compartment-request"; export import ChangeCatalogCompartmentRequest = ChangeCatalogCompartmentRequest.ChangeCatalogCompartmentRequest; +import * as ChangeCatalogPrivateEndpointCompartmentRequest from "./change-catalog-private-endpoint-compartment-request"; +export import ChangeCatalogPrivateEndpointCompartmentRequest = ChangeCatalogPrivateEndpointCompartmentRequest.ChangeCatalogPrivateEndpointCompartmentRequest; import * as CreateAttributeRequest from "./create-attribute-request"; export import CreateAttributeRequest = CreateAttributeRequest.CreateAttributeRequest; import * as CreateAttributeTagRequest from "./create-attribute-tag-request"; export import CreateAttributeTagRequest = CreateAttributeTagRequest.CreateAttributeTagRequest; import * as CreateCatalogRequest from "./create-catalog-request"; export import CreateCatalogRequest = CreateCatalogRequest.CreateCatalogRequest; +import * as CreateCatalogPrivateEndpointRequest from "./create-catalog-private-endpoint-request"; +export import CreateCatalogPrivateEndpointRequest = CreateCatalogPrivateEndpointRequest.CreateCatalogPrivateEndpointRequest; import * as CreateConnectionRequest from "./create-connection-request"; export import CreateConnectionRequest = CreateConnectionRequest.CreateConnectionRequest; import * as CreateDataAssetRequest from "./create-data-asset-request"; @@ -51,6 +57,8 @@ import * as DeleteAttributeTagRequest from "./delete-attribute-tag-request"; export import DeleteAttributeTagRequest = DeleteAttributeTagRequest.DeleteAttributeTagRequest; import * as DeleteCatalogRequest from "./delete-catalog-request"; export import DeleteCatalogRequest = DeleteCatalogRequest.DeleteCatalogRequest; +import * as DeleteCatalogPrivateEndpointRequest from "./delete-catalog-private-endpoint-request"; +export import DeleteCatalogPrivateEndpointRequest = DeleteCatalogPrivateEndpointRequest.DeleteCatalogPrivateEndpointRequest; import * as DeleteConnectionRequest from "./delete-connection-request"; export import DeleteConnectionRequest = DeleteConnectionRequest.DeleteConnectionRequest; import * as DeleteDataAssetRequest from "./delete-data-asset-request"; @@ -75,6 +83,8 @@ import * as DeleteTermRequest from "./delete-term-request"; export import DeleteTermRequest = DeleteTermRequest.DeleteTermRequest; import * as DeleteTermRelationshipRequest from "./delete-term-relationship-request"; export import DeleteTermRelationshipRequest = DeleteTermRelationshipRequest.DeleteTermRelationshipRequest; +import * as DetachCatalogPrivateEndpointRequest from "./detach-catalog-private-endpoint-request"; +export import DetachCatalogPrivateEndpointRequest = DetachCatalogPrivateEndpointRequest.DetachCatalogPrivateEndpointRequest; import * as ExpandTreeForGlossaryRequest from "./expand-tree-for-glossary-request"; export import ExpandTreeForGlossaryRequest = ExpandTreeForGlossaryRequest.ExpandTreeForGlossaryRequest; import * as ExportGlossaryRequest from "./export-glossary-request"; @@ -85,6 +95,8 @@ import * as GetAttributeTagRequest from "./get-attribute-tag-request"; export import GetAttributeTagRequest = GetAttributeTagRequest.GetAttributeTagRequest; import * as GetCatalogRequest from "./get-catalog-request"; export import GetCatalogRequest = GetCatalogRequest.GetCatalogRequest; +import * as GetCatalogPrivateEndpointRequest from "./get-catalog-private-endpoint-request"; +export import GetCatalogPrivateEndpointRequest = GetCatalogPrivateEndpointRequest.GetCatalogPrivateEndpointRequest; import * as GetConnectionRequest from "./get-connection-request"; export import GetConnectionRequest = GetConnectionRequest.GetConnectionRequest; import * as GetDataAssetRequest from "./get-data-asset-request"; @@ -127,6 +139,8 @@ import * as ListAttributeTagsRequest from "./list-attribute-tags-request"; export import ListAttributeTagsRequest = ListAttributeTagsRequest.ListAttributeTagsRequest; import * as ListAttributesRequest from "./list-attributes-request"; export import ListAttributesRequest = ListAttributesRequest.ListAttributesRequest; +import * as ListCatalogPrivateEndpointsRequest from "./list-catalog-private-endpoints-request"; +export import ListCatalogPrivateEndpointsRequest = ListCatalogPrivateEndpointsRequest.ListCatalogPrivateEndpointsRequest; import * as ListCatalogsRequest from "./list-catalogs-request"; export import ListCatalogsRequest = ListCatalogsRequest.ListCatalogsRequest; import * as ListConnectionsRequest from "./list-connections-request"; @@ -181,6 +195,8 @@ import * as UpdateAttributeRequest from "./update-attribute-request"; export import UpdateAttributeRequest = UpdateAttributeRequest.UpdateAttributeRequest; import * as UpdateCatalogRequest from "./update-catalog-request"; export import UpdateCatalogRequest = UpdateCatalogRequest.UpdateCatalogRequest; +import * as UpdateCatalogPrivateEndpointRequest from "./update-catalog-private-endpoint-request"; +export import UpdateCatalogPrivateEndpointRequest = UpdateCatalogPrivateEndpointRequest.UpdateCatalogPrivateEndpointRequest; import * as UpdateConnectionRequest from "./update-connection-request"; export import UpdateConnectionRequest = UpdateConnectionRequest.UpdateConnectionRequest; import * as UpdateDataAssetRequest from "./update-data-asset-request"; diff --git a/lib/datacatalog/lib/request/list-attribute-tags-request.ts b/lib/datacatalog/lib/request/list-attribute-tags-request.ts index 18e24a57bc..1884c28f80 100644 --- a/lib/datacatalog/lib/request/list-attribute-tags-request.ts +++ b/lib/datacatalog/lib/request/list-attribute-tags-request.ts @@ -37,7 +37,7 @@ export interface ListAttributeTagsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Unique key of the related term. */ diff --git a/lib/datacatalog/lib/request/list-attributes-request.ts b/lib/datacatalog/lib/request/list-attributes-request.ts index 0c8a20270e..d1c69d8209 100644 --- a/lib/datacatalog/lib/request/list-attributes-request.ts +++ b/lib/datacatalog/lib/request/list-attributes-request.ts @@ -33,7 +33,7 @@ export interface ListAttributesRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. */ diff --git a/lib/datacatalog/lib/request/list-catalog-private-endpoints-request.ts b/lib/datacatalog/lib/request/list-catalog-private-endpoints-request.ts new file mode 100644 index 0000000000..5e3b0aa410 --- /dev/null +++ b/lib/datacatalog/lib/request/list-catalog-private-endpoints-request.ts @@ -0,0 +1,62 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListCatalogPrivateEndpointsRequest { + /** + * The OCID of the compartment where you want to list resources. + */ + "compartmentId": string; + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + "displayName"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + "page"?: string; + /** + * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + */ + "lifecycleState"?: model.LifecycleState; + /** + * The sort order to use, either 'asc' or 'desc'. + */ + "sortOrder"?: ListCatalogPrivateEndpointsRequest.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. If no value is specified TIMECREATED is default. + * + */ + "sortBy"?: ListCatalogPrivateEndpointsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListCatalogPrivateEndpointsRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIMECREATED", + DISPLAYNAME = "DISPLAYNAME" + } +} diff --git a/lib/datacatalog/lib/request/list-catalogs-request.ts b/lib/datacatalog/lib/request/list-catalogs-request.ts index 7242d1805c..d616eebf2a 100644 --- a/lib/datacatalog/lib/request/list-catalogs-request.ts +++ b/lib/datacatalog/lib/request/list-catalogs-request.ts @@ -33,7 +33,7 @@ export interface ListCatalogsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * The sort order to use, either 'asc' or 'desc'. */ diff --git a/lib/datacatalog/lib/request/list-connections-request.ts b/lib/datacatalog/lib/request/list-connections-request.ts index aa11b2473d..d71a97e3dc 100644 --- a/lib/datacatalog/lib/request/list-connections-request.ts +++ b/lib/datacatalog/lib/request/list-connections-request.ts @@ -29,7 +29,7 @@ export interface ListConnectionsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. */ diff --git a/lib/datacatalog/lib/request/list-data-asset-tags-request.ts b/lib/datacatalog/lib/request/list-data-asset-tags-request.ts index b966e87609..8c635ccdb7 100644 --- a/lib/datacatalog/lib/request/list-data-asset-tags-request.ts +++ b/lib/datacatalog/lib/request/list-data-asset-tags-request.ts @@ -29,7 +29,7 @@ export interface ListDataAssetTagsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Unique key of the related term. */ diff --git a/lib/datacatalog/lib/request/list-data-assets-request.ts b/lib/datacatalog/lib/request/list-data-assets-request.ts index d9510b8b2b..597ddbcab2 100644 --- a/lib/datacatalog/lib/request/list-data-assets-request.ts +++ b/lib/datacatalog/lib/request/list-data-assets-request.ts @@ -25,7 +25,7 @@ export interface ListDataAssetsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. */ diff --git a/lib/datacatalog/lib/request/list-entities-request.ts b/lib/datacatalog/lib/request/list-entities-request.ts index e1eb639448..e1ed32a5b9 100644 --- a/lib/datacatalog/lib/request/list-entities-request.ts +++ b/lib/datacatalog/lib/request/list-entities-request.ts @@ -29,7 +29,7 @@ export interface ListEntitiesRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. */ @@ -78,7 +78,7 @@ export interface ListEntitiesRequest { /** * Harvest status of the harvestable resource as updated by the harvest process. */ - "harvestStatus"?: string; + "harvestStatus"?: model.HarvestStatus; /** * Key of the last harvest process to update this resource. */ diff --git a/lib/datacatalog/lib/request/list-entity-tags-request.ts b/lib/datacatalog/lib/request/list-entity-tags-request.ts index 8f3e4cbd0d..67ee92faf8 100644 --- a/lib/datacatalog/lib/request/list-entity-tags-request.ts +++ b/lib/datacatalog/lib/request/list-entity-tags-request.ts @@ -33,7 +33,7 @@ export interface ListEntityTagsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Unique key of the related term. */ diff --git a/lib/datacatalog/lib/request/list-folder-tags-request.ts b/lib/datacatalog/lib/request/list-folder-tags-request.ts index 05432ace60..461dec592f 100644 --- a/lib/datacatalog/lib/request/list-folder-tags-request.ts +++ b/lib/datacatalog/lib/request/list-folder-tags-request.ts @@ -33,7 +33,7 @@ export interface ListFolderTagsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Unique key of the related term. */ diff --git a/lib/datacatalog/lib/request/list-folders-request.ts b/lib/datacatalog/lib/request/list-folders-request.ts index 875986d9f2..dfe6f1a645 100644 --- a/lib/datacatalog/lib/request/list-folders-request.ts +++ b/lib/datacatalog/lib/request/list-folders-request.ts @@ -29,7 +29,7 @@ export interface ListFoldersRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Unique folder key. */ @@ -61,7 +61,7 @@ export interface ListFoldersRequest { /** * Harvest status of the harvestable resource as updated by the harvest process. */ - "harvestStatus"?: string; + "harvestStatus"?: model.HarvestStatus; /** * Key of the last harvest process to update this resource. */ diff --git a/lib/datacatalog/lib/request/list-glossaries-request.ts b/lib/datacatalog/lib/request/list-glossaries-request.ts index 3184ce7b31..0246a3afe2 100644 --- a/lib/datacatalog/lib/request/list-glossaries-request.ts +++ b/lib/datacatalog/lib/request/list-glossaries-request.ts @@ -25,7 +25,7 @@ export interface ListGlossariesRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. */ diff --git a/lib/datacatalog/lib/request/list-job-definitions-request.ts b/lib/datacatalog/lib/request/list-job-definitions-request.ts index 3fb545f8f3..04f1f7f080 100644 --- a/lib/datacatalog/lib/request/list-job-definitions-request.ts +++ b/lib/datacatalog/lib/request/list-job-definitions-request.ts @@ -25,11 +25,11 @@ export interface ListJobDefinitionsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Job type. */ - "jobType"?: string; + "jobType"?: model.JobType; /** * Whether job definition is an incremental harvest (true) or a full harvest (false). */ diff --git a/lib/datacatalog/lib/request/list-job-executions-request.ts b/lib/datacatalog/lib/request/list-job-executions-request.ts index 819fe6b7b7..2d6f62c573 100644 --- a/lib/datacatalog/lib/request/list-job-executions-request.ts +++ b/lib/datacatalog/lib/request/list-job-executions-request.ts @@ -25,7 +25,7 @@ export interface ListJobExecutionsRequest { /** * Job execution lifecycle state. */ - "lifecycleState"?: string; + "lifecycleState"?: model.JobExecutionState; /** * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. */ @@ -45,7 +45,7 @@ export interface ListJobExecutionsRequest { /** * Job type. */ - "jobType"?: string; + "jobType"?: model.JobType; /** * Sub-type of this job execution. */ diff --git a/lib/datacatalog/lib/request/list-job-logs-request.ts b/lib/datacatalog/lib/request/list-job-logs-request.ts index 60c87cab0e..6b62bb85fd 100644 --- a/lib/datacatalog/lib/request/list-job-logs-request.ts +++ b/lib/datacatalog/lib/request/list-job-logs-request.ts @@ -29,7 +29,7 @@ export interface ListJobLogsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Severity level for this Log. */ diff --git a/lib/datacatalog/lib/request/list-jobs-request.ts b/lib/datacatalog/lib/request/list-jobs-request.ts index 7fd8e9e77f..d2ee46271b 100644 --- a/lib/datacatalog/lib/request/list-jobs-request.ts +++ b/lib/datacatalog/lib/request/list-jobs-request.ts @@ -25,7 +25,7 @@ export interface ListJobsRequest { /** * Job lifecycle state. */ - "lifecycleState"?: string; + "lifecycleState"?: model.JobLifecycleState; /** * Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. */ @@ -45,7 +45,7 @@ export interface ListJobsRequest { /** * Job type. */ - "jobType"?: string; + "jobType"?: model.JobType; /** * Unique job definition key. */ @@ -68,7 +68,7 @@ export interface ListJobsRequest { /** * Type of the job schedule. */ - "scheduleType"?: string; + "scheduleType"?: model.JobScheduleType; /** * Unique connection key. */ diff --git a/lib/datacatalog/lib/request/list-tags-request.ts b/lib/datacatalog/lib/request/list-tags-request.ts index 71908918a8..bae1fba387 100644 --- a/lib/datacatalog/lib/request/list-tags-request.ts +++ b/lib/datacatalog/lib/request/list-tags-request.ts @@ -25,7 +25,7 @@ export interface ListTagsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Specifies the fields to return in a term summary response. * diff --git a/lib/datacatalog/lib/request/list-term-relationships-request.ts b/lib/datacatalog/lib/request/list-term-relationships-request.ts index 365cb9731e..52fddd6ea2 100644 --- a/lib/datacatalog/lib/request/list-term-relationships-request.ts +++ b/lib/datacatalog/lib/request/list-term-relationships-request.ts @@ -33,7 +33,7 @@ export interface ListTermRelationshipsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Specifies the fields to return in a term relationship summary response. * diff --git a/lib/datacatalog/lib/request/list-terms-request.ts b/lib/datacatalog/lib/request/list-terms-request.ts index 8cbccb6657..1e58007a2a 100644 --- a/lib/datacatalog/lib/request/list-terms-request.ts +++ b/lib/datacatalog/lib/request/list-terms-request.ts @@ -29,7 +29,7 @@ export interface ListTermsRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Unique key of the parent term. */ @@ -41,7 +41,7 @@ export interface ListTermsRequest { /** * Status of the approval workflow for this business term in the glossary. */ - "workflowStatus"?: string; + "workflowStatus"?: model.TermWorkflowStatus; /** * Full path of the resource for resources that support paths. */ diff --git a/lib/datacatalog/lib/request/list-types-request.ts b/lib/datacatalog/lib/request/list-types-request.ts index 674cf4a91f..b6c82213ac 100644 --- a/lib/datacatalog/lib/request/list-types-request.ts +++ b/lib/datacatalog/lib/request/list-types-request.ts @@ -25,7 +25,7 @@ export interface ListTypesRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * Indicates whether the type is internal, making it unavailable for use by metadata elements. */ diff --git a/lib/datacatalog/lib/request/search-criteria-request.ts b/lib/datacatalog/lib/request/search-criteria-request.ts index c584fb2a84..d8be75fc76 100644 --- a/lib/datacatalog/lib/request/search-criteria-request.ts +++ b/lib/datacatalog/lib/request/search-criteria-request.ts @@ -33,7 +33,7 @@ export interface SearchCriteriaRequest { /** * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. */ - "lifecycleState"?: string; + "lifecycleState"?: model.LifecycleState; /** * A search timeout string (for example, timeout=4000ms), bounding the search request to be executed within the * specified time value and bail with the hits accumulated up to that point when expired. diff --git a/lib/datacatalog/lib/request/update-catalog-private-endpoint-request.ts b/lib/datacatalog/lib/request/update-catalog-private-endpoint-request.ts new file mode 100644 index 0000000000..afe0529968 --- /dev/null +++ b/lib/datacatalog/lib/request/update-catalog-private-endpoint-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateCatalogPrivateEndpointRequest { + /** + * Unique private reverse connection identifier. + */ + "catalogPrivateEndpointId": string; + /** + * The information to be updated in private reverse connection + */ + "updateCatalogPrivateEndpointDetails": model.UpdateCatalogPrivateEndpointDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the `if-match` parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/datacatalog/lib/response/attach-catalog-private-endpoint-response.ts b/lib/datacatalog/lib/response/attach-catalog-private-endpoint-response.ts new file mode 100644 index 0000000000..803e4e90cc --- /dev/null +++ b/lib/datacatalog/lib/response/attach-catalog-private-endpoint-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 AttachCatalogPrivateEndpointResponse { + /** + * The OCID of the asynchronous request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) with this OCID to track the status of the asynchronous request. + * + */ + "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/datacatalog/lib/response/change-catalog-compartment-response.ts b/lib/datacatalog/lib/response/change-catalog-compartment-response.ts index 58622a65c9..cb82ee3836 100644 --- a/lib/datacatalog/lib/response/change-catalog-compartment-response.ts +++ b/lib/datacatalog/lib/response/change-catalog-compartment-response.ts @@ -16,15 +16,14 @@ import common = require("oci-common"); export interface ChangeCatalogCompartmentResponse { /** - * Unique Oracle-assigned identifier for the request. If - * you need to contact Oracle about a particular request, - * please provide the request ID. + * The OCID of the asynchronous request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) with this OCID to track the status of the asynchronous request. * */ - "opcRequestId": string; + "opcWorkRequestId": string; /** - * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * */ - "opcWorkRequestId": string; + "opcRequestId": string; } diff --git a/lib/datacatalog/lib/response/change-catalog-private-endpoint-compartment-response.ts b/lib/datacatalog/lib/response/change-catalog-private-endpoint-compartment-response.ts new file mode 100644 index 0000000000..90b78c9f5f --- /dev/null +++ b/lib/datacatalog/lib/response/change-catalog-private-endpoint-compartment-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ChangeCatalogPrivateEndpointCompartmentResponse { + /** + * The OCID of the asynchronous request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) with this OCID to track the status of the asynchronous request. + * + */ + "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/datacatalog/lib/response/create-catalog-private-endpoint-response.ts b/lib/datacatalog/lib/response/create-catalog-private-endpoint-response.ts new file mode 100644 index 0000000000..16cd00418f --- /dev/null +++ b/lib/datacatalog/lib/response/create-catalog-private-endpoint-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateCatalogPrivateEndpointResponse { + /** + * 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 OCID of the asynchronous request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) with this OCID to track the status of the asynchronous request. + * + */ + "opcWorkRequestId": string; +} diff --git a/lib/datacatalog/lib/response/delete-catalog-private-endpoint-response.ts b/lib/datacatalog/lib/response/delete-catalog-private-endpoint-response.ts new file mode 100644 index 0000000000..663196b77a --- /dev/null +++ b/lib/datacatalog/lib/response/delete-catalog-private-endpoint-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteCatalogPrivateEndpointResponse { + /** + * The OCID of the asynchronous request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) with this OCID to track the status of the asynchronous request. + * + */ + "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/datacatalog/lib/response/detach-catalog-private-endpoint-response.ts b/lib/datacatalog/lib/response/detach-catalog-private-endpoint-response.ts new file mode 100644 index 0000000000..34275fe93c --- /dev/null +++ b/lib/datacatalog/lib/response/detach-catalog-private-endpoint-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DetachCatalogPrivateEndpointResponse { + /** + * The OCID of the asynchronous request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) with this OCID to track the status of the asynchronous request. + * + */ + "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/datacatalog/lib/response/get-catalog-private-endpoint-response.ts b/lib/datacatalog/lib/response/get-catalog-private-endpoint-response.ts new file mode 100644 index 0000000000..fc835cf136 --- /dev/null +++ b/lib/datacatalog/lib/response/get-catalog-private-endpoint-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetCatalogPrivateEndpointResponse { + /** + * 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 optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "etag": string; + /** + * The returned model.CatalogPrivateEndpoint instance. + */ + "catalogPrivateEndpoint": model.CatalogPrivateEndpoint; +} diff --git a/lib/datacatalog/lib/response/index.ts b/lib/datacatalog/lib/response/index.ts index 507be333c9..cfe19b6649 100644 --- a/lib/datacatalog/lib/response/index.ts +++ b/lib/datacatalog/lib/response/index.ts @@ -11,14 +11,20 @@ * 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 AttachCatalogPrivateEndpointResponse from "./attach-catalog-private-endpoint-response"; +export import AttachCatalogPrivateEndpointResponse = AttachCatalogPrivateEndpointResponse.AttachCatalogPrivateEndpointResponse; import * as ChangeCatalogCompartmentResponse from "./change-catalog-compartment-response"; export import ChangeCatalogCompartmentResponse = ChangeCatalogCompartmentResponse.ChangeCatalogCompartmentResponse; +import * as ChangeCatalogPrivateEndpointCompartmentResponse from "./change-catalog-private-endpoint-compartment-response"; +export import ChangeCatalogPrivateEndpointCompartmentResponse = ChangeCatalogPrivateEndpointCompartmentResponse.ChangeCatalogPrivateEndpointCompartmentResponse; import * as CreateAttributeResponse from "./create-attribute-response"; export import CreateAttributeResponse = CreateAttributeResponse.CreateAttributeResponse; import * as CreateAttributeTagResponse from "./create-attribute-tag-response"; export import CreateAttributeTagResponse = CreateAttributeTagResponse.CreateAttributeTagResponse; import * as CreateCatalogResponse from "./create-catalog-response"; export import CreateCatalogResponse = CreateCatalogResponse.CreateCatalogResponse; +import * as CreateCatalogPrivateEndpointResponse from "./create-catalog-private-endpoint-response"; +export import CreateCatalogPrivateEndpointResponse = CreateCatalogPrivateEndpointResponse.CreateCatalogPrivateEndpointResponse; import * as CreateConnectionResponse from "./create-connection-response"; export import CreateConnectionResponse = CreateConnectionResponse.CreateConnectionResponse; import * as CreateDataAssetResponse from "./create-data-asset-response"; @@ -51,6 +57,8 @@ import * as DeleteAttributeTagResponse from "./delete-attribute-tag-response"; export import DeleteAttributeTagResponse = DeleteAttributeTagResponse.DeleteAttributeTagResponse; import * as DeleteCatalogResponse from "./delete-catalog-response"; export import DeleteCatalogResponse = DeleteCatalogResponse.DeleteCatalogResponse; +import * as DeleteCatalogPrivateEndpointResponse from "./delete-catalog-private-endpoint-response"; +export import DeleteCatalogPrivateEndpointResponse = DeleteCatalogPrivateEndpointResponse.DeleteCatalogPrivateEndpointResponse; import * as DeleteConnectionResponse from "./delete-connection-response"; export import DeleteConnectionResponse = DeleteConnectionResponse.DeleteConnectionResponse; import * as DeleteDataAssetResponse from "./delete-data-asset-response"; @@ -75,6 +83,8 @@ import * as DeleteTermResponse from "./delete-term-response"; export import DeleteTermResponse = DeleteTermResponse.DeleteTermResponse; import * as DeleteTermRelationshipResponse from "./delete-term-relationship-response"; export import DeleteTermRelationshipResponse = DeleteTermRelationshipResponse.DeleteTermRelationshipResponse; +import * as DetachCatalogPrivateEndpointResponse from "./detach-catalog-private-endpoint-response"; +export import DetachCatalogPrivateEndpointResponse = DetachCatalogPrivateEndpointResponse.DetachCatalogPrivateEndpointResponse; import * as ExpandTreeForGlossaryResponse from "./expand-tree-for-glossary-response"; export import ExpandTreeForGlossaryResponse = ExpandTreeForGlossaryResponse.ExpandTreeForGlossaryResponse; import * as ExportGlossaryResponse from "./export-glossary-response"; @@ -85,6 +95,8 @@ import * as GetAttributeTagResponse from "./get-attribute-tag-response"; export import GetAttributeTagResponse = GetAttributeTagResponse.GetAttributeTagResponse; import * as GetCatalogResponse from "./get-catalog-response"; export import GetCatalogResponse = GetCatalogResponse.GetCatalogResponse; +import * as GetCatalogPrivateEndpointResponse from "./get-catalog-private-endpoint-response"; +export import GetCatalogPrivateEndpointResponse = GetCatalogPrivateEndpointResponse.GetCatalogPrivateEndpointResponse; import * as GetConnectionResponse from "./get-connection-response"; export import GetConnectionResponse = GetConnectionResponse.GetConnectionResponse; import * as GetDataAssetResponse from "./get-data-asset-response"; @@ -127,6 +139,8 @@ import * as ListAttributeTagsResponse from "./list-attribute-tags-response"; export import ListAttributeTagsResponse = ListAttributeTagsResponse.ListAttributeTagsResponse; import * as ListAttributesResponse from "./list-attributes-response"; export import ListAttributesResponse = ListAttributesResponse.ListAttributesResponse; +import * as ListCatalogPrivateEndpointsResponse from "./list-catalog-private-endpoints-response"; +export import ListCatalogPrivateEndpointsResponse = ListCatalogPrivateEndpointsResponse.ListCatalogPrivateEndpointsResponse; import * as ListCatalogsResponse from "./list-catalogs-response"; export import ListCatalogsResponse = ListCatalogsResponse.ListCatalogsResponse; import * as ListConnectionsResponse from "./list-connections-response"; @@ -181,6 +195,8 @@ import * as UpdateAttributeResponse from "./update-attribute-response"; export import UpdateAttributeResponse = UpdateAttributeResponse.UpdateAttributeResponse; import * as UpdateCatalogResponse from "./update-catalog-response"; export import UpdateCatalogResponse = UpdateCatalogResponse.UpdateCatalogResponse; +import * as UpdateCatalogPrivateEndpointResponse from "./update-catalog-private-endpoint-response"; +export import UpdateCatalogPrivateEndpointResponse = UpdateCatalogPrivateEndpointResponse.UpdateCatalogPrivateEndpointResponse; import * as UpdateConnectionResponse from "./update-connection-response"; export import UpdateConnectionResponse = UpdateConnectionResponse.UpdateConnectionResponse; import * as UpdateDataAssetResponse from "./update-data-asset-response"; diff --git a/lib/datacatalog/lib/response/list-catalog-private-endpoints-response.ts b/lib/datacatalog/lib/response/list-catalog-private-endpoints-response.ts new file mode 100644 index 0000000000..05f1a2620c --- /dev/null +++ b/lib/datacatalog/lib/response/list-catalog-private-endpoints-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListCatalogPrivateEndpointsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * A list of CatalogPrivateEndpointSummary instances. + */ + "items": model.CatalogPrivateEndpointSummary[]; +} diff --git a/lib/datacatalog/lib/response/update-catalog-private-endpoint-response.ts b/lib/datacatalog/lib/response/update-catalog-private-endpoint-response.ts new file mode 100644 index 0000000000..46c8704709 --- /dev/null +++ b/lib/datacatalog/lib/response/update-catalog-private-endpoint-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20190325 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateCatalogPrivateEndpointResponse { + /** + * 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 OCID of the asynchronous request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) with this OCID to track the status of the asynchronous request. + * + */ + "opcWorkRequestId": string; +} diff --git a/lib/datacatalog/package.json b/lib/datacatalog/package.json index 06e191f75d..e37aa489e8 100644 --- a/lib/datacatalog/package.json +++ b/lib/datacatalog/package.json @@ -1,6 +1,6 @@ { "name": "oci-datacatalog", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Data catalogue Service", "repository": { "type": "git", diff --git a/lib/dataflow/lib/model/application.ts b/lib/dataflow/lib/model/application.ts index 801972c16d..e61e211350 100644 --- a/lib/dataflow/lib/model/application.ts +++ b/lib/dataflow/lib/model/application.ts @@ -20,6 +20,12 @@ import common = require("oci-common"); * */ export interface Application { + /** + * An Oracle Cloud Infrastructure URI of an archive (zip) file that may used to support the execution of the application. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + */ + "archiveUri"?: string; /** * The arguments passed to the running application as command line arguments. An argument is * either a plain text or a placeholder. Placeholders are replaced using values from the parameters diff --git a/lib/dataflow/lib/model/create-application-details.ts b/lib/dataflow/lib/model/create-application-details.ts index d49f26ebd7..26a54a3cec 100644 --- a/lib/dataflow/lib/model/create-application-details.ts +++ b/lib/dataflow/lib/model/create-application-details.ts @@ -20,6 +20,12 @@ import common = require("oci-common"); * */ export interface CreateApplicationDetails { + /** + * An Oracle Cloud Infrastructure URI of an archive (zip) file that may used to support the execution of the application. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + */ + "archiveUri"?: string; /** * The arguments passed to the running application as command line arguments. An argument is * either a plain text or a placeholder. Placeholders are replaced using values from the parameters diff --git a/lib/dataflow/lib/model/run.ts b/lib/dataflow/lib/model/run.ts index 4222605bf8..fff33c43e7 100644 --- a/lib/dataflow/lib/model/run.ts +++ b/lib/dataflow/lib/model/run.ts @@ -20,6 +20,12 @@ import common = require("oci-common"); * */ export interface Run { + /** + * An Oracle Cloud Infrastructure URI of an archive (zip) file that may used to support the execution of the application. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + */ + "archiveUri"?: string; /** * The arguments passed to the running application as command line arguments. An argument is * either a plain text or a placeholder. Placeholders are replaced using values from the parameters diff --git a/lib/dataflow/lib/model/update-application-details.ts b/lib/dataflow/lib/model/update-application-details.ts index 9a994c76f1..4de445dab2 100644 --- a/lib/dataflow/lib/model/update-application-details.ts +++ b/lib/dataflow/lib/model/update-application-details.ts @@ -41,6 +41,12 @@ export interface UpdateApplicationDetails { * */ "language"?: model.ApplicationLanguage; + /** + * An Oracle Cloud Infrastructure URI of an archive (zip) file that may used to support the execution of the application. + * See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat + * + */ + "archiveUri"?: string; /** * The arguments passed to the running application as command line arguments. An argument is * either a plain text or a placeholder. Placeholders are replaced using values from the parameters diff --git a/lib/dataflow/package.json b/lib/dataflow/package.json index 07bdda35a5..df442670ab 100644 --- a/lib/dataflow/package.json +++ b/lib/dataflow/package.json @@ -1,6 +1,6 @@ { "name": "oci-dataflow", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Dataflow service", "repository": { "type": "git", diff --git a/lib/dataintegration/README.md b/lib/dataintegration/README.md new file mode 100644 index 0000000000..5413b3f626 --- /dev/null +++ b/lib/dataintegration/README.md @@ -0,0 +1,22 @@ + +# OCI NodeJS client for Data Integration Service + +This module enables you to write code to manage resources for Data Integration Service. + +## Requirements + +To use this module, you must have the following: + +- An Oracle Cloud Infrastructure account. +- A user created in that account, in a group with a policy that grants the desired permissions. This can be a user for yourself, or another person/system that needs to call the API. For an example of how to set up a new user, group, compartment, and policy, see [Adding Users](https://docs.cloud.oracle.com/en-us/iaas/Content/GSG/Tasks/addingusers.htm). For a list of typical policies you may want to use, see [Common Policies](https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Concepts/commonpolicies.htm). +- A key pair used for signing API requests, with the public key uploaded to Oracle. Only the user calling the API should be in possession of the private key. For more information, see [Configuring Credentials](https://docs.cloud.oracle.com/en-us/iaas/Content/API/SDKDocs/typescriptsdkgettingstarted.htm#Configure) + +## Installing + +Use the following command to install this module: + +``` +npm install oci-dataintegration +``` + +Alternatively you can git clone this repo. diff --git a/lib/dataintegration/index.ts b/lib/dataintegration/index.ts new file mode 100644 index 0000000000..f9f8beac4e --- /dev/null +++ b/lib/dataintegration/index.ts @@ -0,0 +1,24 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 requests from "./lib/request"; +import * as models from "./lib/model"; +import * as responses from "./lib/response"; +import * as client from "./lib/client"; +import * as dataintegration_waiter from "./lib/dataintegration-waiter"; + +export { models }; +export { requests }; +export { responses }; +export import DataIntegrationClient = client.DataIntegrationClient; +export import DataIntegrationWaiter = dataintegration_waiter.DataIntegrationWaiter; diff --git a/lib/dataintegration/lib/client.ts b/lib/dataintegration/lib/client.ts new file mode 100644 index 0000000000..eea133e2c4 --- /dev/null +++ b/lib/dataintegration/lib/client.ts @@ -0,0 +1,5330 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 common = require("oci-common"); +import * as requests from "./request"; +import * as models from "./model"; +import * as responses from "./response"; +import { paginateRecords, paginateResponses } from "oci-common"; +import { DataIntegrationWaiter } from "./dataintegration-waiter"; +import { composeResponse, composeRequest } from "oci-common"; + +// =============================================== +// This file is autogenerated - Please do not edit +// =============================================== + +export enum DataIntegrationApiKeys {} + +export class DataIntegrationClient { + protected static serviceEndpointTemplate = + "https://dataintegration.{region}.oci.{secondLevelDomain}"; + protected "_endpoint": string = ""; + protected "_defaultHeaders": any = {}; + protected "_waiters": DataIntegrationWaiter; + + protected _httpClient: common.HttpClient; + + constructor(params: common.AuthParams) { + const requestSigner = params.authenticationDetailsProvider + ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) + : null; + this._httpClient = params.httpClient || new common.FetchHttpClient(requestSigner); + + if ( + params.authenticationDetailsProvider && + common.isRegionProvider(params.authenticationDetailsProvider) + ) { + const provider: common.RegionProvider = params.authenticationDetailsProvider; + if (provider.getRegion()) { + this.region = provider.getRegion(); + } + } + } + + /** + * 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 + "/20200430"; + if (this.logger) this.logger.info(`DataIntegrationClient endpoint set to ${this._endpoint}`); + } + + public get logger() { + return common.LOG.logger; + } + + /** + * 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.endpoint = common.EndpointBuilder.createEndpointFromRegion( + DataIntegrationClient.serviceEndpointTemplate, + region + ); + } + + /** + * 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.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + DataIntegrationClient.serviceEndpointTemplate, + regionId + ); + } + + /** + * Creates a new DataIntegrationWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + public createWaiters(config?: common.WaiterConfiguration): DataIntegrationWaiter { + this._waiters = new DataIntegrationWaiter(this, config); + return this._waiters; + } + + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + public getWaiters(): DataIntegrationWaiter { + if (this._waiters) { + return this._waiters; + } + throw Error("Waiters do not exist. Please create waiters."); + } + + /** + * The workspace will be moved to the desired compartment. + * + * @param ChangeCompartmentRequest + * @return ChangeCompartmentResponse + * @throws OciError when an error occurs + */ + public async changeCompartment( + changeCompartmentRequest: requests.ChangeCompartmentRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#changeCompartment."); + const pathParams = { + "{workspaceId}": changeCompartmentRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "if-match": changeCompartmentRequest.ifMatch, + "opc-request-id": changeCompartmentRequest.opcRequestId, + "opc-retry-token": changeCompartmentRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/actions/changeCompartment", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + changeCompartmentRequest.changeCompartmentDetails, + "ChangeCompartmentDetails", + models.ChangeCompartmentDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates an application. + * + * @param CreateApplicationRequest + * @return CreateApplicationResponse + * @throws OciError when an error occurs + */ + public async createApplication( + createApplicationRequest: requests.CreateApplicationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#createApplication."); + const pathParams = { + "{workspaceId}": createApplicationRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": createApplicationRequest.opcRequestId, + "opc-retry-token": createApplicationRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createApplicationRequest.createApplicationDetails, + "CreateApplicationDetails", + models.CreateApplicationDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "application", + bodyModel: "model.Application", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a connection under an existing data asset. + * @param CreateConnectionRequest + * @return CreateConnectionResponse + * @throws OciError when an error occurs + */ + public async createConnection( + createConnectionRequest: requests.CreateConnectionRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#createConnection."); + const pathParams = { + "{workspaceId}": createConnectionRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": createConnectionRequest.opcRequestId, + "opc-retry-token": createConnectionRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/connections", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createConnectionRequest.createConnectionDetails, + "CreateConnectionDetails", + models.CreateConnectionDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "connection", + bodyModel: "model.Connection", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a connection validation. + * @param CreateConnectionValidationRequest + * @return CreateConnectionValidationResponse + * @throws OciError when an error occurs + */ + public async createConnectionValidation( + createConnectionValidationRequest: requests.CreateConnectionValidationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#createConnectionValidation."); + const pathParams = { + "{workspaceId}": createConnectionValidationRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": createConnectionValidationRequest.opcRequestId, + "opc-retry-token": createConnectionValidationRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/connectionValidations", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createConnectionValidationRequest.createConnectionValidationDetails, + "CreateConnectionValidationDetails", + models.CreateConnectionValidationDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "connectionValidation", + bodyModel: "model.ConnectionValidation", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a data asset with default connection. + * @param CreateDataAssetRequest + * @return CreateDataAssetResponse + * @throws OciError when an error occurs + */ + public async createDataAsset( + createDataAssetRequest: requests.CreateDataAssetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#createDataAsset."); + const pathParams = { + "{workspaceId}": createDataAssetRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": createDataAssetRequest.opcRequestId, + "opc-retry-token": createDataAssetRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataAssets", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createDataAssetRequest.createDataAssetDetails, + "CreateDataAssetDetails", + models.CreateDataAssetDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataAsset", + bodyModel: "model.DataAsset", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a new data flow in a project or folder ready for performing data integrations. + * + * @param CreateDataFlowRequest + * @return CreateDataFlowResponse + * @throws OciError when an error occurs + */ + public async createDataFlow( + createDataFlowRequest: requests.CreateDataFlowRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#createDataFlow."); + const pathParams = { + "{workspaceId}": createDataFlowRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "opc-retry-token": createDataFlowRequest.opcRetryToken, + "opc-request-id": createDataFlowRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataFlows", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createDataFlowRequest.createDataFlowDetails, + "CreateDataFlowDetails", + models.CreateDataFlowDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataFlow", + bodyModel: "model.DataFlow", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * The endpoint accepts the DataFlow object definition in the request payload and creates a DataFlow object validation. + * + * @param CreateDataFlowValidationRequest + * @return CreateDataFlowValidationResponse + * @throws OciError when an error occurs + */ + public async createDataFlowValidation( + createDataFlowValidationRequest: requests.CreateDataFlowValidationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#createDataFlowValidation."); + const pathParams = { + "{workspaceId}": createDataFlowValidationRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": createDataFlowValidationRequest.opcRequestId, + "opc-retry-token": createDataFlowValidationRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataFlowValidations", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createDataFlowValidationRequest.createDataFlowValidationDetails, + "CreateDataFlowValidationDetails", + models.CreateDataFlowValidationDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataFlowValidation", + bodyModel: "model.DataFlowValidation", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves the data entity shape from the end data system. The input can specify the data entity to get the shape for. For databases, this can be retrieved from the database data dictionary. For files, some hints as to the file properties can also be supplied in the input. + * @param CreateEntityShapeRequest + * @return CreateEntityShapeResponse + * @throws OciError when an error occurs + */ + public async createEntityShape( + createEntityShapeRequest: requests.CreateEntityShapeRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#createEntityShape."); + const pathParams = { + "{workspaceId}": createEntityShapeRequest.workspaceId, + "{connectionKey}": createEntityShapeRequest.connectionKey, + "{schemaResourceName}": createEntityShapeRequest.schemaResourceName + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": createEntityShapeRequest.opcRequestId, + "opc-retry-token": createEntityShapeRequest.opcRetryToken, + "if-match": createEntityShapeRequest.ifMatch + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: + "/workspaces/{workspaceId}/connections/{connectionKey}/schemas/{schemaResourceName}/entityShapes", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createEntityShapeRequest.createEntityShapeDetails, + "CreateEntityShapeDetails", + models.CreateEntityShapeDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "entityShape", + bodyModel: "model.EntityShape", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a folder in a project or in another folder, limited to two levels of folders. | + * Folders are used to organize your design-time resources, such as tasks or data flows. + * + * @param CreateFolderRequest + * @return CreateFolderResponse + * @throws OciError when an error occurs + */ + public async createFolder( + createFolderRequest: requests.CreateFolderRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#createFolder."); + const pathParams = { + "{workspaceId}": createFolderRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "opc-retry-token": createFolderRequest.opcRetryToken, + "opc-request-id": createFolderRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/folders", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createFolderRequest.createFolderDetails, + "CreateFolderDetails", + models.CreateFolderDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "folder", + bodyModel: "model.Folder", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a patch in an application. + * @param CreatePatchRequest + * @return CreatePatchResponse + * @throws OciError when an error occurs + */ + public async createPatch( + createPatchRequest: requests.CreatePatchRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#createPatch."); + const pathParams = { + "{workspaceId}": createPatchRequest.workspaceId, + "{applicationKey}": createPatchRequest.applicationKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": createPatchRequest.opcRequestId, + "opc-retry-token": createPatchRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/patches", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createPatchRequest.createPatchDetails, + "CreatePatchDetails", + models.CreatePatchDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "patch", + bodyModel: "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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a project. Projects are organizational constructs within a workspace that you use to organize your design-time resources, such as tasks or data flows. Projects can be organized into folders. + * + * @param CreateProjectRequest + * @return CreateProjectResponse + * @throws OciError when an error occurs + */ + public async createProject( + createProjectRequest: requests.CreateProjectRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#createProject."); + const pathParams = { + "{workspaceId}": createProjectRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "opc-retry-token": createProjectRequest.opcRetryToken, + "opc-request-id": createProjectRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/projects", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createProjectRequest.createProjectDetails, + "CreateProjectDetails", + models.CreateProjectDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "project", + bodyModel: "model.Project", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a new task ready for performing data integrations. There are specialized types of tasks that include data loader and integration tasks. + * + * @param CreateTaskRequest + * @return CreateTaskResponse + * @throws OciError when an error occurs + */ + public async createTask( + createTaskRequest: requests.CreateTaskRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#createTask."); + const pathParams = { + "{workspaceId}": createTaskRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "opc-retry-token": createTaskRequest.opcRetryToken, + "opc-request-id": createTaskRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/tasks", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createTaskRequest.createTaskDetails, + "CreateTaskDetails", + models.CreateTaskDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "task", + bodyModel: "model.Task", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a data integration task or task run. The task can be based on a dataflow design or a task. + * @param CreateTaskRunRequest + * @return CreateTaskRunResponse + * @throws OciError when an error occurs + */ + public async createTaskRun( + createTaskRunRequest: requests.CreateTaskRunRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#createTaskRun."); + const pathParams = { + "{workspaceId}": createTaskRunRequest.workspaceId, + "{applicationKey}": createTaskRunRequest.applicationKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-retry-token": createTaskRunRequest.opcRetryToken, + "opc-request-id": createTaskRunRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/taskRuns", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createTaskRunRequest.createTaskRunDetails, + "CreateTaskRunDetails", + models.CreateTaskRunDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "taskRun", + bodyModel: "model.TaskRun", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Validates a specific task. + * @param CreateTaskValidationRequest + * @return CreateTaskValidationResponse + * @throws OciError when an error occurs + */ + public async createTaskValidation( + createTaskValidationRequest: requests.CreateTaskValidationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#createTaskValidation."); + const pathParams = { + "{workspaceId}": createTaskValidationRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": createTaskValidationRequest.opcRequestId, + "opc-retry-token": createTaskValidationRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/taskValidations", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createTaskValidationRequest.createTaskValidationDetails, + "CreateTaskValidationDetails", + models.CreateTaskValidationDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "taskValidation", + bodyModel: "model.TaskValidation", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a new Data Integration Workspace ready for performing data integration. + * + * @param CreateWorkspaceRequest + * @return CreateWorkspaceResponse + * @throws OciError when an error occurs + */ + public async createWorkspace( + createWorkspaceRequest: requests.CreateWorkspaceRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#createWorkspace."); + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "opc-retry-token": createWorkspaceRequest.opcRetryToken, + "opc-request-id": createWorkspaceRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createWorkspaceRequest.createWorkspaceDetails, + "CreateWorkspaceDetails", + models.CreateWorkspaceDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Removes an application using the specified identifier. + * @param DeleteApplicationRequest + * @return DeleteApplicationResponse + * @throws OciError when an error occurs + */ + public async deleteApplication( + deleteApplicationRequest: requests.DeleteApplicationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#deleteApplication."); + const pathParams = { + "{workspaceId}": deleteApplicationRequest.workspaceId, + "{applicationKey}": deleteApplicationRequest.applicationKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteApplicationRequest.ifMatch, + "opc-request-id": deleteApplicationRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Removes a connection using the specified identifier. + * @param DeleteConnectionRequest + * @return DeleteConnectionResponse + * @throws OciError when an error occurs + */ + public async deleteConnection( + deleteConnectionRequest: requests.DeleteConnectionRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#deleteConnection."); + const pathParams = { + "{workspaceId}": deleteConnectionRequest.workspaceId, + "{connectionKey}": deleteConnectionRequest.connectionKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteConnectionRequest.ifMatch, + "opc-request-id": deleteConnectionRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/connections/{connectionKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Successfully accepted the delete request. The connection validation will be deleted. + * @param DeleteConnectionValidationRequest + * @return DeleteConnectionValidationResponse + * @throws OciError when an error occurs + */ + public async deleteConnectionValidation( + deleteConnectionValidationRequest: requests.DeleteConnectionValidationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#deleteConnectionValidation."); + const pathParams = { + "{workspaceId}": deleteConnectionValidationRequest.workspaceId, + "{connectionValidationKey}": deleteConnectionValidationRequest.connectionValidationKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteConnectionValidationRequest.ifMatch, + "opc-request-id": deleteConnectionValidationRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/connectionValidations/{connectionValidationKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Removes a data asset using the specified identifier. + * @param DeleteDataAssetRequest + * @return DeleteDataAssetResponse + * @throws OciError when an error occurs + */ + public async deleteDataAsset( + deleteDataAssetRequest: requests.DeleteDataAssetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#deleteDataAsset."); + const pathParams = { + "{workspaceId}": deleteDataAssetRequest.workspaceId, + "{dataAssetKey}": deleteDataAssetRequest.dataAssetKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteDataAssetRequest.ifMatch, + "opc-request-id": deleteDataAssetRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataAssets/{dataAssetKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Removes a data flow from a project or folder using the specified identifier. + * @param DeleteDataFlowRequest + * @return DeleteDataFlowResponse + * @throws OciError when an error occurs + */ + public async deleteDataFlow( + deleteDataFlowRequest: requests.DeleteDataFlowRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#deleteDataFlow."); + const pathParams = { + "{workspaceId}": deleteDataFlowRequest.workspaceId, + "{dataFlowKey}": deleteDataFlowRequest.dataFlowKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteDataFlowRequest.ifMatch, + "opc-request-id": deleteDataFlowRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataFlows/{dataFlowKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Removes a data flow validation using the specified identifier. + * @param DeleteDataFlowValidationRequest + * @return DeleteDataFlowValidationResponse + * @throws OciError when an error occurs + */ + public async deleteDataFlowValidation( + deleteDataFlowValidationRequest: requests.DeleteDataFlowValidationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#deleteDataFlowValidation."); + const pathParams = { + "{workspaceId}": deleteDataFlowValidationRequest.workspaceId, + "{dataFlowValidationKey}": deleteDataFlowValidationRequest.dataFlowValidationKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteDataFlowValidationRequest.ifMatch, + "opc-request-id": deleteDataFlowValidationRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataFlowValidations/{dataFlowValidationKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Removes a folder from a project using the specified identifier. + * @param DeleteFolderRequest + * @return DeleteFolderResponse + * @throws OciError when an error occurs + */ + public async deleteFolder( + deleteFolderRequest: requests.DeleteFolderRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#deleteFolder."); + const pathParams = { + "{workspaceId}": deleteFolderRequest.workspaceId, + "{folderKey}": deleteFolderRequest.folderKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteFolderRequest.ifMatch, + "opc-request-id": deleteFolderRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/folders/{folderKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Removes a patch using the specified identifier. + * @param DeletePatchRequest + * @return DeletePatchResponse + * @throws OciError when an error occurs + */ + public async deletePatch( + deletePatchRequest: requests.DeletePatchRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#deletePatch."); + const pathParams = { + "{workspaceId}": deletePatchRequest.workspaceId, + "{applicationKey}": deletePatchRequest.applicationKey, + "{patchKey}": deletePatchRequest.patchKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deletePatchRequest.ifMatch, + "opc-request-id": deletePatchRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/patches/{patchKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Removes a project from the workspace using the specified identifier. + * @param DeleteProjectRequest + * @return DeleteProjectResponse + * @throws OciError when an error occurs + */ + public async deleteProject( + deleteProjectRequest: requests.DeleteProjectRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#deleteProject."); + const pathParams = { + "{workspaceId}": deleteProjectRequest.workspaceId, + "{projectKey}": deleteProjectRequest.projectKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteProjectRequest.ifMatch, + "opc-request-id": deleteProjectRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/projects/{projectKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Removes a task using the specified identifier. + * @param DeleteTaskRequest + * @return DeleteTaskResponse + * @throws OciError when an error occurs + */ + public async deleteTask( + deleteTaskRequest: requests.DeleteTaskRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#deleteTask."); + const pathParams = { + "{workspaceId}": deleteTaskRequest.workspaceId, + "{taskKey}": deleteTaskRequest.taskKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteTaskRequest.ifMatch, + "opc-request-id": deleteTaskRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/tasks/{taskKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Deletes a task run using the specified identifier. + * @param DeleteTaskRunRequest + * @return DeleteTaskRunResponse + * @throws OciError when an error occurs + */ + public async deleteTaskRun( + deleteTaskRunRequest: requests.DeleteTaskRunRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#deleteTaskRun."); + const pathParams = { + "{workspaceId}": deleteTaskRunRequest.workspaceId, + "{applicationKey}": deleteTaskRunRequest.applicationKey, + "{taskRunKey}": deleteTaskRunRequest.taskRunKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteTaskRunRequest.ifMatch, + "opc-request-id": deleteTaskRunRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/taskRuns/{taskRunKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Removes a task validation using the specified identifier. + * + * @param DeleteTaskValidationRequest + * @return DeleteTaskValidationResponse + * @throws OciError when an error occurs + */ + public async deleteTaskValidation( + deleteTaskValidationRequest: requests.DeleteTaskValidationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#deleteTaskValidation."); + const pathParams = { + "{workspaceId}": deleteTaskValidationRequest.workspaceId, + "{taskValidationKey}": deleteTaskValidationRequest.taskValidationKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": deleteTaskValidationRequest.ifMatch, + "opc-request-id": deleteTaskValidationRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/taskValidations/{taskValidationKey}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Deletes a Data Integration Workspace resource by identifier + * @param DeleteWorkspaceRequest + * @return DeleteWorkspaceResponse + * @throws OciError when an error occurs + */ + public async deleteWorkspace( + deleteWorkspaceRequest: requests.DeleteWorkspaceRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#deleteWorkspace."); + const pathParams = { + "{workspaceId}": deleteWorkspaceRequest.workspaceId + }; + + const queryParams = { + "quiesceTimeout": deleteWorkspaceRequest.quiesceTimeout, + "isForceOperation": deleteWorkspaceRequest.isForceOperation + }; + + let headerParams = { + "if-match": deleteWorkspaceRequest.ifMatch, + "opc-request-id": deleteWorkspaceRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves an application using the specified identifier. + * @param GetApplicationRequest + * @return GetApplicationResponse + * @throws OciError when an error occurs + */ + public async getApplication( + getApplicationRequest: requests.GetApplicationRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getApplication."); + const pathParams = { + "{workspaceId}": getApplicationRequest.workspaceId, + "{applicationKey}": getApplicationRequest.applicationKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getApplicationRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "application", + bodyModel: "model.Application", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves the connection details using the specified identifier. + * @param GetConnectionRequest + * @return GetConnectionResponse + * @throws OciError when an error occurs + */ + public async getConnection( + getConnectionRequest: requests.GetConnectionRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getConnection."); + const pathParams = { + "{workspaceId}": getConnectionRequest.workspaceId, + "{connectionKey}": getConnectionRequest.connectionKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getConnectionRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/connections/{connectionKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "connection", + bodyModel: "model.Connection", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a connection validation using the specified identifier. + * @param GetConnectionValidationRequest + * @return GetConnectionValidationResponse + * @throws OciError when an error occurs + */ + public async getConnectionValidation( + getConnectionValidationRequest: requests.GetConnectionValidationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#getConnectionValidation."); + const pathParams = { + "{workspaceId}": getConnectionValidationRequest.workspaceId, + "{connectionValidationKey}": getConnectionValidationRequest.connectionValidationKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getConnectionValidationRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/connectionValidations/{connectionValidationKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "connectionValidation", + bodyModel: "model.ConnectionValidation", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves statistics on a workspace. It returns an object with an array of property values, such as the number of projects, | + * applications, data assets, and so on. + * + * @param GetCountStatisticRequest + * @return GetCountStatisticResponse + * @throws OciError when an error occurs + */ + public async getCountStatistic( + getCountStatisticRequest: requests.GetCountStatisticRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#getCountStatistic."); + const pathParams = { + "{workspaceId}": getCountStatisticRequest.workspaceId, + "{countStatisticKey}": getCountStatisticRequest.countStatisticKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getCountStatisticRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/countStatistics/{countStatisticKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "countStatistic", + bodyModel: "model.CountStatistic", + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves details of a data asset using the specified identifier. + * @param GetDataAssetRequest + * @return GetDataAssetResponse + * @throws OciError when an error occurs + */ + public async getDataAsset( + getDataAssetRequest: requests.GetDataAssetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getDataAsset."); + const pathParams = { + "{workspaceId}": getDataAssetRequest.workspaceId, + "{dataAssetKey}": getDataAssetRequest.dataAssetKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getDataAssetRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataAssets/{dataAssetKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataAsset", + bodyModel: "model.DataAsset", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves the data entity details with the given name from live schema. + * @param GetDataEntityRequest + * @return GetDataEntityResponse + * @throws OciError when an error occurs + */ + public async getDataEntity( + getDataEntityRequest: requests.GetDataEntityRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getDataEntity."); + const pathParams = { + "{workspaceId}": getDataEntityRequest.workspaceId, + "{connectionKey}": getDataEntityRequest.connectionKey, + "{schemaResourceName}": getDataEntityRequest.schemaResourceName, + "{dataEntityKey}": getDataEntityRequest.dataEntityKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getDataEntityRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: + "/workspaces/{workspaceId}/connections/{connectionKey}/schemas/{schemaResourceName}/dataEntities/{dataEntityKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataEntity", + bodyModel: "model.DataEntity", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a data flow using the specified identifier. + * @param GetDataFlowRequest + * @return GetDataFlowResponse + * @throws OciError when an error occurs + */ + public async getDataFlow( + getDataFlowRequest: requests.GetDataFlowRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getDataFlow."); + const pathParams = { + "{workspaceId}": getDataFlowRequest.workspaceId, + "{dataFlowKey}": getDataFlowRequest.dataFlowKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getDataFlowRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataFlows/{dataFlowKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataFlow", + bodyModel: "model.DataFlow", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a data flow validation using the specified identifier. + * @param GetDataFlowValidationRequest + * @return GetDataFlowValidationResponse + * @throws OciError when an error occurs + */ + public async getDataFlowValidation( + getDataFlowValidationRequest: requests.GetDataFlowValidationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#getDataFlowValidation."); + const pathParams = { + "{workspaceId}": getDataFlowValidationRequest.workspaceId, + "{dataFlowValidationKey}": getDataFlowValidationRequest.dataFlowValidationKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getDataFlowValidationRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataFlowValidations/{dataFlowValidationKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataFlowValidation", + bodyModel: "model.DataFlowValidation", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves the details of a dependent object from an application. + * @param GetDependentObjectRequest + * @return GetDependentObjectResponse + * @throws OciError when an error occurs + */ + public async getDependentObject( + getDependentObjectRequest: requests.GetDependentObjectRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#getDependentObject."); + const pathParams = { + "{workspaceId}": getDependentObjectRequest.workspaceId, + "{applicationKey}": getDependentObjectRequest.applicationKey, + "{dependentObjectKey}": getDependentObjectRequest.dependentObjectKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getDependentObjectRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: + "/workspaces/{workspaceId}/applications/{applicationKey}/dependentObjects/{dependentObjectKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dependentObject", + bodyModel: "model.DependentObject", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a folder using the specified identifier. + * @param GetFolderRequest + * @return GetFolderResponse + * @throws OciError when an error occurs + */ + public async getFolder( + getFolderRequest: requests.GetFolderRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getFolder."); + const pathParams = { + "{workspaceId}": getFolderRequest.workspaceId, + "{folderKey}": getFolderRequest.folderKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getFolderRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/folders/{folderKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "folder", + bodyModel: "model.Folder", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a patch in an application using the specified identifier. + * @param GetPatchRequest + * @return GetPatchResponse + * @throws OciError when an error occurs + */ + public async getPatch( + getPatchRequest: requests.GetPatchRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getPatch."); + const pathParams = { + "{workspaceId}": getPatchRequest.workspaceId, + "{applicationKey}": getPatchRequest.applicationKey, + "{patchKey}": getPatchRequest.patchKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getPatchRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/patches/{patchKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "patch", + bodyModel: "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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a project using the specified identifier. + * @param GetProjectRequest + * @return GetProjectResponse + * @throws OciError when an error occurs + */ + public async getProject( + getProjectRequest: requests.GetProjectRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getProject."); + const pathParams = { + "{workspaceId}": getProjectRequest.workspaceId, + "{projectKey}": getProjectRequest.projectKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getProjectRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/projects/{projectKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "project", + bodyModel: "model.Project", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves the details of a published object from an application. + * @param GetPublishedObjectRequest + * @return GetPublishedObjectResponse + * @throws OciError when an error occurs + */ + public async getPublishedObject( + getPublishedObjectRequest: requests.GetPublishedObjectRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#getPublishedObject."); + const pathParams = { + "{workspaceId}": getPublishedObjectRequest.workspaceId, + "{applicationKey}": getPublishedObjectRequest.applicationKey, + "{publishedObjectKey}": getPublishedObjectRequest.publishedObjectKey + }; + + const queryParams = { + "expandReferences": getPublishedObjectRequest.expandReferences + }; + + let headerParams = { + "opc-request-id": getPublishedObjectRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: + "/workspaces/{workspaceId}/applications/{applicationKey}/publishedObjects/{publishedObjectKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "publishedObject", + bodyModel: "model.PublishedObject", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a schema that can be accessed using the specified connection. + * @param GetSchemaRequest + * @return GetSchemaResponse + * @throws OciError when an error occurs + */ + public async getSchema( + getSchemaRequest: requests.GetSchemaRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getSchema."); + const pathParams = { + "{workspaceId}": getSchemaRequest.workspaceId, + "{connectionKey}": getSchemaRequest.connectionKey, + "{schemaResourceName}": getSchemaRequest.schemaResourceName + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getSchemaRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/connections/{connectionKey}/schemas/{schemaResourceName}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schema", + bodyModel: "model.Schema", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a task using the specified identifier. + * @param GetTaskRequest + * @return GetTaskResponse + * @throws OciError when an error occurs + */ + public async getTask( + getTaskRequest: requests.GetTaskRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getTask."); + const pathParams = { + "{workspaceId}": getTaskRequest.workspaceId, + "{taskKey}": getTaskRequest.taskKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getTaskRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/tasks/{taskKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "task", + bodyModel: "model.Task", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a task run using the specified identifier. + * @param GetTaskRunRequest + * @return GetTaskRunResponse + * @throws OciError when an error occurs + */ + public async getTaskRun( + getTaskRunRequest: requests.GetTaskRunRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getTaskRun."); + const pathParams = { + "{workspaceId}": getTaskRunRequest.workspaceId, + "{applicationKey}": getTaskRunRequest.applicationKey, + "{taskRunKey}": getTaskRunRequest.taskRunKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getTaskRunRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/taskRuns/{taskRunKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "taskRun", + bodyModel: "model.TaskRun", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a task validation using the specified identifier. + * + * @param GetTaskValidationRequest + * @return GetTaskValidationResponse + * @throws OciError when an error occurs + */ + public async getTaskValidation( + getTaskValidationRequest: requests.GetTaskValidationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#getTaskValidation."); + const pathParams = { + "{workspaceId}": getTaskValidationRequest.workspaceId, + "{taskValidationKey}": getTaskValidationRequest.taskValidationKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getTaskValidationRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/taskValidations/{taskValidationKey}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "taskValidation", + bodyModel: "model.TaskValidation", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Gets the status of the work request with the given ID. + * @param GetWorkRequestRequest + * @return GetWorkRequestResponse + * @throws OciError when an error occurs + */ + public async getWorkRequest( + getWorkRequestRequest: requests.GetWorkRequestRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getWorkRequest."); + const pathParams = { + "{workRequestId}": getWorkRequestRequest.workRequestId + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getWorkRequestRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workRequests/{workRequestId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "workRequest", + bodyModel: "model.WorkRequest", + 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("retry-after"), + key: "retryAfter", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Gets a Data Integration Workspace by identifier + * @param GetWorkspaceRequest + * @return GetWorkspaceResponse + * @throws OciError when an error occurs + */ + public async getWorkspace( + getWorkspaceRequest: requests.GetWorkspaceRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#getWorkspace."); + const pathParams = { + "{workspaceId}": getWorkspaceRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": getWorkspaceRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "workspace", + bodyModel: "model.Workspace", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of applications and provides options to filter the list. + * @param ListApplicationsRequest + * @return ListApplicationsResponse + * @throws OciError when an error occurs + */ + public async listApplications( + listApplicationsRequest: requests.ListApplicationsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listApplications."); + const pathParams = { + "{workspaceId}": listApplicationsRequest.workspaceId + }; + + const queryParams = { + "name": listApplicationsRequest.name, + "identifier": listApplicationsRequest.identifier, + "fields": listApplicationsRequest.fields, + "limit": listApplicationsRequest.limit, + "page": listApplicationsRequest.page, + "sortOrder": listApplicationsRequest.sortOrder, + "sortBy": listApplicationsRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listApplicationsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "applicationSummaryCollection", + bodyModel: "model.ApplicationSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of connection validations within the specified workspace. + * @param ListConnectionValidationsRequest + * @return ListConnectionValidationsResponse + * @throws OciError when an error occurs + */ + public async listConnectionValidations( + listConnectionValidationsRequest: requests.ListConnectionValidationsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#listConnectionValidations."); + const pathParams = { + "{workspaceId}": listConnectionValidationsRequest.workspaceId + }; + + const queryParams = { + "key": listConnectionValidationsRequest.key, + "name": listConnectionValidationsRequest.name, + "identifier": listConnectionValidationsRequest.identifier, + "fields": listConnectionValidationsRequest.fields, + "page": listConnectionValidationsRequest.page, + "limit": listConnectionValidationsRequest.limit, + "sortBy": listConnectionValidationsRequest.sortBy, + "sortOrder": listConnectionValidationsRequest.sortOrder + }; + + let headerParams = { + "opc-request-id": listConnectionValidationsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/connectionValidations", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "connectionValidationSummaryCollection", + bodyModel: "model.ConnectionValidationSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of all connections. + * @param ListConnectionsRequest + * @return ListConnectionsResponse + * @throws OciError when an error occurs + */ + public async listConnections( + listConnectionsRequest: requests.ListConnectionsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listConnections."); + const pathParams = { + "{workspaceId}": listConnectionsRequest.workspaceId + }; + + const queryParams = { + "dataAssetKey": listConnectionsRequest.dataAssetKey, + "name": listConnectionsRequest.name, + "page": listConnectionsRequest.page, + "limit": listConnectionsRequest.limit, + "fields": listConnectionsRequest.fields, + "type": listConnectionsRequest.type, + "sortBy": listConnectionsRequest.sortBy, + "sortOrder": listConnectionsRequest.sortOrder + }; + + let headerParams = { + "opc-request-id": listConnectionsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/connections", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "connectionSummaryCollection", + bodyModel: "model.ConnectionSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * This endpoint can be used to list all data asset summaries + * + * @param ListDataAssetsRequest + * @return ListDataAssetsResponse + * @throws OciError when an error occurs + */ + public async listDataAssets( + listDataAssetsRequest: requests.ListDataAssetsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listDataAssets."); + const pathParams = { + "{workspaceId}": listDataAssetsRequest.workspaceId + }; + + const queryParams = { + "page": listDataAssetsRequest.page, + "limit": listDataAssetsRequest.limit, + "fields": listDataAssetsRequest.fields, + "type": listDataAssetsRequest.type, + "sortBy": listDataAssetsRequest.sortBy, + "sortOrder": listDataAssetsRequest.sortOrder, + "name": listDataAssetsRequest.name + }; + + let headerParams = { + "opc-request-id": listDataAssetsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataAssets", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataAssetSummaryCollection", + bodyModel: "model.DataAssetSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of summaries of data entities present in the schema identified by schema name. | + * A live query is run on the data asset identified via the connection specified. + * + * @param ListDataEntitiesRequest + * @return ListDataEntitiesResponse + * @throws OciError when an error occurs + */ + public async listDataEntities( + listDataEntitiesRequest: requests.ListDataEntitiesRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listDataEntities."); + const pathParams = { + "{workspaceId}": listDataEntitiesRequest.workspaceId, + "{connectionKey}": listDataEntitiesRequest.connectionKey, + "{schemaResourceName}": listDataEntitiesRequest.schemaResourceName + }; + + const queryParams = { + "name": listDataEntitiesRequest.name, + "page": listDataEntitiesRequest.page, + "type": listDataEntitiesRequest.type, + "limit": listDataEntitiesRequest.limit, + "fields": listDataEntitiesRequest.fields, + "sortBy": listDataEntitiesRequest.sortBy, + "sortOrder": listDataEntitiesRequest.sortOrder + }; + + let headerParams = { + "opc-request-id": listDataEntitiesRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: + "/workspaces/{workspaceId}/connections/{connectionKey}/schemas/{schemaResourceName}/dataEntities", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataEntitySummaryCollection", + bodyModel: "model.DataEntitySummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of data flow validations within the specified workspace + * @param ListDataFlowValidationsRequest + * @return ListDataFlowValidationsResponse + * @throws OciError when an error occurs + */ + public async listDataFlowValidations( + listDataFlowValidationsRequest: requests.ListDataFlowValidationsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#listDataFlowValidations."); + const pathParams = { + "{workspaceId}": listDataFlowValidationsRequest.workspaceId + }; + + const queryParams = { + "key": listDataFlowValidationsRequest.key, + "name": listDataFlowValidationsRequest.name, + "identifier": listDataFlowValidationsRequest.identifier, + "fields": listDataFlowValidationsRequest.fields, + "page": listDataFlowValidationsRequest.page, + "limit": listDataFlowValidationsRequest.limit, + "sortBy": listDataFlowValidationsRequest.sortBy, + "sortOrder": listDataFlowValidationsRequest.sortOrder + }; + + let headerParams = { + "opc-request-id": listDataFlowValidationsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataFlowValidations", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataFlowValidationSummaryCollection", + bodyModel: "model.DataFlowValidationSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of data flows in a project or folder. + * + * @param ListDataFlowsRequest + * @return ListDataFlowsResponse + * @throws OciError when an error occurs + */ + public async listDataFlows( + listDataFlowsRequest: requests.ListDataFlowsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listDataFlows."); + const pathParams = { + "{workspaceId}": listDataFlowsRequest.workspaceId + }; + + const queryParams = { + "folderId": listDataFlowsRequest.folderId, + "fields": listDataFlowsRequest.fields, + "name": listDataFlowsRequest.name, + "identifier": listDataFlowsRequest.identifier, + "limit": listDataFlowsRequest.limit, + "page": listDataFlowsRequest.page, + "sortOrder": listDataFlowsRequest.sortOrder, + "sortBy": listDataFlowsRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listDataFlowsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataFlows", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataFlowSummaryCollection", + bodyModel: "model.DataFlowSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of all dependent objects for a specific application. + * @param ListDependentObjectsRequest + * @return ListDependentObjectsResponse + * @throws OciError when an error occurs + */ + public async listDependentObjects( + listDependentObjectsRequest: requests.ListDependentObjectsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#listDependentObjects."); + const pathParams = { + "{workspaceId}": listDependentObjectsRequest.workspaceId, + "{applicationKey}": listDependentObjectsRequest.applicationKey + }; + + const queryParams = { + "fields": listDependentObjectsRequest.fields, + "name": listDependentObjectsRequest.name, + "identifier": listDependentObjectsRequest.identifier, + "type": listDependentObjectsRequest.type, + "typeInSubtree": listDependentObjectsRequest.typeInSubtree, + "limit": listDependentObjectsRequest.limit, + "page": listDependentObjectsRequest.page, + "sortOrder": listDependentObjectsRequest.sortOrder, + "sortBy": listDependentObjectsRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listDependentObjectsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/dependentObjects", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dependentObjectSummaryCollection", + bodyModel: "model.DependentObjectSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of folders in a project and provides options to filter the list. + * + * @param ListFoldersRequest + * @return ListFoldersResponse + * @throws OciError when an error occurs + */ + public async listFolders( + listFoldersRequest: requests.ListFoldersRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listFolders."); + const pathParams = { + "{workspaceId}": listFoldersRequest.workspaceId + }; + + const queryParams = { + "aggregatorKey": listFoldersRequest.aggregatorKey, + "fields": listFoldersRequest.fields, + "name": listFoldersRequest.name, + "identifier": listFoldersRequest.identifier, + "page": listFoldersRequest.page, + "limit": listFoldersRequest.limit, + "sortOrder": listFoldersRequest.sortOrder, + "sortBy": listFoldersRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listFoldersRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/folders", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "folderSummaryCollection", + bodyModel: "model.FolderSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of patches in an application and provides options to filter the list. + * @param ListPatchesRequest + * @return ListPatchesResponse + * @throws OciError when an error occurs + */ + public async listPatches( + listPatchesRequest: requests.ListPatchesRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listPatches."); + const pathParams = { + "{workspaceId}": listPatchesRequest.workspaceId, + "{applicationKey}": listPatchesRequest.applicationKey + }; + + const queryParams = { + "name": listPatchesRequest.name, + "identifier": listPatchesRequest.identifier, + "fields": listPatchesRequest.fields, + "limit": listPatchesRequest.limit, + "page": listPatchesRequest.page, + "sortOrder": listPatchesRequest.sortOrder, + "sortBy": listPatchesRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listPatchesRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/patches", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "patchSummaryCollection", + bodyModel: "model.PatchSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a lists of projects in a workspace and provides options to filter the list. + * + * @param ListProjectsRequest + * @return ListProjectsResponse + * @throws OciError when an error occurs + */ + public async listProjects( + listProjectsRequest: requests.ListProjectsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listProjects."); + const pathParams = { + "{workspaceId}": listProjectsRequest.workspaceId + }; + + const queryParams = { + "fields": listProjectsRequest.fields, + "name": listProjectsRequest.name, + "identifier": listProjectsRequest.identifier, + "page": listProjectsRequest.page, + "limit": listProjectsRequest.limit, + "sortOrder": listProjectsRequest.sortOrder, + "sortBy": listProjectsRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listProjectsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/projects", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "projectSummaryCollection", + bodyModel: "model.ProjectSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of all the published objects for a specified application. + * @param ListPublishedObjectsRequest + * @return ListPublishedObjectsResponse + * @throws OciError when an error occurs + */ + public async listPublishedObjects( + listPublishedObjectsRequest: requests.ListPublishedObjectsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#listPublishedObjects."); + const pathParams = { + "{workspaceId}": listPublishedObjectsRequest.workspaceId, + "{applicationKey}": listPublishedObjectsRequest.applicationKey + }; + + const queryParams = { + "fields": listPublishedObjectsRequest.fields, + "name": listPublishedObjectsRequest.name, + "identifier": listPublishedObjectsRequest.identifier, + "type": listPublishedObjectsRequest.type, + "typeInSubtree": listPublishedObjectsRequest.typeInSubtree, + "limit": listPublishedObjectsRequest.limit, + "page": listPublishedObjectsRequest.page, + "sortOrder": listPublishedObjectsRequest.sortOrder, + "sortBy": listPublishedObjectsRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listPublishedObjectsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/publishedObjects", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "publishedObjectSummaryCollection", + bodyModel: "model.PublishedObjectSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of all the schemas that can be accessed using the specified connection. + * @param ListSchemasRequest + * @return ListSchemasResponse + * @throws OciError when an error occurs + */ + public async listSchemas( + listSchemasRequest: requests.ListSchemasRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listSchemas."); + const pathParams = { + "{workspaceId}": listSchemasRequest.workspaceId, + "{connectionKey}": listSchemasRequest.connectionKey + }; + + const queryParams = { + "page": listSchemasRequest.page, + "limit": listSchemasRequest.limit, + "fields": listSchemasRequest.fields, + "sortBy": listSchemasRequest.sortBy, + "sortOrder": listSchemasRequest.sortOrder, + "schemaResourceName": listSchemasRequest.schemaResourceName, + "name": listSchemasRequest.name + }; + + let headerParams = { + "opc-request-id": listSchemasRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/connections/{connectionKey}/schemas", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schemaSummaryCollection", + bodyModel: "model.SchemaSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Get log entries for task runs using its key + * @param ListTaskRunLogsRequest + * @return ListTaskRunLogsResponse + * @throws OciError when an error occurs + */ + public async listTaskRunLogs( + listTaskRunLogsRequest: requests.ListTaskRunLogsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listTaskRunLogs."); + const pathParams = { + "{workspaceId}": listTaskRunLogsRequest.workspaceId, + "{applicationKey}": listTaskRunLogsRequest.applicationKey, + "{taskRunKey}": listTaskRunLogsRequest.taskRunKey + }; + + const queryParams = { + "page": listTaskRunLogsRequest.page, + "limit": listTaskRunLogsRequest.limit, + "sortOrder": listTaskRunLogsRequest.sortOrder, + "sortBy": listTaskRunLogsRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listTaskRunLogsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/taskRuns/{taskRunKey}/logs", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: "TaskRunLogSummary[]", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a new async iterator which will iterate over the models.TaskRunLogSummary objects + * contained in responses from the listTaskRunLogs 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 listAllTaskRunLogs( + request: requests.ListTaskRunLogsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listTaskRunLogs(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listTaskRunLogs 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 listAllTaskRunLogsResponses( + request: requests.ListTaskRunLogsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listTaskRunLogs(req)); + } + + /** + * Retrieves a list of task runs and provides options to filter the list. + * @param ListTaskRunsRequest + * @return ListTaskRunsResponse + * @throws OciError when an error occurs + */ + public async listTaskRuns( + listTaskRunsRequest: requests.ListTaskRunsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listTaskRuns."); + const pathParams = { + "{workspaceId}": listTaskRunsRequest.workspaceId, + "{applicationKey}": listTaskRunsRequest.applicationKey + }; + + const queryParams = { + "fields": listTaskRunsRequest.fields, + "name": listTaskRunsRequest.name, + "identifier": listTaskRunsRequest.identifier, + "page": listTaskRunsRequest.page, + "limit": listTaskRunsRequest.limit, + "sortOrder": listTaskRunsRequest.sortOrder, + "sortBy": listTaskRunsRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listTaskRunsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/taskRuns", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "taskRunSummaryCollection", + bodyModel: "model.TaskRunSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of task validations within the specified workspace. + * + * @param ListTaskValidationsRequest + * @return ListTaskValidationsResponse + * @throws OciError when an error occurs + */ + public async listTaskValidations( + listTaskValidationsRequest: requests.ListTaskValidationsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#listTaskValidations."); + const pathParams = { + "{workspaceId}": listTaskValidationsRequest.workspaceId + }; + + const queryParams = { + "key": listTaskValidationsRequest.key, + "name": listTaskValidationsRequest.name, + "identifier": listTaskValidationsRequest.identifier, + "fields": listTaskValidationsRequest.fields, + "page": listTaskValidationsRequest.page, + "limit": listTaskValidationsRequest.limit, + "sortBy": listTaskValidationsRequest.sortBy, + "sortOrder": listTaskValidationsRequest.sortOrder + }; + + let headerParams = { + "opc-request-id": listTaskValidationsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/taskValidations", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "taskValidationSummaryCollection", + bodyModel: "model.TaskValidationSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Retrieves a list of all tasks in a specified project or folder. + * + * @param ListTasksRequest + * @return ListTasksResponse + * @throws OciError when an error occurs + */ + public async listTasks( + listTasksRequest: requests.ListTasksRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listTasks."); + const pathParams = { + "{workspaceId}": listTasksRequest.workspaceId + }; + + const queryParams = { + "folderId": listTasksRequest.folderId, + "fields": listTasksRequest.fields, + "name": listTasksRequest.name, + "key": listTasksRequest.key, + "identifier": listTasksRequest.identifier, + "type": listTasksRequest.type, + "limit": listTasksRequest.limit, + "page": listTasksRequest.page, + "sortOrder": listTasksRequest.sortOrder, + "sortBy": listTasksRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listTasksRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/tasks", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "taskSummaryCollection", + bodyModel: "model.TaskSummaryCollection", + 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-prev-page"), + key: "opcPrevPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Return a (paginated) list of errors for a given work request. + * + * @param ListWorkRequestErrorsRequest + * @return ListWorkRequestErrorsResponse + * @throws OciError when an error occurs + */ + public async listWorkRequestErrors( + listWorkRequestErrorsRequest: requests.ListWorkRequestErrorsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#listWorkRequestErrors."); + const pathParams = { + "{workRequestId}": listWorkRequestErrorsRequest.workRequestId + }; + + const queryParams = { + "page": listWorkRequestErrorsRequest.page, + "limit": listWorkRequestErrorsRequest.limit, + "sortOrder": listWorkRequestErrorsRequest.sortOrder, + "sortBy": listWorkRequestErrorsRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listWorkRequestErrorsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workRequests/{workRequestId}/workRequestErrors", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: "WorkRequestError[]", + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a new async iterator which will iterate over the models.WorkRequestError objects + * contained in responses from the listWorkRequestErrors 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 listAllWorkRequestErrors( + request: requests.ListWorkRequestErrorsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listWorkRequestErrors(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listWorkRequestErrors 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 listAllWorkRequestErrorsResponses( + request: requests.ListWorkRequestErrorsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listWorkRequestErrors(req)); + } + + /** + * Return a (paginated) list of logs for a given work request. + * + * @param ListWorkRequestLogsRequest + * @return ListWorkRequestLogsResponse + * @throws OciError when an error occurs + */ + public async listWorkRequestLogs( + listWorkRequestLogsRequest: requests.ListWorkRequestLogsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#listWorkRequestLogs."); + const pathParams = { + "{workRequestId}": listWorkRequestLogsRequest.workRequestId + }; + + const queryParams = { + "page": listWorkRequestLogsRequest.page, + "limit": listWorkRequestLogsRequest.limit, + "sortOrder": listWorkRequestLogsRequest.sortOrder, + "sortBy": listWorkRequestLogsRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listWorkRequestLogsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workRequests/{workRequestId}/logs", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: "WorkRequestLogEntry[]", + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a new async iterator which will iterate over the models.WorkRequestLogEntry objects + * contained in responses from the listWorkRequestLogs 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 listAllWorkRequestLogs( + request: requests.ListWorkRequestLogsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listWorkRequestLogs(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listWorkRequestLogs 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 listAllWorkRequestLogsResponses( + request: requests.ListWorkRequestLogsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listWorkRequestLogs(req)); + } + + /** + * Lists the work requests in a compartment. + * + * @param ListWorkRequestsRequest + * @return ListWorkRequestsResponse + * @throws OciError when an error occurs + */ + public async listWorkRequests( + listWorkRequestsRequest: requests.ListWorkRequestsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listWorkRequests."); + const pathParams = {}; + + const queryParams = { + "compartmentId": listWorkRequestsRequest.compartmentId, + "workRequestStatus": listWorkRequestsRequest.workRequestStatus, + "page": listWorkRequestsRequest.page, + "limit": listWorkRequestsRequest.limit, + "sortOrder": listWorkRequestsRequest.sortOrder, + "sortBy": listWorkRequestsRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listWorkRequestsRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workRequests", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: "WorkRequestSummary[]", + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a new async iterator which will iterate over the models.WorkRequestSummary objects + * contained in responses from the listWorkRequests 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 listAllWorkRequests( + request: requests.ListWorkRequestsRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listWorkRequests(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listWorkRequests 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 listAllWorkRequestsResponses( + request: requests.ListWorkRequestsRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listWorkRequests(req)); + } + + /** + * Returns a list of Data Integration Workspaces. + * + * @param ListWorkspacesRequest + * @return ListWorkspacesResponse + * @throws OciError when an error occurs + */ + public async listWorkspaces( + listWorkspacesRequest: requests.ListWorkspacesRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#listWorkspaces."); + const pathParams = {}; + + const queryParams = { + "compartmentId": listWorkspacesRequest.compartmentId, + "name": listWorkspacesRequest.name, + "limit": listWorkspacesRequest.limit, + "page": listWorkspacesRequest.page, + "lifecycleState": listWorkspacesRequest.lifecycleState, + "sortOrder": listWorkspacesRequest.sortOrder, + "sortBy": listWorkspacesRequest.sortBy + }; + + let headerParams = { + "opc-request-id": listWorkspacesRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "items", + bodyModel: "WorkspaceSummary[]", + 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; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Creates a new async iterator which will iterate over the models.WorkspaceSummary objects + * contained in responses from the listWorkspaces 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 listAllWorkspaces( + request: requests.ListWorkspacesRequest + ): AsyncIterableIterator { + return paginateRecords(request, req => this.listWorkspaces(req)); + } + + /** + * Creates a new async iterator which will iterate over the responses received from the listWorkspaces 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 listAllWorkspacesResponses( + request: requests.ListWorkspacesRequest + ): AsyncIterableIterator { + return paginateResponses(request, req => this.listWorkspaces(req)); + } + + /** + * The workspace will be started. + * + * @param StartWorkspaceRequest + * @return StartWorkspaceResponse + * @throws OciError when an error occurs + */ + public async startWorkspace( + startWorkspaceRequest: requests.StartWorkspaceRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#startWorkspace."); + const pathParams = { + "{workspaceId}": startWorkspaceRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "if-match": startWorkspaceRequest.ifMatch, + "opc-request-id": startWorkspaceRequest.opcRequestId, + "opc-retry-token": startWorkspaceRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/actions/start", + method: "POST", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * The workspace will be stopped. + * + * @param StopWorkspaceRequest + * @return StopWorkspaceResponse + * @throws OciError when an error occurs + */ + public async stopWorkspace( + stopWorkspaceRequest: requests.StopWorkspaceRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#stopWorkspace."); + const pathParams = { + "{workspaceId}": stopWorkspaceRequest.workspaceId + }; + + const queryParams = { + "quiesceTimeout": stopWorkspaceRequest.quiesceTimeout, + "isForceOperation": stopWorkspaceRequest.isForceOperation + }; + + let headerParams = { + "if-match": stopWorkspaceRequest.ifMatch, + "opc-request-id": stopWorkspaceRequest.opcRequestId, + "opc-retry-token": stopWorkspaceRequest.opcRetryToken + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/actions/stop", + method: "POST", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Updates an application. + * @param UpdateApplicationRequest + * @return UpdateApplicationResponse + * @throws OciError when an error occurs + */ + public async updateApplication( + updateApplicationRequest: requests.UpdateApplicationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation DataIntegrationClient#updateApplication."); + const pathParams = { + "{workspaceId}": updateApplicationRequest.workspaceId, + "{applicationKey}": updateApplicationRequest.applicationKey + }; + + const queryParams = {}; + + let headerParams = { + "if-match": updateApplicationRequest.ifMatch, + "opc-request-id": updateApplicationRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateApplicationRequest.updateApplicationDetails, + "UpdateApplicationDetails", + models.UpdateApplicationDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "application", + bodyModel: "model.Application", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Updates a connection under a data asset. + * @param UpdateConnectionRequest + * @return UpdateConnectionResponse + * @throws OciError when an error occurs + */ + public async updateConnection( + updateConnectionRequest: requests.UpdateConnectionRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#updateConnection."); + const pathParams = { + "{workspaceId}": updateConnectionRequest.workspaceId, + "{connectionKey}": updateConnectionRequest.connectionKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": updateConnectionRequest.opcRequestId, + "if-match": updateConnectionRequest.ifMatch + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/connections/{connectionKey}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateConnectionRequest.updateConnectionDetails, + "UpdateConnectionDetails", + models.UpdateConnectionDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "connection", + bodyModel: "model.Connection", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Updates a specific data asset with default connection. + * @param UpdateDataAssetRequest + * @return UpdateDataAssetResponse + * @throws OciError when an error occurs + */ + public async updateDataAsset( + updateDataAssetRequest: requests.UpdateDataAssetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#updateDataAsset."); + const pathParams = { + "{workspaceId}": updateDataAssetRequest.workspaceId, + "{dataAssetKey}": updateDataAssetRequest.dataAssetKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": updateDataAssetRequest.opcRequestId, + "if-match": updateDataAssetRequest.ifMatch + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataAssets/{dataAssetKey}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateDataAssetRequest.updateDataAssetDetails, + "UpdateDataAssetDetails", + models.UpdateDataAssetDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataAsset", + bodyModel: "model.DataAsset", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Updates a specific data flow. + * @param UpdateDataFlowRequest + * @return UpdateDataFlowResponse + * @throws OciError when an error occurs + */ + public async updateDataFlow( + updateDataFlowRequest: requests.UpdateDataFlowRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#updateDataFlow."); + const pathParams = { + "{workspaceId}": updateDataFlowRequest.workspaceId, + "{dataFlowKey}": updateDataFlowRequest.dataFlowKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": updateDataFlowRequest.opcRequestId, + "if-match": updateDataFlowRequest.ifMatch + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/dataFlows/{dataFlowKey}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateDataFlowRequest.updateDataFlowDetails, + "UpdateDataFlowDetails", + models.UpdateDataFlowDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "dataFlow", + bodyModel: "model.DataFlow", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Updates a specific folder. + * @param UpdateFolderRequest + * @return UpdateFolderResponse + * @throws OciError when an error occurs + */ + public async updateFolder( + updateFolderRequest: requests.UpdateFolderRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#updateFolder."); + const pathParams = { + "{workspaceId}": updateFolderRequest.workspaceId, + "{folderKey}": updateFolderRequest.folderKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": updateFolderRequest.opcRequestId, + "if-match": updateFolderRequest.ifMatch + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/folders/{folderKey}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateFolderRequest.updateFolderDetails, + "UpdateFolderDetails", + models.UpdateFolderDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "folder", + bodyModel: "model.Folder", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Updates a specific project. + * @param UpdateProjectRequest + * @return UpdateProjectResponse + * @throws OciError when an error occurs + */ + public async updateProject( + updateProjectRequest: requests.UpdateProjectRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#updateProject."); + const pathParams = { + "{workspaceId}": updateProjectRequest.workspaceId, + "{projectKey}": updateProjectRequest.projectKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": updateProjectRequest.opcRequestId, + "if-match": updateProjectRequest.ifMatch + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/projects/{projectKey}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateProjectRequest.updateProjectDetails, + "UpdateProjectDetails", + models.UpdateProjectDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "project", + bodyModel: "model.Project", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Updates a specific task. For example, you can update the task description or move the task to a different folder by changing the `aggregatorKey` to a different folder in the registry. + * @param UpdateTaskRequest + * @return UpdateTaskResponse + * @throws OciError when an error occurs + */ + public async updateTask( + updateTaskRequest: requests.UpdateTaskRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#updateTask."); + const pathParams = { + "{workspaceId}": updateTaskRequest.workspaceId, + "{taskKey}": updateTaskRequest.taskKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": updateTaskRequest.opcRequestId, + "if-match": updateTaskRequest.ifMatch + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/tasks/{taskKey}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateTaskRequest.updateTaskDetails, + "UpdateTaskDetails", + models.UpdateTaskDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "task", + bodyModel: "model.Task", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Updates the status of the task run. For example, aborts a task run. + * @param UpdateTaskRunRequest + * @return UpdateTaskRunResponse + * @throws OciError when an error occurs + */ + public async updateTaskRun( + updateTaskRunRequest: requests.UpdateTaskRunRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#updateTaskRun."); + const pathParams = { + "{workspaceId}": updateTaskRunRequest.workspaceId, + "{applicationKey}": updateTaskRunRequest.applicationKey, + "{taskRunKey}": updateTaskRunRequest.taskRunKey + }; + + const queryParams = {}; + + let headerParams = { + "opc-request-id": updateTaskRunRequest.opcRequestId, + "if-match": updateTaskRunRequest.ifMatch + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}/applications/{applicationKey}/taskRuns/{taskRunKey}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateTaskRunRequest.updateTaskRunDetails, + "UpdateTaskRunDetails", + models.UpdateTaskRunDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "taskRunDetails", + bodyModel: "model.TaskRunDetails", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } + + /** + * Updates the Data Integration Workspace + * @param UpdateWorkspaceRequest + * @return UpdateWorkspaceResponse + * @throws OciError when an error occurs + */ + public async updateWorkspace( + updateWorkspaceRequest: requests.UpdateWorkspaceRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation DataIntegrationClient#updateWorkspace."); + const pathParams = { + "{workspaceId}": updateWorkspaceRequest.workspaceId + }; + + const queryParams = {}; + + let headerParams = { + "if-match": updateWorkspaceRequest.ifMatch, + "opc-request-id": updateWorkspaceRequest.opcRequestId + }; + + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workspaces/{workspaceId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateWorkspaceRequest.updateWorkspaceDetails, + "UpdateWorkspaceDetails", + models.UpdateWorkspaceDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + + const response = await this._httpClient.send(request); + if (response.status && response.status >= 200 && response.status <= 299) { + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "workspace", + bodyModel: "model.Workspace", + 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("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } else { + const errBody = await common.handleErrorBody(response); + throw common.handleErrorResponse(response, errBody); + } + } +} diff --git a/lib/dataintegration/lib/dataintegration-waiter.ts b/lib/dataintegration/lib/dataintegration-waiter.ts new file mode 100644 index 0000000000..9c9ded0ecb --- /dev/null +++ b/lib/dataintegration/lib/dataintegration-waiter.ts @@ -0,0 +1,60 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 serviceRequests from "./request"; +import * as serviceResponses from "./response"; +import * as models from "./model"; +import { DataIntegrationClient } from "./client"; +import { genericWaiter, genericTerminalConditionWaiter, WaiterConfiguration } from "oci-common"; + +export class DataIntegrationWaiter { + public constructor( + private client: DataIntegrationClient, + private readonly config?: WaiterConfiguration + ) {} + + /** + * Waits forWorkRequest + * + * @param request the request to send + * @return response returns GetWorkRequestResponse + */ + public async forWorkRequest( + request: serviceRequests.GetWorkRequestRequest + ): Promise { + return genericWaiter( + this.config, + () => this.client.getWorkRequest(request), + response => (response.workRequest.timeFinished ? true : false) + ); + } + + /** + * Waits forWorkspace 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 GetWorkspaceResponse | null (null in case of 404 response) + */ + public async forWorkspace( + request: serviceRequests.GetWorkspaceRequest, + ...targetStates: models.Workspace.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getWorkspace(request), + response => targetStates.exists(response.workspace.lifecycleState), + targetStates.includes(models.Workspace.LifecycleState.DELETED) + ); + } +} diff --git a/lib/dataintegration/lib/model/abstract-data-operation-config.ts b/lib/dataintegration/lib/model/abstract-data-operation-config.ts new file mode 100644 index 0000000000..ec7f955eda --- /dev/null +++ b/lib/dataintegration/lib/model/abstract-data-operation-config.ts @@ -0,0 +1,46 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the data operation. + */ +export interface AbstractDataOperationConfig { + "modelType": string; +} + +export namespace AbstractDataOperationConfig { + export function getJsonObj(obj: AbstractDataOperationConfig): object { + const jsonObj = { ...obj, ...{} }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "WRITE_OPERATION_CONFIG": + return model.WriteOperationConfig.getJsonObj( + (jsonObj), + true + ); + case "READ_OPERATION_CONFIG": + return model.ReadOperationConfig.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/abstract-field.ts b/lib/dataintegration/lib/model/abstract-field.ts new file mode 100644 index 0000000000..5ebfe7853e --- /dev/null +++ b/lib/dataintegration/lib/model/abstract-field.ts @@ -0,0 +1,34 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 type representing the abstract field concept. + */ +export interface AbstractField extends model.TypedObject { + "modelType": string; +} + +export namespace AbstractField { + export function getJsonObj(obj: AbstractField, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as AbstractField)), + ...{} + }; + + return jsonObj; + } + export const modelType = "FIELD"; +} diff --git a/lib/dataintegration/lib/model/abstract-format-attribute.ts b/lib/dataintegration/lib/model/abstract-format-attribute.ts new file mode 100644 index 0000000000..0881b60fef --- /dev/null +++ b/lib/dataintegration/lib/model/abstract-format-attribute.ts @@ -0,0 +1,46 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 abstract format attribute. + */ +export interface AbstractFormatAttribute { + "modelType": string; +} + +export namespace AbstractFormatAttribute { + export function getJsonObj(obj: AbstractFormatAttribute): object { + const jsonObj = { ...obj, ...{} }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "JSON_FORMAT": + return model.JsonFormatAttribute.getJsonObj( + (jsonObj), + true + ); + case "CSV_FORMAT": + return model.CsvFormatAttribute.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/abstract-read-attribute.ts b/lib/dataintegration/lib/model/abstract-read-attribute.ts new file mode 100644 index 0000000000..de0ef27dff --- /dev/null +++ b/lib/dataintegration/lib/model/abstract-read-attribute.ts @@ -0,0 +1,41 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 abstract read attribute. + */ +export interface AbstractReadAttribute { + "modelType": string; +} + +export namespace AbstractReadAttribute { + export function getJsonObj(obj: AbstractReadAttribute): object { + const jsonObj = { ...obj, ...{} }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "ORACLEREADATTRIBUTE": + return model.OracleReadAttribute.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/abstract-write-attribute.ts b/lib/dataintegration/lib/model/abstract-write-attribute.ts new file mode 100644 index 0000000000..1f87d18c96 --- /dev/null +++ b/lib/dataintegration/lib/model/abstract-write-attribute.ts @@ -0,0 +1,51 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 abstract write attribute. + */ +export interface AbstractWriteAttribute { + "modelType": string; +} + +export namespace AbstractWriteAttribute { + export function getJsonObj(obj: AbstractWriteAttribute): object { + const jsonObj = { ...obj, ...{} }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "ORACLEADWCWRITEATTRIBUTE": + return model.OracleAdwcWriteAttribute.getJsonObj( + (jsonObj), + true + ); + case "ORACLEWRITEATTRIBUTE": + return model.OracleWriteAttribute.getJsonObj( + (jsonObj), + true + ); + case "ORACLEATPWRITEATTRIBUTE": + return model.OracleAtpWriteAttribute.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/aggregator.ts b/lib/dataintegration/lib/model/aggregator.ts new file mode 100644 index 0000000000..e26637b813 --- /dev/null +++ b/lib/dataintegration/lib/model/aggregator.ts @@ -0,0 +1,40 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the aggregator operator. The aggregate operator performs calculations, like sum or count, on all rows or a group of rows to create new, derivative attributes. + */ +export interface Aggregator extends model.Operator { + "groupByColumns"?: model.DynamicProxyField; + + "modelType": string; +} + +export namespace Aggregator { + export function getJsonObj(obj: Aggregator, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Operator.getJsonObj(obj) as Aggregator)), + ...{ + "groupByColumns": obj.groupByColumns + ? model.DynamicProxyField.getJsonObj(obj.groupByColumns) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "AGGREGATOR_OPERATOR"; +} diff --git a/lib/dataintegration/lib/model/application-details.ts b/lib/dataintegration/lib/model/application-details.ts new file mode 100644 index 0000000000..a34a205238 --- /dev/null +++ b/lib/dataintegration/lib/model/application-details.ts @@ -0,0 +1,74 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the application. + */ +export interface ApplicationDetails { + /** + * Generated key that can be used in API calls to identify application. + */ + "key": string; + /** + * The type of the object. + */ + "modelType": string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * version + */ + "applicationVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "parentRef"?: model.ParentReference; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion": number; + "metadata"?: model.ObjectMetadata; +} + +export namespace ApplicationDetails { + export function getJsonObj(obj: ApplicationDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/application-summary-collection.ts b/lib/dataintegration/lib/model/application-summary-collection.ts new file mode 100644 index 0000000000..22b7dbfdf5 --- /dev/null +++ b/lib/dataintegration/lib/model/application-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This is the collection of application summaries, it may be a collection of lightweight details or full definitions. + */ +export interface ApplicationSummaryCollection { + /** + * The array of Application summaries + */ + "items": Array; +} + +export namespace ApplicationSummaryCollection { + export function getJsonObj(obj: ApplicationSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ApplicationSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/application-summary.ts b/lib/dataintegration/lib/model/application-summary.ts new file mode 100644 index 0000000000..afc1b47f37 --- /dev/null +++ b/lib/dataintegration/lib/model/application-summary.ts @@ -0,0 +1,94 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 application summary type contains the audit summary information and the definition of the application. + */ +export interface ApplicationSummary { + /** + * Generated key that can be used in API calls to identify application. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * version + */ + "applicationVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "parentRef"?: model.ParentReference; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * List of dependent objects in this patch. + */ + "dependentObjectMetadata"?: Array; + /** + * List of objects that are published / unpublished in this patch. + */ + "publishedObjectMetadata"?: { [key: string]: model.PatchObjectMetadata }; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace ApplicationSummary { + export function getJsonObj(obj: ApplicationSummary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "dependentObjectMetadata": obj.dependentObjectMetadata + ? obj.dependentObjectMetadata.map(item => { + return model.PatchObjectMetadata.getJsonObj(item); + }) + : undefined, + "publishedObjectMetadata": obj.publishedObjectMetadata + ? common.mapContainer(obj.publishedObjectMetadata, model.PatchObjectMetadata.getJsonObj) + : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/application.ts b/lib/dataintegration/lib/model/application.ts new file mode 100644 index 0000000000..76da5744bb --- /dev/null +++ b/lib/dataintegration/lib/model/application.ts @@ -0,0 +1,94 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 application type contains the audit summary information and the definition of the application. + */ +export interface Application { + /** + * Generated key that can be used in API calls to identify application. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * version + */ + "applicationVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "parentRef"?: model.ParentReference; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * List of dependent objects in this patch. + */ + "dependentObjectMetadata"?: Array; + /** + * List of objects that are published / unpublished in this patch. + */ + "publishedObjectMetadata"?: { [key: string]: model.PatchObjectMetadata }; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace Application { + export function getJsonObj(obj: Application): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "dependentObjectMetadata": obj.dependentObjectMetadata + ? obj.dependentObjectMetadata.map(item => { + return model.PatchObjectMetadata.getJsonObj(item); + }) + : undefined, + "publishedObjectMetadata": obj.publishedObjectMetadata + ? common.mapContainer(obj.publishedObjectMetadata, model.PatchObjectMetadata.getJsonObj) + : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/base-type.ts b/lib/dataintegration/lib/model/base-type.ts new file mode 100644 index 0000000000..a9174388f4 --- /dev/null +++ b/lib/dataintegration/lib/model/base-type.ts @@ -0,0 +1,75 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Base type for the type system + */ +export interface BaseType { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Detailed description for the object. + */ + "description"?: string; + + "modelType": string; +} + +export namespace BaseType { + export function getJsonObj(obj: BaseType): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "CONFIGURED_TYPE": + return model.ConfiguredType.getJsonObj((jsonObj), true); + case "JAVA_TYPE": + return model.JavaType.getJsonObj((jsonObj), true); + case "DYNAMIC_TYPE": + return model.DynamicType.getJsonObj((jsonObj), true); + case "DERIVED_TYPE": + return model.DerivedType.getJsonObj((jsonObj), true); + case "DATA_TYPE": + return model.DataType.getJsonObj((jsonObj), true); + case "COMPOSITE_TYPE": + return model.CompositeType.getJsonObj((jsonObj), true); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/change-compartment-details.ts b/lib/dataintegration/lib/model/change-compartment-details.ts new file mode 100644 index 0000000000..b50b982566 --- /dev/null +++ b/lib/dataintegration/lib/model/change-compartment-details.ts @@ -0,0 +1,33 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 change compartment action. + */ +export interface ChangeCompartmentDetails { + /** + * The OCID of the compartment to move the the workspace to. + */ + "compartmentId": string; +} + +export namespace ChangeCompartmentDetails { + export function getJsonObj(obj: ChangeCompartmentDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/composite-field-map.ts b/lib/dataintegration/lib/model/composite-field-map.ts new file mode 100644 index 0000000000..ccd3ccd81a --- /dev/null +++ b/lib/dataintegration/lib/model/composite-field-map.ts @@ -0,0 +1,64 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 composite field map. + */ +export interface CompositeFieldMap extends model.FieldMap { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + "configValues"?: model.ConfigValues; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * An array of field maps. + */ + "fieldMaps"?: Array; + + "modelType": string; +} + +export namespace CompositeFieldMap { + export function getJsonObj(obj: CompositeFieldMap, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.FieldMap.getJsonObj(obj) as CompositeFieldMap)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "configValues": obj.configValues + ? model.ConfigValues.getJsonObj(obj.configValues) + : undefined, + + "fieldMaps": obj.fieldMaps + ? obj.fieldMaps.map(item => { + return model.FieldMap.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "COMPOSITE_FIELD_MAP"; +} diff --git a/lib/dataintegration/lib/model/composite-type.ts b/lib/dataintegration/lib/model/composite-type.ts new file mode 100644 index 0000000000..1157871edb --- /dev/null +++ b/lib/dataintegration/lib/model/composite-type.ts @@ -0,0 +1,51 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CompositeType represents a type that is composed of a list of sub-types, for example an \"Address\" type. The sub-types can be simple DataType or other CompositeType objects. Thus in general a CompositeType may represent an arbitrarily deep hierarchy of types. + */ +export interface CompositeType extends model.BaseType { + "parentType"?: model.CompositeType; + /** + * elements + */ + "elements"?: Array; + "configDefinition"?: model.ConfigDefinition; + + "modelType": string; +} + +export namespace CompositeType { + export function getJsonObj(obj: CompositeType, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.BaseType.getJsonObj(obj) as CompositeType)), + ...{ + "parentType": obj.parentType ? model.CompositeType.getJsonObj(obj.parentType) : undefined, + "elements": obj.elements + ? obj.elements.map(item => { + return model.TypedObject.getJsonObj(item); + }) + : undefined, + "configDefinition": obj.configDefinition + ? model.ConfigDefinition.getJsonObj(obj.configDefinition) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "COMPOSITE_TYPE"; +} diff --git a/lib/dataintegration/lib/model/conditional-input-link.ts b/lib/dataintegration/lib/model/conditional-input-link.ts new file mode 100644 index 0000000000..79213824e0 --- /dev/null +++ b/lib/dataintegration/lib/model/conditional-input-link.ts @@ -0,0 +1,46 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the conditional input link. + */ +export interface ConditionalInputLink extends model.FlowPortLink { + "fromLink"?: model.OutputLink; + "fieldMap"?: + | model.RuleBasedFieldMap + | model.DirectFieldMap + | model.CompositeFieldMap + | model.DirectNamedFieldMap; + "condition"?: model.Expression; + + "modelType": string; +} + +export namespace ConditionalInputLink { + export function getJsonObj(obj: ConditionalInputLink, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.FlowPortLink.getJsonObj(obj) as ConditionalInputLink)), + ...{ + "fromLink": obj.fromLink ? model.OutputLink.getJsonObj(obj.fromLink) : undefined, + "fieldMap": obj.fieldMap ? model.FieldMap.getJsonObj(obj.fieldMap) : undefined, + "condition": obj.condition ? model.Expression.getJsonObj(obj.condition) : undefined + } + }; + + return jsonObj; + } + export const modelType = "CONDITIONAL_INPUT_LINK"; +} diff --git a/lib/dataintegration/lib/model/config-definition.ts b/lib/dataintegration/lib/model/config-definition.ts new file mode 100644 index 0000000000..7ed741ae27 --- /dev/null +++ b/lib/dataintegration/lib/model/config-definition.ts @@ -0,0 +1,70 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 configuration details of a configurable object. This contains one or more config param definitions. + */ +export interface ConfigDefinition { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Whether the configuration is contained or not. + */ + "isContained"?: boolean; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * configParamDefs + */ + "configParameterDefinitions"?: { [key: string]: model.ConfigParameterDefinition }; +} + +export namespace ConfigDefinition { + export function getJsonObj(obj: ConfigDefinition): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "configParameterDefinitions": obj.configParameterDefinitions + ? common.mapContainer( + obj.configParameterDefinitions, + model.ConfigParameterDefinition.getJsonObj + ) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/config-parameter-definition.ts b/lib/dataintegration/lib/model/config-parameter-definition.ts new file mode 100644 index 0000000000..e67200fda7 --- /dev/null +++ b/lib/dataintegration/lib/model/config-parameter-definition.ts @@ -0,0 +1,67 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 configurable properties of an object type. + */ +export interface ConfigParameterDefinition { + "parameterType"?: + | model.ConfiguredType + | model.JavaType + | model.DynamicType + | model.DerivedType + | model.DataType + | model.CompositeType; + /** + * This object represents the configurable properties for an object type. + */ + "parameterName"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The default value for the parameter. + */ + "defaultValue"?: any; + /** + * The parameter class field name. + */ + "classFieldName"?: string; + /** + * Whether the parameter is static or not. + */ + "isStatic"?: boolean; + /** + * Whether the parameter is a class field or not. + */ + "isClassFieldValue"?: boolean; +} + +export namespace ConfigParameterDefinition { + export function getJsonObj(obj: ConfigParameterDefinition): object { + const jsonObj = { + ...obj, + ...{ + "parameterType": obj.parameterType + ? model.BaseType.getJsonObj(obj.parameterType) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/config-parameter-value.ts b/lib/dataintegration/lib/model/config-parameter-value.ts new file mode 100644 index 0000000000..30ff05c94c --- /dev/null +++ b/lib/dataintegration/lib/model/config-parameter-value.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This holds the values/objects. + */ +export interface ConfigParameterValue { + /** + * A string value of the parameter. + */ + "stringValue"?: string; + /** + * An integer value of the parameter. + */ + "intValue"?: number; + /** + * The root object reference value. + */ + "refValue"?: any; + /** + * Reference to the parameter by its key. + */ + "parameterValue"?: string; +} + +export namespace ConfigParameterValue { + export function getJsonObj(obj: ConfigParameterValue): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/config-provider.ts b/lib/dataintegration/lib/model/config-provider.ts new file mode 100644 index 0000000000..bd06fe2313 --- /dev/null +++ b/lib/dataintegration/lib/model/config-provider.ts @@ -0,0 +1,47 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the configuration provider. + */ +export interface ConfigProvider { + /** + * bindings + */ + "bindings"?: { [key: string]: model.ParameterValue }; + /** + * childProviders + */ + "childProviders"?: { [key: string]: model.ConfigProvider }; +} + +export namespace ConfigProvider { + export function getJsonObj(obj: ConfigProvider): object { + const jsonObj = { + ...obj, + ...{ + "bindings": obj.bindings + ? common.mapContainer(obj.bindings, model.ParameterValue.getJsonObj) + : undefined, + "childProviders": obj.childProviders + ? common.mapContainer(obj.childProviders, model.ConfigProvider.getJsonObj) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/config-values.ts b/lib/dataintegration/lib/model/config-values.ts new file mode 100644 index 0000000000..643344208d --- /dev/null +++ b/lib/dataintegration/lib/model/config-values.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Configuration values can be string, objects or parameters. + */ +export interface ConfigValues { + /** + * configParamValues + */ + "configParamValues"?: { [key: string]: model.ConfigParameterValue }; + "parentRef"?: model.ParentReference; +} + +export namespace ConfigValues { + export function getJsonObj(obj: ConfigValues): object { + const jsonObj = { + ...obj, + ...{ + "configParamValues": obj.configParamValues + ? common.mapContainer(obj.configParamValues, model.ConfigParameterValue.getJsonObj) + : undefined, + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/configured-type.ts b/lib/dataintegration/lib/model/configured-type.ts new file mode 100644 index 0000000000..209dbb030a --- /dev/null +++ b/lib/dataintegration/lib/model/configured-type.ts @@ -0,0 +1,52 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ConfiguraedType represents a type that has built-in configuration to the type itself. An example is a SSN type whose basic type is VARCHAR, but the type itself also has a built-in configuration like length=10 + */ +export interface ConfiguredType extends model.BaseType { + "wrappedType"?: + | model.ConfiguredType + | model.JavaType + | model.DynamicType + | model.DerivedType + | model.DataType + | model.CompositeType; + "configValues"?: model.ConfigValues; + "configDefinition"?: model.ConfigDefinition; + + "modelType": string; +} + +export namespace ConfiguredType { + export function getJsonObj(obj: ConfiguredType, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.BaseType.getJsonObj(obj) as ConfiguredType)), + ...{ + "wrappedType": obj.wrappedType ? model.BaseType.getJsonObj(obj.wrappedType) : undefined, + "configValues": obj.configValues + ? model.ConfigValues.getJsonObj(obj.configValues) + : undefined, + "configDefinition": obj.configDefinition + ? model.ConfigDefinition.getJsonObj(obj.configDefinition) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "CONFIGURED_TYPE"; +} diff --git a/lib/dataintegration/lib/model/connection-details.ts b/lib/dataintegration/lib/model/connection-details.ts new file mode 100644 index 0000000000..06b6d40856 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-details.ts @@ -0,0 +1,110 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 connection details object. + */ +export interface ConnectionDetails { + /** + * Generated key that can be used in API calls to identify connection. On scenarios where reference to the connection is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "primarySchema"?: model.Schema; + /** + * The properties for the connection. + */ + "connectionProperties"?: Array; + /** + * The default property for the connection. + */ + "isDefault"?: boolean; + "metadata"?: model.ObjectMetadata; + + "modelType": string; +} + +export namespace ConnectionDetails { + export function getJsonObj(obj: ConnectionDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "primarySchema": obj.primarySchema ? model.Schema.getJsonObj(obj.primarySchema) : undefined, + "connectionProperties": obj.connectionProperties + ? obj.connectionProperties.map(item => { + return model.ConnectionProperty.getJsonObj(item); + }) + : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "ORACLE_OBJECT_STORAGE_CONNECTION": + return model.ConnectionFromObjectStorageDetails.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ADWC_CONNECTION": + return model.ConnectionFromAdwcDetails.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ATP_CONNECTION": + return model.ConnectionFromAtpDetails.getJsonObj( + (jsonObj), + true + ); + case "ORACLEDB_CONNECTION": + return model.ConnectionFromOracleDetails.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/connection-from-adwc-details.ts b/lib/dataintegration/lib/model/connection-from-adwc-details.ts new file mode 100644 index 0000000000..9738862a20 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-from-adwc-details.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ADWC connection details object. + */ +export interface ConnectionFromAdwcDetails extends model.ConnectionDetails { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace ConnectionFromAdwcDetails { + export function getJsonObj(obj: ConnectionFromAdwcDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConnectionDetails.getJsonObj(obj) as ConnectionFromAdwcDetails)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_ADWC_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-from-adwc.ts b/lib/dataintegration/lib/model/connection-from-adwc.ts new file mode 100644 index 0000000000..fb1e938c3e --- /dev/null +++ b/lib/dataintegration/lib/model/connection-from-adwc.ts @@ -0,0 +1,43 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ADWC connection details object. + */ +export interface ConnectionFromAdwc extends model.Connection { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace ConnectionFromAdwc { + export function getJsonObj(obj: ConnectionFromAdwc, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Connection.getJsonObj(obj) as ConnectionFromAdwc)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_ADWC_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-from-atp-details.ts b/lib/dataintegration/lib/model/connection-from-atp-details.ts new file mode 100644 index 0000000000..e005f04e3e --- /dev/null +++ b/lib/dataintegration/lib/model/connection-from-atp-details.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ATP connection details. + */ +export interface ConnectionFromAtpDetails extends model.ConnectionDetails { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace ConnectionFromAtpDetails { + export function getJsonObj(obj: ConnectionFromAtpDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConnectionDetails.getJsonObj(obj) as ConnectionFromAtpDetails)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_ATP_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-from-atp.ts b/lib/dataintegration/lib/model/connection-from-atp.ts new file mode 100644 index 0000000000..e67593d4f8 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-from-atp.ts @@ -0,0 +1,43 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ATP connection details. + */ +export interface ConnectionFromAtp extends model.Connection { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace ConnectionFromAtp { + export function getJsonObj(obj: ConnectionFromAtp, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Connection.getJsonObj(obj) as ConnectionFromAtp)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_ATP_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-from-object-storage-details.ts b/lib/dataintegration/lib/model/connection-from-object-storage-details.ts new file mode 100644 index 0000000000..d2bd197578 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-from-object-storage-details.ts @@ -0,0 +1,56 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Object Storage connection details. + */ +export interface ConnectionFromObjectStorageDetails extends model.ConnectionDetails { + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + /** + * The OCI user OCID for the user to connect to. + */ + "userId"?: string; + /** + * The fingeprint for the user. + */ + "fingerPrint"?: string; + /** + * The pass phrase for the connection. + */ + "passPhrase"?: string; + + "modelType": string; +} + +export namespace ConnectionFromObjectStorageDetails { + export function getJsonObj( + obj: ConnectionFromObjectStorageDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConnectionDetails.getJsonObj(obj) as ConnectionFromObjectStorageDetails)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_OBJECT_STORAGE_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-from-object-storage.ts b/lib/dataintegration/lib/model/connection-from-object-storage.ts new file mode 100644 index 0000000000..71d5c35725 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-from-object-storage.ts @@ -0,0 +1,53 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Object Storage connection details. + */ +export interface ConnectionFromObjectStorage extends model.Connection { + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + /** + * The OCI user OCID for the user to connect to. + */ + "userId"?: string; + /** + * The fingeprint for the user. + */ + "fingerPrint"?: string; + /** + * The pass phrase for the connection. + */ + "passPhrase"?: string; + + "modelType": string; +} + +export namespace ConnectionFromObjectStorage { + export function getJsonObj(obj: ConnectionFromObjectStorage, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.Connection.getJsonObj(obj) as ConnectionFromObjectStorage)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_OBJECT_STORAGE_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-from-oracle-details.ts b/lib/dataintegration/lib/model/connection-from-oracle-details.ts new file mode 100644 index 0000000000..20c549fba8 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-from-oracle-details.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle connection details object. + */ +export interface ConnectionFromOracleDetails extends model.ConnectionDetails { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace ConnectionFromOracleDetails { + export function getJsonObj(obj: ConnectionFromOracleDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConnectionDetails.getJsonObj(obj) as ConnectionFromOracleDetails)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLEDB_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-from-oracle.ts b/lib/dataintegration/lib/model/connection-from-oracle.ts new file mode 100644 index 0000000000..b1ce89dd87 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-from-oracle.ts @@ -0,0 +1,43 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle connection details object. + */ +export interface ConnectionFromOracle extends model.Connection { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace ConnectionFromOracle { + export function getJsonObj(obj: ConnectionFromOracle, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Connection.getJsonObj(obj) as ConnectionFromOracle)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLEDB_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-property.ts b/lib/dataintegration/lib/model/connection-property.ts new file mode 100644 index 0000000000..12b259c352 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-property.ts @@ -0,0 +1,37 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 connection name/value pair. + */ +export interface ConnectionProperty { + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * value + */ + "value"?: string; +} + +export namespace ConnectionProperty { + export function getJsonObj(obj: ConnectionProperty): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/connection-summary-collection.ts b/lib/dataintegration/lib/model/connection-summary-collection.ts new file mode 100644 index 0000000000..ed123c709b --- /dev/null +++ b/lib/dataintegration/lib/model/connection-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This is the collection of connection summaries, it may be a collection of lightweight details or full definitions. + */ +export interface ConnectionSummaryCollection { + /** + * The array of Connection summaries + */ + "items": Array; +} + +export namespace ConnectionSummaryCollection { + export function getJsonObj(obj: ConnectionSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ConnectionSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/connection-summary-from-adwc.ts b/lib/dataintegration/lib/model/connection-summary-from-adwc.ts new file mode 100644 index 0000000000..1583908b06 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-summary-from-adwc.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ADWC connection details object. + */ +export interface ConnectionSummaryFromAdwc extends model.ConnectionSummary { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace ConnectionSummaryFromAdwc { + export function getJsonObj(obj: ConnectionSummaryFromAdwc, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConnectionSummary.getJsonObj(obj) as ConnectionSummaryFromAdwc)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_ADWC_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-summary-from-atp.ts b/lib/dataintegration/lib/model/connection-summary-from-atp.ts new file mode 100644 index 0000000000..d56a3281a4 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-summary-from-atp.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ATP connection details. + */ +export interface ConnectionSummaryFromAtp extends model.ConnectionSummary { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace ConnectionSummaryFromAtp { + export function getJsonObj(obj: ConnectionSummaryFromAtp, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConnectionSummary.getJsonObj(obj) as ConnectionSummaryFromAtp)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_ATP_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-summary-from-object-storage.ts b/lib/dataintegration/lib/model/connection-summary-from-object-storage.ts new file mode 100644 index 0000000000..c3c342300c --- /dev/null +++ b/lib/dataintegration/lib/model/connection-summary-from-object-storage.ts @@ -0,0 +1,56 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Object Storage connection details. + */ +export interface ConnectionSummaryFromObjectStorage extends model.ConnectionSummary { + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + /** + * The OCI user OCID for the user to connect to. + */ + "userId"?: string; + /** + * The fingeprint for the user. + */ + "fingerPrint"?: string; + /** + * The pass phrase for the connection. + */ + "passPhrase"?: string; + + "modelType": string; +} + +export namespace ConnectionSummaryFromObjectStorage { + export function getJsonObj( + obj: ConnectionSummaryFromObjectStorage, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConnectionSummary.getJsonObj(obj) as ConnectionSummaryFromObjectStorage)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_OBJECT_STORAGE_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-summary-from-oracle.ts b/lib/dataintegration/lib/model/connection-summary-from-oracle.ts new file mode 100644 index 0000000000..2571ec27c5 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-summary-from-oracle.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle connection details object. + */ +export interface ConnectionSummaryFromOracle extends model.ConnectionSummary { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace ConnectionSummaryFromOracle { + export function getJsonObj(obj: ConnectionSummaryFromOracle, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ConnectionSummary.getJsonObj(obj) as ConnectionSummaryFromOracle)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLEDB_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/connection-summary.ts b/lib/dataintegration/lib/model/connection-summary.ts new file mode 100644 index 0000000000..732d0f110f --- /dev/null +++ b/lib/dataintegration/lib/model/connection-summary.ts @@ -0,0 +1,114 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 connection summary object. + */ +export interface ConnectionSummary { + /** + * Generated key that can be used in API calls to identify connection. On scenarios where reference to the connection is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "primarySchema"?: model.Schema; + /** + * The properties for the connection. + */ + "connectionProperties"?: Array; + /** + * The default property for the connection. + */ + "isDefault"?: boolean; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; + + "modelType": string; +} + +export namespace ConnectionSummary { + export function getJsonObj(obj: ConnectionSummary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "primarySchema": obj.primarySchema ? model.Schema.getJsonObj(obj.primarySchema) : undefined, + "connectionProperties": obj.connectionProperties + ? obj.connectionProperties.map(item => { + return model.ConnectionProperty.getJsonObj(item); + }) + : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "ORACLE_ATP_CONNECTION": + return model.ConnectionSummaryFromAtp.getJsonObj( + (jsonObj), + true + ); + case "ORACLEDB_CONNECTION": + return model.ConnectionSummaryFromOracle.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ADWC_CONNECTION": + return model.ConnectionSummaryFromAdwc.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_OBJECT_STORAGE_CONNECTION": + return model.ConnectionSummaryFromObjectStorage.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/connection-validation-summary-collection.ts b/lib/dataintegration/lib/model/connection-validation-summary-collection.ts new file mode 100644 index 0000000000..ad784a2c9f --- /dev/null +++ b/lib/dataintegration/lib/model/connection-validation-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * List of connection validation summaries + */ +export interface ConnectionValidationSummaryCollection { + /** + * The array of validation summaries + */ + "items": Array; +} + +export namespace ConnectionValidationSummaryCollection { + export function getJsonObj(obj: ConnectionValidationSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ConnectionValidationSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/connection-validation-summary.ts b/lib/dataintegration/lib/model/connection-validation-summary.ts new file mode 100644 index 0000000000..d31abc5b20 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-validation-summary.ts @@ -0,0 +1,75 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 connection validation + */ +export interface ConnectionValidationSummary { + "validationMessage"?: model.Message; + /** + * Objects will use a 36 character key as unique ID. It is system generated and cannot be edited by user + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; +} + +export namespace ConnectionValidationSummary { + export function getJsonObj(obj: ConnectionValidationSummary): object { + const jsonObj = { + ...obj, + ...{ + "validationMessage": obj.validationMessage + ? model.Message.getJsonObj(obj.validationMessage) + : undefined, + + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/connection-validation.ts b/lib/dataintegration/lib/model/connection-validation.ts new file mode 100644 index 0000000000..c8c832bb08 --- /dev/null +++ b/lib/dataintegration/lib/model/connection-validation.ts @@ -0,0 +1,75 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 connection validation + */ +export interface ConnectionValidation { + "validationMessage"?: model.Message; + /** + * Objects will use a 36 character key as unique ID. It is system generated and cannot be edited by user + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; +} + +export namespace ConnectionValidation { + export function getJsonObj(obj: ConnectionValidation): object { + const jsonObj = { + ...obj, + ...{ + "validationMessage": obj.validationMessage + ? model.Message.getJsonObj(obj.validationMessage) + : undefined, + + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/connection.ts b/lib/dataintegration/lib/model/connection.ts new file mode 100644 index 0000000000..f8dca48eb1 --- /dev/null +++ b/lib/dataintegration/lib/model/connection.ts @@ -0,0 +1,114 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 connection object. + */ +export interface Connection { + /** + * Generated key that can be used in API calls to identify connection. On scenarios where reference to the connection is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "primarySchema"?: model.Schema; + /** + * The properties for the connection. + */ + "connectionProperties"?: Array; + /** + * The default property for the connection. + */ + "isDefault"?: boolean; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; + + "modelType": string; +} + +export namespace Connection { + export function getJsonObj(obj: Connection): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "primarySchema": obj.primarySchema ? model.Schema.getJsonObj(obj.primarySchema) : undefined, + "connectionProperties": obj.connectionProperties + ? obj.connectionProperties.map(item => { + return model.ConnectionProperty.getJsonObj(item); + }) + : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "ORACLE_OBJECT_STORAGE_CONNECTION": + return model.ConnectionFromObjectStorage.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ADWC_CONNECTION": + return model.ConnectionFromAdwc.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ATP_CONNECTION": + return model.ConnectionFromAtp.getJsonObj( + (jsonObj), + true + ); + case "ORACLEDB_CONNECTION": + return model.ConnectionFromOracle.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/count-statistic-summary.ts b/lib/dataintegration/lib/model/count-statistic-summary.ts new file mode 100644 index 0000000000..3b3fae5cba --- /dev/null +++ b/lib/dataintegration/lib/model/count-statistic-summary.ts @@ -0,0 +1,53 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Detail of object. + */ +export interface CountStatisticSummary { + /** + * the type of object for the object count statistic. + */ + "objectType"?: CountStatisticSummary.ObjectType; + /** + * the value for the object count statistic. + */ + "objectCount"?: number; +} + +export namespace CountStatisticSummary { + export enum ObjectType { + PROJECT = "PROJECT", + FOLDER = "FOLDER", + DATAFLOW = "DATA_FLOW", + DATAASSET = "DATA_ASSET", + CONNECTION = "CONNECTION", + TASK = "TASK", + APPLICATION = "APPLICATION", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: CountStatisticSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/count-statistic.ts b/lib/dataintegration/lib/model/count-statistic.ts new file mode 100644 index 0000000000..5576c7261a --- /dev/null +++ b/lib/dataintegration/lib/model/count-statistic.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 count statistics + */ +export interface CountStatistic { + /** + * The array of statistics + */ + "objectTypeCountList": Array; +} + +export namespace CountStatistic { + export function getJsonObj(obj: CountStatistic): object { + const jsonObj = { + ...obj, + ...{ + "objectTypeCountList": obj.objectTypeCountList + ? obj.objectTypeCountList.map(item => { + return model.CountStatisticSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-application-details.ts b/lib/dataintegration/lib/model/create-application-details.ts new file mode 100644 index 0000000000..efe0131a7b --- /dev/null +++ b/lib/dataintegration/lib/model/create-application-details.ts @@ -0,0 +1,69 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in application create operations. + */ +export interface CreateApplicationDetails { + /** + * Currently not used on application creation. Reserved for future. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * The type of the application. + */ + "modelType"?: CreateApplicationDetails.ModelType; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name": string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier": string; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace CreateApplicationDetails { + export enum ModelType { + APPLICATION = "INTEGRATION_APPLICATION" + } + + export function getJsonObj(obj: CreateApplicationDetails): object { + const jsonObj = { + ...obj, + ...{ + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-config-provider.ts b/lib/dataintegration/lib/model/create-config-provider.ts new file mode 100644 index 0000000000..b2f1a238db --- /dev/null +++ b/lib/dataintegration/lib/model/create-config-provider.ts @@ -0,0 +1,40 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 type to create a config provider. + */ +export interface CreateConfigProvider { + /** + * bindings + */ + "bindings"?: { [key: string]: model.ParameterValue }; +} + +export namespace CreateConfigProvider { + export function getJsonObj(obj: CreateConfigProvider): object { + const jsonObj = { + ...obj, + ...{ + "bindings": obj.bindings + ? common.mapContainer(obj.bindings, model.ParameterValue.getJsonObj) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-connection-details.ts b/lib/dataintegration/lib/model/create-connection-details.ts new file mode 100644 index 0000000000..9dd4c5d494 --- /dev/null +++ b/lib/dataintegration/lib/model/create-connection-details.ts @@ -0,0 +1,101 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in connection create operations. + */ +export interface CreateConnectionDetails { + /** + * Generated key that can be used in API calls to identify connection. On scenarios where reference to the connection is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name": string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier": string; + /** + * The properties for the connection. + */ + "connectionProperties"?: Array; + "registryMetadata"?: model.RegistryMetadata; + + "modelType": string; +} + +export namespace CreateConnectionDetails { + export function getJsonObj(obj: CreateConnectionDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "connectionProperties": obj.connectionProperties + ? obj.connectionProperties.map(item => { + return model.ConnectionProperty.getJsonObj(item); + }) + : undefined, + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "ORACLE_ATP_CONNECTION": + return model.CreateConnectionFromAtp.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ADWC_CONNECTION": + return model.CreateConnectionFromAdwc.getJsonObj( + (jsonObj), + true + ); + case "ORACLEDB_CONNECTION": + return model.CreateConnectionFromOracle.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_OBJECT_STORAGE_CONNECTION": + return model.CreateConnectionFromObjectStorage.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-connection-from-adwc.ts b/lib/dataintegration/lib/model/create-connection-from-adwc.ts new file mode 100644 index 0000000000..640e47dd68 --- /dev/null +++ b/lib/dataintegration/lib/model/create-connection-from-adwc.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ADWC connection details object. + */ +export interface CreateConnectionFromAdwc extends model.CreateConnectionDetails { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace CreateConnectionFromAdwc { + export function getJsonObj(obj: CreateConnectionFromAdwc, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateConnectionDetails.getJsonObj(obj) as CreateConnectionFromAdwc)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_ADWC_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/create-connection-from-atp.ts b/lib/dataintegration/lib/model/create-connection-from-atp.ts new file mode 100644 index 0000000000..6a6470dada --- /dev/null +++ b/lib/dataintegration/lib/model/create-connection-from-atp.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ATP connection details. + */ +export interface CreateConnectionFromAtp extends model.CreateConnectionDetails { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace CreateConnectionFromAtp { + export function getJsonObj(obj: CreateConnectionFromAtp, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateConnectionDetails.getJsonObj(obj) as CreateConnectionFromAtp)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_ATP_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/create-connection-from-object-storage.ts b/lib/dataintegration/lib/model/create-connection-from-object-storage.ts new file mode 100644 index 0000000000..2abc8985e8 --- /dev/null +++ b/lib/dataintegration/lib/model/create-connection-from-object-storage.ts @@ -0,0 +1,56 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Object Storage connection details. + */ +export interface CreateConnectionFromObjectStorage extends model.CreateConnectionDetails { + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + /** + * The OCI user OCID for the user to connect to. + */ + "userId"?: string; + /** + * The fingeprint for the user. + */ + "fingerPrint"?: string; + /** + * The pass phrase for the connection. + */ + "passPhrase"?: string; + + "modelType": string; +} + +export namespace CreateConnectionFromObjectStorage { + export function getJsonObj( + obj: CreateConnectionFromObjectStorage, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateConnectionDetails.getJsonObj(obj) as CreateConnectionFromObjectStorage)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_OBJECT_STORAGE_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/create-connection-from-oracle.ts b/lib/dataintegration/lib/model/create-connection-from-oracle.ts new file mode 100644 index 0000000000..0cd0e57a69 --- /dev/null +++ b/lib/dataintegration/lib/model/create-connection-from-oracle.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle connection details object. + */ +export interface CreateConnectionFromOracle extends model.CreateConnectionDetails { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace CreateConnectionFromOracle { + export function getJsonObj(obj: CreateConnectionFromOracle, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateConnectionDetails.getJsonObj(obj) as CreateConnectionFromOracle)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLEDB_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/create-connection-validation-details.ts b/lib/dataintegration/lib/model/create-connection-validation-details.ts new file mode 100644 index 0000000000..c5a85eb8bc --- /dev/null +++ b/lib/dataintegration/lib/model/create-connection-validation-details.ts @@ -0,0 +1,53 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Connection validation definition + */ +export interface CreateConnectionValidationDetails { + "dataAsset"?: + | model.CreateDataAssetFromOracle + | model.CreateDataAssetFromAdwc + | model.CreateDataAssetFromAtp + | model.CreateDataAssetFromObjectStorage; + "connection"?: + | model.CreateConnectionFromAtp + | model.CreateConnectionFromAdwc + | model.CreateConnectionFromOracle + | model.CreateConnectionFromObjectStorage; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace CreateConnectionValidationDetails { + export function getJsonObj(obj: CreateConnectionValidationDetails): object { + const jsonObj = { + ...obj, + ...{ + "dataAsset": obj.dataAsset + ? model.CreateDataAssetDetails.getJsonObj(obj.dataAsset) + : undefined, + "connection": obj.connection + ? model.CreateConnectionDetails.getJsonObj(obj.connection) + : undefined, + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-data-asset-details.ts b/lib/dataintegration/lib/model/create-data-asset-details.ts new file mode 100644 index 0000000000..82fed9bcd5 --- /dev/null +++ b/lib/dataintegration/lib/model/create-data-asset-details.ts @@ -0,0 +1,97 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in data asset update operations. + */ +export interface CreateDataAssetDetails { + /** + * Currently not used on data asset creation. Reserved for future. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name": string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier": string; + /** + * The external key for the object + */ + "externalKey"?: string; + /** + * assetProperties + */ + "assetProperties"?: { [key: string]: string }; + "registryMetadata"?: model.RegistryMetadata; + + "modelType": string; +} + +export namespace CreateDataAssetDetails { + export function getJsonObj(obj: CreateDataAssetDetails): object { + const jsonObj = { + ...obj, + ...{ + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "ORACLE_DATA_ASSET": + return model.CreateDataAssetFromOracle.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ADWC_DATA_ASSET": + return model.CreateDataAssetFromAdwc.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ATP_DATA_ASSET": + return model.CreateDataAssetFromAtp.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_OBJECT_STORAGE_DATA_ASSET": + return model.CreateDataAssetFromObjectStorage.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-data-asset-from-adwc.ts b/lib/dataintegration/lib/model/create-data-asset-from-adwc.ts new file mode 100644 index 0000000000..1118825961 --- /dev/null +++ b/lib/dataintegration/lib/model/create-data-asset-from-adwc.ts @@ -0,0 +1,54 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ADWC data asset details. + */ +export interface CreateDataAssetFromAdwc extends model.CreateDataAssetDetails { + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + "defaultConnection"?: model.CreateConnectionFromAdwc; + + "modelType": string; +} + +export namespace CreateDataAssetFromAdwc { + export function getJsonObj(obj: CreateDataAssetFromAdwc, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateDataAssetDetails.getJsonObj(obj) as CreateDataAssetFromAdwc)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.CreateConnectionFromAdwc.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_ADWC_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/create-data-asset-from-atp.ts b/lib/dataintegration/lib/model/create-data-asset-from-atp.ts new file mode 100644 index 0000000000..769c99e947 --- /dev/null +++ b/lib/dataintegration/lib/model/create-data-asset-from-atp.ts @@ -0,0 +1,54 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ATP data asset details. + */ +export interface CreateDataAssetFromAtp extends model.CreateDataAssetDetails { + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + "defaultConnection"?: model.CreateConnectionFromAtp; + + "modelType": string; +} + +export namespace CreateDataAssetFromAtp { + export function getJsonObj(obj: CreateDataAssetFromAtp, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateDataAssetDetails.getJsonObj(obj) as CreateDataAssetFromAtp)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.CreateConnectionFromAtp.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_ATP_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/create-data-asset-from-object-storage.ts b/lib/dataintegration/lib/model/create-data-asset-from-object-storage.ts new file mode 100644 index 0000000000..7a92237aaf --- /dev/null +++ b/lib/dataintegration/lib/model/create-data-asset-from-object-storage.ts @@ -0,0 +1,57 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Object Storage data asset details. + */ +export interface CreateDataAssetFromObjectStorage extends model.CreateDataAssetDetails { + /** + * url + */ + "url"?: string; + /** + * The OCI tenancy OCID. + */ + "tenancyId"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "namespace"?: string; + "defaultConnection"?: model.CreateConnectionFromObjectStorage; + + "modelType": string; +} + +export namespace CreateDataAssetFromObjectStorage { + export function getJsonObj( + obj: CreateDataAssetFromObjectStorage, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateDataAssetDetails.getJsonObj(obj) as CreateDataAssetFromObjectStorage)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.CreateConnectionFromObjectStorage.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_OBJECT_STORAGE_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/create-data-asset-from-oracle.ts b/lib/dataintegration/lib/model/create-data-asset-from-oracle.ts new file mode 100644 index 0000000000..93619aeecc --- /dev/null +++ b/lib/dataintegration/lib/model/create-data-asset-from-oracle.ts @@ -0,0 +1,66 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle data asset details. + */ +export interface CreateDataAssetFromOracle extends model.CreateDataAssetDetails { + /** + * The host details for the data asset. + */ + "host"?: string; + /** + * The port details for the data asset. + */ + "port"?: string; + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + /** + * sid + */ + "sid"?: string; + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + "defaultConnection"?: model.CreateConnectionFromOracle; + + "modelType": string; +} + +export namespace CreateDataAssetFromOracle { + export function getJsonObj(obj: CreateDataAssetFromOracle, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateDataAssetDetails.getJsonObj(obj) as CreateDataAssetFromOracle)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.CreateConnectionFromOracle.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/create-data-flow-details.ts b/lib/dataintegration/lib/model/create-data-flow-details.ts new file mode 100644 index 0000000000..98dc5107b3 --- /dev/null +++ b/lib/dataintegration/lib/model/create-data-flow-details.ts @@ -0,0 +1,88 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in data flow create operations. + */ +export interface CreateDataFlowDetails { + /** + * Generated key that can be used in API calls to identify data flow. On scenarios where reference to the data flow is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name": string; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier": string; + /** + * An array of nodes. + */ + "nodes"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + /** + * Detailed description for the object. + */ + "description"?: string; + "flowConfigValues"?: model.ConfigValues; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + "registryMetadata": model.RegistryMetadata; +} + +export namespace CreateDataFlowDetails { + export function getJsonObj(obj: CreateDataFlowDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "nodes": obj.nodes + ? obj.nodes.map(item => { + return model.FlowNode.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + + "flowConfigValues": obj.flowConfigValues + ? model.ConfigValues.getJsonObj(obj.flowConfigValues) + : undefined, + + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-data-flow-validation-details.ts b/lib/dataintegration/lib/model/create-data-flow-validation-details.ts new file mode 100644 index 0000000000..4c045e9251 --- /dev/null +++ b/lib/dataintegration/lib/model/create-data-flow-validation-details.ts @@ -0,0 +1,98 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 integration dataflow validation. + */ +export interface CreateDataFlowValidationDetails { + /** + * Generated key that can be used in API calls to identify data flow. On scenarios where reference to the data flow is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * An array of nodes. + */ + "nodes"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + /** + * Detailed description for the object. + */ + "description"?: string; + "flowConfigValues"?: model.ConfigValues; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace CreateDataFlowValidationDetails { + export function getJsonObj(obj: CreateDataFlowValidationDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "nodes": obj.nodes + ? obj.nodes.map(item => { + return model.FlowNode.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + + "flowConfigValues": obj.flowConfigValues + ? model.ConfigValues.getJsonObj(obj.flowConfigValues) + : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-entity-shape-details.ts b/lib/dataintegration/lib/model/create-entity-shape-details.ts new file mode 100644 index 0000000000..c986907bf8 --- /dev/null +++ b/lib/dataintegration/lib/model/create-entity-shape-details.ts @@ -0,0 +1,41 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 entity shape object. + */ +export interface CreateEntityShapeDetails { + "modelType": string; +} + +export namespace CreateEntityShapeDetails { + export function getJsonObj(obj: CreateEntityShapeDetails): object { + const jsonObj = { ...obj, ...{} }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "FILE_ENTITY": + return model.CreateEntityShapeFromFile.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-entity-shape-from-file.ts b/lib/dataintegration/lib/model/create-entity-shape-from-file.ts new file mode 100644 index 0000000000..4470b97572 --- /dev/null +++ b/lib/dataintegration/lib/model/create-entity-shape-from-file.ts @@ -0,0 +1,125 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 file data entity details. + */ +export interface CreateEntityShapeFromFile extends model.CreateEntityShapeDetails { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object. + */ + "externalKey"?: string; + "shape"?: model.Shape; + /** + * The shape ID. + */ + "shapeId"?: string; + "types"?: model.TypeLibrary; + /** + * The entity type. + */ + "entityType"?: CreateEntityShapeFromFile.EntityType; + /** + * Specifies other type label. + */ + "otherTypeLabel"?: string; + /** + * An array of unique keys. + */ + "uniqueKeys"?: Array; + /** + * An array of foreign keys. + */ + "foreignKeys"?: Array; + /** + * The resource name. + */ + "resourceName"?: string; + "dataFormat"?: model.DataFormat; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace CreateEntityShapeFromFile { + export enum EntityType { + TABLE = "TABLE", + VIEW = "VIEW", + FILE = "FILE", + QUEUE = "QUEUE", + STREAM = "STREAM", + OTHER = "OTHER" + } + + export function getJsonObj(obj: CreateEntityShapeFromFile, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateEntityShapeDetails.getJsonObj(obj) as CreateEntityShapeFromFile)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "shape": obj.shape ? model.Shape.getJsonObj(obj.shape) : undefined, + + "types": obj.types ? model.TypeLibrary.getJsonObj(obj.types) : undefined, + + "uniqueKeys": obj.uniqueKeys + ? obj.uniqueKeys.map(item => { + return model.UniqueKey.getJsonObj(item); + }) + : undefined, + "foreignKeys": obj.foreignKeys + ? obj.foreignKeys.map(item => { + return model.ForeignKey.getJsonObj(item); + }) + : undefined, + + "dataFormat": obj.dataFormat ? model.DataFormat.getJsonObj(obj.dataFormat) : undefined + } + }; + + return jsonObj; + } + export const modelType = "FILE_ENTITY"; +} diff --git a/lib/dataintegration/lib/model/create-folder-details.ts b/lib/dataintegration/lib/model/create-folder-details.ts new file mode 100644 index 0000000000..9ae9ce3ca4 --- /dev/null +++ b/lib/dataintegration/lib/model/create-folder-details.ts @@ -0,0 +1,65 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 properties used in folder create operations. + */ +export interface CreateFolderDetails { + /** + * Currently not used on folder creation. Reserved for future. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name": string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * categoryName + */ + "categoryName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier": string; + "registryMetadata": model.RegistryMetadata; +} + +export namespace CreateFolderDetails { + export function getJsonObj(obj: CreateFolderDetails): object { + const jsonObj = { + ...obj, + ...{ + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-patch-details.ts b/lib/dataintegration/lib/model/create-patch-details.ts new file mode 100644 index 0000000000..4c4c910228 --- /dev/null +++ b/lib/dataintegration/lib/model/create-patch-details.ts @@ -0,0 +1,74 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in patch create operations. + */ +export interface CreatePatchDetails { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name": string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier": string; + /** + * The type of the patch applied or being applied on the application. + */ + "patchType": CreatePatchDetails.PatchType; + /** + * The array of object keys to publish into application. + */ + "objectKeys": Array; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace CreatePatchDetails { + export enum PatchType { + PUBLISH = "PUBLISH", + UNPUBLISH = "UNPUBLISH" + } + + export function getJsonObj(obj: CreatePatchDetails): object { + const jsonObj = { + ...obj, + ...{ + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-project-details.ts b/lib/dataintegration/lib/model/create-project-details.ts new file mode 100644 index 0000000000..aa2736414f --- /dev/null +++ b/lib/dataintegration/lib/model/create-project-details.ts @@ -0,0 +1,61 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 properties used in project create operations. + */ +export interface CreateProjectDetails { + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name": string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier": string; + /** + * Generated key that can be used in API calls to identify project. + */ + "key"?: string; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace CreateProjectDetails { + export function getJsonObj(obj: CreateProjectDetails): object { + const jsonObj = { + ...obj, + ...{ + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-task-details.ts b/lib/dataintegration/lib/model/create-task-details.ts new file mode 100644 index 0000000000..8908824a08 --- /dev/null +++ b/lib/dataintegration/lib/model/create-task-details.ts @@ -0,0 +1,117 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in task create operations. + */ +export interface CreateTaskDetails { + /** + * Generated key that can be used in API calls to identify task. On scenarios where reference to the task is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name": string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier": string; + /** + * An array of input ports. + */ + "inputPorts"?: Array; + /** + * An array of output ports. + */ + "outputPorts"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + "opConfigValues"?: model.ConfigValues; + "configProviderDelegate"?: model.CreateConfigProvider; + "registryMetadata": model.RegistryMetadata; + + "modelType": string; +} + +export namespace CreateTaskDetails { + export function getJsonObj(obj: CreateTaskDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "inputPorts": obj.inputPorts + ? obj.inputPorts.map(item => { + return model.InputPort.getJsonObj(item); + }) + : undefined, + "outputPorts": obj.outputPorts + ? obj.outputPorts.map(item => { + return model.OutputPort.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + "opConfigValues": obj.opConfigValues + ? model.ConfigValues.getJsonObj(obj.opConfigValues) + : undefined, + "configProviderDelegate": obj.configProviderDelegate + ? model.CreateConfigProvider.getJsonObj(obj.configProviderDelegate) + : undefined, + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "INTEGRATION_TASK": + return model.CreateTaskFromIntegrationTask.getJsonObj( + (jsonObj), + true + ); + case "DATA_LOADER_TASK": + return model.CreateTaskFromDataLoaderTask.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-task-from-data-loader-task.ts b/lib/dataintegration/lib/model/create-task-from-data-loader-task.ts new file mode 100644 index 0000000000..031752369e --- /dev/null +++ b/lib/dataintegration/lib/model/create-task-from-data-loader-task.ts @@ -0,0 +1,40 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 a data flow task. + */ +export interface CreateTaskFromDataLoaderTask extends model.CreateTaskDetails { + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace CreateTaskFromDataLoaderTask { + export function getJsonObj(obj: CreateTaskFromDataLoaderTask, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateTaskDetails.getJsonObj(obj) as CreateTaskFromDataLoaderTask)), + ...{ + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "DATA_LOADER_TASK"; +} diff --git a/lib/dataintegration/lib/model/create-task-from-integration-task.ts b/lib/dataintegration/lib/model/create-task-from-integration-task.ts new file mode 100644 index 0000000000..0a9a1fa676 --- /dev/null +++ b/lib/dataintegration/lib/model/create-task-from-integration-task.ts @@ -0,0 +1,43 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the integration task. + */ +export interface CreateTaskFromIntegrationTask extends model.CreateTaskDetails { + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace CreateTaskFromIntegrationTask { + export function getJsonObj( + obj: CreateTaskFromIntegrationTask, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateTaskDetails.getJsonObj(obj) as CreateTaskFromIntegrationTask)), + ...{ + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "INTEGRATION_TASK"; +} diff --git a/lib/dataintegration/lib/model/create-task-run-details.ts b/lib/dataintegration/lib/model/create-task-run-details.ts new file mode 100644 index 0000000000..09e2d7fcc0 --- /dev/null +++ b/lib/dataintegration/lib/model/create-task-run-details.ts @@ -0,0 +1,66 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in task run create operations. + */ +export interface CreateTaskRunDetails { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + "configProvider"?: model.CreateConfigProvider; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace CreateTaskRunDetails { + export function getJsonObj(obj: CreateTaskRunDetails): object { + const jsonObj = { + ...obj, + ...{ + "configProvider": obj.configProvider + ? model.CreateConfigProvider.getJsonObj(obj.configProvider) + : undefined, + + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-task-validation-details.ts b/lib/dataintegration/lib/model/create-task-validation-details.ts new file mode 100644 index 0000000000..c2aca481a3 --- /dev/null +++ b/lib/dataintegration/lib/model/create-task-validation-details.ts @@ -0,0 +1,119 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 task type contains the audit summary information and the definition of the task. + */ +export interface CreateTaskValidationDetails { + /** + * Generated key that can be used in API calls to identify task. On scenarios where reference to the task is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * An array of input ports. + */ + "inputPorts"?: Array; + /** + * An array of output ports. + */ + "outputPorts"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + "opConfigValues"?: model.ConfigValues; + "configProviderDelegate"?: model.ConfigProvider; + "metadata"?: model.ObjectMetadata; + + "modelType": string; +} + +export namespace CreateTaskValidationDetails { + export function getJsonObj(obj: CreateTaskValidationDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "inputPorts": obj.inputPorts + ? obj.inputPorts.map(item => { + return model.InputPort.getJsonObj(item); + }) + : undefined, + "outputPorts": obj.outputPorts + ? obj.outputPorts.map(item => { + return model.OutputPort.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + "opConfigValues": obj.opConfigValues + ? model.ConfigValues.getJsonObj(obj.opConfigValues) + : undefined, + "configProviderDelegate": obj.configProviderDelegate + ? model.ConfigProvider.getJsonObj(obj.configProviderDelegate) + : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "DATA_LOADER_TASK": + return model.CreateTaskValidationFromDataLoaderTask.getJsonObj( + (jsonObj), + true + ); + case "INTEGRATION_TASK": + return model.CreateTaskValidationFromIntegrationTask.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/create-task-validation-from-data-loader-task.ts b/lib/dataintegration/lib/model/create-task-validation-from-data-loader-task.ts new file mode 100644 index 0000000000..a2cdc0030f --- /dev/null +++ b/lib/dataintegration/lib/model/create-task-validation-from-data-loader-task.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 a data flow task. + */ +export interface CreateTaskValidationFromDataLoaderTask extends model.CreateTaskValidationDetails { + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace CreateTaskValidationFromDataLoaderTask { + export function getJsonObj( + obj: CreateTaskValidationFromDataLoaderTask, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateTaskValidationDetails.getJsonObj( + obj + ) as CreateTaskValidationFromDataLoaderTask)), + ...{ + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "DATA_LOADER_TASK"; +} diff --git a/lib/dataintegration/lib/model/create-task-validation-from-integration-task.ts b/lib/dataintegration/lib/model/create-task-validation-from-integration-task.ts new file mode 100644 index 0000000000..56d7b98c29 --- /dev/null +++ b/lib/dataintegration/lib/model/create-task-validation-from-integration-task.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the integration task. + */ +export interface CreateTaskValidationFromIntegrationTask extends model.CreateTaskValidationDetails { + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace CreateTaskValidationFromIntegrationTask { + export function getJsonObj( + obj: CreateTaskValidationFromIntegrationTask, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateTaskValidationDetails.getJsonObj( + obj + ) as CreateTaskValidationFromIntegrationTask)), + ...{ + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "INTEGRATION_TASK"; +} diff --git a/lib/dataintegration/lib/model/create-workspace-details.ts b/lib/dataintegration/lib/model/create-workspace-details.ts new file mode 100644 index 0000000000..c04fed9455 --- /dev/null +++ b/lib/dataintegration/lib/model/create-workspace-details.ts @@ -0,0 +1,73 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Workspace. + */ +export interface CreateWorkspaceDetails { + /** + * The OCID of the VCN the subnet is in. + */ + "vcnId"?: string; + /** + * The OCID of the subnet for customer connected databases. + */ + "subnetId"?: string; + /** + * The IP of the custom DNS. + */ + "dnsServerIp"?: string; + /** + * The DNS zone of the custom DNS to use to resolve names. + */ + "dnsServerZone"?: string; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Department\": \"Finance\"}` + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * A detailed description for the workspace. + */ + "description"?: string; + /** + * A user-friendly display name for the workspace. Does not have to be unique, and can be modified. Avoid entering confidential information. + */ + "displayName": string; + /** + * The OCID of the compartment containing the workspace. + */ + "compartmentId": string; + /** + * Whether the private network connection is enabled or disabled. + */ + "isPrivateNetworkEnabled"?: boolean; +} + +export namespace CreateWorkspaceDetails { + export function getJsonObj(obj: CreateWorkspaceDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/csv-format-attribute.ts b/lib/dataintegration/lib/model/csv-format-attribute.ts new file mode 100644 index 0000000000..a54be7244c --- /dev/null +++ b/lib/dataintegration/lib/model/csv-format-attribute.ts @@ -0,0 +1,61 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CSV format attribute. + */ +export interface CsvFormatAttribute extends model.AbstractFormatAttribute { + /** + * The encoding for the file. + */ + "encoding"?: string; + /** + * The escape character for the CSV format. + */ + "escapeCharacter"?: string; + /** + * The delimiter for the CSV format. + */ + "delimiter"?: string; + /** + * The quote character for the CSV format. + */ + "quoteCharacter"?: string; + /** + * Defines whether the file has a header row. + */ + "hasHeader"?: boolean; + /** + * Format for timestamp data. + */ + "timestampFormat"?: string; + + "modelType": string; +} + +export namespace CsvFormatAttribute { + export function getJsonObj(obj: CsvFormatAttribute, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AbstractFormatAttribute.getJsonObj(obj) as CsvFormatAttribute)), + ...{} + }; + + return jsonObj; + } + export const modelType = "CSV_FORMAT"; +} diff --git a/lib/dataintegration/lib/model/data-asset-from-adwc-details.ts b/lib/dataintegration/lib/model/data-asset-from-adwc-details.ts new file mode 100644 index 0000000000..040fceb685 --- /dev/null +++ b/lib/dataintegration/lib/model/data-asset-from-adwc-details.ts @@ -0,0 +1,52 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ADWC data asset details. + */ +export interface DataAssetFromAdwcDetails extends model.DataAsset { + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * Array of service names that are available for selection in the serviceName property. + */ + "serviceNames"?: Array; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + "defaultConnection"?: model.ConnectionFromAdwcDetails; + + "modelType": string; +} + +export namespace DataAssetFromAdwcDetails { + export function getJsonObj(obj: DataAssetFromAdwcDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.DataAsset.getJsonObj(obj) as DataAssetFromAdwcDetails)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.ConnectionFromAdwcDetails.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_ADWC_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/data-asset-from-atp-details.ts b/lib/dataintegration/lib/model/data-asset-from-atp-details.ts new file mode 100644 index 0000000000..2892171b64 --- /dev/null +++ b/lib/dataintegration/lib/model/data-asset-from-atp-details.ts @@ -0,0 +1,52 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ATP data asset details. + */ +export interface DataAssetFromAtpDetails extends model.DataAsset { + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * Array of service names that are available for selection in the serviceName property. + */ + "serviceNames"?: Array; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + "defaultConnection"?: model.ConnectionFromAtpDetails; + + "modelType": string; +} + +export namespace DataAssetFromAtpDetails { + export function getJsonObj(obj: DataAssetFromAtpDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.DataAsset.getJsonObj(obj) as DataAssetFromAtpDetails)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.ConnectionFromAtpDetails.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_ATP_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/data-asset-from-object-storage-details.ts b/lib/dataintegration/lib/model/data-asset-from-object-storage-details.ts new file mode 100644 index 0000000000..4c329ceddb --- /dev/null +++ b/lib/dataintegration/lib/model/data-asset-from-object-storage-details.ts @@ -0,0 +1,57 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Object Storage data asset details. + */ +export interface DataAssetFromObjectStorageDetails extends model.DataAsset { + /** + * url + */ + "url"?: string; + /** + * The OCI tenancy OCID. + */ + "tenancyId"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "namespace"?: string; + "defaultConnection"?: model.ConnectionFromObjectStorageDetails; + + "modelType": string; +} + +export namespace DataAssetFromObjectStorageDetails { + export function getJsonObj( + obj: DataAssetFromObjectStorageDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DataAsset.getJsonObj(obj) as DataAssetFromObjectStorageDetails)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.ConnectionFromObjectStorageDetails.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_OBJECT_STORAGE_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/data-asset-from-oracle-details.ts b/lib/dataintegration/lib/model/data-asset-from-oracle-details.ts new file mode 100644 index 0000000000..9ebaf4308b --- /dev/null +++ b/lib/dataintegration/lib/model/data-asset-from-oracle-details.ts @@ -0,0 +1,64 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle data asset details. + */ +export interface DataAssetFromOracleDetails extends model.DataAsset { + /** + * The host details for the data asset. + */ + "host"?: string; + /** + * The port details for the data asset. + */ + "port"?: string; + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + /** + * sid + */ + "sid"?: string; + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + "defaultConnection"?: model.ConnectionFromOracleDetails; + + "modelType": string; +} + +export namespace DataAssetFromOracleDetails { + export function getJsonObj(obj: DataAssetFromOracleDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.DataAsset.getJsonObj(obj) as DataAssetFromOracleDetails)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.ConnectionFromOracleDetails.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/data-asset-summary-collection.ts b/lib/dataintegration/lib/model/data-asset-summary-collection.ts new file mode 100644 index 0000000000..994b2201e5 --- /dev/null +++ b/lib/dataintegration/lib/model/data-asset-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This is the collection of data asset summaries, it may be a collection of lightweight details or full definitions. + */ +export interface DataAssetSummaryCollection { + /** + * The array of DataAsset summaries + */ + "items": Array; +} + +export namespace DataAssetSummaryCollection { + export function getJsonObj(obj: DataAssetSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.DataAssetSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-asset-summary-from-adwc.ts b/lib/dataintegration/lib/model/data-asset-summary-from-adwc.ts new file mode 100644 index 0000000000..c05203e9f6 --- /dev/null +++ b/lib/dataintegration/lib/model/data-asset-summary-from-adwc.ts @@ -0,0 +1,54 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle data asset details. + */ +export interface DataAssetSummaryFromAdwc extends model.DataAssetSummary { + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * Array of service names that are available for selection in the serviceName property. + */ + "serviceNames"?: Array; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + "defaultConnection"?: model.ConnectionSummaryFromAdwc; + + "modelType": string; +} + +export namespace DataAssetSummaryFromAdwc { + export function getJsonObj(obj: DataAssetSummaryFromAdwc, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DataAssetSummary.getJsonObj(obj) as DataAssetSummaryFromAdwc)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.ConnectionSummaryFromAdwc.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_ADWC_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/data-asset-summary-from-atp.ts b/lib/dataintegration/lib/model/data-asset-summary-from-atp.ts new file mode 100644 index 0000000000..130e83d2ce --- /dev/null +++ b/lib/dataintegration/lib/model/data-asset-summary-from-atp.ts @@ -0,0 +1,54 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle data asset details. + */ +export interface DataAssetSummaryFromAtp extends model.DataAssetSummary { + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * Array of service names that are available for selection in the serviceName property. + */ + "serviceNames"?: Array; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + "defaultConnection"?: model.ConnectionSummaryFromAtp; + + "modelType": string; +} + +export namespace DataAssetSummaryFromAtp { + export function getJsonObj(obj: DataAssetSummaryFromAtp, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DataAssetSummary.getJsonObj(obj) as DataAssetSummaryFromAtp)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.ConnectionSummaryFromAtp.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_ATP_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/data-asset-summary-from-object-storage.ts b/lib/dataintegration/lib/model/data-asset-summary-from-object-storage.ts new file mode 100644 index 0000000000..9b08dfc154 --- /dev/null +++ b/lib/dataintegration/lib/model/data-asset-summary-from-object-storage.ts @@ -0,0 +1,57 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle data asset details. + */ +export interface DataAssetSummaryFromObjectStorage extends model.DataAssetSummary { + /** + * url + */ + "url"?: string; + /** + * The OCI tenancy OCID. + */ + "tenancyId"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "namespace"?: string; + "defaultConnection"?: model.ConnectionSummaryFromObjectStorage; + + "modelType": string; +} + +export namespace DataAssetSummaryFromObjectStorage { + export function getJsonObj( + obj: DataAssetSummaryFromObjectStorage, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DataAssetSummary.getJsonObj(obj) as DataAssetSummaryFromObjectStorage)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.ConnectionSummaryFromObjectStorage.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_OBJECT_STORAGE_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/data-asset-summary-from-oracle.ts b/lib/dataintegration/lib/model/data-asset-summary-from-oracle.ts new file mode 100644 index 0000000000..96c7311db3 --- /dev/null +++ b/lib/dataintegration/lib/model/data-asset-summary-from-oracle.ts @@ -0,0 +1,66 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle data asset details. + */ +export interface DataAssetSummaryFromOracle extends model.DataAssetSummary { + /** + * The host details for the data asset. + */ + "host"?: string; + /** + * The port details for the data asset. + */ + "port"?: string; + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + /** + * sid + */ + "sid"?: string; + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + "defaultConnection"?: model.ConnectionSummaryFromOracle; + + "modelType": string; +} + +export namespace DataAssetSummaryFromOracle { + export function getJsonObj(obj: DataAssetSummaryFromOracle, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DataAssetSummary.getJsonObj(obj) as DataAssetSummaryFromOracle)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.ConnectionSummaryFromOracle.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/data-asset-summary.ts b/lib/dataintegration/lib/model/data-asset-summary.ts new file mode 100644 index 0000000000..d025c9eb5f --- /dev/null +++ b/lib/dataintegration/lib/model/data-asset-summary.ts @@ -0,0 +1,106 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 summary object for data asset. + */ +export interface DataAssetSummary { + /** + * Generated key that can be used in API calls to identify data asset. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The external key for the object + */ + "externalKey"?: string; + /** + * assetProperties + */ + "assetProperties"?: { [key: string]: string }; + "nativeTypeSystem"?: model.TypeSystem; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + "parentRef"?: model.ParentReference; + "metadata"?: model.ObjectMetadata; + + "modelType": string; +} + +export namespace DataAssetSummary { + export function getJsonObj(obj: DataAssetSummary): object { + const jsonObj = { + ...obj, + ...{ + "nativeTypeSystem": obj.nativeTypeSystem + ? model.TypeSystem.getJsonObj(obj.nativeTypeSystem) + : undefined, + + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "ORACLE_ATP_DATA_ASSET": + return model.DataAssetSummaryFromAtp.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ADWC_DATA_ASSET": + return model.DataAssetSummaryFromAdwc.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_OBJECT_STORAGE_DATA_ASSET": + return model.DataAssetSummaryFromObjectStorage.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_DATA_ASSET": + return model.DataAssetSummaryFromOracle.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-asset.ts b/lib/dataintegration/lib/model/data-asset.ts new file mode 100644 index 0000000000..7eee67b83f --- /dev/null +++ b/lib/dataintegration/lib/model/data-asset.ts @@ -0,0 +1,110 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 asset type. + */ +export interface DataAsset { + /** + * Generated key that can be used in API calls to identify data asset. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The external key for the object + */ + "externalKey"?: string; + /** + * assetProperties + */ + "assetProperties"?: { [key: string]: string }; + "nativeTypeSystem"?: model.TypeSystem; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + "parentRef"?: model.ParentReference; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; + + "modelType": string; +} + +export namespace DataAsset { + export function getJsonObj(obj: DataAsset): object { + const jsonObj = { + ...obj, + ...{ + "nativeTypeSystem": obj.nativeTypeSystem + ? model.TypeSystem.getJsonObj(obj.nativeTypeSystem) + : undefined, + + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "ORACLE_DATA_ASSET": + return model.DataAssetFromOracleDetails.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ADWC_DATA_ASSET": + return model.DataAssetFromAdwcDetails.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_OBJECT_STORAGE_DATA_ASSET": + return model.DataAssetFromObjectStorageDetails.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ATP_DATA_ASSET": + return model.DataAssetFromAtpDetails.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-entity-details.ts b/lib/dataintegration/lib/model/data-entity-details.ts new file mode 100644 index 0000000000..1b02c7d7c4 --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-details.ts @@ -0,0 +1,51 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 entity details object. + */ +export interface DataEntityDetails { + "modelType": string; +} + +export namespace DataEntityDetails { + export function getJsonObj(obj: DataEntityDetails): object { + const jsonObj = { ...obj, ...{} }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "FILE_ENTITY": + return model.DataEntityFromFileEntityDetails.getJsonObj( + (jsonObj), + true + ); + case "VIEW_ENTITY": + return model.DataEntityFromViewEntityDetails.getJsonObj( + (jsonObj), + true + ); + case "TABLE_ENTITY": + return model.DataEntityFromTableEntityDetails.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-entity-from-file-entity-details.ts b/lib/dataintegration/lib/model/data-entity-from-file-entity-details.ts new file mode 100644 index 0000000000..77c3ecfd28 --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-from-file-entity-details.ts @@ -0,0 +1,128 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 file data entity details. + */ +export interface DataEntityFromFileEntityDetails extends model.DataEntityDetails { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object. + */ + "externalKey"?: string; + "shape"?: model.Shape; + /** + * The shape ID. + */ + "shapeId"?: string; + "types"?: model.TypeLibrary; + /** + * The entity type. + */ + "entityType"?: DataEntityFromFileEntityDetails.EntityType; + /** + * Specifies other type label. + */ + "otherTypeLabel"?: string; + /** + * An array of unique keys. + */ + "uniqueKeys"?: Array; + /** + * An array of foreign keys. + */ + "foreignKeys"?: Array; + /** + * The resource name. + */ + "resourceName"?: string; + "dataFormat"?: model.DataFormat; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace DataEntityFromFileEntityDetails { + export enum EntityType { + TABLE = "TABLE", + VIEW = "VIEW", + FILE = "FILE", + QUEUE = "QUEUE", + STREAM = "STREAM", + OTHER = "OTHER" + } + + export function getJsonObj( + obj: DataEntityFromFileEntityDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DataEntityDetails.getJsonObj(obj) as DataEntityFromFileEntityDetails)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "shape": obj.shape ? model.Shape.getJsonObj(obj.shape) : undefined, + + "types": obj.types ? model.TypeLibrary.getJsonObj(obj.types) : undefined, + + "uniqueKeys": obj.uniqueKeys + ? obj.uniqueKeys.map(item => { + return model.UniqueKey.getJsonObj(item); + }) + : undefined, + "foreignKeys": obj.foreignKeys + ? obj.foreignKeys.map(item => { + return model.ForeignKey.getJsonObj(item); + }) + : undefined, + + "dataFormat": obj.dataFormat ? model.DataFormat.getJsonObj(obj.dataFormat) : undefined + } + }; + + return jsonObj; + } + export const modelType = "FILE_ENTITY"; +} diff --git a/lib/dataintegration/lib/model/data-entity-from-file.ts b/lib/dataintegration/lib/model/data-entity-from-file.ts new file mode 100644 index 0000000000..73f9802cca --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-from-file.ts @@ -0,0 +1,129 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 file data entity details. + */ +export interface DataEntityFromFile extends model.DataEntity { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object. + */ + "externalKey"?: string; + "shape"?: model.Shape; + /** + * The shape ID. + */ + "shapeId"?: string; + "types"?: model.TypeLibrary; + /** + * The entity type. + */ + "entityType"?: DataEntityFromFile.EntityType; + /** + * Specifies other type label. + */ + "otherTypeLabel"?: string; + /** + * An array of unique keys. + */ + "uniqueKeys"?: Array; + /** + * An array of foreign keys. + */ + "foreignKeys"?: Array; + /** + * The resource name. + */ + "resourceName"?: string; + "dataFormat"?: model.DataFormat; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace DataEntityFromFile { + export enum EntityType { + TABLE = "TABLE", + VIEW = "VIEW", + FILE = "FILE", + QUEUE = "QUEUE", + STREAM = "STREAM", + OTHER = "OTHER", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: DataEntityFromFile, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.DataEntity.getJsonObj(obj) as DataEntityFromFile)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "shape": obj.shape ? model.Shape.getJsonObj(obj.shape) : undefined, + + "types": obj.types ? model.TypeLibrary.getJsonObj(obj.types) : undefined, + + "uniqueKeys": obj.uniqueKeys + ? obj.uniqueKeys.map(item => { + return model.UniqueKey.getJsonObj(item); + }) + : undefined, + "foreignKeys": obj.foreignKeys + ? obj.foreignKeys.map(item => { + return model.ForeignKey.getJsonObj(item); + }) + : undefined, + + "dataFormat": obj.dataFormat ? model.DataFormat.getJsonObj(obj.dataFormat) : undefined + } + }; + + return jsonObj; + } + export const modelType = "FILE_ENTITY"; +} diff --git a/lib/dataintegration/lib/model/data-entity-from-table-entity-details.ts b/lib/dataintegration/lib/model/data-entity-from-table-entity-details.ts new file mode 100644 index 0000000000..a60470883c --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-from-table-entity-details.ts @@ -0,0 +1,125 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 table entity data entity. + */ +export interface DataEntityFromTableEntityDetails extends model.DataEntityDetails { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object. + */ + "externalKey"?: string; + "shape"?: model.Shape; + /** + * The shape ID. + */ + "shapeId"?: string; + "types"?: model.TypeLibrary; + /** + * The entity type. + */ + "entityType"?: DataEntityFromTableEntityDetails.EntityType; + /** + * Specifies other type label. + */ + "otherTypeLabel"?: string; + /** + * An array of unique keys. + */ + "uniqueKeys"?: Array; + /** + * An array of foreign keys. + */ + "foreignKeys"?: Array; + /** + * The resource name. + */ + "resourceName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace DataEntityFromTableEntityDetails { + export enum EntityType { + TABLE = "TABLE", + VIEW = "VIEW", + FILE = "FILE", + QUEUE = "QUEUE", + STREAM = "STREAM", + OTHER = "OTHER" + } + + export function getJsonObj( + obj: DataEntityFromTableEntityDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DataEntityDetails.getJsonObj(obj) as DataEntityFromTableEntityDetails)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "shape": obj.shape ? model.Shape.getJsonObj(obj.shape) : undefined, + + "types": obj.types ? model.TypeLibrary.getJsonObj(obj.types) : undefined, + + "uniqueKeys": obj.uniqueKeys + ? obj.uniqueKeys.map(item => { + return model.UniqueKey.getJsonObj(item); + }) + : undefined, + "foreignKeys": obj.foreignKeys + ? obj.foreignKeys.map(item => { + return model.ForeignKey.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "TABLE_ENTITY"; +} diff --git a/lib/dataintegration/lib/model/data-entity-from-table.ts b/lib/dataintegration/lib/model/data-entity-from-table.ts new file mode 100644 index 0000000000..b75db17545 --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-from-table.ts @@ -0,0 +1,126 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 table entity data entity. + */ +export interface DataEntityFromTable extends model.DataEntity { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object. + */ + "externalKey"?: string; + "shape"?: model.Shape; + /** + * The shape ID. + */ + "shapeId"?: string; + "types"?: model.TypeLibrary; + /** + * The entity type. + */ + "entityType"?: DataEntityFromTable.EntityType; + /** + * Specifies other type label. + */ + "otherTypeLabel"?: string; + /** + * An array of unique keys. + */ + "uniqueKeys"?: Array; + /** + * An array of foreign keys. + */ + "foreignKeys"?: Array; + /** + * The resource name. + */ + "resourceName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace DataEntityFromTable { + export enum EntityType { + TABLE = "TABLE", + VIEW = "VIEW", + FILE = "FILE", + QUEUE = "QUEUE", + STREAM = "STREAM", + OTHER = "OTHER", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: DataEntityFromTable, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.DataEntity.getJsonObj(obj) as DataEntityFromTable)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "shape": obj.shape ? model.Shape.getJsonObj(obj.shape) : undefined, + + "types": obj.types ? model.TypeLibrary.getJsonObj(obj.types) : undefined, + + "uniqueKeys": obj.uniqueKeys + ? obj.uniqueKeys.map(item => { + return model.UniqueKey.getJsonObj(item); + }) + : undefined, + "foreignKeys": obj.foreignKeys + ? obj.foreignKeys.map(item => { + return model.ForeignKey.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "TABLE_ENTITY"; +} diff --git a/lib/dataintegration/lib/model/data-entity-from-view-entity-details.ts b/lib/dataintegration/lib/model/data-entity-from-view-entity-details.ts new file mode 100644 index 0000000000..d872ec8103 --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-from-view-entity-details.ts @@ -0,0 +1,125 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 view entity data entity details. + */ +export interface DataEntityFromViewEntityDetails extends model.DataEntityDetails { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object + */ + "externalKey"?: string; + "shape"?: model.Shape; + /** + * The shape ID. + */ + "shapeId"?: string; + "types"?: model.TypeLibrary; + /** + * The entity type. + */ + "entityType"?: DataEntityFromViewEntityDetails.EntityType; + /** + * Specifies other type labels. + */ + "otherTypeLabel"?: string; + /** + * An array of unique keys. + */ + "uniqueKeys"?: Array; + /** + * An array of foreign keys. + */ + "foreignKeys"?: Array; + /** + * The resource name. + */ + "resourceName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace DataEntityFromViewEntityDetails { + export enum EntityType { + TABLE = "TABLE", + VIEW = "VIEW", + FILE = "FILE", + QUEUE = "QUEUE", + STREAM = "STREAM", + OTHER = "OTHER" + } + + export function getJsonObj( + obj: DataEntityFromViewEntityDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DataEntityDetails.getJsonObj(obj) as DataEntityFromViewEntityDetails)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "shape": obj.shape ? model.Shape.getJsonObj(obj.shape) : undefined, + + "types": obj.types ? model.TypeLibrary.getJsonObj(obj.types) : undefined, + + "uniqueKeys": obj.uniqueKeys + ? obj.uniqueKeys.map(item => { + return model.UniqueKey.getJsonObj(item); + }) + : undefined, + "foreignKeys": obj.foreignKeys + ? obj.foreignKeys.map(item => { + return model.ForeignKey.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "VIEW_ENTITY"; +} diff --git a/lib/dataintegration/lib/model/data-entity-from-view.ts b/lib/dataintegration/lib/model/data-entity-from-view.ts new file mode 100644 index 0000000000..0001f97705 --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-from-view.ts @@ -0,0 +1,126 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 view entity data entity details. + */ +export interface DataEntityFromView extends model.DataEntity { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object + */ + "externalKey"?: string; + "shape"?: model.Shape; + /** + * The shape ID. + */ + "shapeId"?: string; + "types"?: model.TypeLibrary; + /** + * The entity type. + */ + "entityType"?: DataEntityFromView.EntityType; + /** + * Specifies other type label. + */ + "otherTypeLabel"?: string; + /** + * An array of unique keys. + */ + "uniqueKeys"?: Array; + /** + * An array of foreign keys. + */ + "foreignKeys"?: Array; + /** + * The resource name. + */ + "resourceName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace DataEntityFromView { + export enum EntityType { + TABLE = "TABLE", + VIEW = "VIEW", + FILE = "FILE", + QUEUE = "QUEUE", + STREAM = "STREAM", + OTHER = "OTHER", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: DataEntityFromView, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.DataEntity.getJsonObj(obj) as DataEntityFromView)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "shape": obj.shape ? model.Shape.getJsonObj(obj.shape) : undefined, + + "types": obj.types ? model.TypeLibrary.getJsonObj(obj.types) : undefined, + + "uniqueKeys": obj.uniqueKeys + ? obj.uniqueKeys.map(item => { + return model.UniqueKey.getJsonObj(item); + }) + : undefined, + "foreignKeys": obj.foreignKeys + ? obj.foreignKeys.map(item => { + return model.ForeignKey.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "VIEW_ENTITY"; +} diff --git a/lib/dataintegration/lib/model/data-entity-summary-collection.ts b/lib/dataintegration/lib/model/data-entity-summary-collection.ts new file mode 100644 index 0000000000..22136f20e3 --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This is the collection of data entity summaries, it may be a collection of lightweight details or full definitions. + */ +export interface DataEntitySummaryCollection { + /** + * The array of DataEntity summaries + */ + "items": Array; +} + +export namespace DataEntitySummaryCollection { + export function getJsonObj(obj: DataEntitySummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.DataEntitySummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-entity-summary-from-file.ts b/lib/dataintegration/lib/model/data-entity-summary-from-file.ts new file mode 100644 index 0000000000..a1add4fb93 --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-summary-from-file.ts @@ -0,0 +1,131 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 file data entity details. + */ +export interface DataEntitySummaryFromFile extends model.DataEntitySummary { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object. + */ + "externalKey"?: string; + "shape"?: model.Shape; + /** + * The shape ID. + */ + "shapeId"?: string; + "types"?: model.TypeLibrary; + /** + * The entity type. + */ + "entityType"?: DataEntitySummaryFromFile.EntityType; + /** + * Specifies other type label. + */ + "otherTypeLabel"?: string; + /** + * An array of unique keys. + */ + "uniqueKeys"?: Array; + /** + * An array of foreign keys. + */ + "foreignKeys"?: Array; + /** + * The resource name. + */ + "resourceName"?: string; + "dataFormat"?: model.DataFormat; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace DataEntitySummaryFromFile { + export enum EntityType { + TABLE = "TABLE", + VIEW = "VIEW", + FILE = "FILE", + QUEUE = "QUEUE", + STREAM = "STREAM", + OTHER = "OTHER", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: DataEntitySummaryFromFile, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DataEntitySummary.getJsonObj(obj) as DataEntitySummaryFromFile)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "shape": obj.shape ? model.Shape.getJsonObj(obj.shape) : undefined, + + "types": obj.types ? model.TypeLibrary.getJsonObj(obj.types) : undefined, + + "uniqueKeys": obj.uniqueKeys + ? obj.uniqueKeys.map(item => { + return model.UniqueKey.getJsonObj(item); + }) + : undefined, + "foreignKeys": obj.foreignKeys + ? obj.foreignKeys.map(item => { + return model.ForeignKey.getJsonObj(item); + }) + : undefined, + + "dataFormat": obj.dataFormat ? model.DataFormat.getJsonObj(obj.dataFormat) : undefined + } + }; + + return jsonObj; + } + export const modelType = "FILE_ENTITY"; +} diff --git a/lib/dataintegration/lib/model/data-entity-summary-from-table.ts b/lib/dataintegration/lib/model/data-entity-summary-from-table.ts new file mode 100644 index 0000000000..9a0a88618a --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-summary-from-table.ts @@ -0,0 +1,128 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 table entity data entity. + */ +export interface DataEntitySummaryFromTable extends model.DataEntitySummary { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object. + */ + "externalKey"?: string; + "shape"?: model.Shape; + /** + * The shape ID. + */ + "shapeId"?: string; + "types"?: model.TypeLibrary; + /** + * The entity type. + */ + "entityType"?: DataEntitySummaryFromTable.EntityType; + /** + * Specifies other type label. + */ + "otherTypeLabel"?: string; + /** + * An array of unique keys. + */ + "uniqueKeys"?: Array; + /** + * An array of foreign keys. + */ + "foreignKeys"?: Array; + /** + * The resource name. + */ + "resourceName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace DataEntitySummaryFromTable { + export enum EntityType { + TABLE = "TABLE", + VIEW = "VIEW", + FILE = "FILE", + QUEUE = "QUEUE", + STREAM = "STREAM", + OTHER = "OTHER", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: DataEntitySummaryFromTable, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DataEntitySummary.getJsonObj(obj) as DataEntitySummaryFromTable)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "shape": obj.shape ? model.Shape.getJsonObj(obj.shape) : undefined, + + "types": obj.types ? model.TypeLibrary.getJsonObj(obj.types) : undefined, + + "uniqueKeys": obj.uniqueKeys + ? obj.uniqueKeys.map(item => { + return model.UniqueKey.getJsonObj(item); + }) + : undefined, + "foreignKeys": obj.foreignKeys + ? obj.foreignKeys.map(item => { + return model.ForeignKey.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "TABLE_ENTITY"; +} diff --git a/lib/dataintegration/lib/model/data-entity-summary-from-view.ts b/lib/dataintegration/lib/model/data-entity-summary-from-view.ts new file mode 100644 index 0000000000..512a45bf99 --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-summary-from-view.ts @@ -0,0 +1,128 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 view entity data entity details. + */ +export interface DataEntitySummaryFromView extends model.DataEntitySummary { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object + */ + "externalKey"?: string; + "shape"?: model.Shape; + /** + * The shape ID. + */ + "shapeId"?: string; + "types"?: model.TypeLibrary; + /** + * The entity type. + */ + "entityType"?: DataEntitySummaryFromView.EntityType; + /** + * Specifies other type label. + */ + "otherTypeLabel"?: string; + /** + * An array of unique keys. + */ + "uniqueKeys"?: Array; + /** + * An array of foreign keys. + */ + "foreignKeys"?: Array; + /** + * The resource name. + */ + "resourceName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace DataEntitySummaryFromView { + export enum EntityType { + TABLE = "TABLE", + VIEW = "VIEW", + FILE = "FILE", + QUEUE = "QUEUE", + STREAM = "STREAM", + OTHER = "OTHER", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: DataEntitySummaryFromView, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DataEntitySummary.getJsonObj(obj) as DataEntitySummaryFromView)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "shape": obj.shape ? model.Shape.getJsonObj(obj.shape) : undefined, + + "types": obj.types ? model.TypeLibrary.getJsonObj(obj.types) : undefined, + + "uniqueKeys": obj.uniqueKeys + ? obj.uniqueKeys.map(item => { + return model.UniqueKey.getJsonObj(item); + }) + : undefined, + "foreignKeys": obj.foreignKeys + ? obj.foreignKeys.map(item => { + return model.ForeignKey.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "VIEW_ENTITY"; +} diff --git a/lib/dataintegration/lib/model/data-entity-summary.ts b/lib/dataintegration/lib/model/data-entity-summary.ts new file mode 100644 index 0000000000..d6cbc1e8b2 --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity-summary.ts @@ -0,0 +1,58 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 entity summary object. + */ +export interface DataEntitySummary { + "metadata"?: model.ObjectMetadata; + + "modelType": string; +} + +export namespace DataEntitySummary { + export function getJsonObj(obj: DataEntitySummary): object { + const jsonObj = { + ...obj, + ...{ + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "FILE_ENTITY": + return model.DataEntitySummaryFromFile.getJsonObj( + (jsonObj), + true + ); + case "TABLE_ENTITY": + return model.DataEntitySummaryFromTable.getJsonObj( + (jsonObj), + true + ); + case "VIEW_ENTITY": + return model.DataEntitySummaryFromView.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-entity.ts b/lib/dataintegration/lib/model/data-entity.ts new file mode 100644 index 0000000000..3c07ce493e --- /dev/null +++ b/lib/dataintegration/lib/model/data-entity.ts @@ -0,0 +1,58 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 entity object. + */ +export interface DataEntity { + "metadata"?: model.ObjectMetadata; + + "modelType": string; +} + +export namespace DataEntity { + export function getJsonObj(obj: DataEntity): object { + const jsonObj = { + ...obj, + ...{ + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "TABLE_ENTITY": + return model.DataEntityFromTable.getJsonObj( + (jsonObj), + true + ); + case "VIEW_ENTITY": + return model.DataEntityFromView.getJsonObj( + (jsonObj), + true + ); + case "FILE_ENTITY": + return model.DataEntityFromFile.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-flow-details.ts b/lib/dataintegration/lib/model/data-flow-details.ts new file mode 100644 index 0000000000..8634c2c0ae --- /dev/null +++ b/lib/dataintegration/lib/model/data-flow-details.ts @@ -0,0 +1,96 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 a data flow. + */ +export interface DataFlowDetails { + /** + * Generated key that can be used in API calls to identify data flow. On scenarios where reference to the data flow is needed, a value can be passed in create. + */ + "key": string; + /** + * The type of the object. + */ + "modelType": string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion": number; + /** + * An array of nodes. + */ + "nodes"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + /** + * Detailed description for the object. + */ + "description"?: string; + "flowConfigValues"?: model.ConfigValues; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace DataFlowDetails { + export function getJsonObj(obj: DataFlowDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "nodes": obj.nodes + ? obj.nodes.map(item => { + return model.FlowNode.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + + "flowConfigValues": obj.flowConfigValues + ? model.ConfigValues.getJsonObj(obj.flowConfigValues) + : undefined, + + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-flow-summary-collection.ts b/lib/dataintegration/lib/model/data-flow-summary-collection.ts new file mode 100644 index 0000000000..6f5e0a98d0 --- /dev/null +++ b/lib/dataintegration/lib/model/data-flow-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This is the collection of data flow summaries, it may be a collection of lightweight details or full definitions. + */ +export interface DataFlowSummaryCollection { + /** + * The array of DataFlow summaries + */ + "items": Array; +} + +export namespace DataFlowSummaryCollection { + export function getJsonObj(obj: DataFlowSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.DataFlowSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-flow-summary.ts b/lib/dataintegration/lib/model/data-flow-summary.ts new file mode 100644 index 0000000000..34f0143061 --- /dev/null +++ b/lib/dataintegration/lib/model/data-flow-summary.ts @@ -0,0 +1,98 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 flow summary type contains the audit summary information and the definition of the data flow. + */ +export interface DataFlowSummary { + /** + * Generated key that can be used in API calls to identify data flow. On scenarios where reference to the data flow is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * An array of nodes. + */ + "nodes"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + /** + * Detailed description for the object. + */ + "description"?: string; + "flowConfigValues"?: model.ConfigValues; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace DataFlowSummary { + export function getJsonObj(obj: DataFlowSummary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "nodes": obj.nodes + ? obj.nodes.map(item => { + return model.FlowNode.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + + "flowConfigValues": obj.flowConfigValues + ? model.ConfigValues.getJsonObj(obj.flowConfigValues) + : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-flow-validation-summary-collection.ts b/lib/dataintegration/lib/model/data-flow-validation-summary-collection.ts new file mode 100644 index 0000000000..82d7c52380 --- /dev/null +++ b/lib/dataintegration/lib/model/data-flow-validation-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * List of dataflow validation summaries + */ +export interface DataFlowValidationSummaryCollection { + /** + * The array of validation summaries + */ + "items": Array; +} + +export namespace DataFlowValidationSummaryCollection { + export function getJsonObj(obj: DataFlowValidationSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.DataFlowValidationSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-flow-validation-summary.ts b/lib/dataintegration/lib/model/data-flow-validation-summary.ts new file mode 100644 index 0000000000..04117ae2c9 --- /dev/null +++ b/lib/dataintegration/lib/model/data-flow-validation-summary.ts @@ -0,0 +1,90 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 dataflow validation + */ +export interface DataFlowValidationSummary { + /** + * Total number of validation messages + */ + "totalMessageCount"?: number; + /** + * Total number of validation error messages + */ + "errorMessageCount"?: number; + /** + * Total number of validation warning messages + */ + "warnMessageCount"?: number; + /** + * Total number of validation information messages + */ + "infoMessageCount"?: number; + /** + * Detailed information of the DataFlow object validation. + */ + "validationMessages"?: { [key: string]: Array }; + /** + * Objects will use a 36 character key as unique ID. It is system generated and cannot be edited by user + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; +} + +export namespace DataFlowValidationSummary { + export function getJsonObj(obj: DataFlowValidationSummary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-flow-validation.ts b/lib/dataintegration/lib/model/data-flow-validation.ts new file mode 100644 index 0000000000..2c2e3ffe1d --- /dev/null +++ b/lib/dataintegration/lib/model/data-flow-validation.ts @@ -0,0 +1,90 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 dataflow validation + */ +export interface DataFlowValidation { + /** + * Total number of validation messages + */ + "totalMessageCount"?: number; + /** + * Total number of validation error messages + */ + "errorMessageCount"?: number; + /** + * Total number of validation warning messages + */ + "warnMessageCount"?: number; + /** + * Total number of validation information messages + */ + "infoMessageCount"?: number; + /** + * Detailed information of the DataFlow object validation. + */ + "validationMessages"?: { [key: string]: Array }; + /** + * Objects will use a 36 character key as unique ID. It is system generated and cannot be edited by user + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; +} + +export namespace DataFlowValidation { + export function getJsonObj(obj: DataFlowValidation): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-flow.ts b/lib/dataintegration/lib/model/data-flow.ts new file mode 100644 index 0000000000..f06e2c3837 --- /dev/null +++ b/lib/dataintegration/lib/model/data-flow.ts @@ -0,0 +1,98 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 flow type contains the audit summary information and the definition of the data flow. + */ +export interface DataFlow { + /** + * Generated key that can be used in API calls to identify data flow. On scenarios where reference to the data flow is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * An array of nodes. + */ + "nodes"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + /** + * Detailed description for the object. + */ + "description"?: string; + "flowConfigValues"?: model.ConfigValues; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace DataFlow { + export function getJsonObj(obj: DataFlow): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "nodes": obj.nodes + ? obj.nodes.map(item => { + return model.FlowNode.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + + "flowConfigValues": obj.flowConfigValues + ? model.ConfigValues.getJsonObj(obj.flowConfigValues) + : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-format.ts b/lib/dataintegration/lib/model/data-format.ts new file mode 100644 index 0000000000..7f934c72fd --- /dev/null +++ b/lib/dataintegration/lib/model/data-format.ts @@ -0,0 +1,55 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 format object. + */ +export interface DataFormat { + "formatAttribute"?: model.JsonFormatAttribute | model.CsvFormatAttribute; + /** + * type + */ + "type"?: DataFormat.Type; +} + +export namespace DataFormat { + export enum Type { + XML = "XML", + JSON = "JSON", + CSV = "CSV", + ORC = "ORC", + PARQUET = "PARQUET", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: DataFormat): object { + const jsonObj = { + ...obj, + ...{ + "formatAttribute": obj.formatAttribute + ? model.AbstractFormatAttribute.getJsonObj(obj.formatAttribute) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/data-type.ts b/lib/dataintegration/lib/model/data-type.ts new file mode 100644 index 0000000000..702825583e --- /dev/null +++ b/lib/dataintegration/lib/model/data-type.ts @@ -0,0 +1,59 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DataType object is a simple primitive type that describes the type of a single atomic unit of data. For example, INT, VARCHAR, NUMBER, etc. + */ +export interface DataType extends model.BaseType { + /** + * dtType + */ + "dtType"?: DataType.DtType; + /** + * typeSystemName + */ + "typeSystemName"?: string; + "configDefinition"?: model.ConfigDefinition; + + "modelType": string; +} + +export namespace DataType { + export enum DtType { + PRIMITIVE = "PRIMITIVE", + STRUCTURED = "STRUCTURED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: DataType, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.BaseType.getJsonObj(obj) as DataType)), + ...{ + "configDefinition": obj.configDefinition + ? model.ConfigDefinition.getJsonObj(obj.configDefinition) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "DATA_TYPE"; +} diff --git a/lib/dataintegration/lib/model/dependent-object-summary-collection.ts b/lib/dataintegration/lib/model/dependent-object-summary-collection.ts new file mode 100644 index 0000000000..7c74846d68 --- /dev/null +++ b/lib/dataintegration/lib/model/dependent-object-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * List of DependentObject summaries + */ +export interface DependentObjectSummaryCollection { + /** + * The array of DependentObject summaries + */ + "items": Array; +} + +export namespace DependentObjectSummaryCollection { + export function getJsonObj(obj: DependentObjectSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.DependentObjectSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/dependent-object-summary.ts b/lib/dataintegration/lib/model/dependent-object-summary.ts new file mode 100644 index 0000000000..cabdba3b4e --- /dev/null +++ b/lib/dataintegration/lib/model/dependent-object-summary.ts @@ -0,0 +1,73 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 dependent object. + */ +export interface DependentObjectSummary { + /** + * The user that created the object. + */ + "createdBy"?: string; + /** + * The user that created the object. + */ + "createdByName"?: string; + /** + * The user that updated the object. + */ + "updatedBy"?: string; + /** + * The user that updated the object. + */ + "updatedByName"?: string; + /** + * The date and time that the object was created. + */ + "timeCreated"?: Date; + /** + * The date and time that the object was updated. + */ + "timeUpdated"?: Date; + /** + * The owning object key for this object. + */ + "aggregatorKey"?: string; + /** + * The full path to identify this object. + */ + "identifierPath"?: string; + /** + * infoFields + */ + "infoFields"?: { [key: string]: string }; + /** + * registryVersion + */ + "registryVersion"?: number; + /** + * Labels are keywords or tags that you can add to data assets, dataflows etc. You can define your own labels and use them to categorize content. + */ + "labels"?: Array; +} + +export namespace DependentObjectSummary { + export function getJsonObj(obj: DependentObjectSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/dependent-object.ts b/lib/dataintegration/lib/model/dependent-object.ts new file mode 100644 index 0000000000..777e756a57 --- /dev/null +++ b/lib/dataintegration/lib/model/dependent-object.ts @@ -0,0 +1,94 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DependentObject object. + */ +export interface DependentObject { + /** + * Generated key that can be used in API calls to identify application. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * version + */ + "applicationVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "parentRef"?: model.ParentReference; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * List of dependent objects in this patch. + */ + "dependentObjectMetadata"?: Array; + /** + * List of objects that are published / unpublished in this patch. + */ + "publishedObjectMetadata"?: { [key: string]: model.PatchObjectMetadata }; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace DependentObject { + export function getJsonObj(obj: DependentObject): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "dependentObjectMetadata": obj.dependentObjectMetadata + ? obj.dependentObjectMetadata.map(item => { + return model.PatchObjectMetadata.getJsonObj(item); + }) + : undefined, + "publishedObjectMetadata": obj.publishedObjectMetadata + ? common.mapContainer(obj.publishedObjectMetadata, model.PatchObjectMetadata.getJsonObj) + : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/derived-field.ts b/lib/dataintegration/lib/model/derived-field.ts new file mode 100644 index 0000000000..6083bcbb9a --- /dev/null +++ b/lib/dataintegration/lib/model/derived-field.ts @@ -0,0 +1,46 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 type representing the derived field concept. Derived fields have an expression to define how to derive the field. + */ +export interface DerivedField extends model.TypedObject { + "expr"?: model.Expression; + /** + * The type of the field. + */ + "type"?: string; + /** + * Labels are keywords or labels that you can add to data assets, dataflows etc. You can define your own labels and use them to categorize content. + */ + "labels"?: Array; + + "modelType": string; +} + +export namespace DerivedField { + export function getJsonObj(obj: DerivedField, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as DerivedField)), + ...{ + "expr": obj.expr ? model.Expression.getJsonObj(obj.expr) : undefined + } + }; + + return jsonObj; + } + export const modelType = "DERIVED_FIELD"; +} diff --git a/lib/dataintegration/lib/model/derived-type.ts b/lib/dataintegration/lib/model/derived-type.ts new file mode 100644 index 0000000000..41c9f7cd0d --- /dev/null +++ b/lib/dataintegration/lib/model/derived-type.ts @@ -0,0 +1,34 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DerivedType object represents a more complex type that is derived from a set of simple types, for example an Address or SSN data type; + */ +export interface DerivedType extends model.BaseType { + "modelType": string; +} + +export namespace DerivedType { + export function getJsonObj(obj: DerivedType, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.BaseType.getJsonObj(obj) as DerivedType)), + ...{} + }; + + return jsonObj; + } + export const modelType = "DERIVED_TYPE"; +} diff --git a/lib/dataintegration/lib/model/direct-field-map.ts b/lib/dataintegration/lib/model/direct-field-map.ts new file mode 100644 index 0000000000..7e5f8ef72d --- /dev/null +++ b/lib/dataintegration/lib/model/direct-field-map.ts @@ -0,0 +1,62 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 a field map. + */ +export interface DirectFieldMap extends model.FieldMap { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + "configValues"?: model.ConfigValues; + /** + * Reference to a typed object + */ + "sourceTypedObject"?: string; + /** + * Reference to a typed object + */ + "targetTypedObject"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + + "modelType": string; +} + +export namespace DirectFieldMap { + export function getJsonObj(obj: DirectFieldMap, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.FieldMap.getJsonObj(obj) as DirectFieldMap)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "configValues": obj.configValues + ? model.ConfigValues.getJsonObj(obj.configValues) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "DIRECT_FIELD_MAP"; +} diff --git a/lib/dataintegration/lib/model/direct-named-field-map.ts b/lib/dataintegration/lib/model/direct-named-field-map.ts new file mode 100644 index 0000000000..d06e5aaee9 --- /dev/null +++ b/lib/dataintegration/lib/model/direct-named-field-map.ts @@ -0,0 +1,70 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 named field map. + */ +export interface DirectNamedFieldMap extends model.FieldMap { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + "configValues"?: model.ConfigValues; + /** + * Reference to a typed object. + */ + "sourceTypedObject"?: string; + /** + * Reference to a typed object + */ + "targetTypedObject"?: string; + /** + * The source field name. + */ + "sourceFieldName"?: string; + /** + * The target field name. + */ + "targetFieldName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + + "modelType": string; +} + +export namespace DirectNamedFieldMap { + export function getJsonObj(obj: DirectNamedFieldMap, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.FieldMap.getJsonObj(obj) as DirectNamedFieldMap)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "configValues": obj.configValues + ? model.ConfigValues.getJsonObj(obj.configValues) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "DIRECT_NAMED_FIELD_MAP"; +} diff --git a/lib/dataintegration/lib/model/dynamic-input-field.ts b/lib/dataintegration/lib/model/dynamic-input-field.ts new file mode 100644 index 0000000000..9716412f73 --- /dev/null +++ b/lib/dataintegration/lib/model/dynamic-input-field.ts @@ -0,0 +1,48 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 type representing the dynamic field concept. Dynamic fields have a dynamic type handler to define how to generate the field. + */ +export interface DynamicInputField extends model.TypedObject { + "type"?: + | model.ConfiguredType + | model.JavaType + | model.DynamicType + | model.DerivedType + | model.DataType + | model.CompositeType; + /** + * Labels are keywords or labels that you can add to data assets, dataflows etc. You can define your own labels and use them to categorize content. + */ + "labels"?: Array; + + "modelType": string; +} + +export namespace DynamicInputField { + export function getJsonObj(obj: DynamicInputField, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as DynamicInputField)), + ...{ + "type": obj.type ? model.BaseType.getJsonObj(obj.type) : undefined + } + }; + + return jsonObj; + } + export const modelType = "DYNAMIC_INPUT_FIELD"; +} diff --git a/lib/dataintegration/lib/model/dynamic-proxy-field.ts b/lib/dataintegration/lib/model/dynamic-proxy-field.ts new file mode 100644 index 0000000000..ffe38cb192 --- /dev/null +++ b/lib/dataintegration/lib/model/dynamic-proxy-field.ts @@ -0,0 +1,48 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 type representing the dynamic proxy field concept. Dynamic proxy fields have a reference to another field. + */ +export interface DynamicProxyField extends model.TypedObject { + "type"?: + | model.ConfiguredType + | model.JavaType + | model.DynamicType + | model.DerivedType + | model.DataType + | model.CompositeType; + /** + * Labels are keywords or labels that you can add to data assets, dataflows etc. You can define your own labels and use them to categorize content. + */ + "labels"?: Array; + + "modelType": string; +} + +export namespace DynamicProxyField { + export function getJsonObj(obj: DynamicProxyField, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as DynamicProxyField)), + ...{ + "type": obj.type ? model.BaseType.getJsonObj(obj.type) : undefined + } + }; + + return jsonObj; + } + export const modelType = "DYNAMIC_PROXY_FIELD"; +} diff --git a/lib/dataintegration/lib/model/dynamic-type-handler.ts b/lib/dataintegration/lib/model/dynamic-type-handler.ts new file mode 100644 index 0000000000..e15672f41a --- /dev/null +++ b/lib/dataintegration/lib/model/dynamic-type-handler.ts @@ -0,0 +1,38 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This type defines how to derived fields for the dynamic type itself. + */ +export interface DynamicTypeHandler { + "modelType": string; +} + +export namespace DynamicTypeHandler { + export function getJsonObj(obj: DynamicTypeHandler): object { + const jsonObj = { ...obj, ...{} }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "RULE_TYPE_CONFIGS": + return model.RuleTypeConfig.getJsonObj((jsonObj), true); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/dynamic-type.ts b/lib/dataintegration/lib/model/dynamic-type.ts new file mode 100644 index 0000000000..f949f5fdc3 --- /dev/null +++ b/lib/dataintegration/lib/model/dynamic-type.ts @@ -0,0 +1,44 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 dynamic type. + */ +export interface DynamicType extends model.BaseType { + "typeHandler"?: model.RuleTypeConfig; + "configDefinition"?: model.ConfigDefinition; + + "modelType": string; +} + +export namespace DynamicType { + export function getJsonObj(obj: DynamicType, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.BaseType.getJsonObj(obj) as DynamicType)), + ...{ + "typeHandler": obj.typeHandler + ? model.DynamicTypeHandler.getJsonObj(obj.typeHandler) + : undefined, + "configDefinition": obj.configDefinition + ? model.ConfigDefinition.getJsonObj(obj.configDefinition) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "DYNAMIC_TYPE"; +} diff --git a/lib/dataintegration/lib/model/entity-shape-from-file.ts b/lib/dataintegration/lib/model/entity-shape-from-file.ts new file mode 100644 index 0000000000..d54d08342f --- /dev/null +++ b/lib/dataintegration/lib/model/entity-shape-from-file.ts @@ -0,0 +1,129 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 file data entity details. + */ +export interface EntityShapeFromFile extends model.EntityShape { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object. + */ + "externalKey"?: string; + "shape"?: model.Shape; + /** + * The shape ID. + */ + "shapeId"?: string; + "types"?: model.TypeLibrary; + /** + * The entity type. + */ + "entityType"?: EntityShapeFromFile.EntityType; + /** + * Specifies other type label. + */ + "otherTypeLabel"?: string; + /** + * An array of unique keys. + */ + "uniqueKeys"?: Array; + /** + * An array of foreign keys. + */ + "foreignKeys"?: Array; + /** + * The resource name. + */ + "resourceName"?: string; + "dataFormat"?: model.DataFormat; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace EntityShapeFromFile { + export enum EntityType { + TABLE = "TABLE", + VIEW = "VIEW", + FILE = "FILE", + QUEUE = "QUEUE", + STREAM = "STREAM", + OTHER = "OTHER", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: EntityShapeFromFile, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.EntityShape.getJsonObj(obj) as EntityShapeFromFile)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "shape": obj.shape ? model.Shape.getJsonObj(obj.shape) : undefined, + + "types": obj.types ? model.TypeLibrary.getJsonObj(obj.types) : undefined, + + "uniqueKeys": obj.uniqueKeys + ? obj.uniqueKeys.map(item => { + return model.UniqueKey.getJsonObj(item); + }) + : undefined, + "foreignKeys": obj.foreignKeys + ? obj.foreignKeys.map(item => { + return model.ForeignKey.getJsonObj(item); + }) + : undefined, + + "dataFormat": obj.dataFormat ? model.DataFormat.getJsonObj(obj.dataFormat) : undefined + } + }; + + return jsonObj; + } + export const modelType = "FILE_ENTITY"; +} diff --git a/lib/dataintegration/lib/model/entity-shape.ts b/lib/dataintegration/lib/model/entity-shape.ts new file mode 100644 index 0000000000..632ae4ad51 --- /dev/null +++ b/lib/dataintegration/lib/model/entity-shape.ts @@ -0,0 +1,48 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 entity shape object. + */ +export interface EntityShape { + "metadata"?: model.ObjectMetadata; + + "modelType": string; +} + +export namespace EntityShape { + export function getJsonObj(obj: EntityShape): object { + const jsonObj = { + ...obj, + ...{ + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "FILE_ENTITY": + return model.EntityShapeFromFile.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/error-details.ts b/lib/dataintegration/lib/model/error-details.ts new file mode 100644 index 0000000000..3e3d19016a --- /dev/null +++ b/lib/dataintegration/lib/model/error-details.ts @@ -0,0 +1,39 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 details of an error that occured. + */ +export interface ErrorDetails { + /** + * A short error code that defines the error, meant for programmatic parsing. See + * [API Errors](https://docs.cloud.oracle.com/Content/API/References/apierrors.htm). + * + */ + "code": string; + /** + * A user-friendly error message. + */ + "message": string; +} + +export namespace ErrorDetails { + export function getJsonObj(obj: ErrorDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/expression.ts b/lib/dataintegration/lib/model/expression.ts new file mode 100644 index 0000000000..072e2d3ffc --- /dev/null +++ b/lib/dataintegration/lib/model/expression.ts @@ -0,0 +1,60 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 expression node. + */ +export interface Expression { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * The expression string for the object. + */ + "exprString"?: string; + "configValues"?: model.ConfigValues; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; +} + +export namespace Expression { + export function getJsonObj(obj: Expression): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "configValues": obj.configValues + ? model.ConfigValues.getJsonObj(obj.configValues) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/field-map.ts b/lib/dataintegration/lib/model/field-map.ts new file mode 100644 index 0000000000..ddf640a072 --- /dev/null +++ b/lib/dataintegration/lib/model/field-map.ts @@ -0,0 +1,58 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 field map is a way to map a source row shape to a target row shape that may be different. + */ +export interface FieldMap { + /** + * Detailed description for the object. + */ + "description"?: string; + + "modelType": string; +} + +export namespace FieldMap { + export function getJsonObj(obj: FieldMap): object { + const jsonObj = { ...obj, ...{} }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "RULE_BASED_FIELD_MAP": + return model.RuleBasedFieldMap.getJsonObj( + (jsonObj), + true + ); + case "DIRECT_FIELD_MAP": + return model.DirectFieldMap.getJsonObj((jsonObj), true); + case "COMPOSITE_FIELD_MAP": + return model.CompositeFieldMap.getJsonObj( + (jsonObj), + true + ); + case "DIRECT_NAMED_FIELD_MAP": + return model.DirectNamedFieldMap.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/filter-push.ts b/lib/dataintegration/lib/model/filter-push.ts new file mode 100644 index 0000000000..65a0ff0159 --- /dev/null +++ b/lib/dataintegration/lib/model/filter-push.ts @@ -0,0 +1,39 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 a filter operator. The filter operator lets you select certain attributes from the inbound port to continue downstream to the outbound port. + */ +export interface FilterPush extends model.PushDownOperation { + /** + * The filter condition. + */ + "filterCondition"?: string; + + "modelType": string; +} + +export namespace FilterPush { + export function getJsonObj(obj: FilterPush, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.PushDownOperation.getJsonObj(obj) as FilterPush)), + ...{} + }; + + return jsonObj; + } + export const modelType = "FILTER"; +} diff --git a/lib/dataintegration/lib/model/filter.ts b/lib/dataintegration/lib/model/filter.ts new file mode 100644 index 0000000000..4459f6ab97 --- /dev/null +++ b/lib/dataintegration/lib/model/filter.ts @@ -0,0 +1,40 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the filter object. + */ +export interface Filter extends model.Operator { + "filterCondition"?: model.Expression; + + "modelType": string; +} + +export namespace Filter { + export function getJsonObj(obj: Filter, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Operator.getJsonObj(obj) as Filter)), + ...{ + "filterCondition": obj.filterCondition + ? model.Expression.getJsonObj(obj.filterCondition) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "FILTER_OPERATOR"; +} diff --git a/lib/dataintegration/lib/model/flow-node.ts b/lib/dataintegration/lib/model/flow-node.ts new file mode 100644 index 0000000000..c8983098f3 --- /dev/null +++ b/lib/dataintegration/lib/model/flow-node.ts @@ -0,0 +1,94 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 flow node can be connected to other nodes in a data flow with input and output links and is bound to an opertor which defines the semantics of the node. + */ +export interface FlowNode { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * inputLinks + */ + "inputLinks"?: Array; + /** + * outputLinks + */ + "outputLinks"?: Array; + "operator"?: + | model.Target + | model.Joiner + | model.Filter + | model.Aggregator + | model.Projection + | model.Source; + "uiProperties"?: model.UIProperties; + "configProviderDelegate"?: model.ConfigProvider; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; +} + +export namespace FlowNode { + export function getJsonObj(obj: FlowNode): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "inputLinks": obj.inputLinks + ? obj.inputLinks.map(item => { + return model.InputLink.getJsonObj(item); + }) + : undefined, + "outputLinks": obj.outputLinks + ? obj.outputLinks.map(item => { + return model.OutputLink.getJsonObj(item); + }) + : undefined, + "operator": obj.operator ? model.Operator.getJsonObj(obj.operator) : undefined, + "uiProperties": obj.uiProperties + ? model.UIProperties.getJsonObj(obj.uiProperties) + : undefined, + "configProviderDelegate": obj.configProviderDelegate + ? model.ConfigProvider.getJsonObj(obj.configProviderDelegate) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/flow-port-link.ts b/lib/dataintegration/lib/model/flow-port-link.ts new file mode 100644 index 0000000000..8a87cd9fa0 --- /dev/null +++ b/lib/dataintegration/lib/model/flow-port-link.ts @@ -0,0 +1,72 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 details of the flow port links. + */ +export interface FlowPortLink { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * Key of FlowPort reference + */ + "port"?: string; + + "modelType": string; +} + +export namespace FlowPortLink { + export function getJsonObj(obj: FlowPortLink): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "INPUT_LINK": + return model.InputLink.getJsonObj((jsonObj), true); + case "OUTPUT_LINK": + return model.OutputLink.getJsonObj((jsonObj), true); + case "CONDITIONAL_INPUT_LINK": + return model.ConditionalInputLink.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/flow-port.ts b/lib/dataintegration/lib/model/flow-port.ts new file mode 100644 index 0000000000..8af49847a0 --- /dev/null +++ b/lib/dataintegration/lib/model/flow-port.ts @@ -0,0 +1,34 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Each operator owns a set of InputPort and OutputPort objects (can scale to zero), which represent the ports that can be connected to/from the Operator. + */ +export interface FlowPort extends model.TypedObject { + "modelType": string; +} + +export namespace FlowPort { + export function getJsonObj(obj: FlowPort, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as FlowPort)), + ...{} + }; + + return jsonObj; + } + export const modelType = "FLOW_PORT"; +} diff --git a/lib/dataintegration/lib/model/folder-details.ts b/lib/dataintegration/lib/model/folder-details.ts new file mode 100644 index 0000000000..f343fdf0d5 --- /dev/null +++ b/lib/dataintegration/lib/model/folder-details.ts @@ -0,0 +1,76 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 details including name, description for the folder, which is a container of other folders, tasks and dataflows. + */ +export interface FolderDetails { + /** + * Generated key that can be used in API calls to identify folder. + */ + "key": string; + /** + * The type of the object. + */ + "modelType": string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * categoryName + */ + "categoryName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "parentRef"?: model.ParentReference; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion": number; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace FolderDetails { + export function getJsonObj(obj: FolderDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/folder-summary-collection.ts b/lib/dataintegration/lib/model/folder-summary-collection.ts new file mode 100644 index 0000000000..31e948d4d8 --- /dev/null +++ b/lib/dataintegration/lib/model/folder-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 collection of folder summaries. The collection can be lightweight details or full definitions. + */ +export interface FolderSummaryCollection { + /** + * The array of Folder summaries + */ + "items": Array; +} + +export namespace FolderSummaryCollection { + export function getJsonObj(obj: FolderSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FolderSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/folder-summary.ts b/lib/dataintegration/lib/model/folder-summary.ts new file mode 100644 index 0000000000..57dd28445e --- /dev/null +++ b/lib/dataintegration/lib/model/folder-summary.ts @@ -0,0 +1,78 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 folder summary type contains the audit summary information and the definition of the folder. + */ +export interface FolderSummary { + /** + * Generated key that can be used in API calls to identify folder. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * categoryName + */ + "categoryName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "parentRef"?: model.ParentReference; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace FolderSummary { + export function getJsonObj(obj: FolderSummary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/folder.ts b/lib/dataintegration/lib/model/folder.ts new file mode 100644 index 0000000000..ca2bbfb6aa --- /dev/null +++ b/lib/dataintegration/lib/model/folder.ts @@ -0,0 +1,78 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 folder type contains the audit summary information and the definition of the folder. + */ +export interface Folder { + /** + * Generated key that can be used in API calls to identify folder. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * categoryName + */ + "categoryName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "parentRef"?: model.ParentReference; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace Folder { + export function getJsonObj(obj: Folder): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/foreign-key.ts b/lib/dataintegration/lib/model/foreign-key.ts new file mode 100644 index 0000000000..3ea3cfab24 --- /dev/null +++ b/lib/dataintegration/lib/model/foreign-key.ts @@ -0,0 +1,77 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 foreign key object. + */ +export interface ForeignKey extends model.Key { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * attributeRefs + */ + "attributeRefs"?: Array; + /** + * updateRule + */ + "updateRule"?: number; + /** + * deleteRule + */ + "deleteRule"?: number; + "referenceUniqueKey"?: model.UniqueKey; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + + "modelType": string; +} + +export namespace ForeignKey { + export function getJsonObj(obj: ForeignKey, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Key.getJsonObj(obj) as ForeignKey)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "attributeRefs": obj.attributeRefs + ? obj.attributeRefs.map(item => { + return model.KeyAttribute.getJsonObj(item); + }) + : undefined, + + "referenceUniqueKey": obj.referenceUniqueKey + ? model.UniqueKey.getJsonObj(obj.referenceUniqueKey) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "FOREIGN_KEY"; +} diff --git a/lib/dataintegration/lib/model/index.ts b/lib/dataintegration/lib/model/index.ts new file mode 100644 index 0000000000..d1658a6fe9 --- /dev/null +++ b/lib/dataintegration/lib/model/index.ts @@ -0,0 +1,508 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 AbstractDataOperationConfig from "./abstract-data-operation-config"; +export import AbstractDataOperationConfig = AbstractDataOperationConfig.AbstractDataOperationConfig; +import * as AbstractFormatAttribute from "./abstract-format-attribute"; +export import AbstractFormatAttribute = AbstractFormatAttribute.AbstractFormatAttribute; +import * as AbstractReadAttribute from "./abstract-read-attribute"; +export import AbstractReadAttribute = AbstractReadAttribute.AbstractReadAttribute; +import * as AbstractWriteAttribute from "./abstract-write-attribute"; +export import AbstractWriteAttribute = AbstractWriteAttribute.AbstractWriteAttribute; +import * as Application from "./application"; +export import Application = Application.Application; +import * as ApplicationDetails from "./application-details"; +export import ApplicationDetails = ApplicationDetails.ApplicationDetails; +import * as ApplicationSummary from "./application-summary"; +export import ApplicationSummary = ApplicationSummary.ApplicationSummary; +import * as ApplicationSummaryCollection from "./application-summary-collection"; +export import ApplicationSummaryCollection = ApplicationSummaryCollection.ApplicationSummaryCollection; +import * as BaseType from "./base-type"; +export import BaseType = BaseType.BaseType; +import * as ChangeCompartmentDetails from "./change-compartment-details"; +export import ChangeCompartmentDetails = ChangeCompartmentDetails.ChangeCompartmentDetails; +import * as ConfigDefinition from "./config-definition"; +export import ConfigDefinition = ConfigDefinition.ConfigDefinition; +import * as ConfigParameterDefinition from "./config-parameter-definition"; +export import ConfigParameterDefinition = ConfigParameterDefinition.ConfigParameterDefinition; +import * as ConfigParameterValue from "./config-parameter-value"; +export import ConfigParameterValue = ConfigParameterValue.ConfigParameterValue; +import * as ConfigProvider from "./config-provider"; +export import ConfigProvider = ConfigProvider.ConfigProvider; +import * as ConfigValues from "./config-values"; +export import ConfigValues = ConfigValues.ConfigValues; +import * as Connection from "./connection"; +export import Connection = Connection.Connection; +import * as ConnectionDetails from "./connection-details"; +export import ConnectionDetails = ConnectionDetails.ConnectionDetails; +import * as ConnectionProperty from "./connection-property"; +export import ConnectionProperty = ConnectionProperty.ConnectionProperty; +import * as ConnectionSummary from "./connection-summary"; +export import ConnectionSummary = ConnectionSummary.ConnectionSummary; +import * as ConnectionSummaryCollection from "./connection-summary-collection"; +export import ConnectionSummaryCollection = ConnectionSummaryCollection.ConnectionSummaryCollection; +import * as ConnectionValidation from "./connection-validation"; +export import ConnectionValidation = ConnectionValidation.ConnectionValidation; +import * as ConnectionValidationSummary from "./connection-validation-summary"; +export import ConnectionValidationSummary = ConnectionValidationSummary.ConnectionValidationSummary; +import * as ConnectionValidationSummaryCollection from "./connection-validation-summary-collection"; +export import ConnectionValidationSummaryCollection = ConnectionValidationSummaryCollection.ConnectionValidationSummaryCollection; +import * as CountStatistic from "./count-statistic"; +export import CountStatistic = CountStatistic.CountStatistic; +import * as CountStatisticSummary from "./count-statistic-summary"; +export import CountStatisticSummary = CountStatisticSummary.CountStatisticSummary; +import * as CreateApplicationDetails from "./create-application-details"; +export import CreateApplicationDetails = CreateApplicationDetails.CreateApplicationDetails; +import * as CreateConfigProvider from "./create-config-provider"; +export import CreateConfigProvider = CreateConfigProvider.CreateConfigProvider; +import * as CreateConnectionDetails from "./create-connection-details"; +export import CreateConnectionDetails = CreateConnectionDetails.CreateConnectionDetails; +import * as CreateConnectionValidationDetails from "./create-connection-validation-details"; +export import CreateConnectionValidationDetails = CreateConnectionValidationDetails.CreateConnectionValidationDetails; +import * as CreateDataAssetDetails from "./create-data-asset-details"; +export import CreateDataAssetDetails = CreateDataAssetDetails.CreateDataAssetDetails; +import * as CreateDataFlowDetails from "./create-data-flow-details"; +export import CreateDataFlowDetails = CreateDataFlowDetails.CreateDataFlowDetails; +import * as CreateDataFlowValidationDetails from "./create-data-flow-validation-details"; +export import CreateDataFlowValidationDetails = CreateDataFlowValidationDetails.CreateDataFlowValidationDetails; +import * as CreateEntityShapeDetails from "./create-entity-shape-details"; +export import CreateEntityShapeDetails = CreateEntityShapeDetails.CreateEntityShapeDetails; +import * as CreateFolderDetails from "./create-folder-details"; +export import CreateFolderDetails = CreateFolderDetails.CreateFolderDetails; +import * as CreatePatchDetails from "./create-patch-details"; +export import CreatePatchDetails = CreatePatchDetails.CreatePatchDetails; +import * as CreateProjectDetails from "./create-project-details"; +export import CreateProjectDetails = CreateProjectDetails.CreateProjectDetails; +import * as CreateTaskDetails from "./create-task-details"; +export import CreateTaskDetails = CreateTaskDetails.CreateTaskDetails; +import * as CreateTaskRunDetails from "./create-task-run-details"; +export import CreateTaskRunDetails = CreateTaskRunDetails.CreateTaskRunDetails; +import * as CreateTaskValidationDetails from "./create-task-validation-details"; +export import CreateTaskValidationDetails = CreateTaskValidationDetails.CreateTaskValidationDetails; +import * as CreateWorkspaceDetails from "./create-workspace-details"; +export import CreateWorkspaceDetails = CreateWorkspaceDetails.CreateWorkspaceDetails; +import * as DataAsset from "./data-asset"; +export import DataAsset = DataAsset.DataAsset; +import * as DataAssetSummary from "./data-asset-summary"; +export import DataAssetSummary = DataAssetSummary.DataAssetSummary; +import * as DataAssetSummaryCollection from "./data-asset-summary-collection"; +export import DataAssetSummaryCollection = DataAssetSummaryCollection.DataAssetSummaryCollection; +import * as DataEntity from "./data-entity"; +export import DataEntity = DataEntity.DataEntity; +import * as DataEntityDetails from "./data-entity-details"; +export import DataEntityDetails = DataEntityDetails.DataEntityDetails; +import * as DataEntitySummary from "./data-entity-summary"; +export import DataEntitySummary = DataEntitySummary.DataEntitySummary; +import * as DataEntitySummaryCollection from "./data-entity-summary-collection"; +export import DataEntitySummaryCollection = DataEntitySummaryCollection.DataEntitySummaryCollection; +import * as DataFlow from "./data-flow"; +export import DataFlow = DataFlow.DataFlow; +import * as DataFlowDetails from "./data-flow-details"; +export import DataFlowDetails = DataFlowDetails.DataFlowDetails; +import * as DataFlowSummary from "./data-flow-summary"; +export import DataFlowSummary = DataFlowSummary.DataFlowSummary; +import * as DataFlowSummaryCollection from "./data-flow-summary-collection"; +export import DataFlowSummaryCollection = DataFlowSummaryCollection.DataFlowSummaryCollection; +import * as DataFlowValidation from "./data-flow-validation"; +export import DataFlowValidation = DataFlowValidation.DataFlowValidation; +import * as DataFlowValidationSummary from "./data-flow-validation-summary"; +export import DataFlowValidationSummary = DataFlowValidationSummary.DataFlowValidationSummary; +import * as DataFlowValidationSummaryCollection from "./data-flow-validation-summary-collection"; +export import DataFlowValidationSummaryCollection = DataFlowValidationSummaryCollection.DataFlowValidationSummaryCollection; +import * as DataFormat from "./data-format"; +export import DataFormat = DataFormat.DataFormat; +import * as DependentObject from "./dependent-object"; +export import DependentObject = DependentObject.DependentObject; +import * as DependentObjectSummary from "./dependent-object-summary"; +export import DependentObjectSummary = DependentObjectSummary.DependentObjectSummary; +import * as DependentObjectSummaryCollection from "./dependent-object-summary-collection"; +export import DependentObjectSummaryCollection = DependentObjectSummaryCollection.DependentObjectSummaryCollection; +import * as DynamicTypeHandler from "./dynamic-type-handler"; +export import DynamicTypeHandler = DynamicTypeHandler.DynamicTypeHandler; +import * as EntityShape from "./entity-shape"; +export import EntityShape = EntityShape.EntityShape; +import * as ErrorDetails from "./error-details"; +export import ErrorDetails = ErrorDetails.ErrorDetails; +import * as Expression from "./expression"; +export import Expression = Expression.Expression; +import * as FieldMap from "./field-map"; +export import FieldMap = FieldMap.FieldMap; +import * as FlowNode from "./flow-node"; +export import FlowNode = FlowNode.FlowNode; +import * as FlowPortLink from "./flow-port-link"; +export import FlowPortLink = FlowPortLink.FlowPortLink; +import * as Folder from "./folder"; +export import Folder = Folder.Folder; +import * as FolderDetails from "./folder-details"; +export import FolderDetails = FolderDetails.FolderDetails; +import * as FolderSummary from "./folder-summary"; +export import FolderSummary = FolderSummary.FolderSummary; +import * as FolderSummaryCollection from "./folder-summary-collection"; +export import FolderSummaryCollection = FolderSummaryCollection.FolderSummaryCollection; +import * as Key from "./key"; +export import Key = Key.Key; +import * as KeyAttribute from "./key-attribute"; +export import KeyAttribute = KeyAttribute.KeyAttribute; +import * as KeyRange from "./key-range"; +export import KeyRange = KeyRange.KeyRange; +import * as Message from "./message"; +export import Message = Message.Message; +import * as NativeShapeField from "./native-shape-field"; +export import NativeShapeField = NativeShapeField.NativeShapeField; +import * as ObjectMetadata from "./object-metadata"; +export import ObjectMetadata = ObjectMetadata.ObjectMetadata; +import * as Operator from "./operator"; +export import Operator = Operator.Operator; +import * as ParameterValue from "./parameter-value"; +export import ParameterValue = ParameterValue.ParameterValue; +import * as ParentReference from "./parent-reference"; +export import ParentReference = ParentReference.ParentReference; +import * as PartitionConfig from "./partition-config"; +export import PartitionConfig = PartitionConfig.PartitionConfig; +import * as Patch from "./patch"; +export import Patch = Patch.Patch; +import * as PatchObjectMetadata from "./patch-object-metadata"; +export import PatchObjectMetadata = PatchObjectMetadata.PatchObjectMetadata; +import * as PatchSummary from "./patch-summary"; +export import PatchSummary = PatchSummary.PatchSummary; +import * as PatchSummaryCollection from "./patch-summary-collection"; +export import PatchSummaryCollection = PatchSummaryCollection.PatchSummaryCollection; +import * as PrimaryKey from "./primary-key"; +export import PrimaryKey = PrimaryKey.PrimaryKey; +import * as Project from "./project"; +export import Project = Project.Project; +import * as ProjectDetails from "./project-details"; +export import ProjectDetails = ProjectDetails.ProjectDetails; +import * as ProjectSummary from "./project-summary"; +export import ProjectSummary = ProjectSummary.ProjectSummary; +import * as ProjectSummaryCollection from "./project-summary-collection"; +export import ProjectSummaryCollection = ProjectSummaryCollection.ProjectSummaryCollection; +import * as ProjectionRule from "./projection-rule"; +export import ProjectionRule = ProjectionRule.ProjectionRule; +import * as PublishedObject from "./published-object"; +export import PublishedObject = PublishedObject.PublishedObject; +import * as PublishedObjectSummary from "./published-object-summary"; +export import PublishedObjectSummary = PublishedObjectSummary.PublishedObjectSummary; +import * as PublishedObjectSummaryCollection from "./published-object-summary-collection"; +export import PublishedObjectSummaryCollection = PublishedObjectSummaryCollection.PublishedObjectSummaryCollection; +import * as PushDownOperation from "./push-down-operation"; +export import PushDownOperation = PushDownOperation.PushDownOperation; +import * as RegistryMetadata from "./registry-metadata"; +export import RegistryMetadata = RegistryMetadata.RegistryMetadata; +import * as RootObject from "./root-object"; +export import RootObject = RootObject.RootObject; +import * as Schema from "./schema"; +export import Schema = Schema.Schema; +import * as SchemaSummary from "./schema-summary"; +export import SchemaSummary = SchemaSummary.SchemaSummary; +import * as SchemaSummaryCollection from "./schema-summary-collection"; +export import SchemaSummaryCollection = SchemaSummaryCollection.SchemaSummaryCollection; +import * as SortClause from "./sort-clause"; +export import SortClause = SortClause.SortClause; +import * as StructuredType from "./structured-type"; +export import StructuredType = StructuredType.StructuredType; +import * as Task from "./task"; +export import Task = Task.Task; +import * as TaskRun from "./task-run"; +export import TaskRun = TaskRun.TaskRun; +import * as TaskRunDetails from "./task-run-details"; +export import TaskRunDetails = TaskRunDetails.TaskRunDetails; +import * as TaskRunLogSummary from "./task-run-log-summary"; +export import TaskRunLogSummary = TaskRunLogSummary.TaskRunLogSummary; +import * as TaskRunSummary from "./task-run-summary"; +export import TaskRunSummary = TaskRunSummary.TaskRunSummary; +import * as TaskRunSummaryCollection from "./task-run-summary-collection"; +export import TaskRunSummaryCollection = TaskRunSummaryCollection.TaskRunSummaryCollection; +import * as TaskSummary from "./task-summary"; +export import TaskSummary = TaskSummary.TaskSummary; +import * as TaskSummaryCollection from "./task-summary-collection"; +export import TaskSummaryCollection = TaskSummaryCollection.TaskSummaryCollection; +import * as TaskValidation from "./task-validation"; +export import TaskValidation = TaskValidation.TaskValidation; +import * as TaskValidationSummary from "./task-validation-summary"; +export import TaskValidationSummary = TaskValidationSummary.TaskValidationSummary; +import * as TaskValidationSummaryCollection from "./task-validation-summary-collection"; +export import TaskValidationSummaryCollection = TaskValidationSummaryCollection.TaskValidationSummaryCollection; +import * as TypeLibrary from "./type-library"; +export import TypeLibrary = TypeLibrary.TypeLibrary; +import * as TypeSystem from "./type-system"; +export import TypeSystem = TypeSystem.TypeSystem; +import * as TypedObject from "./typed-object"; +export import TypedObject = TypedObject.TypedObject; +import * as UIProperties from "./u-iproperties"; +export import UIProperties = UIProperties.UIProperties; +import * as UpdateApplicationDetails from "./update-application-details"; +export import UpdateApplicationDetails = UpdateApplicationDetails.UpdateApplicationDetails; +import * as UpdateConnectionDetails from "./update-connection-details"; +export import UpdateConnectionDetails = UpdateConnectionDetails.UpdateConnectionDetails; +import * as UpdateDataAssetDetails from "./update-data-asset-details"; +export import UpdateDataAssetDetails = UpdateDataAssetDetails.UpdateDataAssetDetails; +import * as UpdateDataFlowDetails from "./update-data-flow-details"; +export import UpdateDataFlowDetails = UpdateDataFlowDetails.UpdateDataFlowDetails; +import * as UpdateFolderDetails from "./update-folder-details"; +export import UpdateFolderDetails = UpdateFolderDetails.UpdateFolderDetails; +import * as UpdateProjectDetails from "./update-project-details"; +export import UpdateProjectDetails = UpdateProjectDetails.UpdateProjectDetails; +import * as UpdateTaskDetails from "./update-task-details"; +export import UpdateTaskDetails = UpdateTaskDetails.UpdateTaskDetails; +import * as UpdateTaskRunDetails from "./update-task-run-details"; +export import UpdateTaskRunDetails = UpdateTaskRunDetails.UpdateTaskRunDetails; +import * as UpdateWorkspaceDetails from "./update-workspace-details"; +export import UpdateWorkspaceDetails = UpdateWorkspaceDetails.UpdateWorkspaceDetails; +import * as ValidationMessage from "./validation-message"; +export import ValidationMessage = ValidationMessage.ValidationMessage; +import * as WorkRequest from "./work-request"; +export import WorkRequest = WorkRequest.WorkRequest; +import * as WorkRequestError from "./work-request-error"; +export import WorkRequestError = WorkRequestError.WorkRequestError; +import * as WorkRequestLogEntry from "./work-request-log-entry"; +export import WorkRequestLogEntry = WorkRequestLogEntry.WorkRequestLogEntry; +import * as WorkRequestResource from "./work-request-resource"; +export import WorkRequestResource = WorkRequestResource.WorkRequestResource; +import * as WorkRequestSummary from "./work-request-summary"; +export import WorkRequestSummary = WorkRequestSummary.WorkRequestSummary; +import * as Workspace from "./workspace"; +export import Workspace = Workspace.Workspace; +import * as WorkspaceSummary from "./workspace-summary"; +export import WorkspaceSummary = WorkspaceSummary.WorkspaceSummary; + +import * as AbstractField from "./abstract-field"; +export import AbstractField = AbstractField.AbstractField; +import * as Aggregator from "./aggregator"; +export import Aggregator = Aggregator.Aggregator; +import * as CompositeFieldMap from "./composite-field-map"; +export import CompositeFieldMap = CompositeFieldMap.CompositeFieldMap; +import * as CompositeType from "./composite-type"; +export import CompositeType = CompositeType.CompositeType; +import * as ConditionalInputLink from "./conditional-input-link"; +export import ConditionalInputLink = ConditionalInputLink.ConditionalInputLink; +import * as ConfiguredType from "./configured-type"; +export import ConfiguredType = ConfiguredType.ConfiguredType; +import * as ConnectionFromAdwc from "./connection-from-adwc"; +export import ConnectionFromAdwc = ConnectionFromAdwc.ConnectionFromAdwc; +import * as ConnectionFromAdwcDetails from "./connection-from-adwc-details"; +export import ConnectionFromAdwcDetails = ConnectionFromAdwcDetails.ConnectionFromAdwcDetails; +import * as ConnectionFromAtp from "./connection-from-atp"; +export import ConnectionFromAtp = ConnectionFromAtp.ConnectionFromAtp; +import * as ConnectionFromAtpDetails from "./connection-from-atp-details"; +export import ConnectionFromAtpDetails = ConnectionFromAtpDetails.ConnectionFromAtpDetails; +import * as ConnectionFromObjectStorage from "./connection-from-object-storage"; +export import ConnectionFromObjectStorage = ConnectionFromObjectStorage.ConnectionFromObjectStorage; +import * as ConnectionFromObjectStorageDetails from "./connection-from-object-storage-details"; +export import ConnectionFromObjectStorageDetails = ConnectionFromObjectStorageDetails.ConnectionFromObjectStorageDetails; +import * as ConnectionFromOracle from "./connection-from-oracle"; +export import ConnectionFromOracle = ConnectionFromOracle.ConnectionFromOracle; +import * as ConnectionFromOracleDetails from "./connection-from-oracle-details"; +export import ConnectionFromOracleDetails = ConnectionFromOracleDetails.ConnectionFromOracleDetails; +import * as ConnectionSummaryFromAdwc from "./connection-summary-from-adwc"; +export import ConnectionSummaryFromAdwc = ConnectionSummaryFromAdwc.ConnectionSummaryFromAdwc; +import * as ConnectionSummaryFromAtp from "./connection-summary-from-atp"; +export import ConnectionSummaryFromAtp = ConnectionSummaryFromAtp.ConnectionSummaryFromAtp; +import * as ConnectionSummaryFromObjectStorage from "./connection-summary-from-object-storage"; +export import ConnectionSummaryFromObjectStorage = ConnectionSummaryFromObjectStorage.ConnectionSummaryFromObjectStorage; +import * as ConnectionSummaryFromOracle from "./connection-summary-from-oracle"; +export import ConnectionSummaryFromOracle = ConnectionSummaryFromOracle.ConnectionSummaryFromOracle; +import * as CreateConnectionFromAdwc from "./create-connection-from-adwc"; +export import CreateConnectionFromAdwc = CreateConnectionFromAdwc.CreateConnectionFromAdwc; +import * as CreateConnectionFromAtp from "./create-connection-from-atp"; +export import CreateConnectionFromAtp = CreateConnectionFromAtp.CreateConnectionFromAtp; +import * as CreateConnectionFromObjectStorage from "./create-connection-from-object-storage"; +export import CreateConnectionFromObjectStorage = CreateConnectionFromObjectStorage.CreateConnectionFromObjectStorage; +import * as CreateConnectionFromOracle from "./create-connection-from-oracle"; +export import CreateConnectionFromOracle = CreateConnectionFromOracle.CreateConnectionFromOracle; +import * as CreateDataAssetFromAdwc from "./create-data-asset-from-adwc"; +export import CreateDataAssetFromAdwc = CreateDataAssetFromAdwc.CreateDataAssetFromAdwc; +import * as CreateDataAssetFromAtp from "./create-data-asset-from-atp"; +export import CreateDataAssetFromAtp = CreateDataAssetFromAtp.CreateDataAssetFromAtp; +import * as CreateDataAssetFromObjectStorage from "./create-data-asset-from-object-storage"; +export import CreateDataAssetFromObjectStorage = CreateDataAssetFromObjectStorage.CreateDataAssetFromObjectStorage; +import * as CreateDataAssetFromOracle from "./create-data-asset-from-oracle"; +export import CreateDataAssetFromOracle = CreateDataAssetFromOracle.CreateDataAssetFromOracle; +import * as CreateEntityShapeFromFile from "./create-entity-shape-from-file"; +export import CreateEntityShapeFromFile = CreateEntityShapeFromFile.CreateEntityShapeFromFile; +import * as CreateTaskFromDataLoaderTask from "./create-task-from-data-loader-task"; +export import CreateTaskFromDataLoaderTask = CreateTaskFromDataLoaderTask.CreateTaskFromDataLoaderTask; +import * as CreateTaskFromIntegrationTask from "./create-task-from-integration-task"; +export import CreateTaskFromIntegrationTask = CreateTaskFromIntegrationTask.CreateTaskFromIntegrationTask; +import * as CreateTaskValidationFromDataLoaderTask from "./create-task-validation-from-data-loader-task"; +export import CreateTaskValidationFromDataLoaderTask = CreateTaskValidationFromDataLoaderTask.CreateTaskValidationFromDataLoaderTask; +import * as CreateTaskValidationFromIntegrationTask from "./create-task-validation-from-integration-task"; +export import CreateTaskValidationFromIntegrationTask = CreateTaskValidationFromIntegrationTask.CreateTaskValidationFromIntegrationTask; +import * as CsvFormatAttribute from "./csv-format-attribute"; +export import CsvFormatAttribute = CsvFormatAttribute.CsvFormatAttribute; +import * as DataAssetFromAdwcDetails from "./data-asset-from-adwc-details"; +export import DataAssetFromAdwcDetails = DataAssetFromAdwcDetails.DataAssetFromAdwcDetails; +import * as DataAssetFromAtpDetails from "./data-asset-from-atp-details"; +export import DataAssetFromAtpDetails = DataAssetFromAtpDetails.DataAssetFromAtpDetails; +import * as DataAssetFromObjectStorageDetails from "./data-asset-from-object-storage-details"; +export import DataAssetFromObjectStorageDetails = DataAssetFromObjectStorageDetails.DataAssetFromObjectStorageDetails; +import * as DataAssetFromOracleDetails from "./data-asset-from-oracle-details"; +export import DataAssetFromOracleDetails = DataAssetFromOracleDetails.DataAssetFromOracleDetails; +import * as DataAssetSummaryFromAdwc from "./data-asset-summary-from-adwc"; +export import DataAssetSummaryFromAdwc = DataAssetSummaryFromAdwc.DataAssetSummaryFromAdwc; +import * as DataAssetSummaryFromAtp from "./data-asset-summary-from-atp"; +export import DataAssetSummaryFromAtp = DataAssetSummaryFromAtp.DataAssetSummaryFromAtp; +import * as DataAssetSummaryFromObjectStorage from "./data-asset-summary-from-object-storage"; +export import DataAssetSummaryFromObjectStorage = DataAssetSummaryFromObjectStorage.DataAssetSummaryFromObjectStorage; +import * as DataAssetSummaryFromOracle from "./data-asset-summary-from-oracle"; +export import DataAssetSummaryFromOracle = DataAssetSummaryFromOracle.DataAssetSummaryFromOracle; +import * as DataEntityFromFile from "./data-entity-from-file"; +export import DataEntityFromFile = DataEntityFromFile.DataEntityFromFile; +import * as DataEntityFromFileEntityDetails from "./data-entity-from-file-entity-details"; +export import DataEntityFromFileEntityDetails = DataEntityFromFileEntityDetails.DataEntityFromFileEntityDetails; +import * as DataEntityFromTable from "./data-entity-from-table"; +export import DataEntityFromTable = DataEntityFromTable.DataEntityFromTable; +import * as DataEntityFromTableEntityDetails from "./data-entity-from-table-entity-details"; +export import DataEntityFromTableEntityDetails = DataEntityFromTableEntityDetails.DataEntityFromTableEntityDetails; +import * as DataEntityFromView from "./data-entity-from-view"; +export import DataEntityFromView = DataEntityFromView.DataEntityFromView; +import * as DataEntityFromViewEntityDetails from "./data-entity-from-view-entity-details"; +export import DataEntityFromViewEntityDetails = DataEntityFromViewEntityDetails.DataEntityFromViewEntityDetails; +import * as DataEntitySummaryFromFile from "./data-entity-summary-from-file"; +export import DataEntitySummaryFromFile = DataEntitySummaryFromFile.DataEntitySummaryFromFile; +import * as DataEntitySummaryFromTable from "./data-entity-summary-from-table"; +export import DataEntitySummaryFromTable = DataEntitySummaryFromTable.DataEntitySummaryFromTable; +import * as DataEntitySummaryFromView from "./data-entity-summary-from-view"; +export import DataEntitySummaryFromView = DataEntitySummaryFromView.DataEntitySummaryFromView; +import * as DataType from "./data-type"; +export import DataType = DataType.DataType; +import * as DerivedField from "./derived-field"; +export import DerivedField = DerivedField.DerivedField; +import * as DerivedType from "./derived-type"; +export import DerivedType = DerivedType.DerivedType; +import * as DirectFieldMap from "./direct-field-map"; +export import DirectFieldMap = DirectFieldMap.DirectFieldMap; +import * as DirectNamedFieldMap from "./direct-named-field-map"; +export import DirectNamedFieldMap = DirectNamedFieldMap.DirectNamedFieldMap; +import * as DynamicInputField from "./dynamic-input-field"; +export import DynamicInputField = DynamicInputField.DynamicInputField; +import * as DynamicProxyField from "./dynamic-proxy-field"; +export import DynamicProxyField = DynamicProxyField.DynamicProxyField; +import * as DynamicType from "./dynamic-type"; +export import DynamicType = DynamicType.DynamicType; +import * as EntityShapeFromFile from "./entity-shape-from-file"; +export import EntityShapeFromFile = EntityShapeFromFile.EntityShapeFromFile; +import * as Filter from "./filter"; +export import Filter = Filter.Filter; +import * as FilterPush from "./filter-push"; +export import FilterPush = FilterPush.FilterPush; +import * as FlowPort from "./flow-port"; +export import FlowPort = FlowPort.FlowPort; +import * as ForeignKey from "./foreign-key"; +export import ForeignKey = ForeignKey.ForeignKey; +import * as InputField from "./input-field"; +export import InputField = InputField.InputField; +import * as InputLink from "./input-link"; +export import InputLink = InputLink.InputLink; +import * as InputPort from "./input-port"; +export import InputPort = InputPort.InputPort; +import * as JavaType from "./java-type"; +export import JavaType = JavaType.JavaType; +import * as Join from "./join"; +export import Join = Join.Join; +import * as Joiner from "./joiner"; +export import Joiner = Joiner.Joiner; +import * as JsonFormatAttribute from "./json-format-attribute"; +export import JsonFormatAttribute = JsonFormatAttribute.JsonFormatAttribute; +import * as KeyRangePartitionConfig from "./key-range-partition-config"; +export import KeyRangePartitionConfig = KeyRangePartitionConfig.KeyRangePartitionConfig; +import * as NameListRule from "./name-list-rule"; +export import NameListRule = NameListRule.NameListRule; +import * as NamePatternRule from "./name-pattern-rule"; +export import NamePatternRule = NamePatternRule.NamePatternRule; +import * as OracleAdwcWriteAttribute from "./oracle-adwc-write-attribute"; +export import OracleAdwcWriteAttribute = OracleAdwcWriteAttribute.OracleAdwcWriteAttribute; +import * as OracleAtpWriteAttribute from "./oracle-atp-write-attribute"; +export import OracleAtpWriteAttribute = OracleAtpWriteAttribute.OracleAtpWriteAttribute; +import * as OracleReadAttribute from "./oracle-read-attribute"; +export import OracleReadAttribute = OracleReadAttribute.OracleReadAttribute; +import * as OracleWriteAttribute from "./oracle-write-attribute"; +export import OracleWriteAttribute = OracleWriteAttribute.OracleWriteAttribute; +import * as OutputField from "./output-field"; +export import OutputField = OutputField.OutputField; +import * as OutputLink from "./output-link"; +export import OutputLink = OutputLink.OutputLink; +import * as OutputPort from "./output-port"; +export import OutputPort = OutputPort.OutputPort; +import * as Parameter from "./parameter"; +export import Parameter = Parameter.Parameter; +import * as Projection from "./projection"; +export import Projection = Projection.Projection; +import * as ProxyField from "./proxy-field"; +export import ProxyField = ProxyField.ProxyField; +import * as PublishedObjectFromDataLoaderTask from "./published-object-from-data-loader-task"; +export import PublishedObjectFromDataLoaderTask = PublishedObjectFromDataLoaderTask.PublishedObjectFromDataLoaderTask; +import * as PublishedObjectFromIntegrationTask from "./published-object-from-integration-task"; +export import PublishedObjectFromIntegrationTask = PublishedObjectFromIntegrationTask.PublishedObjectFromIntegrationTask; +import * as PublishedObjectSummaryFromDataLoaderTask from "./published-object-summary-from-data-loader-task"; +export import PublishedObjectSummaryFromDataLoaderTask = PublishedObjectSummaryFromDataLoaderTask.PublishedObjectSummaryFromDataLoaderTask; +import * as PublishedObjectSummaryFromIntegrationTask from "./published-object-summary-from-integration-task"; +export import PublishedObjectSummaryFromIntegrationTask = PublishedObjectSummaryFromIntegrationTask.PublishedObjectSummaryFromIntegrationTask; +import * as Query from "./query"; +export import Query = Query.Query; +import * as ReadOperationConfig from "./read-operation-config"; +export import ReadOperationConfig = ReadOperationConfig.ReadOperationConfig; +import * as RenameRule from "./rename-rule"; +export import RenameRule = RenameRule.RenameRule; +import * as RuleBasedFieldMap from "./rule-based-field-map"; +export import RuleBasedFieldMap = RuleBasedFieldMap.RuleBasedFieldMap; +import * as RuleTypeConfig from "./rule-type-config"; +export import RuleTypeConfig = RuleTypeConfig.RuleTypeConfig; +import * as Select from "./select"; +export import Select = Select.Select; +import * as Shape from "./shape"; +export import Shape = Shape.Shape; +import * as ShapeField from "./shape-field"; +export import ShapeField = ShapeField.ShapeField; +import * as Sort from "./sort"; +export import Sort = Sort.Sort; +import * as Source from "./source"; +export import Source = Source.Source; +import * as Target from "./target"; +export import Target = Target.Target; +import * as TaskFromDataLoaderTaskDetails from "./task-from-data-loader-task-details"; +export import TaskFromDataLoaderTaskDetails = TaskFromDataLoaderTaskDetails.TaskFromDataLoaderTaskDetails; +import * as TaskFromIntegrationTaskDetails from "./task-from-integration-task-details"; +export import TaskFromIntegrationTaskDetails = TaskFromIntegrationTaskDetails.TaskFromIntegrationTaskDetails; +import * as TaskSummaryFromDataLoaderTask from "./task-summary-from-data-loader-task"; +export import TaskSummaryFromDataLoaderTask = TaskSummaryFromDataLoaderTask.TaskSummaryFromDataLoaderTask; +import * as TaskSummaryFromIntegrationTask from "./task-summary-from-integration-task"; +export import TaskSummaryFromIntegrationTask = TaskSummaryFromIntegrationTask.TaskSummaryFromIntegrationTask; +import * as TypeListRule from "./type-list-rule"; +export import TypeListRule = TypeListRule.TypeListRule; +import * as TypedNamePatternRule from "./typed-name-pattern-rule"; +export import TypedNamePatternRule = TypedNamePatternRule.TypedNamePatternRule; +import * as UniqueKey from "./unique-key"; +export import UniqueKey = UniqueKey.UniqueKey; +import * as UpdateConnectionFromAdwc from "./update-connection-from-adwc"; +export import UpdateConnectionFromAdwc = UpdateConnectionFromAdwc.UpdateConnectionFromAdwc; +import * as UpdateConnectionFromAtp from "./update-connection-from-atp"; +export import UpdateConnectionFromAtp = UpdateConnectionFromAtp.UpdateConnectionFromAtp; +import * as UpdateConnectionFromObjectStorage from "./update-connection-from-object-storage"; +export import UpdateConnectionFromObjectStorage = UpdateConnectionFromObjectStorage.UpdateConnectionFromObjectStorage; +import * as UpdateConnectionFromOracle from "./update-connection-from-oracle"; +export import UpdateConnectionFromOracle = UpdateConnectionFromOracle.UpdateConnectionFromOracle; +import * as UpdateDataAssetFromAdwc from "./update-data-asset-from-adwc"; +export import UpdateDataAssetFromAdwc = UpdateDataAssetFromAdwc.UpdateDataAssetFromAdwc; +import * as UpdateDataAssetFromAtp from "./update-data-asset-from-atp"; +export import UpdateDataAssetFromAtp = UpdateDataAssetFromAtp.UpdateDataAssetFromAtp; +import * as UpdateDataAssetFromObjectStorage from "./update-data-asset-from-object-storage"; +export import UpdateDataAssetFromObjectStorage = UpdateDataAssetFromObjectStorage.UpdateDataAssetFromObjectStorage; +import * as UpdateDataAssetFromOracle from "./update-data-asset-from-oracle"; +export import UpdateDataAssetFromOracle = UpdateDataAssetFromOracle.UpdateDataAssetFromOracle; +import * as UpdateTaskFromDataLoaderTask from "./update-task-from-data-loader-task"; +export import UpdateTaskFromDataLoaderTask = UpdateTaskFromDataLoaderTask.UpdateTaskFromDataLoaderTask; +import * as UpdateTaskFromIntegrationTask from "./update-task-from-integration-task"; +export import UpdateTaskFromIntegrationTask = UpdateTaskFromIntegrationTask.UpdateTaskFromIntegrationTask; +import * as WriteOperationConfig from "./write-operation-config"; +export import WriteOperationConfig = WriteOperationConfig.WriteOperationConfig; diff --git a/lib/dataintegration/lib/model/input-field.ts b/lib/dataintegration/lib/model/input-field.ts new file mode 100644 index 0000000000..d724451743 --- /dev/null +++ b/lib/dataintegration/lib/model/input-field.ts @@ -0,0 +1,48 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 input field for an operator. + */ +export interface InputField extends model.TypedObject { + "type"?: + | model.ConfiguredType + | model.JavaType + | model.DynamicType + | model.DerivedType + | model.DataType + | model.CompositeType; + /** + * Labels are keywords or labels that you can add to data assets, dataflows etc. You can define your own labels and use them to categorize content. + */ + "labels"?: Array; + + "modelType": string; +} + +export namespace InputField { + export function getJsonObj(obj: InputField, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as InputField)), + ...{ + "type": obj.type ? model.BaseType.getJsonObj(obj.type) : undefined + } + }; + + return jsonObj; + } + export const modelType = "INPUT_FIELD"; +} diff --git a/lib/dataintegration/lib/model/input-link.ts b/lib/dataintegration/lib/model/input-link.ts new file mode 100644 index 0000000000..7bd0e6384f --- /dev/null +++ b/lib/dataintegration/lib/model/input-link.ts @@ -0,0 +1,46 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 input links. + */ +export interface InputLink extends model.FlowPortLink { + /** + * From link reference. + */ + "fromLink"?: string; + "fieldMap"?: + | model.RuleBasedFieldMap + | model.DirectFieldMap + | model.CompositeFieldMap + | model.DirectNamedFieldMap; + + "modelType": string; +} + +export namespace InputLink { + export function getJsonObj(obj: InputLink, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.FlowPortLink.getJsonObj(obj) as InputLink)), + ...{ + "fieldMap": obj.fieldMap ? model.FieldMap.getJsonObj(obj.fieldMap) : undefined + } + }; + + return jsonObj; + } + export const modelType = "INPUT_LINK"; +} diff --git a/lib/dataintegration/lib/model/input-port.ts b/lib/dataintegration/lib/model/input-port.ts new file mode 100644 index 0000000000..c38701be98 --- /dev/null +++ b/lib/dataintegration/lib/model/input-port.ts @@ -0,0 +1,61 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 input port details. + */ +export interface InputPort extends model.TypedObject { + /** + * The port details for the data asset.Type + */ + "portType"?: InputPort.PortType; + /** + * fields + */ + "fields"?: Array; + + "modelType": string; +} + +export namespace InputPort { + export enum PortType { + DATA = "DATA", + CONTROL = "CONTROL", + MODEL = "MODEL", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: InputPort, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as InputPort)), + ...{ + "fields": obj.fields + ? obj.fields.map(item => { + return model.TypedObject.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "INPUT_PORT"; +} diff --git a/lib/dataintegration/lib/model/java-type.ts b/lib/dataintegration/lib/model/java-type.ts new file mode 100644 index 0000000000..54c4802827 --- /dev/null +++ b/lib/dataintegration/lib/model/java-type.ts @@ -0,0 +1,44 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 java type object. + */ +export interface JavaType extends model.BaseType { + /** + * javaTypeName + */ + "javaTypeName"?: string; + "configDefinition"?: model.ConfigDefinition; + + "modelType": string; +} + +export namespace JavaType { + export function getJsonObj(obj: JavaType, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.BaseType.getJsonObj(obj) as JavaType)), + ...{ + "configDefinition": obj.configDefinition + ? model.ConfigDefinition.getJsonObj(obj.configDefinition) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "JAVA_TYPE"; +} diff --git a/lib/dataintegration/lib/model/join.ts b/lib/dataintegration/lib/model/join.ts new file mode 100644 index 0000000000..734c2b2fab --- /dev/null +++ b/lib/dataintegration/lib/model/join.ts @@ -0,0 +1,56 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the join operator. The join operator links data from multiple inbound sources. + */ +export interface Join extends model.PushDownOperation { + /** + * The join condition. + */ + "condition"?: string; + /** + * The type of join. + */ + "policy"?: Join.Policy; + + "modelType": string; +} + +export namespace Join { + export enum Policy { + INNERJOIN = "INNER_JOIN", + LEFTJOIN = "LEFT_JOIN", + RIGHTJOIN = "RIGHT_JOIN", + FULLJOIN = "FULL_JOIN", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Join, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.PushDownOperation.getJsonObj(obj) as Join)), + ...{} + }; + + return jsonObj; + } + export const modelType = "JOIN"; +} diff --git a/lib/dataintegration/lib/model/joiner.ts b/lib/dataintegration/lib/model/joiner.ts new file mode 100644 index 0000000000..7d2f467f9a --- /dev/null +++ b/lib/dataintegration/lib/model/joiner.ts @@ -0,0 +1,57 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 a joiner object. + */ +export interface Joiner extends model.Operator { + /** + * joinType + */ + "joinType"?: Joiner.JoinType; + "joinCondition"?: model.Expression; + + "modelType": string; +} + +export namespace Joiner { + export enum JoinType { + INNER = "INNER", + FULL = "FULL", + LEFT = "LEFT", + RIGHT = "RIGHT", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Joiner, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Operator.getJsonObj(obj) as Joiner)), + ...{ + "joinCondition": obj.joinCondition + ? model.Expression.getJsonObj(obj.joinCondition) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "JOINER_OPERATOR"; +} diff --git a/lib/dataintegration/lib/model/json-format-attribute.ts b/lib/dataintegration/lib/model/json-format-attribute.ts new file mode 100644 index 0000000000..ae7c62c883 --- /dev/null +++ b/lib/dataintegration/lib/model/json-format-attribute.ts @@ -0,0 +1,41 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 JSON file format attribute. + */ +export interface JsonFormatAttribute extends model.AbstractFormatAttribute { + /** + * The encoding for the file. + */ + "encoding"?: string; + + "modelType": string; +} + +export namespace JsonFormatAttribute { + export function getJsonObj(obj: JsonFormatAttribute, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AbstractFormatAttribute.getJsonObj(obj) as JsonFormatAttribute)), + ...{} + }; + + return jsonObj; + } + export const modelType = "JSON_FORMAT"; +} diff --git a/lib/dataintegration/lib/model/key-attribute.ts b/lib/dataintegration/lib/model/key-attribute.ts new file mode 100644 index 0000000000..692fdc4915 --- /dev/null +++ b/lib/dataintegration/lib/model/key-attribute.ts @@ -0,0 +1,39 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 attribute within a key. + */ +export interface KeyAttribute { + /** + * The position of the attribute. + */ + "position"?: number; + "attribute"?: model.ShapeField; +} + +export namespace KeyAttribute { + export function getJsonObj(obj: KeyAttribute): object { + const jsonObj = { + ...obj, + ...{ + "attribute": obj.attribute ? model.ShapeField.getJsonObj(obj.attribute) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/key-range-partition-config.ts b/lib/dataintegration/lib/model/key-range-partition-config.ts new file mode 100644 index 0000000000..31babf8feb --- /dev/null +++ b/lib/dataintegration/lib/model/key-range-partition-config.ts @@ -0,0 +1,44 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 key range. + */ +export interface KeyRangePartitionConfig extends model.PartitionConfig { + /** + * The partition number for the key range. + */ + "partitionNumber"?: number; + "keyRange"?: model.KeyRange; + + "modelType": string; +} + +export namespace KeyRangePartitionConfig { + export function getJsonObj(obj: KeyRangePartitionConfig, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PartitionConfig.getJsonObj(obj) as KeyRangePartitionConfig)), + ...{ + "keyRange": obj.keyRange ? model.KeyRange.getJsonObj(obj.keyRange) : undefined + } + }; + + return jsonObj; + } + export const modelType = "KEYRANGEPARTITIONCONFIG"; +} diff --git a/lib/dataintegration/lib/model/key-range.ts b/lib/dataintegration/lib/model/key-range.ts new file mode 100644 index 0000000000..979f6bd243 --- /dev/null +++ b/lib/dataintegration/lib/model/key-range.ts @@ -0,0 +1,39 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 key range. + */ +export interface KeyRange { + "key"?: model.ShapeField; + /** + * The key range. + */ + "range"?: Array; +} + +export namespace KeyRange { + export function getJsonObj(obj: KeyRange): object { + const jsonObj = { + ...obj, + ...{ + "key": obj.key ? model.ShapeField.getJsonObj(obj.key) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/key.ts b/lib/dataintegration/lib/model/key.ts new file mode 100644 index 0000000000..4c58a37f32 --- /dev/null +++ b/lib/dataintegration/lib/model/key.ts @@ -0,0 +1,40 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 key object. + */ +export interface Key { + "modelType": string; +} + +export namespace Key { + export function getJsonObj(obj: Key): object { + const jsonObj = { ...obj, ...{} }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "UNIQUE_KEY": + return model.UniqueKey.getJsonObj((jsonObj), true); + case "FOREIGN_KEY": + return model.ForeignKey.getJsonObj((jsonObj), true); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/message.ts b/lib/dataintegration/lib/model/message.ts new file mode 100644 index 0000000000..d535fa52b3 --- /dev/null +++ b/lib/dataintegration/lib/model/message.ts @@ -0,0 +1,53 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 details of a message. + */ +export interface Message { + /** + * The type of message (error, warning, or info). + */ + "type": Message.Type; + /** + * The message code + */ + "code": string; + /** + * The message text + */ + "message": string; +} + +export namespace Message { + export enum Type { + ERROR = "ERROR", + WARNING = "WARNING", + INFO = "INFO", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Message): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/name-list-rule.ts b/lib/dataintegration/lib/model/name-list-rule.ts new file mode 100644 index 0000000000..265782fed1 --- /dev/null +++ b/lib/dataintegration/lib/model/name-list-rule.ts @@ -0,0 +1,86 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 name list rule which defines how fields are projected. For example this may be all fields begining with STR. + */ +export interface NameListRule extends model.ProjectionRule { + /** + * skipRemainingRulesOnMatch + */ + "isSkipRemainingRulesOnMatch"?: boolean; + /** + * Reference to a typed object, this can be either a key value to an object within the document, a shall referenced to a TypedObject or a full TypedObject definition. + */ + "scope"?: any; + /** + * cascade + */ + "isCascade"?: boolean; + /** + * matchingStrategy + */ + "matchingStrategy"?: NameListRule.MatchingStrategy; + /** + * caseSensitive + */ + "isCaseSensitive"?: boolean; + /** + * ruleType + */ + "ruleType"?: NameListRule.RuleType; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "names"?: Array; + + "modelType": string; +} + +export namespace NameListRule { + export enum MatchingStrategy { + NAMEORTAGS = "NAME_OR_TAGS", + TAGSONLY = "TAGS_ONLY", + NAMEONLY = "NAME_ONLY", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum RuleType { + INCLUDE = "INCLUDE", + EXCLUDE = "EXCLUDE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: NameListRule, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.ProjectionRule.getJsonObj(obj) as NameListRule)), + ...{} + }; + + return jsonObj; + } + export const modelType = "NAME_LIST_RULE"; +} diff --git a/lib/dataintegration/lib/model/name-pattern-rule.ts b/lib/dataintegration/lib/model/name-pattern-rule.ts new file mode 100644 index 0000000000..8e2ce055eb --- /dev/null +++ b/lib/dataintegration/lib/model/name-pattern-rule.ts @@ -0,0 +1,86 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This rule projects fields by a name pattern, for example it may start with STR_ or end with _DATE, this is defined using a regular expression. + */ +export interface NamePatternRule extends model.ProjectionRule { + /** + * skipRemainingRulesOnMatch + */ + "isSkipRemainingRulesOnMatch"?: boolean; + /** + * Reference to a typed object, this can be either a key value to an object within the document, a shall referenced to a TypedObject or a full TypedObject definition. + */ + "scope"?: any; + /** + * cascade + */ + "isCascade"?: boolean; + /** + * matchingStrategy + */ + "matchingStrategy"?: NamePatternRule.MatchingStrategy; + /** + * caseSensitive + */ + "isCaseSensitive"?: boolean; + /** + * ruleType + */ + "ruleType"?: NamePatternRule.RuleType; + /** + * pattern + */ + "pattern"?: string; + + "modelType": string; +} + +export namespace NamePatternRule { + export enum MatchingStrategy { + NAMEORTAGS = "NAME_OR_TAGS", + TAGSONLY = "TAGS_ONLY", + NAMEONLY = "NAME_ONLY", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum RuleType { + INCLUDE = "INCLUDE", + EXCLUDE = "EXCLUDE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: NamePatternRule, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.ProjectionRule.getJsonObj(obj) as NamePatternRule)), + ...{} + }; + + return jsonObj; + } + export const modelType = "NAME_PATTERN_RULE"; +} diff --git a/lib/dataintegration/lib/model/native-shape-field.ts b/lib/dataintegration/lib/model/native-shape-field.ts new file mode 100644 index 0000000000..a7089f3575 --- /dev/null +++ b/lib/dataintegration/lib/model/native-shape-field.ts @@ -0,0 +1,61 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 native shape field object. + */ +export interface NativeShapeField { + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * The model type reference. + */ + "modelType"?: string; + /** + * The type reference. + */ + "type"?: string; + "configValues"?: model.ConfigValues; + /** + * The position of the attribute. + */ + "position"?: number; + /** + * The default value. + */ + "defaultValueString"?: string; + /** + * Specifies whether the field is mandatory. + */ + "isMandatory"?: boolean; +} + +export namespace NativeShapeField { + export function getJsonObj(obj: NativeShapeField): object { + const jsonObj = { + ...obj, + ...{ + "configValues": obj.configValues + ? model.ConfigValues.getJsonObj(obj.configValues) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/object-metadata.ts b/lib/dataintegration/lib/model/object-metadata.ts new file mode 100644 index 0000000000..b2be8bd6cc --- /dev/null +++ b/lib/dataintegration/lib/model/object-metadata.ts @@ -0,0 +1,73 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 summary type containing information about the object including its key, name and when/who created/updated it + */ +export interface ObjectMetadata { + /** + * The user that created the object. + */ + "createdBy"?: string; + /** + * The user that created the object. + */ + "createdByName"?: string; + /** + * The user that updated the object. + */ + "updatedBy"?: string; + /** + * The user that updated the object. + */ + "updatedByName"?: string; + /** + * The date and time that the object was created. + */ + "timeCreated"?: Date; + /** + * The date and time that the object was updated. + */ + "timeUpdated"?: Date; + /** + * The owning object key for this object. + */ + "aggregatorKey"?: string; + /** + * The full path to identify this object. + */ + "identifierPath"?: string; + /** + * infoFields + */ + "infoFields"?: { [key: string]: string }; + /** + * registryVersion + */ + "registryVersion"?: number; + /** + * Labels are keywords or tags that you can add to data assets, dataflows etc. You can define your own labels and use them to categorize content. + */ + "labels"?: Array; +} + +export namespace ObjectMetadata { + export function getJsonObj(obj: ObjectMetadata): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/operator.ts b/lib/dataintegration/lib/model/operator.ts new file mode 100644 index 0000000000..fafbfd39b6 --- /dev/null +++ b/lib/dataintegration/lib/model/operator.ts @@ -0,0 +1,116 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 operator defines some data integration semantics in a data flow. It may be reading/writing data or transforming the data. + */ +export interface Operator { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * An array of input ports. + */ + "inputPorts"?: Array; + /** + * An array of output ports. + */ + "outputPorts"?: Array; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * An array of parameters. + */ + "parameters"?: Array; + "opConfigValues"?: model.ConfigValues; + + "modelType": string; +} + +export namespace Operator { + export function getJsonObj(obj: Operator): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "inputPorts": obj.inputPorts + ? obj.inputPorts.map(item => { + return model.InputPort.getJsonObj(item); + }) + : undefined, + "outputPorts": obj.outputPorts + ? obj.outputPorts.map(item => { + return model.OutputPort.getJsonObj(item); + }) + : undefined, + + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + "opConfigValues": obj.opConfigValues + ? model.ConfigValues.getJsonObj(obj.opConfigValues) + : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "TARGET_OPERATOR": + return model.Target.getJsonObj((jsonObj), true); + case "JOINER_OPERATOR": + return model.Joiner.getJsonObj((jsonObj), true); + case "FILTER_OPERATOR": + return model.Filter.getJsonObj((jsonObj), true); + case "AGGREGATOR_OPERATOR": + return model.Aggregator.getJsonObj((jsonObj), true); + case "PROJECTION_OPERATOR": + return model.Projection.getJsonObj((jsonObj), true); + case "SOURCE_OPERATOR": + return model.Source.getJsonObj((jsonObj), true); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/oracle-adwc-write-attribute.ts b/lib/dataintegration/lib/model/oracle-adwc-write-attribute.ts new file mode 100644 index 0000000000..b2b77750ef --- /dev/null +++ b/lib/dataintegration/lib/model/oracle-adwc-write-attribute.ts @@ -0,0 +1,62 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties to configure writing to Oracle Autonomous Data Warehouse Cloud. + */ +export interface OracleAdwcWriteAttribute extends model.AbstractWriteAttribute { + /** + * The bucket name for the attribute. + */ + "bucketName"?: string; + /** + * The file name for the attribute. + */ + "stagingFileName"?: string; + "stagingDataAsset"?: + | model.DataAssetFromOracleDetails + | model.DataAssetFromAdwcDetails + | model.DataAssetFromObjectStorageDetails + | model.DataAssetFromAtpDetails; + "stagingConnection"?: + | model.ConnectionFromObjectStorage + | model.ConnectionFromAdwc + | model.ConnectionFromAtp + | model.ConnectionFromOracle; + + "modelType": string; +} + +export namespace OracleAdwcWriteAttribute { + export function getJsonObj(obj: OracleAdwcWriteAttribute, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AbstractWriteAttribute.getJsonObj(obj) as OracleAdwcWriteAttribute)), + ...{ + "stagingDataAsset": obj.stagingDataAsset + ? model.DataAsset.getJsonObj(obj.stagingDataAsset) + : undefined, + "stagingConnection": obj.stagingConnection + ? model.Connection.getJsonObj(obj.stagingConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLEADWCWRITEATTRIBUTE"; +} diff --git a/lib/dataintegration/lib/model/oracle-atp-write-attribute.ts b/lib/dataintegration/lib/model/oracle-atp-write-attribute.ts new file mode 100644 index 0000000000..3759b954a5 --- /dev/null +++ b/lib/dataintegration/lib/model/oracle-atp-write-attribute.ts @@ -0,0 +1,62 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties to configure writing to Oracle Autonomous Transaction Processing. + */ +export interface OracleAtpWriteAttribute extends model.AbstractWriteAttribute { + /** + * The bucket name for the attribute. + */ + "bucketName"?: string; + /** + * The file name for the attribute. + */ + "stagingFileName"?: string; + "stagingDataAsset"?: + | model.DataAssetFromOracleDetails + | model.DataAssetFromAdwcDetails + | model.DataAssetFromObjectStorageDetails + | model.DataAssetFromAtpDetails; + "stagingConnection"?: + | model.ConnectionFromObjectStorage + | model.ConnectionFromAdwc + | model.ConnectionFromAtp + | model.ConnectionFromOracle; + + "modelType": string; +} + +export namespace OracleAtpWriteAttribute { + export function getJsonObj(obj: OracleAtpWriteAttribute, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AbstractWriteAttribute.getJsonObj(obj) as OracleAtpWriteAttribute)), + ...{ + "stagingDataAsset": obj.stagingDataAsset + ? model.DataAsset.getJsonObj(obj.stagingDataAsset) + : undefined, + "stagingConnection": obj.stagingConnection + ? model.Connection.getJsonObj(obj.stagingConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLEATPWRITEATTRIBUTE"; +} diff --git a/lib/dataintegration/lib/model/oracle-read-attribute.ts b/lib/dataintegration/lib/model/oracle-read-attribute.ts new file mode 100644 index 0000000000..e6edb16cea --- /dev/null +++ b/lib/dataintegration/lib/model/oracle-read-attribute.ts @@ -0,0 +1,41 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle read attribute + */ +export interface OracleReadAttribute extends model.AbstractReadAttribute { + /** + * The fetch size for reading. + */ + "fetchSize"?: number; + + "modelType": string; +} + +export namespace OracleReadAttribute { + export function getJsonObj(obj: OracleReadAttribute, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AbstractReadAttribute.getJsonObj(obj) as OracleReadAttribute)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLEREADATTRIBUTE"; +} diff --git a/lib/dataintegration/lib/model/oracle-write-attribute.ts b/lib/dataintegration/lib/model/oracle-write-attribute.ts new file mode 100644 index 0000000000..56686b4943 --- /dev/null +++ b/lib/dataintegration/lib/model/oracle-write-attribute.ts @@ -0,0 +1,49 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle write attribute + */ +export interface OracleWriteAttribute extends model.AbstractWriteAttribute { + /** + * The batch size for writing. + */ + "batchSize"?: number; + /** + * Specifies whether to truncate. + */ + "isTruncate"?: boolean; + /** + * Specifies the isolation level. + */ + "isolationLevel"?: string; + + "modelType": string; +} + +export namespace OracleWriteAttribute { + export function getJsonObj(obj: OracleWriteAttribute, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AbstractWriteAttribute.getJsonObj(obj) as OracleWriteAttribute)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLEWRITEATTRIBUTE"; +} diff --git a/lib/dataintegration/lib/model/output-field.ts b/lib/dataintegration/lib/model/output-field.ts new file mode 100644 index 0000000000..567ea45a35 --- /dev/null +++ b/lib/dataintegration/lib/model/output-field.ts @@ -0,0 +1,48 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Output fields of an operator. + */ +export interface OutputField extends model.TypedObject { + "type"?: + | model.ConfiguredType + | model.JavaType + | model.DynamicType + | model.DerivedType + | model.DataType + | model.CompositeType; + /** + * Labels are keywords or labels that you can add to data assets, dataflows etc. You can define your own labels and use them to categorize content. + */ + "labels"?: Array; + + "modelType": string; +} + +export namespace OutputField { + export function getJsonObj(obj: OutputField, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as OutputField)), + ...{ + "type": obj.type ? model.BaseType.getJsonObj(obj.type) : undefined + } + }; + + return jsonObj; + } + export const modelType = "OUTPUT_FIELD"; +} diff --git a/lib/dataintegration/lib/model/output-link.ts b/lib/dataintegration/lib/model/output-link.ts new file mode 100644 index 0000000000..e395920c98 --- /dev/null +++ b/lib/dataintegration/lib/model/output-link.ts @@ -0,0 +1,39 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 output links. + */ +export interface OutputLink extends model.FlowPortLink { + /** + * The links from this output link to connect to other links in flow. + */ + "toLinks"?: Array; + + "modelType": string; +} + +export namespace OutputLink { + export function getJsonObj(obj: OutputLink, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.FlowPortLink.getJsonObj(obj) as OutputLink)), + ...{} + }; + + return jsonObj; + } + export const modelType = "OUTPUT_LINK"; +} diff --git a/lib/dataintegration/lib/model/output-port.ts b/lib/dataintegration/lib/model/output-port.ts new file mode 100644 index 0000000000..3de2a7a18f --- /dev/null +++ b/lib/dataintegration/lib/model/output-port.ts @@ -0,0 +1,61 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 output port details. + */ +export interface OutputPort extends model.TypedObject { + /** + * The port details for the data asset.Type + */ + "portType"?: OutputPort.PortType; + /** + * fields + */ + "fields"?: Array; + + "modelType": string; +} + +export namespace OutputPort { + export enum PortType { + DATA = "DATA", + CONTROL = "CONTROL", + MODEL = "MODEL", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: OutputPort, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as OutputPort)), + ...{ + "fields": obj.fields + ? obj.fields.map(item => { + return model.TypedObject.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "OUTPUT_PORT"; +} diff --git a/lib/dataintegration/lib/model/parameter-value.ts b/lib/dataintegration/lib/model/parameter-value.ts new file mode 100644 index 0000000000..be1f3e5b12 --- /dev/null +++ b/lib/dataintegration/lib/model/parameter-value.ts @@ -0,0 +1,37 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 parameter value. + */ +export interface ParameterValue { + /** + * A simple value for the parameter. + */ + "simpleValue"?: any; + /** + * This can be any object such as a file entity, or a schema or a table. + */ + "rootObjectValue"?: any; +} + +export namespace ParameterValue { + export function getJsonObj(obj: ParameterValue): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/parameter.ts b/lib/dataintegration/lib/model/parameter.ts new file mode 100644 index 0000000000..8a9a19c297 --- /dev/null +++ b/lib/dataintegration/lib/model/parameter.ts @@ -0,0 +1,81 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Parameters are created and assigned values that can be deferred to execution/runtime. + */ +export interface Parameter extends model.TypedObject { + "type"?: + | model.ConfiguredType + | model.JavaType + | model.DynamicType + | model.DerivedType + | model.DataType + | model.CompositeType; + /** + * The default value of the parameter. + */ + "defaultValue"?: any; + /** + * The default value of the parameter which can be an object in DIS, such as a data entity. + */ + "rootObjectDefaultValue"?: any; + /** + * Whether the parameter is input value. + */ + "isInput"?: boolean; + /** + * Whether the parameter is output value. + */ + "isOutput"?: boolean; + /** + * The output aggregation type + */ + "outputAggregationType"?: Parameter.OutputAggregationType; + /** + * The name of the object type. + */ + "typeName"?: string; + + "modelType": string; +} + +export namespace Parameter { + export enum OutputAggregationType { + MIN = "MIN", + MAX = "MAX", + COUNT = "COUNT", + SUM = "SUM", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Parameter, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as Parameter)), + ...{ + "type": obj.type ? model.BaseType.getJsonObj(obj.type) : undefined + } + }; + + return jsonObj; + } + export const modelType = "PARAMETER"; +} diff --git a/lib/dataintegration/lib/model/parent-reference.ts b/lib/dataintegration/lib/model/parent-reference.ts new file mode 100644 index 0000000000..b906fef838 --- /dev/null +++ b/lib/dataintegration/lib/model/parent-reference.ts @@ -0,0 +1,33 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 reference to the object's parent + */ +export interface ParentReference { + /** + * Key of the parent object + */ + "parent"?: string; +} + +export namespace ParentReference { + export function getJsonObj(obj: ParentReference): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/partition-config.ts b/lib/dataintegration/lib/model/partition-config.ts new file mode 100644 index 0000000000..6635b6b97c --- /dev/null +++ b/lib/dataintegration/lib/model/partition-config.ts @@ -0,0 +1,41 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 partition configuration. + */ +export interface PartitionConfig { + "modelType": string; +} + +export namespace PartitionConfig { + export function getJsonObj(obj: PartitionConfig): object { + const jsonObj = { ...obj, ...{} }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "KEYRANGEPARTITIONCONFIG": + return model.KeyRangePartitionConfig.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/patch-object-metadata.ts b/lib/dataintegration/lib/model/patch-object-metadata.ts new file mode 100644 index 0000000000..f6b595a858 --- /dev/null +++ b/lib/dataintegration/lib/model/patch-object-metadata.ts @@ -0,0 +1,80 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 summary type containing information about the object including its key, name and when/who created/updated it + */ +export interface PatchObjectMetadata { + /** + * The key of the object. + */ + "key"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * The fully qualified path of the published object which would include its project and folder. + */ + "namePath"?: string; + /** + * The type of the object in patch. + */ + "type"?: PatchObjectMetadata.Type; + /** + * The object version. + */ + "objectVersion"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The patch action, if object was created, updated or deleted. + */ + "action"?: PatchObjectMetadata.Action; +} + +export namespace PatchObjectMetadata { + export enum Type { + INTEGRATIONTASK = "INTEGRATION_TASK", + DATALOADERTASK = "DATA_LOADER_TASK", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum Action { + CREATED = "CREATED", + DELETED = "DELETED", + UPDATED = "UPDATED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: PatchObjectMetadata): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/patch-summary-collection.ts b/lib/dataintegration/lib/model/patch-summary-collection.ts new file mode 100644 index 0000000000..d85310c808 --- /dev/null +++ b/lib/dataintegration/lib/model/patch-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This is the collection of patch summaries, it may be a collection of lightweight details or full definitions. + */ +export interface PatchSummaryCollection { + /** + * The array of patch summaries + */ + "items": Array; +} + +export namespace PatchSummaryCollection { + export function getJsonObj(obj: PatchSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.PatchSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/patch-summary.ts b/lib/dataintegration/lib/model/patch-summary.ts new file mode 100644 index 0000000000..5fa1b4a8ee --- /dev/null +++ b/lib/dataintegration/lib/model/patch-summary.ts @@ -0,0 +1,135 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 summary type contains the audit summary information and the definition of the patch. + */ +export interface PatchSummary { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The date and time the patch was applied, in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + "timePatched"?: Date; + /** + * The errors encountered while applying the patch, if any. + */ + "errorMessages"?: { [key: string]: string }; + /** + * The application version of the patch. + */ + "applicationVersion"?: number; + /** + * The type of the patch applied or being applied on the application. + */ + "patchType"?: PatchSummary.PatchType; + /** + * Status of the patch applied or being applied on the application + */ + "patchStatus"?: PatchSummary.PatchStatus; + /** + * List of dependent objects in this patch. + */ + "dependentObjectMetadata"?: Array; + /** + * List of objects that are published / unpublished in this patch. + */ + "patchObjectMetadata"?: Array; + "parentRef"?: model.ParentReference; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace PatchSummary { + export enum PatchType { + PUBLISH = "PUBLISH", + UNPUBLISH = "UNPUBLISH", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum PatchStatus { + QUEUED = "QUEUED", + SUCCESSFUL = "SUCCESSFUL", + FAILED = "FAILED", + INPROGRESS = "IN_PROGRESS", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: PatchSummary): object { + const jsonObj = { + ...obj, + ...{ + "dependentObjectMetadata": obj.dependentObjectMetadata + ? obj.dependentObjectMetadata.map(item => { + return model.PatchObjectMetadata.getJsonObj(item); + }) + : undefined, + "patchObjectMetadata": obj.patchObjectMetadata + ? obj.patchObjectMetadata.map(item => { + return model.PatchObjectMetadata.getJsonObj(item); + }) + : undefined, + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/patch.ts b/lib/dataintegration/lib/model/patch.ts new file mode 100644 index 0000000000..6de5f57200 --- /dev/null +++ b/lib/dataintegration/lib/model/patch.ts @@ -0,0 +1,135 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 object contains the audit summary information and the definition of the patch. + */ +export interface Patch { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The date and time the patch was applied, in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + "timePatched"?: Date; + /** + * The errors encountered while applying the patch, if any. + */ + "errorMessages"?: { [key: string]: string }; + /** + * The application version of the patch. + */ + "applicationVersion"?: number; + /** + * The type of the patch applied or being applied on the application. + */ + "patchType"?: Patch.PatchType; + /** + * Status of the patch applied or being applied on the application + */ + "patchStatus"?: Patch.PatchStatus; + /** + * List of dependent objects in this patch. + */ + "dependentObjectMetadata"?: Array; + /** + * List of objects that are published / unpublished in this patch. + */ + "patchObjectMetadata"?: Array; + "parentRef"?: model.ParentReference; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace Patch { + export enum PatchType { + PUBLISH = "PUBLISH", + UNPUBLISH = "UNPUBLISH", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum PatchStatus { + QUEUED = "QUEUED", + SUCCESSFUL = "SUCCESSFUL", + FAILED = "FAILED", + INPROGRESS = "IN_PROGRESS", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Patch): object { + const jsonObj = { + ...obj, + ...{ + "dependentObjectMetadata": obj.dependentObjectMetadata + ? obj.dependentObjectMetadata.map(item => { + return model.PatchObjectMetadata.getJsonObj(item); + }) + : undefined, + "patchObjectMetadata": obj.patchObjectMetadata + ? obj.patchObjectMetadata.map(item => { + return model.PatchObjectMetadata.getJsonObj(item); + }) + : undefined, + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/primary-key.ts b/lib/dataintegration/lib/model/primary-key.ts new file mode 100644 index 0000000000..117c91b0af --- /dev/null +++ b/lib/dataintegration/lib/model/primary-key.ts @@ -0,0 +1,61 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 primary key object. + */ +export interface PrimaryKey { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * attributeRefs + */ + "attributeRefs"?: Array; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; +} + +export namespace PrimaryKey { + export function getJsonObj(obj: PrimaryKey): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "attributeRefs": obj.attributeRefs + ? obj.attributeRefs.map(item => { + return model.KeyAttribute.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/project-details.ts b/lib/dataintegration/lib/model/project-details.ts new file mode 100644 index 0000000000..9c95a68ad5 --- /dev/null +++ b/lib/dataintegration/lib/model/project-details.ts @@ -0,0 +1,71 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 details including name, description for the project, which is a container of folders, tasks and dataflows. + */ +export interface ProjectDetails { + /** + * Generated key that can be used in API calls to identify project. + */ + "key": string; + /** + * The type of the object. + */ + "modelType": string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion": number; + "parentRef"?: model.ParentReference; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace ProjectDetails { + export function getJsonObj(obj: ProjectDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/project-summary-collection.ts b/lib/dataintegration/lib/model/project-summary-collection.ts new file mode 100644 index 0000000000..362546a23f --- /dev/null +++ b/lib/dataintegration/lib/model/project-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 collection of project summaries. The collection can be lightweight details or full definitions. + */ +export interface ProjectSummaryCollection { + /** + * The array of Project summaries + */ + "items": Array; +} + +export namespace ProjectSummaryCollection { + export function getJsonObj(obj: ProjectSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ProjectSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/project-summary.ts b/lib/dataintegration/lib/model/project-summary.ts new file mode 100644 index 0000000000..cb2825aae2 --- /dev/null +++ b/lib/dataintegration/lib/model/project-summary.ts @@ -0,0 +1,73 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 project summary type contains the audit summary information and the definition of the project. + */ +export interface ProjectSummary { + /** + * Generated key that can be used in API calls to identify project. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + "parentRef"?: model.ParentReference; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace ProjectSummary { + export function getJsonObj(obj: ProjectSummary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/project.ts b/lib/dataintegration/lib/model/project.ts new file mode 100644 index 0000000000..9564f95f06 --- /dev/null +++ b/lib/dataintegration/lib/model/project.ts @@ -0,0 +1,73 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 project type contains the audit summary information and the definition of the project. + */ +export interface Project { + /** + * Generated key that can be used in API calls to identify project. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + "parentRef"?: model.ParentReference; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace Project { + export function getJsonObj(obj: Project): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/projection-rule.ts b/lib/dataintegration/lib/model/projection-rule.ts new file mode 100644 index 0000000000..94b0ab2d01 --- /dev/null +++ b/lib/dataintegration/lib/model/projection-rule.ts @@ -0,0 +1,81 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Base type for how fields are projected, there are many different mechanisms for doing this such as by a name patter, datatype etc. See the modelType property for the types. + */ +export interface ProjectionRule { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Specifies whether the rule uses a java regex syntax. + */ + "isJavaRegexSyntax"?: boolean; + "configValues"?: model.ConfigValues; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Detailed description for the object. + */ + "description"?: string; + + "modelType": string; +} + +export namespace ProjectionRule { + export function getJsonObj(obj: ProjectionRule): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "configValues": obj.configValues + ? model.ConfigValues.getJsonObj(obj.configValues) + : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "RENAME_RULE": + return model.RenameRule.getJsonObj((jsonObj), true); + case "TYPE_LIST_RULE": + return model.TypeListRule.getJsonObj((jsonObj), true); + case "TYPED_NAME_PATTERN_RULE": + return model.TypedNamePatternRule.getJsonObj( + (jsonObj), + true + ); + case "NAME_PATTERN_RULE": + return model.NamePatternRule.getJsonObj((jsonObj), true); + case "NAME_LIST_RULE": + return model.NameListRule.getJsonObj((jsonObj), true); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/projection.ts b/lib/dataintegration/lib/model/projection.ts new file mode 100644 index 0000000000..d061a0c4f1 --- /dev/null +++ b/lib/dataintegration/lib/model/projection.ts @@ -0,0 +1,34 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the projection object. + */ +export interface Projection extends model.Operator { + "modelType": string; +} + +export namespace Projection { + export function getJsonObj(obj: Projection, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Operator.getJsonObj(obj) as Projection)), + ...{} + }; + + return jsonObj; + } + export const modelType = "PROJECTION_OPERATOR"; +} diff --git a/lib/dataintegration/lib/model/proxy-field.ts b/lib/dataintegration/lib/model/proxy-field.ts new file mode 100644 index 0000000000..bf0e2e80b0 --- /dev/null +++ b/lib/dataintegration/lib/model/proxy-field.ts @@ -0,0 +1,52 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 proxy field. + */ +export interface ProxyField extends model.TypedObject { + /** + * Reference to a typed object, this can be either a key value to an object within the document, a shall referenced to a TypedObject or a full TypedObject definition. + */ + "scope"?: any; + "type"?: + | model.ConfiguredType + | model.JavaType + | model.DynamicType + | model.DerivedType + | model.DataType + | model.CompositeType; + /** + * Labels are keywords or labels that you can add to data assets, dataflows etc. You can define your own labels and use them to categorize content. + */ + "labels"?: Array; + + "modelType": string; +} + +export namespace ProxyField { + export function getJsonObj(obj: ProxyField, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as ProxyField)), + ...{ + "type": obj.type ? model.BaseType.getJsonObj(obj.type) : undefined + } + }; + + return jsonObj; + } + export const modelType = "PROXY_FIELD"; +} diff --git a/lib/dataintegration/lib/model/published-object-from-data-loader-task.ts b/lib/dataintegration/lib/model/published-object-from-data-loader-task.ts new file mode 100644 index 0000000000..5437e9e7bb --- /dev/null +++ b/lib/dataintegration/lib/model/published-object-from-data-loader-task.ts @@ -0,0 +1,78 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 loader task published object. + */ +export interface PublishedObjectFromDataLoaderTask extends model.PublishedObject { + /** + * An array of input ports. + */ + "inputPorts"?: Array; + /** + * An array of output ports. + */ + "outputPorts"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + "opConfigValues"?: model.ConfigValues; + "configProviderDelegate"?: model.ConfigProvider; + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace PublishedObjectFromDataLoaderTask { + export function getJsonObj( + obj: PublishedObjectFromDataLoaderTask, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PublishedObject.getJsonObj(obj) as PublishedObjectFromDataLoaderTask)), + ...{ + "inputPorts": obj.inputPorts + ? obj.inputPorts.map(item => { + return model.InputPort.getJsonObj(item); + }) + : undefined, + "outputPorts": obj.outputPorts + ? obj.outputPorts.map(item => { + return model.OutputPort.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + "opConfigValues": obj.opConfigValues + ? model.ConfigValues.getJsonObj(obj.opConfigValues) + : undefined, + "configProviderDelegate": obj.configProviderDelegate + ? model.ConfigProvider.getJsonObj(obj.configProviderDelegate) + : undefined, + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "DATA_LOADER_TASK"; +} diff --git a/lib/dataintegration/lib/model/published-object-from-integration-task.ts b/lib/dataintegration/lib/model/published-object-from-integration-task.ts new file mode 100644 index 0000000000..061f284456 --- /dev/null +++ b/lib/dataintegration/lib/model/published-object-from-integration-task.ts @@ -0,0 +1,78 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 integration task published object. + */ +export interface PublishedObjectFromIntegrationTask extends model.PublishedObject { + /** + * An array of input ports. + */ + "inputPorts"?: Array; + /** + * An array of output ports. + */ + "outputPorts"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + "opConfigValues"?: model.ConfigValues; + "configProviderDelegate"?: model.ConfigProvider; + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace PublishedObjectFromIntegrationTask { + export function getJsonObj( + obj: PublishedObjectFromIntegrationTask, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PublishedObject.getJsonObj(obj) as PublishedObjectFromIntegrationTask)), + ...{ + "inputPorts": obj.inputPorts + ? obj.inputPorts.map(item => { + return model.InputPort.getJsonObj(item); + }) + : undefined, + "outputPorts": obj.outputPorts + ? obj.outputPorts.map(item => { + return model.OutputPort.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + "opConfigValues": obj.opConfigValues + ? model.ConfigValues.getJsonObj(obj.opConfigValues) + : undefined, + "configProviderDelegate": obj.configProviderDelegate + ? model.ConfigProvider.getJsonObj(obj.configProviderDelegate) + : undefined, + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "INTEGRATION_TASK"; +} diff --git a/lib/dataintegration/lib/model/published-object-summary-collection.ts b/lib/dataintegration/lib/model/published-object-summary-collection.ts new file mode 100644 index 0000000000..51e3c553c1 --- /dev/null +++ b/lib/dataintegration/lib/model/published-object-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This is the collection of published object summaries, it may be a collection of lightweight details or full definitions. + */ +export interface PublishedObjectSummaryCollection { + /** + * The array of PublishedObject summaries + */ + "items": Array; +} + +export namespace PublishedObjectSummaryCollection { + export function getJsonObj(obj: PublishedObjectSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.PublishedObjectSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/published-object-summary-from-data-loader-task.ts b/lib/dataintegration/lib/model/published-object-summary-from-data-loader-task.ts new file mode 100644 index 0000000000..20f7848092 --- /dev/null +++ b/lib/dataintegration/lib/model/published-object-summary-from-data-loader-task.ts @@ -0,0 +1,80 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 loader task published object summary. + */ +export interface PublishedObjectSummaryFromDataLoaderTask extends model.PublishedObjectSummary { + /** + * An array of input ports. + */ + "inputPorts"?: Array; + /** + * An array of output ports. + */ + "outputPorts"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + "opConfigValues"?: model.ConfigValues; + "configProviderDelegate"?: model.ConfigProvider; + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace PublishedObjectSummaryFromDataLoaderTask { + export function getJsonObj( + obj: PublishedObjectSummaryFromDataLoaderTask, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PublishedObjectSummary.getJsonObj( + obj + ) as PublishedObjectSummaryFromDataLoaderTask)), + ...{ + "inputPorts": obj.inputPorts + ? obj.inputPorts.map(item => { + return model.InputPort.getJsonObj(item); + }) + : undefined, + "outputPorts": obj.outputPorts + ? obj.outputPorts.map(item => { + return model.OutputPort.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + "opConfigValues": obj.opConfigValues + ? model.ConfigValues.getJsonObj(obj.opConfigValues) + : undefined, + "configProviderDelegate": obj.configProviderDelegate + ? model.ConfigProvider.getJsonObj(obj.configProviderDelegate) + : undefined, + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "DATA_LOADER_TASK"; +} diff --git a/lib/dataintegration/lib/model/published-object-summary-from-integration-task.ts b/lib/dataintegration/lib/model/published-object-summary-from-integration-task.ts new file mode 100644 index 0000000000..38304c1376 --- /dev/null +++ b/lib/dataintegration/lib/model/published-object-summary-from-integration-task.ts @@ -0,0 +1,80 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 integration task published object summary. + */ +export interface PublishedObjectSummaryFromIntegrationTask extends model.PublishedObjectSummary { + /** + * An array of input ports. + */ + "inputPorts"?: Array; + /** + * An array of output ports. + */ + "outputPorts"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + "opConfigValues"?: model.ConfigValues; + "configProviderDelegate"?: model.ConfigProvider; + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace PublishedObjectSummaryFromIntegrationTask { + export function getJsonObj( + obj: PublishedObjectSummaryFromIntegrationTask, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.PublishedObjectSummary.getJsonObj( + obj + ) as PublishedObjectSummaryFromIntegrationTask)), + ...{ + "inputPorts": obj.inputPorts + ? obj.inputPorts.map(item => { + return model.InputPort.getJsonObj(item); + }) + : undefined, + "outputPorts": obj.outputPorts + ? obj.outputPorts.map(item => { + return model.OutputPort.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + "opConfigValues": obj.opConfigValues + ? model.ConfigValues.getJsonObj(obj.opConfigValues) + : undefined, + "configProviderDelegate": obj.configProviderDelegate + ? model.ConfigProvider.getJsonObj(obj.configProviderDelegate) + : undefined, + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "INTEGRATION_TASK"; +} diff --git a/lib/dataintegration/lib/model/published-object-summary.ts b/lib/dataintegration/lib/model/published-object-summary.ts new file mode 100644 index 0000000000..71cb138f60 --- /dev/null +++ b/lib/dataintegration/lib/model/published-object-summary.ts @@ -0,0 +1,84 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 published obect summary. + */ +export interface PublishedObjectSummary { + /** + * Generated key that can be used in API calls to identify task. On scenarios where reference to the task is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; + + "modelType": string; +} + +export namespace PublishedObjectSummary { + export function getJsonObj(obj: PublishedObjectSummary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "INTEGRATION_TASK": + return model.PublishedObjectSummaryFromIntegrationTask.getJsonObj( + (jsonObj), + true + ); + case "DATA_LOADER_TASK": + return model.PublishedObjectSummaryFromDataLoaderTask.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/published-object.ts b/lib/dataintegration/lib/model/published-object.ts new file mode 100644 index 0000000000..c5d41f3a5d --- /dev/null +++ b/lib/dataintegration/lib/model/published-object.ts @@ -0,0 +1,81 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the published object. + */ +export interface PublishedObject { + /** + * Generated key that can be used in API calls to identify task. On scenarios where reference to the task is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + + "modelType": string; +} + +export namespace PublishedObject { + export function getJsonObj(obj: PublishedObject): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "DATA_LOADER_TASK": + return model.PublishedObjectFromDataLoaderTask.getJsonObj( + (jsonObj), + true + ); + case "INTEGRATION_TASK": + return model.PublishedObjectFromIntegrationTask.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/push-down-operation.ts b/lib/dataintegration/lib/model/push-down-operation.ts new file mode 100644 index 0000000000..f382d14613 --- /dev/null +++ b/lib/dataintegration/lib/model/push-down-operation.ts @@ -0,0 +1,46 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 a push down operation. + */ +export interface PushDownOperation { + "modelType": string; +} + +export namespace PushDownOperation { + export function getJsonObj(obj: PushDownOperation): object { + const jsonObj = { ...obj, ...{} }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "QUERY": + return model.Query.getJsonObj((jsonObj), true); + case "SELECT": + return model.Select.getJsonObj((jsonObj), true); + case "JOIN": + return model.Join.getJsonObj((jsonObj), true); + case "SORT": + return model.Sort.getJsonObj((jsonObj), true); + case "FILTER": + return model.FilterPush.getJsonObj((jsonObj), true); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/query.ts b/lib/dataintegration/lib/model/query.ts new file mode 100644 index 0000000000..8ecee05cc7 --- /dev/null +++ b/lib/dataintegration/lib/model/query.ts @@ -0,0 +1,39 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 query object. + */ +export interface Query extends model.PushDownOperation { + /** + * A query string. + */ + "query"?: string; + + "modelType": string; +} + +export namespace Query { + export function getJsonObj(obj: Query, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.PushDownOperation.getJsonObj(obj) as Query)), + ...{} + }; + + return jsonObj; + } + export const modelType = "QUERY"; +} diff --git a/lib/dataintegration/lib/model/read-operation-config.ts b/lib/dataintegration/lib/model/read-operation-config.ts new file mode 100644 index 0000000000..fcdc8ccd38 --- /dev/null +++ b/lib/dataintegration/lib/model/read-operation-config.ts @@ -0,0 +1,71 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the read operation. + */ +export interface ReadOperationConfig extends model.AbstractDataOperationConfig { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * An array of operations. + */ + "operations"?: Array; + "dataFormat"?: model.DataFormat; + "partitionConfig"?: model.KeyRangePartitionConfig; + "readAttribute"?: model.OracleReadAttribute; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + + "modelType": string; +} + +export namespace ReadOperationConfig { + export function getJsonObj(obj: ReadOperationConfig, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AbstractDataOperationConfig.getJsonObj(obj) as ReadOperationConfig)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "operations": obj.operations + ? obj.operations.map(item => { + return model.PushDownOperation.getJsonObj(item); + }) + : undefined, + "dataFormat": obj.dataFormat ? model.DataFormat.getJsonObj(obj.dataFormat) : undefined, + "partitionConfig": obj.partitionConfig + ? model.PartitionConfig.getJsonObj(obj.partitionConfig) + : undefined, + "readAttribute": obj.readAttribute + ? model.AbstractReadAttribute.getJsonObj(obj.readAttribute) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "READ_OPERATION_CONFIG"; +} diff --git a/lib/dataintegration/lib/model/registry-metadata.ts b/lib/dataintegration/lib/model/registry-metadata.ts new file mode 100644 index 0000000000..940c6d290a --- /dev/null +++ b/lib/dataintegration/lib/model/registry-metadata.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Information about the object and its parent. + */ +export interface RegistryMetadata { + /** + * The owning object's key for this object. + */ + "aggregatorKey"?: string; + /** + * Labels are keywords or labels that you can add to data assets, dataflows etc. You can define your own labels and use them to categorize content. + */ + "labels"?: Array; + /** + * Registry version. + */ + "registryVersion"?: number; + /** + * The identifying key for the object. + */ + "key"?: string; +} + +export namespace RegistryMetadata { + export function getJsonObj(obj: RegistryMetadata): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/rename-rule.ts b/lib/dataintegration/lib/model/rename-rule.ts new file mode 100644 index 0000000000..eae21cff65 --- /dev/null +++ b/lib/dataintegration/lib/model/rename-rule.ts @@ -0,0 +1,47 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 rename rule can rename fields from one to another. + */ +export interface RenameRule extends model.ProjectionRule { + /** + * skipRemainingRulesOnMatch + */ + "isSkipRemainingRulesOnMatch"?: boolean; + /** + * fromName + */ + "fromName"?: string; + /** + * toName + */ + "toName"?: string; + + "modelType": string; +} + +export namespace RenameRule { + export function getJsonObj(obj: RenameRule, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.ProjectionRule.getJsonObj(obj) as RenameRule)), + ...{} + }; + + return jsonObj; + } + export const modelType = "RENAME_RULE"; +} diff --git a/lib/dataintegration/lib/model/root-object.ts b/lib/dataintegration/lib/model/root-object.ts new file mode 100644 index 0000000000..9693e1b88a --- /dev/null +++ b/lib/dataintegration/lib/model/root-object.ts @@ -0,0 +1,51 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 base class for all model types, including First Class and its contained objects. + */ +export interface RootObject { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; +} + +export namespace RootObject { + export function getJsonObj(obj: RootObject): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/rule-based-field-map.ts b/lib/dataintegration/lib/model/rule-based-field-map.ts new file mode 100644 index 0000000000..9acac91060 --- /dev/null +++ b/lib/dataintegration/lib/model/rule-based-field-map.ts @@ -0,0 +1,91 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 map of rule patterns. + */ +export interface RuleBasedFieldMap extends model.FieldMap { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + "configValues"?: model.ConfigValues; + /** + * mapType + */ + "mapType"?: RuleBasedFieldMap.MapType; + /** + * The pattern to map from. + */ + "fromPattern"?: string; + /** + * The pattern to map to. + */ + "toPattern"?: string; + /** + * Specifies whether the rule uses a java regex syntax. + */ + "isJavaRegexSyntax"?: boolean; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + "fromRuleConfig"?: model.RuleTypeConfig; + "toRuleConfig"?: model.RuleTypeConfig; + + "modelType": string; +} + +export namespace RuleBasedFieldMap { + export enum MapType { + MAPBYNAME = "MAPBYNAME", + MAPBYPOSITION = "MAPBYPOSITION", + MAPBYPATTERN = "MAPBYPATTERN", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: RuleBasedFieldMap, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.FieldMap.getJsonObj(obj) as RuleBasedFieldMap)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "configValues": obj.configValues + ? model.ConfigValues.getJsonObj(obj.configValues) + : undefined, + + "fromRuleConfig": obj.fromRuleConfig + ? model.RuleTypeConfig.getJsonObj(obj.fromRuleConfig) + : undefined, + "toRuleConfig": obj.toRuleConfig + ? model.RuleTypeConfig.getJsonObj(obj.toRuleConfig) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "RULE_BASED_FIELD_MAP"; +} diff --git a/lib/dataintegration/lib/model/rule-type-config.ts b/lib/dataintegration/lib/model/rule-type-config.ts new file mode 100644 index 0000000000..02e5124392 --- /dev/null +++ b/lib/dataintegration/lib/model/rule-type-config.ts @@ -0,0 +1,72 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 rule type config. + */ +export interface RuleTypeConfig extends model.DynamicTypeHandler { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Reference to a typed object, this can be either a key value to an object within the document, a shall referenced to a TypedObject or a full TypedObject definition. + */ + "scope"?: any; + /** + * orderByRule + */ + "isOrderByRule"?: boolean; + /** + * projectionRules + */ + "projectionRules"?: Array; + "configValues"?: model.ConfigValues; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + + "modelType": string; +} + +export namespace RuleTypeConfig { + export function getJsonObj(obj: RuleTypeConfig, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.DynamicTypeHandler.getJsonObj(obj) as RuleTypeConfig)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "projectionRules": obj.projectionRules + ? obj.projectionRules.map(item => { + return model.ProjectionRule.getJsonObj(item); + }) + : undefined, + "configValues": obj.configValues + ? model.ConfigValues.getJsonObj(obj.configValues) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "RULE_TYPE_CONFIGS"; +} diff --git a/lib/dataintegration/lib/model/schema-summary-collection.ts b/lib/dataintegration/lib/model/schema-summary-collection.ts new file mode 100644 index 0000000000..e7e1226940 --- /dev/null +++ b/lib/dataintegration/lib/model/schema-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This is the collection of schema summaries, it may be a collection of lightweight details or full definitions. + */ +export interface SchemaSummaryCollection { + /** + * The array of Schema summaries + */ + "items": Array; +} + +export namespace SchemaSummaryCollection { + export function getJsonObj(obj: SchemaSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.SchemaSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/schema-summary.ts b/lib/dataintegration/lib/model/schema-summary.ts new file mode 100644 index 0000000000..55671e1e84 --- /dev/null +++ b/lib/dataintegration/lib/model/schema-summary.ts @@ -0,0 +1,82 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 schema summary object. + */ +export interface SchemaSummary { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object. + */ + "externalKey"?: string; + /** + * hasContainers + */ + "isHasContainers"?: boolean; + /** + * Connection key which is the default. + */ + "defaultConnection"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; +} + +export namespace SchemaSummary { + export function getJsonObj(obj: SchemaSummary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/schema.ts b/lib/dataintegration/lib/model/schema.ts new file mode 100644 index 0000000000..aa1a0a7aa0 --- /dev/null +++ b/lib/dataintegration/lib/model/schema.ts @@ -0,0 +1,82 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 schema object. + */ +export interface Schema { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The external key for the object. + */ + "externalKey"?: string; + /** + * hasContainers + */ + "isHasContainers"?: boolean; + /** + * Connection key which is the default. + */ + "defaultConnection"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; +} + +export namespace Schema { + export function getJsonObj(obj: Schema): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/select.ts b/lib/dataintegration/lib/model/select.ts new file mode 100644 index 0000000000..5441bea835 --- /dev/null +++ b/lib/dataintegration/lib/model/select.ts @@ -0,0 +1,49 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the select object. + */ +export interface Select extends model.PushDownOperation { + /** + * Specifies whether the object is distinct. + */ + "isDistinct"?: boolean; + /** + * An array of selected columns. + */ + "selectColumns"?: Array; + + "modelType": string; +} + +export namespace Select { + export function getJsonObj(obj: Select, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.PushDownOperation.getJsonObj(obj) as Select)), + ...{ + "selectColumns": obj.selectColumns + ? obj.selectColumns.map(item => { + return model.ShapeField.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "SELECT"; +} diff --git a/lib/dataintegration/lib/model/shape-field.ts b/lib/dataintegration/lib/model/shape-field.ts new file mode 100644 index 0000000000..2b4f6cfea2 --- /dev/null +++ b/lib/dataintegration/lib/model/shape-field.ts @@ -0,0 +1,48 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 shape field object. + */ +export interface ShapeField extends model.TypedObject { + /** + * The reference to the type. + */ + "type"?: string; + /** + * Labels are keywords or labels that you can add to data assets, dataflows etc. You can define your own labels and use them to categorize content. + */ + "labels"?: Array; + "nativeShapeField"?: model.NativeShapeField; + + "modelType": string; +} + +export namespace ShapeField { + export function getJsonObj(obj: ShapeField, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as ShapeField)), + ...{ + "nativeShapeField": obj.nativeShapeField + ? model.NativeShapeField.getJsonObj(obj.nativeShapeField) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "SHAPE_FIELD"; +} diff --git a/lib/dataintegration/lib/model/shape.ts b/lib/dataintegration/lib/model/shape.ts new file mode 100644 index 0000000000..7fe758dc1a --- /dev/null +++ b/lib/dataintegration/lib/model/shape.ts @@ -0,0 +1,44 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 shape object. + */ +export interface Shape extends model.TypedObject { + "type"?: + | model.ConfiguredType + | model.JavaType + | model.DynamicType + | model.DerivedType + | model.DataType + | model.CompositeType; + + "modelType": string; +} + +export namespace Shape { + export function getJsonObj(obj: Shape, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.TypedObject.getJsonObj(obj) as Shape)), + ...{ + "type": obj.type ? model.BaseType.getJsonObj(obj.type) : undefined + } + }; + + return jsonObj; + } + export const modelType = "SHAPE"; +} diff --git a/lib/dataintegration/lib/model/sort-clause.ts b/lib/dataintegration/lib/model/sort-clause.ts new file mode 100644 index 0000000000..5473e639bc --- /dev/null +++ b/lib/dataintegration/lib/model/sort-clause.ts @@ -0,0 +1,50 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the sort object. + */ +export interface SortClause { + "field"?: model.ShapeField; + /** + * The sort order. + */ + "order"?: SortClause.Order; +} + +export namespace SortClause { + export enum Order { + ASC = "ASC", + DESC = "DESC", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: SortClause): object { + const jsonObj = { + ...obj, + ...{ + "field": obj.field ? model.ShapeField.getJsonObj(obj.field) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/sort.ts b/lib/dataintegration/lib/model/sort.ts new file mode 100644 index 0000000000..4a64d310cc --- /dev/null +++ b/lib/dataintegration/lib/model/sort.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the sort object. + */ +export interface Sort extends model.PushDownOperation { + /** + * The sort clause. + */ + "sortClauses"?: Array; + + "modelType": string; +} + +export namespace Sort { + export function getJsonObj(obj: Sort, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.PushDownOperation.getJsonObj(obj) as Sort)), + ...{ + "sortClauses": obj.sortClauses + ? obj.sortClauses.map(item => { + return model.SortClause.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "SORT"; +} diff --git a/lib/dataintegration/lib/model/source.ts b/lib/dataintegration/lib/model/source.ts new file mode 100644 index 0000000000..499741cfe8 --- /dev/null +++ b/lib/dataintegration/lib/model/source.ts @@ -0,0 +1,55 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the source object. + */ +export interface Source extends model.Operator { + "entity"?: model.DataEntityFromTable | model.DataEntityFromView | model.DataEntityFromFile; + /** + * Specifies the read access. + */ + "isReadAccess"?: boolean; + /** + * Specifies the copy fields. + */ + "isCopyFields"?: boolean; + /** + * Specifies if this uses a predefined shape. + */ + "isPredefinedShape"?: boolean; + "readOperationConfig"?: model.ReadOperationConfig; + + "modelType": string; +} + +export namespace Source { + export function getJsonObj(obj: Source, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Operator.getJsonObj(obj) as Source)), + ...{ + "entity": obj.entity ? model.DataEntity.getJsonObj(obj.entity) : undefined, + + "readOperationConfig": obj.readOperationConfig + ? model.ReadOperationConfig.getJsonObj(obj.readOperationConfig) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "SOURCE_OPERATOR"; +} diff --git a/lib/dataintegration/lib/model/structured-type.ts b/lib/dataintegration/lib/model/structured-type.ts new file mode 100644 index 0000000000..f584f0fbc4 --- /dev/null +++ b/lib/dataintegration/lib/model/structured-type.ts @@ -0,0 +1,59 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 StructuredType object represents a data type that exists in a physical data asset object such as a table column, but is more complex, for example an Oracle database OBJECT type. It can be composed of multiple DataType objects. + */ +export interface StructuredType { + "schema"?: + | model.ConfiguredType + | model.JavaType + | model.DynamicType + | model.DerivedType + | model.DataType + | model.CompositeType; + /** + * dtType + */ + "dtType"?: StructuredType.DtType; + /** + * typeSystemName + */ + "typeSystemName"?: string; + "configDefinition"?: model.ConfigDefinition; +} + +export namespace StructuredType { + export enum DtType { + PRIMITIVE = "PRIMITIVE", + STRUCTURED = "STRUCTURED" + } + + export function getJsonObj(obj: StructuredType): object { + const jsonObj = { + ...obj, + ...{ + "schema": obj.schema ? model.BaseType.getJsonObj(obj.schema) : undefined, + + "configDefinition": obj.configDefinition + ? model.ConfigDefinition.getJsonObj(obj.configDefinition) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/target.ts b/lib/dataintegration/lib/model/target.ts new file mode 100644 index 0000000000..c2e9b171ff --- /dev/null +++ b/lib/dataintegration/lib/model/target.ts @@ -0,0 +1,74 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the target operator. The target operator lets you specify the data entity to store the transformed data. + */ +export interface Target extends model.Operator { + "entity"?: model.DataEntityFromTable | model.DataEntityFromView | model.DataEntityFromFile; + /** + * Specifies the read access. + */ + "isReadAccess"?: boolean; + /** + * Specifies the copy fields. + */ + "isCopyFields"?: boolean; + /** + * Specifies if this uses a predefined shape. + */ + "isPredefinedShape"?: boolean; + /** + * Specifies the data property. + */ + "dataProperty"?: Target.DataProperty; + "writeOperationConfig"?: model.WriteOperationConfig; + + "modelType": string; +} + +export namespace Target { + export enum DataProperty { + TRUNCATE = "TRUNCATE", + MERGE = "MERGE", + BACKUP = "BACKUP", + OVERWRITE = "OVERWRITE", + APPEND = "APPEND", + IGNORE = "IGNORE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Target, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Operator.getJsonObj(obj) as Target)), + ...{ + "entity": obj.entity ? model.DataEntity.getJsonObj(obj.entity) : undefined, + + "writeOperationConfig": obj.writeOperationConfig + ? model.WriteOperationConfig.getJsonObj(obj.writeOperationConfig) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "TARGET_OPERATOR"; +} diff --git a/lib/dataintegration/lib/model/task-from-data-loader-task-details.ts b/lib/dataintegration/lib/model/task-from-data-loader-task-details.ts new file mode 100644 index 0000000000..d88d695b1e --- /dev/null +++ b/lib/dataintegration/lib/model/task-from-data-loader-task-details.ts @@ -0,0 +1,41 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 a data flow task. + */ +export interface TaskFromDataLoaderTaskDetails extends model.Task { + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace TaskFromDataLoaderTaskDetails { + export function getJsonObj( + obj: TaskFromDataLoaderTaskDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Task.getJsonObj(obj) as TaskFromDataLoaderTaskDetails)), + ...{ + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "DATA_LOADER_TASK"; +} diff --git a/lib/dataintegration/lib/model/task-from-integration-task-details.ts b/lib/dataintegration/lib/model/task-from-integration-task-details.ts new file mode 100644 index 0000000000..5ac7a4a051 --- /dev/null +++ b/lib/dataintegration/lib/model/task-from-integration-task-details.ts @@ -0,0 +1,41 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the integration task. + */ +export interface TaskFromIntegrationTaskDetails extends model.Task { + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace TaskFromIntegrationTaskDetails { + export function getJsonObj( + obj: TaskFromIntegrationTaskDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Task.getJsonObj(obj) as TaskFromIntegrationTaskDetails)), + ...{ + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "INTEGRATION_TASK"; +} diff --git a/lib/dataintegration/lib/model/task-run-details.ts b/lib/dataintegration/lib/model/task-run-details.ts new file mode 100644 index 0000000000..7b12088637 --- /dev/null +++ b/lib/dataintegration/lib/model/task-run-details.ts @@ -0,0 +1,125 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 task run object provides information on the execution of a task. + */ +export interface TaskRunDetails { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * status + */ + "status"?: TaskRunDetails.Status; + /** + * startTimeMillis + */ + "startTimeMillis"?: number; + /** + * endTimeMillis + */ + "endTimeMillis"?: number; + /** + * lastUpdated + */ + "lastUpdated"?: number; + /** + * Number of records processed in task run. + */ + "recordsWritten"?: number; + /** + * Number of bytes processed in task run. + */ + "bytesProcessed"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * The type of the task for the run. + */ + "taskType"?: TaskRunDetails.TaskType; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; +} + +export namespace TaskRunDetails { + export enum Status { + NOTSTARTED = "NOT_STARTED", + QUEUED = "QUEUED", + RUNNING = "RUNNING", + TERMINATING = "TERMINATING", + TERMINATED = "TERMINATED", + SUCCESS = "SUCCESS", + ERROR = "ERROR", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum TaskType { + INTEGRATIONTASK = "INTEGRATION_TASK", + DATALOADERTASK = "DATA_LOADER_TASK", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: TaskRunDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/task-run-log-summary.ts b/lib/dataintegration/lib/model/task-run-log-summary.ts new file mode 100644 index 0000000000..2338535281 --- /dev/null +++ b/lib/dataintegration/lib/model/task-run-log-summary.ts @@ -0,0 +1,33 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 log message from the execution of a task. + */ +export interface TaskRunLogSummary { + /** + * Human-readable log message. + */ + "message"?: string; +} + +export namespace TaskRunLogSummary { + export function getJsonObj(obj: TaskRunLogSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/task-run-summary-collection.ts b/lib/dataintegration/lib/model/task-run-summary-collection.ts new file mode 100644 index 0000000000..32991ce96a --- /dev/null +++ b/lib/dataintegration/lib/model/task-run-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * List of taskRun summaries + */ +export interface TaskRunSummaryCollection { + /** + * The array of taskRun summaries + */ + "items": Array; +} + +export namespace TaskRunSummaryCollection { + export function getJsonObj(obj: TaskRunSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.TaskRunSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/task-run-summary.ts b/lib/dataintegration/lib/model/task-run-summary.ts new file mode 100644 index 0000000000..24937a894b --- /dev/null +++ b/lib/dataintegration/lib/model/task-run-summary.ts @@ -0,0 +1,125 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 TaskRun. + */ +export interface TaskRunSummary { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * status + */ + "status"?: TaskRunSummary.Status; + /** + * startTimeMillis + */ + "startTimeMillis"?: number; + /** + * endTimeMillis + */ + "endTimeMillis"?: number; + /** + * lastUpdated + */ + "lastUpdated"?: number; + /** + * Number of records processed in task run. + */ + "recordsWritten"?: number; + /** + * Number of bytes processed in task run. + */ + "bytesProcessed"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * The type of the task for the run. + */ + "taskType"?: TaskRunSummary.TaskType; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; +} + +export namespace TaskRunSummary { + export enum Status { + NOTSTARTED = "NOT_STARTED", + QUEUED = "QUEUED", + RUNNING = "RUNNING", + TERMINATING = "TERMINATING", + TERMINATED = "TERMINATED", + SUCCESS = "SUCCESS", + ERROR = "ERROR", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum TaskType { + INTEGRATIONTASK = "INTEGRATION_TASK", + DATALOADERTASK = "DATA_LOADER_TASK", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: TaskRunSummary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/task-run.ts b/lib/dataintegration/lib/model/task-run.ts new file mode 100644 index 0000000000..7f8e6dc8fa --- /dev/null +++ b/lib/dataintegration/lib/model/task-run.ts @@ -0,0 +1,142 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 TaskRun. + */ +export interface TaskRun { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + "configProvider"?: model.ConfigProvider; + /** + * status + */ + "status"?: TaskRun.Status; + /** + * startTimeMillis + */ + "startTimeMillis"?: number; + /** + * endTimeMillis + */ + "endTimeMillis"?: number; + /** + * lastUpdated + */ + "lastUpdated"?: number; + /** + * Number of records processed in task run. + */ + "recordsWritten"?: number; + /** + * Number of bytes processed in task run. + */ + "bytesProcessed"?: number; + /** + * Error message if status is ERROR + */ + "errorMessage"?: string; + /** + * Opc request id of execution of task run + */ + "opcRequestId"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * The type of the task for the run. + */ + "taskType"?: TaskRun.TaskType; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; +} + +export namespace TaskRun { + export enum Status { + NOTSTARTED = "NOT_STARTED", + QUEUED = "QUEUED", + RUNNING = "RUNNING", + TERMINATING = "TERMINATING", + TERMINATED = "TERMINATED", + SUCCESS = "SUCCESS", + ERROR = "ERROR", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum TaskType { + INTEGRATIONTASK = "INTEGRATION_TASK", + DATALOADERTASK = "DATA_LOADER_TASK", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: TaskRun): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "configProvider": obj.configProvider + ? model.ConfigProvider.getJsonObj(obj.configProvider) + : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/task-summary-collection.ts b/lib/dataintegration/lib/model/task-summary-collection.ts new file mode 100644 index 0000000000..6a34c6d4dd --- /dev/null +++ b/lib/dataintegration/lib/model/task-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * This is the collection of task summaries, it may be a collection of lightweight details or full definitions. + */ +export interface TaskSummaryCollection { + /** + * The array of Task summaries. + */ + "items": Array; +} + +export namespace TaskSummaryCollection { + export function getJsonObj(obj: TaskSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.TaskSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/task-summary-from-data-loader-task.ts b/lib/dataintegration/lib/model/task-summary-from-data-loader-task.ts new file mode 100644 index 0000000000..e90ed585dc --- /dev/null +++ b/lib/dataintegration/lib/model/task-summary-from-data-loader-task.ts @@ -0,0 +1,43 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 a data flow task. + */ +export interface TaskSummaryFromDataLoaderTask extends model.TaskSummary { + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace TaskSummaryFromDataLoaderTask { + export function getJsonObj( + obj: TaskSummaryFromDataLoaderTask, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.TaskSummary.getJsonObj(obj) as TaskSummaryFromDataLoaderTask)), + ...{ + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "DATA_LOADER_TASK"; +} diff --git a/lib/dataintegration/lib/model/task-summary-from-integration-task.ts b/lib/dataintegration/lib/model/task-summary-from-integration-task.ts new file mode 100644 index 0000000000..33e20ee613 --- /dev/null +++ b/lib/dataintegration/lib/model/task-summary-from-integration-task.ts @@ -0,0 +1,43 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the integration task. + */ +export interface TaskSummaryFromIntegrationTask extends model.TaskSummary { + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace TaskSummaryFromIntegrationTask { + export function getJsonObj( + obj: TaskSummaryFromIntegrationTask, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.TaskSummary.getJsonObj(obj) as TaskSummaryFromIntegrationTask)), + ...{ + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "INTEGRATION_TASK"; +} diff --git a/lib/dataintegration/lib/model/task-summary.ts b/lib/dataintegration/lib/model/task-summary.ts new file mode 100644 index 0000000000..6d1fc0f56d --- /dev/null +++ b/lib/dataintegration/lib/model/task-summary.ts @@ -0,0 +1,123 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 task summary object type contains the audit summary information and the definition of the task summary object. + */ +export interface TaskSummary { + /** + * Generated key that can be used in API calls to identify task. On scenarios where reference to the task is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * An array of input ports. + */ + "inputPorts"?: Array; + /** + * An array of output ports. + */ + "outputPorts"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + "opConfigValues"?: model.ConfigValues; + "configProviderDelegate"?: model.ConfigProvider; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; + + "modelType": string; +} + +export namespace TaskSummary { + export function getJsonObj(obj: TaskSummary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "inputPorts": obj.inputPorts + ? obj.inputPorts.map(item => { + return model.InputPort.getJsonObj(item); + }) + : undefined, + "outputPorts": obj.outputPorts + ? obj.outputPorts.map(item => { + return model.OutputPort.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + "opConfigValues": obj.opConfigValues + ? model.ConfigValues.getJsonObj(obj.opConfigValues) + : undefined, + "configProviderDelegate": obj.configProviderDelegate + ? model.ConfigProvider.getJsonObj(obj.configProviderDelegate) + : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "INTEGRATION_TASK": + return model.TaskSummaryFromIntegrationTask.getJsonObj( + (jsonObj), + true + ); + case "DATA_LOADER_TASK": + return model.TaskSummaryFromDataLoaderTask.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/task-validation-summary-collection.ts b/lib/dataintegration/lib/model/task-validation-summary-collection.ts new file mode 100644 index 0000000000..99803884de --- /dev/null +++ b/lib/dataintegration/lib/model/task-validation-summary-collection.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * List of task validation summaries + */ +export interface TaskValidationSummaryCollection { + /** + * The array of validation summaries + */ + "items": Array; +} + +export namespace TaskValidationSummaryCollection { + export function getJsonObj(obj: TaskValidationSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.TaskValidationSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/task-validation-summary.ts b/lib/dataintegration/lib/model/task-validation-summary.ts new file mode 100644 index 0000000000..a1fe212426 --- /dev/null +++ b/lib/dataintegration/lib/model/task-validation-summary.ts @@ -0,0 +1,90 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 task validation + */ +export interface TaskValidationSummary { + /** + * Total number of validation messages + */ + "totalMessageCount"?: number; + /** + * Total number of validation error messages + */ + "errorMessageCount"?: number; + /** + * Total number of validation warning messages + */ + "warnMessageCount"?: number; + /** + * Total number of validation information messages + */ + "infoMessageCount"?: number; + /** + * Detailed information of the DataFlow object validation. + */ + "validationMessages"?: { [key: string]: Array }; + /** + * Objects will use a 36 character key as unique ID. It is system generated and cannot be edited by user + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; +} + +export namespace TaskValidationSummary { + export function getJsonObj(obj: TaskValidationSummary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/task-validation.ts b/lib/dataintegration/lib/model/task-validation.ts new file mode 100644 index 0000000000..4fadaf2de9 --- /dev/null +++ b/lib/dataintegration/lib/model/task-validation.ts @@ -0,0 +1,90 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 task validation + */ +export interface TaskValidation { + /** + * Total number of validation messages + */ + "totalMessageCount"?: number; + /** + * Total number of validation error messages + */ + "errorMessageCount"?: number; + /** + * Total number of validation warning messages + */ + "warnMessageCount"?: number; + /** + * Total number of validation information messages + */ + "infoMessageCount"?: number; + /** + * Detailed information of the DataFlow object validation. + */ + "validationMessages"?: { [key: string]: Array }; + /** + * Objects will use a 36 character key as unique ID. It is system generated and cannot be edited by user + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "metadata"?: model.ObjectMetadata; +} + +export namespace TaskValidation { + export function getJsonObj(obj: TaskValidation): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/task.ts b/lib/dataintegration/lib/model/task.ts new file mode 100644 index 0000000000..fe91e0568f --- /dev/null +++ b/lib/dataintegration/lib/model/task.ts @@ -0,0 +1,123 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 task type contains the audit summary information and the definition of the task. + */ +export interface Task { + /** + * Generated key that can be used in API calls to identify task. On scenarios where reference to the task is needed, a value can be passed in create. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * An array of input ports. + */ + "inputPorts"?: Array; + /** + * An array of output ports. + */ + "outputPorts"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + "opConfigValues"?: model.ConfigValues; + "configProviderDelegate"?: model.ConfigProvider; + "metadata"?: model.ObjectMetadata; + /** + * A map, if provided key is replaced with generated key, this structure provides mapping between user provided key and generated key + */ + "keyMap"?: { [key: string]: string }; + + "modelType": string; +} + +export namespace Task { + export function getJsonObj(obj: Task): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "inputPorts": obj.inputPorts + ? obj.inputPorts.map(item => { + return model.InputPort.getJsonObj(item); + }) + : undefined, + "outputPorts": obj.outputPorts + ? obj.outputPorts.map(item => { + return model.OutputPort.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + "opConfigValues": obj.opConfigValues + ? model.ConfigValues.getJsonObj(obj.opConfigValues) + : undefined, + "configProviderDelegate": obj.configProviderDelegate + ? model.ConfigProvider.getJsonObj(obj.configProviderDelegate) + : undefined, + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "INTEGRATION_TASK": + return model.TaskFromIntegrationTaskDetails.getJsonObj( + (jsonObj), + true + ); + case "DATA_LOADER_TASK": + return model.TaskFromDataLoaderTaskDetails.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/type-library.ts b/lib/dataintegration/lib/model/type-library.ts new file mode 100644 index 0000000000..6dccc59940 --- /dev/null +++ b/lib/dataintegration/lib/model/type-library.ts @@ -0,0 +1,75 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DIS type library container type. + */ +export interface TypeLibrary { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * types + */ + "types"?: { [key: string]: model.DerivedType }; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; +} + +export namespace TypeLibrary { + export function getJsonObj(obj: TypeLibrary): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "types": obj.types + ? common.mapContainer(obj.types, model.DerivedType.getJsonObj) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/type-list-rule.ts b/lib/dataintegration/lib/model/type-list-rule.ts new file mode 100644 index 0000000000..718aab3c03 --- /dev/null +++ b/lib/dataintegration/lib/model/type-list-rule.ts @@ -0,0 +1,92 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 type list rule which defines how fields are projected. + */ +export interface TypeListRule extends model.ProjectionRule { + /** + * skipRemainingRulesOnMatch + */ + "isSkipRemainingRulesOnMatch"?: boolean; + /** + * Reference to a typed object, this can be either a key value to an object within the document, a shall referenced to a TypedObject or a full TypedObject definition. + */ + "scope"?: any; + /** + * cascade + */ + "isCascade"?: boolean; + /** + * matchingStrategy + */ + "matchingStrategy"?: TypeListRule.MatchingStrategy; + /** + * caseSensitive + */ + "isCaseSensitive"?: boolean; + /** + * ruleType + */ + "ruleType"?: TypeListRule.RuleType; + /** + * types + */ + "types"?: Array; + + "modelType": string; +} + +export namespace TypeListRule { + export enum MatchingStrategy { + NAMEORTAGS = "NAME_OR_TAGS", + TAGSONLY = "TAGS_ONLY", + NAMEONLY = "NAME_ONLY", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum RuleType { + INCLUDE = "INCLUDE", + EXCLUDE = "EXCLUDE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: TypeListRule, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.ProjectionRule.getJsonObj(obj) as TypeListRule)), + ...{ + "types": obj.types + ? obj.types.map(item => { + return model.BaseType.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "TYPE_LIST_RULE"; +} diff --git a/lib/dataintegration/lib/model/type-system.ts b/lib/dataintegration/lib/model/type-system.ts new file mode 100644 index 0000000000..508e4534fa --- /dev/null +++ b/lib/dataintegration/lib/model/type-system.ts @@ -0,0 +1,85 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 type system maps from and to a type. + */ +export interface TypeSystem { + /** + * The key of the object. + */ + "key"?: string; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + /** + * typeMappingTo + */ + "typeMappingTo"?: { [key: string]: string }; + /** + * typeMappingFrom + */ + "typeMappingFrom"?: { [key: string]: string }; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * types + */ + "types"?: Array; +} + +export namespace TypeSystem { + export function getJsonObj(obj: TypeSystem): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "types": obj.types + ? obj.types.map(item => { + return model.DataType.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/typed-name-pattern-rule.ts b/lib/dataintegration/lib/model/typed-name-pattern-rule.ts new file mode 100644 index 0000000000..44badd1739 --- /dev/null +++ b/lib/dataintegration/lib/model/typed-name-pattern-rule.ts @@ -0,0 +1,96 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 typed name rule for field projection. + */ +export interface TypedNamePatternRule extends model.ProjectionRule { + /** + * types + */ + "types"?: Array; + /** + * skipRemainingRulesOnMatch + */ + "isSkipRemainingRulesOnMatch"?: boolean; + /** + * Reference to a typed object, this can be either a key value to an object within the document, a shall referenced to a TypedObject or a full TypedObject definition. + */ + "scope"?: any; + /** + * cascade + */ + "isCascade"?: boolean; + /** + * matchingStrategy + */ + "matchingStrategy"?: TypedNamePatternRule.MatchingStrategy; + /** + * caseSensitive + */ + "isCaseSensitive"?: boolean; + /** + * ruleType + */ + "ruleType"?: TypedNamePatternRule.RuleType; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "names"?: Array; + + "modelType": string; +} + +export namespace TypedNamePatternRule { + export enum MatchingStrategy { + NAMEORTAGS = "NAME_OR_TAGS", + TAGSONLY = "TAGS_ONLY", + NAMEONLY = "NAME_ONLY", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum RuleType { + INCLUDE = "INCLUDE", + EXCLUDE = "EXCLUDE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: TypedNamePatternRule, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.ProjectionRule.getJsonObj(obj) as TypedNamePatternRule)), + ...{ + "types": obj.types + ? obj.types.map(item => { + return model.BaseType.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "TYPED_NAME_PATTERN_RULE"; +} diff --git a/lib/dataintegration/lib/model/typed-object.ts b/lib/dataintegration/lib/model/typed-object.ts new file mode 100644 index 0000000000..e4c9dcdab3 --- /dev/null +++ b/lib/dataintegration/lib/model/typed-object.ts @@ -0,0 +1,99 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 TypedObject class is a base class for any model object that has a type. + */ +export interface TypedObject { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + "configValues"?: model.ConfigValues; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + + "modelType": string; +} + +export namespace TypedObject { + export function getJsonObj(obj: TypedObject): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "configValues": obj.configValues + ? model.ConfigValues.getJsonObj(obj.configValues) + : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "OUTPUT_PORT": + return model.OutputPort.getJsonObj((jsonObj), true); + case "DYNAMIC_INPUT_FIELD": + return model.DynamicInputField.getJsonObj( + (jsonObj), + true + ); + case "FIELD": + return model.AbstractField.getJsonObj((jsonObj), true); + case "INPUT_FIELD": + return model.InputField.getJsonObj((jsonObj), true); + case "SHAPE": + return model.Shape.getJsonObj((jsonObj), true); + case "INPUT_PORT": + return model.InputPort.getJsonObj((jsonObj), true); + case "PROXY_FIELD": + return model.ProxyField.getJsonObj((jsonObj), true); + case "DYNAMIC_PROXY_FIELD": + return model.DynamicProxyField.getJsonObj( + (jsonObj), + true + ); + case "SHAPE_FIELD": + return model.ShapeField.getJsonObj((jsonObj), true); + case "PARAMETER": + return model.Parameter.getJsonObj((jsonObj), true); + case "OUTPUT_FIELD": + return model.OutputField.getJsonObj((jsonObj), true); + case "DERIVED_FIELD": + return model.DerivedField.getJsonObj((jsonObj), true); + case "FLOW_PORT": + return model.FlowPort.getJsonObj((jsonObj), true); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/u-iproperties.ts b/lib/dataintegration/lib/model/u-iproperties.ts new file mode 100644 index 0000000000..f2e58cce80 --- /dev/null +++ b/lib/dataintegration/lib/model/u-iproperties.ts @@ -0,0 +1,37 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UI properties of the object. + */ +export interface UIProperties { + /** + * coordinateX + */ + "coordinateX"?: number; + /** + * coordinateY + */ + "coordinateY"?: number; +} + +export namespace UIProperties { + export function getJsonObj(obj: UIProperties): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/unique-key.ts b/lib/dataintegration/lib/model/unique-key.ts new file mode 100644 index 0000000000..3f67356754 --- /dev/null +++ b/lib/dataintegration/lib/model/unique-key.ts @@ -0,0 +1,64 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 unqique key object. + */ +export interface UniqueKey extends model.Key { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * attributeRefs + */ + "attributeRefs"?: Array; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + + "modelType": string; +} + +export namespace UniqueKey { + export function getJsonObj(obj: UniqueKey, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.Key.getJsonObj(obj) as UniqueKey)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "attributeRefs": obj.attributeRefs + ? obj.attributeRefs.map(item => { + return model.KeyAttribute.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "UNIQUE_KEY"; +} diff --git a/lib/dataintegration/lib/model/update-application-details.ts b/lib/dataintegration/lib/model/update-application-details.ts new file mode 100644 index 0000000000..26ab8ae6a9 --- /dev/null +++ b/lib/dataintegration/lib/model/update-application-details.ts @@ -0,0 +1,74 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in application create operations. + */ +export interface UpdateApplicationDetails { + /** + * Generated key that can be used in API calls to identify application. + */ + "key": string; + /** + * The type of the object. + */ + "modelType": string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * version + */ + "applicationVersion"?: number; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "parentRef"?: model.ParentReference; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion": number; + "metadata"?: model.ObjectMetadata; +} + +export namespace UpdateApplicationDetails { + export function getJsonObj(obj: UpdateApplicationDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "metadata": obj.metadata ? model.ObjectMetadata.getJsonObj(obj.metadata) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/update-connection-details.ts b/lib/dataintegration/lib/model/update-connection-details.ts new file mode 100644 index 0000000000..3906a5c313 --- /dev/null +++ b/lib/dataintegration/lib/model/update-connection-details.ts @@ -0,0 +1,105 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in connection update operations. + */ +export interface UpdateConnectionDetails { + /** + * Generated key that can be used in API calls to identify connection. On scenarios where reference to the connection is needed, a value can be passed in create. + */ + "key": string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion": number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The properties for the connection. + */ + "connectionProperties"?: Array; + "registryMetadata"?: model.RegistryMetadata; + + "modelType": string; +} + +export namespace UpdateConnectionDetails { + export function getJsonObj(obj: UpdateConnectionDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "connectionProperties": obj.connectionProperties + ? obj.connectionProperties.map(item => { + return model.ConnectionProperty.getJsonObj(item); + }) + : undefined, + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "ORACLE_OBJECT_STORAGE_CONNECTION": + return model.UpdateConnectionFromObjectStorage.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ATP_CONNECTION": + return model.UpdateConnectionFromAtp.getJsonObj( + (jsonObj), + true + ); + case "ORACLEDB_CONNECTION": + return model.UpdateConnectionFromOracle.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ADWC_CONNECTION": + return model.UpdateConnectionFromAdwc.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/update-connection-from-adwc.ts b/lib/dataintegration/lib/model/update-connection-from-adwc.ts new file mode 100644 index 0000000000..2e83f455cb --- /dev/null +++ b/lib/dataintegration/lib/model/update-connection-from-adwc.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ADWC connection details object. + */ +export interface UpdateConnectionFromAdwc extends model.UpdateConnectionDetails { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace UpdateConnectionFromAdwc { + export function getJsonObj(obj: UpdateConnectionFromAdwc, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateConnectionDetails.getJsonObj(obj) as UpdateConnectionFromAdwc)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_ADWC_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/update-connection-from-atp.ts b/lib/dataintegration/lib/model/update-connection-from-atp.ts new file mode 100644 index 0000000000..e609354335 --- /dev/null +++ b/lib/dataintegration/lib/model/update-connection-from-atp.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ATP connection details. + */ +export interface UpdateConnectionFromAtp extends model.UpdateConnectionDetails { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace UpdateConnectionFromAtp { + export function getJsonObj(obj: UpdateConnectionFromAtp, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateConnectionDetails.getJsonObj(obj) as UpdateConnectionFromAtp)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_ATP_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/update-connection-from-object-storage.ts b/lib/dataintegration/lib/model/update-connection-from-object-storage.ts new file mode 100644 index 0000000000..b148c89175 --- /dev/null +++ b/lib/dataintegration/lib/model/update-connection-from-object-storage.ts @@ -0,0 +1,56 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Object Storage connection details. + */ +export interface UpdateConnectionFromObjectStorage extends model.UpdateConnectionDetails { + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + /** + * The OCI user OCID for the user to connect to. + */ + "userId"?: string; + /** + * The fingeprint for the user. + */ + "fingerPrint"?: string; + /** + * The pass phrase for the connection. + */ + "passPhrase"?: string; + + "modelType": string; +} + +export namespace UpdateConnectionFromObjectStorage { + export function getJsonObj( + obj: UpdateConnectionFromObjectStorage, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateConnectionDetails.getJsonObj(obj) as UpdateConnectionFromObjectStorage)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLE_OBJECT_STORAGE_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/update-connection-from-oracle.ts b/lib/dataintegration/lib/model/update-connection-from-oracle.ts new file mode 100644 index 0000000000..5d766c1293 --- /dev/null +++ b/lib/dataintegration/lib/model/update-connection-from-oracle.ts @@ -0,0 +1,45 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle connection details object. + */ +export interface UpdateConnectionFromOracle extends model.UpdateConnectionDetails { + /** + * The user name for the connection. + */ + "username"?: string; + /** + * The password for the connection. + */ + "password"?: string; + + "modelType": string; +} + +export namespace UpdateConnectionFromOracle { + export function getJsonObj(obj: UpdateConnectionFromOracle, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateConnectionDetails.getJsonObj(obj) as UpdateConnectionFromOracle)), + ...{} + }; + + return jsonObj; + } + export const modelType = "ORACLEDB_CONNECTION"; +} diff --git a/lib/dataintegration/lib/model/update-data-asset-details.ts b/lib/dataintegration/lib/model/update-data-asset-details.ts new file mode 100644 index 0000000000..1da6c216da --- /dev/null +++ b/lib/dataintegration/lib/model/update-data-asset-details.ts @@ -0,0 +1,101 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in data asset update operations. + */ +export interface UpdateDataAssetDetails { + /** + * Generated key that can be used in API calls to identify data asset. + */ + "key": string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion": number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The external key for the object + */ + "externalKey"?: string; + /** + * assetProperties + */ + "assetProperties"?: { [key: string]: string }; + "registryMetadata"?: model.RegistryMetadata; + + "modelType": string; +} + +export namespace UpdateDataAssetDetails { + export function getJsonObj(obj: UpdateDataAssetDetails): object { + const jsonObj = { + ...obj, + ...{ + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "ORACLE_ATP_DATA_ASSET": + return model.UpdateDataAssetFromAtp.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_ADWC_DATA_ASSET": + return model.UpdateDataAssetFromAdwc.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_OBJECT_STORAGE_DATA_ASSET": + return model.UpdateDataAssetFromObjectStorage.getJsonObj( + (jsonObj), + true + ); + case "ORACLE_DATA_ASSET": + return model.UpdateDataAssetFromOracle.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/update-data-asset-from-adwc.ts b/lib/dataintegration/lib/model/update-data-asset-from-adwc.ts new file mode 100644 index 0000000000..3e7dc362b2 --- /dev/null +++ b/lib/dataintegration/lib/model/update-data-asset-from-adwc.ts @@ -0,0 +1,54 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle data asset details. + */ +export interface UpdateDataAssetFromAdwc extends model.UpdateDataAssetDetails { + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + "defaultConnection"?: model.UpdateConnectionFromAdwc; + + "modelType": string; +} + +export namespace UpdateDataAssetFromAdwc { + export function getJsonObj(obj: UpdateDataAssetFromAdwc, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateDataAssetDetails.getJsonObj(obj) as UpdateDataAssetFromAdwc)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.UpdateConnectionFromAdwc.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_ADWC_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/update-data-asset-from-atp.ts b/lib/dataintegration/lib/model/update-data-asset-from-atp.ts new file mode 100644 index 0000000000..7329196d99 --- /dev/null +++ b/lib/dataintegration/lib/model/update-data-asset-from-atp.ts @@ -0,0 +1,54 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle data asset details. + */ +export interface UpdateDataAssetFromAtp extends model.UpdateDataAssetDetails { + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + "defaultConnection"?: model.UpdateConnectionFromAtp; + + "modelType": string; +} + +export namespace UpdateDataAssetFromAtp { + export function getJsonObj(obj: UpdateDataAssetFromAtp, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateDataAssetDetails.getJsonObj(obj) as UpdateDataAssetFromAtp)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.UpdateConnectionFromAtp.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_ATP_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/update-data-asset-from-object-storage.ts b/lib/dataintegration/lib/model/update-data-asset-from-object-storage.ts new file mode 100644 index 0000000000..1db47581e1 --- /dev/null +++ b/lib/dataintegration/lib/model/update-data-asset-from-object-storage.ts @@ -0,0 +1,57 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle data asset details. + */ +export interface UpdateDataAssetFromObjectStorage extends model.UpdateDataAssetDetails { + /** + * url + */ + "url"?: string; + /** + * The OCI tenancy OCID. + */ + "tenancyId"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "namespace"?: string; + "defaultConnection"?: model.UpdateConnectionFromObjectStorage; + + "modelType": string; +} + +export namespace UpdateDataAssetFromObjectStorage { + export function getJsonObj( + obj: UpdateDataAssetFromObjectStorage, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateDataAssetDetails.getJsonObj(obj) as UpdateDataAssetFromObjectStorage)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.UpdateConnectionFromObjectStorage.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_OBJECT_STORAGE_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/update-data-asset-from-oracle.ts b/lib/dataintegration/lib/model/update-data-asset-from-oracle.ts new file mode 100644 index 0000000000..21374c7de5 --- /dev/null +++ b/lib/dataintegration/lib/model/update-data-asset-from-oracle.ts @@ -0,0 +1,66 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 Oracle data asset details. + */ +export interface UpdateDataAssetFromOracle extends model.UpdateDataAssetDetails { + /** + * The host details for the data asset. + */ + "host"?: string; + /** + * The port details for the data asset. + */ + "port"?: string; + /** + * The service name for the data asset. + */ + "serviceName"?: string; + /** + * The driver class for the data asset. + */ + "driverClass"?: string; + /** + * sid + */ + "sid"?: string; + /** + * The credential file content from a wallet for the data asset. + */ + "credentialFileContent"?: string; + "defaultConnection"?: model.UpdateConnectionFromOracle; + + "modelType": string; +} + +export namespace UpdateDataAssetFromOracle { + export function getJsonObj(obj: UpdateDataAssetFromOracle, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateDataAssetDetails.getJsonObj(obj) as UpdateDataAssetFromOracle)), + ...{ + "defaultConnection": obj.defaultConnection + ? model.UpdateConnectionFromOracle.getJsonObj(obj.defaultConnection) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "ORACLE_DATA_ASSET"; +} diff --git a/lib/dataintegration/lib/model/update-data-flow-details.ts b/lib/dataintegration/lib/model/update-data-flow-details.ts new file mode 100644 index 0000000000..8ae3aa6ed0 --- /dev/null +++ b/lib/dataintegration/lib/model/update-data-flow-details.ts @@ -0,0 +1,96 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in data flow update operations. + */ +export interface UpdateDataFlowDetails { + /** + * Generated key that can be used in API calls to identify data flow. On scenarios where reference to the data flow is needed, a value can be passed in create. + */ + "key": string; + /** + * The type of the object. + */ + "modelType": string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion": number; + /** + * An array of nodes. + */ + "nodes"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + /** + * Detailed description for the object. + */ + "description"?: string; + "flowConfigValues"?: model.ConfigValues; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace UpdateDataFlowDetails { + export function getJsonObj(obj: UpdateDataFlowDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "nodes": obj.nodes + ? obj.nodes.map(item => { + return model.FlowNode.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + + "flowConfigValues": obj.flowConfigValues + ? model.ConfigValues.getJsonObj(obj.flowConfigValues) + : undefined, + + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/update-folder-details.ts b/lib/dataintegration/lib/model/update-folder-details.ts new file mode 100644 index 0000000000..a7b3d6f82b --- /dev/null +++ b/lib/dataintegration/lib/model/update-folder-details.ts @@ -0,0 +1,76 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 properties used in folder update operations. + */ +export interface UpdateFolderDetails { + /** + * Generated key that can be used in API calls to identify folder. + */ + "key": string; + /** + * The type of the object. + */ + "modelType": string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * categoryName + */ + "categoryName"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + "parentRef"?: model.ParentReference; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion": number; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace UpdateFolderDetails { + export function getJsonObj(obj: UpdateFolderDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/update-project-details.ts b/lib/dataintegration/lib/model/update-project-details.ts new file mode 100644 index 0000000000..082a140732 --- /dev/null +++ b/lib/dataintegration/lib/model/update-project-details.ts @@ -0,0 +1,71 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 properties used in project update operations. + */ +export interface UpdateProjectDetails { + /** + * Generated key that can be used in API calls to identify project. + */ + "key": string; + /** + * The type of the object. + */ + "modelType": string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion": number; + "parentRef"?: model.ParentReference; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace UpdateProjectDetails { + export function getJsonObj(obj: UpdateProjectDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/update-task-details.ts b/lib/dataintegration/lib/model/update-task-details.ts new file mode 100644 index 0000000000..36a97b797e --- /dev/null +++ b/lib/dataintegration/lib/model/update-task-details.ts @@ -0,0 +1,121 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in task create operations. + */ +export interface UpdateTaskDetails { + /** + * Generated key that can be used in API calls to identify task. On scenarios where reference to the task is needed, a value can be passed in create. + */ + "key": string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion": number; + /** + * Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be edited by the user. + */ + "identifier"?: string; + /** + * An array of input ports. + */ + "inputPorts"?: Array; + /** + * An array of output ports. + */ + "outputPorts"?: Array; + /** + * An array of parameters. + */ + "parameters"?: Array; + "opConfigValues"?: model.ConfigValues; + "configProviderDelegate"?: model.ConfigProvider; + "registryMetadata"?: model.RegistryMetadata; + + "modelType": string; +} + +export namespace UpdateTaskDetails { + export function getJsonObj(obj: UpdateTaskDetails): object { + const jsonObj = { + ...obj, + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + + "inputPorts": obj.inputPorts + ? obj.inputPorts.map(item => { + return model.InputPort.getJsonObj(item); + }) + : undefined, + "outputPorts": obj.outputPorts + ? obj.outputPorts.map(item => { + return model.OutputPort.getJsonObj(item); + }) + : undefined, + "parameters": obj.parameters + ? obj.parameters.map(item => { + return model.Parameter.getJsonObj(item); + }) + : undefined, + "opConfigValues": obj.opConfigValues + ? model.ConfigValues.getJsonObj(obj.opConfigValues) + : undefined, + "configProviderDelegate": obj.configProviderDelegate + ? model.ConfigProvider.getJsonObj(obj.configProviderDelegate) + : undefined, + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + if ("modelType" in obj && obj.modelType) { + switch (obj.modelType) { + case "DATA_LOADER_TASK": + return model.UpdateTaskFromDataLoaderTask.getJsonObj( + (jsonObj), + true + ); + case "INTEGRATION_TASK": + return model.UpdateTaskFromIntegrationTask.getJsonObj( + (jsonObj), + true + ); + default: + throw Error("Unknown value for: " + obj.modelType); + } + } + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/update-task-from-data-loader-task.ts b/lib/dataintegration/lib/model/update-task-from-data-loader-task.ts new file mode 100644 index 0000000000..798184eb4b --- /dev/null +++ b/lib/dataintegration/lib/model/update-task-from-data-loader-task.ts @@ -0,0 +1,40 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the data loader task. + */ +export interface UpdateTaskFromDataLoaderTask extends model.UpdateTaskDetails { + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace UpdateTaskFromDataLoaderTask { + export function getJsonObj(obj: UpdateTaskFromDataLoaderTask, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateTaskDetails.getJsonObj(obj) as UpdateTaskFromDataLoaderTask)), + ...{ + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "DATA_LOADER_TASK"; +} diff --git a/lib/dataintegration/lib/model/update-task-from-integration-task.ts b/lib/dataintegration/lib/model/update-task-from-integration-task.ts new file mode 100644 index 0000000000..32aeac0c54 --- /dev/null +++ b/lib/dataintegration/lib/model/update-task-from-integration-task.ts @@ -0,0 +1,43 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the integration task. + */ +export interface UpdateTaskFromIntegrationTask extends model.UpdateTaskDetails { + "dataFlow"?: model.DataFlow; + + "modelType": string; +} + +export namespace UpdateTaskFromIntegrationTask { + export function getJsonObj( + obj: UpdateTaskFromIntegrationTask, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateTaskDetails.getJsonObj(obj) as UpdateTaskFromIntegrationTask)), + ...{ + "dataFlow": obj.dataFlow ? model.DataFlow.getJsonObj(obj.dataFlow) : undefined + } + }; + + return jsonObj; + } + export const modelType = "INTEGRATION_TASK"; +} diff --git a/lib/dataintegration/lib/model/update-task-run-details.ts b/lib/dataintegration/lib/model/update-task-run-details.ts new file mode 100644 index 0000000000..a08fbc8791 --- /dev/null +++ b/lib/dataintegration/lib/model/update-task-run-details.ts @@ -0,0 +1,69 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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"); + +/** + * Properties used in task run update operations. + */ +export interface UpdateTaskRunDetails { + /** + * The key of the object. + */ + "key"?: string; + /** + * status + */ + "status"?: UpdateTaskRunDetails.Status; + /** + * The type of the object. + */ + "modelType"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + /** + * Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value can be edited by the user and it is restricted to 1000 characters + */ + "name"?: string; + /** + * Detailed description for the object. + */ + "description"?: string; + /** + * The version of the object that is used to track changes in the object instance. + */ + "objectVersion"?: number; + "registryMetadata"?: model.RegistryMetadata; +} + +export namespace UpdateTaskRunDetails { + export enum Status { + TERMINATING = "TERMINATING" + } + + export function getJsonObj(obj: UpdateTaskRunDetails): object { + const jsonObj = { + ...obj, + ...{ + "registryMetadata": obj.registryMetadata + ? model.RegistryMetadata.getJsonObj(obj.registryMetadata) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/update-workspace-details.ts b/lib/dataintegration/lib/model/update-workspace-details.ts new file mode 100644 index 0000000000..c3bd54277c --- /dev/null +++ b/lib/dataintegration/lib/model/update-workspace-details.ts @@ -0,0 +1,49 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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, the private network can be enabled and VCN and subnet set only when initially it is has been created with it off. + */ +export interface UpdateWorkspaceDetails { + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Department\": \"Finance\"}` + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * A detailed description for the workspace. + */ + "description"?: string; + /** + * A user-friendly display name for the workspace. Does not have to be unique, and can be modified. Avoid entering confidential information. + */ + "displayName"?: string; +} + +export namespace UpdateWorkspaceDetails { + export function getJsonObj(obj: UpdateWorkspaceDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/validation-message.ts b/lib/dataintegration/lib/model/validation-message.ts new file mode 100644 index 0000000000..ed6e4d2504 --- /dev/null +++ b/lib/dataintegration/lib/model/validation-message.ts @@ -0,0 +1,41 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 level, message key and validation message. + */ +export interface ValidationMessage { + /** + * Total number of validation messages + */ + "level"?: string; + /** + * The key. + */ + "messageKey"?: string; + /** + * The message itself. + */ + "validationMessage"?: string; +} + +export namespace ValidationMessage { + export function getJsonObj(obj: ValidationMessage): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/work-request-error.ts b/lib/dataintegration/lib/model/work-request-error.ts new file mode 100644 index 0000000000..7116c670cd --- /dev/null +++ b/lib/dataintegration/lib/model/work-request-error.ts @@ -0,0 +1,42 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 error that occured while executing an operation that is tracked by a work request. + */ +export interface WorkRequestError { + /** + * A machine-usable code for the error that occured, as listed in [API Errors](https://docs.cloud.oracle.com/Content/API/References/apierrors.htm). + * + */ + "code": string; + /** + * A user friendly description of the error that occured. + */ + "message": string; + /** + * The date and time the error occured, in the timestamp format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + */ + "timestamp": Date; +} + +export namespace WorkRequestError { + export function getJsonObj(obj: WorkRequestError): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/work-request-log-entry.ts b/lib/dataintegration/lib/model/work-request-log-entry.ts new file mode 100644 index 0000000000..b84591c13d --- /dev/null +++ b/lib/dataintegration/lib/model/work-request-log-entry.ts @@ -0,0 +1,37 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 log message from executing an operation that is tracked by a work request. + */ +export interface WorkRequestLogEntry { + /** + * A user friendly log message. + */ + "message": string; + /** + * The date and time the log message was written, in the timestamp format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + */ + "timestamp": Date; +} + +export namespace WorkRequestLogEntry { + export function getJsonObj(obj: WorkRequestLogEntry): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/work-request-resource.ts b/lib/dataintegration/lib/model/work-request-resource.ts new file mode 100644 index 0000000000..1f1a656a40 --- /dev/null +++ b/lib/dataintegration/lib/model/work-request-resource.ts @@ -0,0 +1,66 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 resource that is created or operated on by a work request. + */ +export interface WorkRequestResource { + /** + * The resource type the work request affects. + */ + "entityType": string; + /** + * The way in which this resource is affected by the work tracked in the work request. + * A resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + * + */ + "actionType": WorkRequestResource.ActionType; + /** + * The OCID or other unique identifier of the resource the work request affects. + */ + "identifier": string; + /** + * The URI path that is used in a GET request to access the resource metadata. + */ + "entityUri"?: string; +} + +export namespace WorkRequestResource { + export enum ActionType { + CREATED = "CREATED", + UPDATED = "UPDATED", + DELETED = "DELETED", + MOVED = "MOVED", + INPROGRESS = "IN_PROGRESS", + FAILED = "FAILED", + STOPPED = "STOPPED", + STARTED = "STARTED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: WorkRequestResource): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/work-request-summary.ts b/lib/dataintegration/lib/model/work-request-summary.ts new file mode 100644 index 0000000000..1655079fee --- /dev/null +++ b/lib/dataintegration/lib/model/work-request-summary.ts @@ -0,0 +1,109 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 work request summary object. + */ +export interface WorkRequestSummary { + /** + * The asynchronous operation tracked by this work request. + */ + "operationType": WorkRequestSummary.OperationType; + /** + * The status of this work request. + */ + "status": WorkRequestSummary.Status; + /** + * The id of the work request. + */ + "id": string; + /** + * The ocid of the compartment that contains this work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects multiple resources that are not in the same compartment, then the system picks a primary + * resource whose compartment should be used. + * + */ + "compartmentId": string; + /** + * The resources affected by this work request. + */ + "resources": Array; + /** + * The completed percentage of the operation tracked by this work request. + */ + "percentComplete": number; + /** + * The date and time this work request was accepted, in the timestamp format defined by + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + */ + "timeAccepted": Date; + /** + * The date and time the work request transitioned from `ACCEPTED` to `IN_PROGRESS`, in the timestamp format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + */ + "timeStarted"?: Date; + /** + * The date and time the work request reached a terminal state, either `FAILED` or `SUCCEEDED`, in the timestamp format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + */ + "timeFinished"?: Date; +} + +export namespace WorkRequestSummary { + export enum OperationType { + CREATEWORKSPACE = "CREATE_WORKSPACE", + UPDATEWORKSPACE = "UPDATE_WORKSPACE", + DELETEWORKSPACE = "DELETE_WORKSPACE", + MOVEWORKSPACE = "MOVE_WORKSPACE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum Status { + ACCEPTED = "ACCEPTED", + INPROGRESS = "IN_PROGRESS", + FAILED = "FAILED", + SUCCEEDED = "SUCCEEDED", + CANCELING = "CANCELING", + CANCELED = "CANCELED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: WorkRequestSummary): object { + const jsonObj = { + ...obj, + ...{ + "resources": obj.resources + ? obj.resources.map(item => { + return model.WorkRequestResource.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/work-request.ts b/lib/dataintegration/lib/model/work-request.ts new file mode 100644 index 0000000000..0371606888 --- /dev/null +++ b/lib/dataintegration/lib/model/work-request.ts @@ -0,0 +1,109 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 API operations used to create and configure Data Integration resources do not take effect immediately. In these cases, the operation spawns an asynchronous workflow to fulfill the request. Work requests provide visibility into the status of these in-progress, long-running asynchronous workflows. + */ +export interface WorkRequest { + /** + * The asynchronous operation tracked by this work request. + */ + "operationType": WorkRequest.OperationType; + /** + * The status of this work request. + */ + "status": WorkRequest.Status; + /** + * The id of the work request. + */ + "id": string; + /** + * The ocid of the compartment that contains this work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects multiple resources that are not in the same compartment, then the system picks a primary + * resource whose compartment should be used. + * + */ + "compartmentId": string; + /** + * The resources affected by this work request. + */ + "resources": Array; + /** + * The completed percentage of the operation tracked by this work request. + */ + "percentComplete": number; + /** + * The date and time this work request was accepted, in the timestamp format defined by + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + */ + "timeAccepted": Date; + /** + * The date and time the work request transitioned from `ACCEPTED` to `IN_PROGRESS`, in the timestamp format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + */ + "timeStarted"?: Date; + /** + * The date and time the work request reached a terminal state, either `FAILED` or `SUCCEEDED`, in the timestamp format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + */ + "timeFinished"?: Date; +} + +export namespace WorkRequest { + export enum OperationType { + CREATEWORKSPACE = "CREATE_WORKSPACE", + UPDATEWORKSPACE = "UPDATE_WORKSPACE", + DELETEWORKSPACE = "DELETE_WORKSPACE", + MOVEWORKSPACE = "MOVE_WORKSPACE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export enum Status { + ACCEPTED = "ACCEPTED", + INPROGRESS = "IN_PROGRESS", + FAILED = "FAILED", + SUCCEEDED = "SUCCEEDED", + CANCELING = "CANCELING", + CANCELED = "CANCELED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: WorkRequest): object { + const jsonObj = { + ...obj, + ...{ + "resources": obj.resources + ? obj.resources.map(item => { + return model.WorkRequestResource.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/workspace-summary.ts b/lib/dataintegration/lib/model/workspace-summary.ts new file mode 100644 index 0000000000..60890e21d7 --- /dev/null +++ b/lib/dataintegration/lib/model/workspace-summary.ts @@ -0,0 +1,94 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 a Workspace. + */ +export interface WorkspaceSummary { + /** + * Unique identifier that is immutable. + */ + "id"?: string; + /** + * A detailed description of the workspace. + */ + "description"?: string; + /** + * A user-friendly display name that is changeable. Avoid entering confidential information. + */ + "displayName"?: string; + /** + * The OCID of the compartment that contains the workspace. + */ + "compartmentId"?: string; + /** + * The date and time the workspace was created, in the timestamp format defined by RFC3339. + * + */ + "timeCreated"?: Date; + /** + * The date and time the workspace was updated, in the timestamp format defined by RFC3339. + * + */ + "timeUpdated"?: Date; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: `{\"bar-key\": \"value\"}` + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Usage of predefined tag keys. These predefined keys are scoped to namespaces. + * Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * The current state of the workspace. + */ + "lifecycleState"?: WorkspaceSummary.LifecycleState; + /** + * A detailed description about the current state of the workspace. Used to provide actionable information if the workspace is in a failed state. + */ + "stateMessage"?: string; +} + +export namespace WorkspaceSummary { + export enum LifecycleState { + CREATING = "CREATING", + ACTIVE = "ACTIVE", + INACTIVE = "INACTIVE", + UPDATING = "UPDATING", + DELETING = "DELETING", + DELETED = "DELETED", + FAILED = "FAILED", + STARTING = "STARTING", + STOPPING = "STOPPING", + STOPPED = "STOPPED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: WorkspaceSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/workspace.ts b/lib/dataintegration/lib/model/workspace.ts new file mode 100644 index 0000000000..7eafaa6ebc --- /dev/null +++ b/lib/dataintegration/lib/model/workspace.ts @@ -0,0 +1,125 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 workspace is an organizational construct to keep multiple data integration solutions and their resources (data assets, data flows, tasks, and so on) separate from each other, helping you to stay organized. For example, you could have separate workspaces for development, testing, and production. + */ +export interface Workspace { + /** + * The OCID of the VCN the subnet is in. + */ + "vcnId"?: string; + /** + * The OCID of the subnet for customer connected databases. + */ + "subnetId"?: string; + /** + * The IP of the custom DNS. + */ + "dnsServerIp"?: string; + /** + * The DNS zone of the custom DNS to use to resolve names. + */ + "dnsServerZone"?: string; + /** + * Whether the private network connection is enabled or disabled. + */ + "isPrivateNetworkEnabled"?: boolean; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Department\": \"Finance\"}` + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * A detailed description for the workspace. + */ + "description"?: string; + /** + * A user-friendly display name for the workspace. Does not have to be unique, and can be modified. Avoid entering confidential information. + */ + "displayName": string; + /** + * The OCID of the compartment containing the workspace. + */ + "compartmentId"?: string; + /** + * The date and time the workspace was created, in the timestamp format defined by RFC3339. + * + */ + "timeCreated"?: Date; + /** + * The date and time the workspace was updated, in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + "timeUpdated"?: Date; + /** + * Lifecycle states for workspaces in Data Integration Service + * CREATING - The resource is being created and may not be usable until the entire metadata is defined + * UPDATING - The resource is being updated and may not be usable until all changes are commited + * DELETING - The resource is being deleted and might require deep cleanup of children. + * ACTIVE - The resource is valid and available for access + * INACTIVE - The resource might be incomplete in its definition or might have been made unavailable for + * administrative reasons + * DELETED - The resource has been deleted and isn't available + * FAILED - The resource is in a failed state due to validation or other errors + * STARTING - The resource is being started and may not be usable until becomes ACTIVE again + * STOPPING - The resource is in the process of Stopping and may not be usable until it Stops or fails + * STOPPED - The resource is in Stopped state due to stop operation. + * + */ + "lifecycleState"?: Workspace.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. + */ + "stateMessage"?: string; + /** + * Unique identifier that is immutable on creation + */ + "id": string; +} + +export namespace Workspace { + export enum LifecycleState { + CREATING = "CREATING", + ACTIVE = "ACTIVE", + INACTIVE = "INACTIVE", + UPDATING = "UPDATING", + DELETING = "DELETING", + DELETED = "DELETED", + FAILED = "FAILED", + STARTING = "STARTING", + STOPPING = "STOPPING", + STOPPED = "STOPPED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Workspace): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/dataintegration/lib/model/write-operation-config.ts b/lib/dataintegration/lib/model/write-operation-config.ts new file mode 100644 index 0000000000..f180abfc95 --- /dev/null +++ b/lib/dataintegration/lib/model/write-operation-config.ts @@ -0,0 +1,91 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 the write operation. + */ +export interface WriteOperationConfig extends model.AbstractDataOperationConfig { + /** + * The key of the object. + */ + "key"?: string; + /** + * The model version of an object. + */ + "modelVersion"?: string; + "parentRef"?: model.ParentReference; + /** + * An array of operations. + */ + "operations"?: Array; + "dataFormat"?: model.DataFormat; + "partitionConfig"?: model.KeyRangePartitionConfig; + "writeAttribute"?: + | model.OracleAdwcWriteAttribute + | model.OracleWriteAttribute + | model.OracleAtpWriteAttribute; + /** + * The mode for the write operation. + */ + "writeMode"?: WriteOperationConfig.WriteMode; + /** + * The status of an object that can be set to value 1 for shallow references across objects, other values reserved. + */ + "objectStatus"?: number; + + "modelType": string; +} + +export namespace WriteOperationConfig { + export enum WriteMode { + OVERWRITE = "OVERWRITE", + APPEND = "APPEND", + MERGE = "MERGE", + IGNORE = "IGNORE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UNKNOWN_VALUE = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: WriteOperationConfig, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AbstractDataOperationConfig.getJsonObj(obj) as WriteOperationConfig)), + ...{ + "parentRef": obj.parentRef ? model.ParentReference.getJsonObj(obj.parentRef) : undefined, + "operations": obj.operations + ? obj.operations.map(item => { + return model.PushDownOperation.getJsonObj(item); + }) + : undefined, + "dataFormat": obj.dataFormat ? model.DataFormat.getJsonObj(obj.dataFormat) : undefined, + "partitionConfig": obj.partitionConfig + ? model.PartitionConfig.getJsonObj(obj.partitionConfig) + : undefined, + "writeAttribute": obj.writeAttribute + ? model.AbstractWriteAttribute.getJsonObj(obj.writeAttribute) + : undefined + } + }; + + return jsonObj; + } + export const modelType = "WRITE_OPERATION_CONFIG"; +} diff --git a/lib/dataintegration/lib/request/change-compartment-request.ts b/lib/dataintegration/lib/request/change-compartment-request.ts new file mode 100644 index 0000000000..44c341abd8 --- /dev/null +++ b/lib/dataintegration/lib/request/change-compartment-request.ts @@ -0,0 +1,45 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ChangeCompartmentRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The details of change compartment action. + */ + "changeCompartmentDetails": model.ChangeCompartmentDetails; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/dataintegration/lib/request/create-application-request.ts b/lib/dataintegration/lib/request/create-application-request.ts new file mode 100644 index 0000000000..1ccbc6f4e6 --- /dev/null +++ b/lib/dataintegration/lib/request/create-application-request.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateApplicationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The details needed to create an application. + */ + "createApplicationDetails": model.CreateApplicationDetails; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/dataintegration/lib/request/create-connection-request.ts b/lib/dataintegration/lib/request/create-connection-request.ts new file mode 100644 index 0000000000..b18fb97dea --- /dev/null +++ b/lib/dataintegration/lib/request/create-connection-request.ts @@ -0,0 +1,41 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateConnectionRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * Request body parameter for connection details + */ + "createConnectionDetails": + | model.CreateConnectionFromAtp + | model.CreateConnectionFromAdwc + | model.CreateConnectionFromOracle + | model.CreateConnectionFromObjectStorage; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/dataintegration/lib/request/create-connection-validation-request.ts b/lib/dataintegration/lib/request/create-connection-validation-request.ts new file mode 100644 index 0000000000..fc6fdef4fb --- /dev/null +++ b/lib/dataintegration/lib/request/create-connection-validation-request.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateConnectionValidationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * Connection info + */ + "createConnectionValidationDetails": model.CreateConnectionValidationDetails; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/dataintegration/lib/request/create-data-asset-request.ts b/lib/dataintegration/lib/request/create-data-asset-request.ts new file mode 100644 index 0000000000..c6a92096c8 --- /dev/null +++ b/lib/dataintegration/lib/request/create-data-asset-request.ts @@ -0,0 +1,41 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateDataAssetRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * Request body parameter for data asset details + */ + "createDataAssetDetails": + | model.CreateDataAssetFromOracle + | model.CreateDataAssetFromAdwc + | model.CreateDataAssetFromAtp + | model.CreateDataAssetFromObjectStorage; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/dataintegration/lib/request/create-data-flow-request.ts b/lib/dataintegration/lib/request/create-data-flow-request.ts new file mode 100644 index 0000000000..f53585524a --- /dev/null +++ b/lib/dataintegration/lib/request/create-data-flow-request.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateDataFlowRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The details needed to create a new data flow. + */ + "createDataFlowDetails": model.CreateDataFlowDetails; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: 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/dataintegration/lib/request/create-data-flow-validation-request.ts b/lib/dataintegration/lib/request/create-data-flow-validation-request.ts new file mode 100644 index 0000000000..a376e9fcd7 --- /dev/null +++ b/lib/dataintegration/lib/request/create-data-flow-validation-request.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateDataFlowValidationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * Details for the new DataFlow object. + */ + "createDataFlowValidationDetails": model.CreateDataFlowValidationDetails; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/dataintegration/lib/request/create-entity-shape-request.ts b/lib/dataintegration/lib/request/create-entity-shape-request.ts new file mode 100644 index 0000000000..76f33ca08e --- /dev/null +++ b/lib/dataintegration/lib/request/create-entity-shape-request.ts @@ -0,0 +1,53 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateEntityShapeRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The connection key + */ + "connectionKey": string; + /** + * Schema resource name used for retrieving schemas + */ + "schemaResourceName": string; + /** + * The details of the data entity to use to infer the data entity shape. + */ + "createEntityShapeDetails": model.CreateEntityShapeFromFile; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: string; +} diff --git a/lib/dataintegration/lib/request/create-folder-request.ts b/lib/dataintegration/lib/request/create-folder-request.ts new file mode 100644 index 0000000000..3310ded4f9 --- /dev/null +++ b/lib/dataintegration/lib/request/create-folder-request.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateFolderRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The details needed to create a folder. + */ + "createFolderDetails": model.CreateFolderDetails; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: 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/dataintegration/lib/request/create-patch-request.ts b/lib/dataintegration/lib/request/create-patch-request.ts new file mode 100644 index 0000000000..82edca1de6 --- /dev/null +++ b/lib/dataintegration/lib/request/create-patch-request.ts @@ -0,0 +1,41 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreatePatchRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * Detailed needed to create a patch in an application. + */ + "createPatchDetails": model.CreatePatchDetails; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/dataintegration/lib/request/create-project-request.ts b/lib/dataintegration/lib/request/create-project-request.ts new file mode 100644 index 0000000000..9dd18371c8 --- /dev/null +++ b/lib/dataintegration/lib/request/create-project-request.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateProjectRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The details needed to create a project in a workspace. + */ + "createProjectDetails": model.CreateProjectDetails; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: 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/dataintegration/lib/request/create-task-request.ts b/lib/dataintegration/lib/request/create-task-request.ts new file mode 100644 index 0000000000..d302476173 --- /dev/null +++ b/lib/dataintegration/lib/request/create-task-request.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateTaskRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The details needed to create a new task. + */ + "createTaskDetails": model.CreateTaskFromIntegrationTask | model.CreateTaskFromDataLoaderTask; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: 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/dataintegration/lib/request/create-task-run-request.ts b/lib/dataintegration/lib/request/create-task-run-request.ts new file mode 100644 index 0000000000..c57dc91be6 --- /dev/null +++ b/lib/dataintegration/lib/request/create-task-run-request.ts @@ -0,0 +1,41 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateTaskRunRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * The details needed to create a task run. + */ + "createTaskRunDetails": model.CreateTaskRunDetails; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: 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/dataintegration/lib/request/create-task-validation-request.ts b/lib/dataintegration/lib/request/create-task-validation-request.ts new file mode 100644 index 0000000000..a2a43a5803 --- /dev/null +++ b/lib/dataintegration/lib/request/create-task-validation-request.ts @@ -0,0 +1,39 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateTaskValidationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * Task info + */ + "createTaskValidationDetails": + | model.CreateTaskValidationFromDataLoaderTask + | model.CreateTaskValidationFromIntegrationTask; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/dataintegration/lib/request/create-workspace-request.ts b/lib/dataintegration/lib/request/create-workspace-request.ts new file mode 100644 index 0000000000..292271fe2e --- /dev/null +++ b/lib/dataintegration/lib/request/create-workspace-request.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateWorkspaceRequest { + /** + * Details for the new Data Integration Workspace. + */ + "createWorkspaceDetails": model.CreateWorkspaceDetails; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: 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/dataintegration/lib/request/delete-application-request.ts b/lib/dataintegration/lib/request/delete-application-request.ts new file mode 100644 index 0000000000..b5e77b7465 --- /dev/null +++ b/lib/dataintegration/lib/request/delete-application-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteApplicationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-connection-request.ts b/lib/dataintegration/lib/request/delete-connection-request.ts new file mode 100644 index 0000000000..00f5681bb9 --- /dev/null +++ b/lib/dataintegration/lib/request/delete-connection-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteConnectionRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The connection key + */ + "connectionKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-connection-validation-request.ts b/lib/dataintegration/lib/request/delete-connection-validation-request.ts new file mode 100644 index 0000000000..646d6dc6e8 --- /dev/null +++ b/lib/dataintegration/lib/request/delete-connection-validation-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteConnectionValidationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * key of the connection validation. + */ + "connectionValidationKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-data-asset-request.ts b/lib/dataintegration/lib/request/delete-data-asset-request.ts new file mode 100644 index 0000000000..04a7621fcc --- /dev/null +++ b/lib/dataintegration/lib/request/delete-data-asset-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteDataAssetRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * Data asset key. + */ + "dataAssetKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-data-flow-request.ts b/lib/dataintegration/lib/request/delete-data-flow-request.ts new file mode 100644 index 0000000000..eae97f722a --- /dev/null +++ b/lib/dataintegration/lib/request/delete-data-flow-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteDataFlowRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS DataFlow key + */ + "dataFlowKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-data-flow-validation-request.ts b/lib/dataintegration/lib/request/delete-data-flow-validation-request.ts new file mode 100644 index 0000000000..57dedab4a1 --- /dev/null +++ b/lib/dataintegration/lib/request/delete-data-flow-validation-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteDataFlowValidationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * key of the dataflow validation. + */ + "dataFlowValidationKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-folder-request.ts b/lib/dataintegration/lib/request/delete-folder-request.ts new file mode 100644 index 0000000000..183943073b --- /dev/null +++ b/lib/dataintegration/lib/request/delete-folder-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteFolderRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS Folder key + */ + "folderKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-patch-request.ts b/lib/dataintegration/lib/request/delete-patch-request.ts new file mode 100644 index 0000000000..3a7f7d4bb7 --- /dev/null +++ b/lib/dataintegration/lib/request/delete-patch-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeletePatchRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * DIS patch key + */ + "patchKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-project-request.ts b/lib/dataintegration/lib/request/delete-project-request.ts new file mode 100644 index 0000000000..e4aed3cd4d --- /dev/null +++ b/lib/dataintegration/lib/request/delete-project-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteProjectRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS Project key + */ + "projectKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-task-request.ts b/lib/dataintegration/lib/request/delete-task-request.ts new file mode 100644 index 0000000000..0875637df9 --- /dev/null +++ b/lib/dataintegration/lib/request/delete-task-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteTaskRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS Task key + */ + "taskKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-task-run-request.ts b/lib/dataintegration/lib/request/delete-task-run-request.ts new file mode 100644 index 0000000000..6620da9e4f --- /dev/null +++ b/lib/dataintegration/lib/request/delete-task-run-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteTaskRunRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * DIS taskRun key + */ + "taskRunKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-task-validation-request.ts b/lib/dataintegration/lib/request/delete-task-validation-request.ts new file mode 100644 index 0000000000..dbc8b48cb5 --- /dev/null +++ b/lib/dataintegration/lib/request/delete-task-validation-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteTaskValidationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * key of the task validation. + */ + "taskValidationKey": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/delete-workspace-request.ts b/lib/dataintegration/lib/request/delete-workspace-request.ts new file mode 100644 index 0000000000..47f0ad6e5c --- /dev/null +++ b/lib/dataintegration/lib/request/delete-workspace-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteWorkspaceRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * This parameter allows users to set the timeout for DIS to gracefully close down any running jobs before stopping the workspace. + */ + "quiesceTimeout"?: number; + /** + * This parameter allows users to force close down the workspace. + */ + "isForceOperation"?: boolean; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/get-application-request.ts b/lib/dataintegration/lib/request/get-application-request.ts new file mode 100644 index 0000000000..81173c4ad4 --- /dev/null +++ b/lib/dataintegration/lib/request/get-application-request.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetApplicationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": 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/dataintegration/lib/request/get-connection-request.ts b/lib/dataintegration/lib/request/get-connection-request.ts new file mode 100644 index 0000000000..111fbb85b3 --- /dev/null +++ b/lib/dataintegration/lib/request/get-connection-request.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetConnectionRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The connection key + */ + "connectionKey": 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/dataintegration/lib/request/get-connection-validation-request.ts b/lib/dataintegration/lib/request/get-connection-validation-request.ts new file mode 100644 index 0000000000..f664f00df9 --- /dev/null +++ b/lib/dataintegration/lib/request/get-connection-validation-request.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetConnectionValidationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * key of the connection validation. + */ + "connectionValidationKey": 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/dataintegration/lib/request/get-count-statistic-request.ts b/lib/dataintegration/lib/request/get-count-statistic-request.ts new file mode 100644 index 0000000000..c4af47e86b --- /dev/null +++ b/lib/dataintegration/lib/request/get-count-statistic-request.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetCountStatisticRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * A unique key of the container object, such as workspace, project, and so on, to count statistics for. The statistics is fetched for the given key. + */ + "countStatisticKey": 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/dataintegration/lib/request/get-data-asset-request.ts b/lib/dataintegration/lib/request/get-data-asset-request.ts new file mode 100644 index 0000000000..094d33b97e --- /dev/null +++ b/lib/dataintegration/lib/request/get-data-asset-request.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetDataAssetRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * Data asset key. + */ + "dataAssetKey": 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/dataintegration/lib/request/get-data-entity-request.ts b/lib/dataintegration/lib/request/get-data-entity-request.ts new file mode 100644 index 0000000000..d98e189d02 --- /dev/null +++ b/lib/dataintegration/lib/request/get-data-entity-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetDataEntityRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The connection key + */ + "connectionKey": string; + /** + * Schema resource name used for retrieving schemas + */ + "schemaResourceName": string; + /** + * Name of the data entity + */ + "dataEntityKey": 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/dataintegration/lib/request/get-data-flow-request.ts b/lib/dataintegration/lib/request/get-data-flow-request.ts new file mode 100644 index 0000000000..16f7df3133 --- /dev/null +++ b/lib/dataintegration/lib/request/get-data-flow-request.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetDataFlowRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS DataFlow key + */ + "dataFlowKey": 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/dataintegration/lib/request/get-data-flow-validation-request.ts b/lib/dataintegration/lib/request/get-data-flow-validation-request.ts new file mode 100644 index 0000000000..10a6c1dc9d --- /dev/null +++ b/lib/dataintegration/lib/request/get-data-flow-validation-request.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetDataFlowValidationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * key of the dataflow validation. + */ + "dataFlowValidationKey": 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/dataintegration/lib/request/get-dependent-object-request.ts b/lib/dataintegration/lib/request/get-dependent-object-request.ts new file mode 100644 index 0000000000..1a5ec35bde --- /dev/null +++ b/lib/dataintegration/lib/request/get-dependent-object-request.ts @@ -0,0 +1,36 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetDependentObjectRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * DIS dependent object key + */ + "dependentObjectKey": 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/dataintegration/lib/request/get-folder-request.ts b/lib/dataintegration/lib/request/get-folder-request.ts new file mode 100644 index 0000000000..27793d4260 --- /dev/null +++ b/lib/dataintegration/lib/request/get-folder-request.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetFolderRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS Folder key + */ + "folderKey": 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/dataintegration/lib/request/get-patch-request.ts b/lib/dataintegration/lib/request/get-patch-request.ts new file mode 100644 index 0000000000..8291bcfb34 --- /dev/null +++ b/lib/dataintegration/lib/request/get-patch-request.ts @@ -0,0 +1,36 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetPatchRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * DIS patch key + */ + "patchKey": 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/dataintegration/lib/request/get-project-request.ts b/lib/dataintegration/lib/request/get-project-request.ts new file mode 100644 index 0000000000..974c477aec --- /dev/null +++ b/lib/dataintegration/lib/request/get-project-request.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetProjectRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS Project key + */ + "projectKey": 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/dataintegration/lib/request/get-published-object-request.ts b/lib/dataintegration/lib/request/get-published-object-request.ts new file mode 100644 index 0000000000..c80694c78b --- /dev/null +++ b/lib/dataintegration/lib/request/get-published-object-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetPublishedObjectRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * DIS published object key + */ + "publishedObjectKey": 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; + /** + * This is used to expand references of the object. If value is true, then all referenced objects will be expanded. If value is false, then shallow objects will be returned in place of references. Default is false.

Examples:-
  • ?expandReferences=true returns all objects of type data loader task
+ */ + "expandReferences"?: string; +} diff --git a/lib/dataintegration/lib/request/get-schema-request.ts b/lib/dataintegration/lib/request/get-schema-request.ts new file mode 100644 index 0000000000..dedf988fb4 --- /dev/null +++ b/lib/dataintegration/lib/request/get-schema-request.ts @@ -0,0 +1,36 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetSchemaRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The connection key + */ + "connectionKey": string; + /** + * Schema resource name used for retrieving schemas + */ + "schemaResourceName": 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/dataintegration/lib/request/get-task-request.ts b/lib/dataintegration/lib/request/get-task-request.ts new file mode 100644 index 0000000000..f9c9914eb0 --- /dev/null +++ b/lib/dataintegration/lib/request/get-task-request.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetTaskRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS Task key + */ + "taskKey": 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/dataintegration/lib/request/get-task-run-request.ts b/lib/dataintegration/lib/request/get-task-run-request.ts new file mode 100644 index 0000000000..6459c618a5 --- /dev/null +++ b/lib/dataintegration/lib/request/get-task-run-request.ts @@ -0,0 +1,36 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetTaskRunRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * DIS taskRun key + */ + "taskRunKey": 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/dataintegration/lib/request/get-task-validation-request.ts b/lib/dataintegration/lib/request/get-task-validation-request.ts new file mode 100644 index 0000000000..e6a102cc1e --- /dev/null +++ b/lib/dataintegration/lib/request/get-task-validation-request.ts @@ -0,0 +1,32 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetTaskValidationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * key of the task validation. + */ + "taskValidationKey": 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/dataintegration/lib/request/get-work-request-request.ts b/lib/dataintegration/lib/request/get-work-request-request.ts new file mode 100644 index 0000000000..4588da2e2a --- /dev/null +++ b/lib/dataintegration/lib/request/get-work-request-request.ts @@ -0,0 +1,28 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetWorkRequestRequest { + /** + * The ID of the asynchronous request. + */ + "workRequestId": 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/dataintegration/lib/request/get-workspace-request.ts b/lib/dataintegration/lib/request/get-workspace-request.ts new file mode 100644 index 0000000000..189647dfb2 --- /dev/null +++ b/lib/dataintegration/lib/request/get-workspace-request.ts @@ -0,0 +1,28 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetWorkspaceRequest { + /** + * DIS workspace id + */ + "workspaceId": 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/dataintegration/lib/request/index.ts b/lib/dataintegration/lib/request/index.ts new file mode 100644 index 0000000000..aad18d0aab --- /dev/null +++ b/lib/dataintegration/lib/request/index.ts @@ -0,0 +1,171 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ChangeCompartmentRequest from "./change-compartment-request"; +export import ChangeCompartmentRequest = ChangeCompartmentRequest.ChangeCompartmentRequest; +import * as CreateApplicationRequest from "./create-application-request"; +export import CreateApplicationRequest = CreateApplicationRequest.CreateApplicationRequest; +import * as CreateConnectionRequest from "./create-connection-request"; +export import CreateConnectionRequest = CreateConnectionRequest.CreateConnectionRequest; +import * as CreateConnectionValidationRequest from "./create-connection-validation-request"; +export import CreateConnectionValidationRequest = CreateConnectionValidationRequest.CreateConnectionValidationRequest; +import * as CreateDataAssetRequest from "./create-data-asset-request"; +export import CreateDataAssetRequest = CreateDataAssetRequest.CreateDataAssetRequest; +import * as CreateDataFlowRequest from "./create-data-flow-request"; +export import CreateDataFlowRequest = CreateDataFlowRequest.CreateDataFlowRequest; +import * as CreateDataFlowValidationRequest from "./create-data-flow-validation-request"; +export import CreateDataFlowValidationRequest = CreateDataFlowValidationRequest.CreateDataFlowValidationRequest; +import * as CreateEntityShapeRequest from "./create-entity-shape-request"; +export import CreateEntityShapeRequest = CreateEntityShapeRequest.CreateEntityShapeRequest; +import * as CreateFolderRequest from "./create-folder-request"; +export import CreateFolderRequest = CreateFolderRequest.CreateFolderRequest; +import * as CreatePatchRequest from "./create-patch-request"; +export import CreatePatchRequest = CreatePatchRequest.CreatePatchRequest; +import * as CreateProjectRequest from "./create-project-request"; +export import CreateProjectRequest = CreateProjectRequest.CreateProjectRequest; +import * as CreateTaskRequest from "./create-task-request"; +export import CreateTaskRequest = CreateTaskRequest.CreateTaskRequest; +import * as CreateTaskRunRequest from "./create-task-run-request"; +export import CreateTaskRunRequest = CreateTaskRunRequest.CreateTaskRunRequest; +import * as CreateTaskValidationRequest from "./create-task-validation-request"; +export import CreateTaskValidationRequest = CreateTaskValidationRequest.CreateTaskValidationRequest; +import * as CreateWorkspaceRequest from "./create-workspace-request"; +export import CreateWorkspaceRequest = CreateWorkspaceRequest.CreateWorkspaceRequest; +import * as DeleteApplicationRequest from "./delete-application-request"; +export import DeleteApplicationRequest = DeleteApplicationRequest.DeleteApplicationRequest; +import * as DeleteConnectionRequest from "./delete-connection-request"; +export import DeleteConnectionRequest = DeleteConnectionRequest.DeleteConnectionRequest; +import * as DeleteConnectionValidationRequest from "./delete-connection-validation-request"; +export import DeleteConnectionValidationRequest = DeleteConnectionValidationRequest.DeleteConnectionValidationRequest; +import * as DeleteDataAssetRequest from "./delete-data-asset-request"; +export import DeleteDataAssetRequest = DeleteDataAssetRequest.DeleteDataAssetRequest; +import * as DeleteDataFlowRequest from "./delete-data-flow-request"; +export import DeleteDataFlowRequest = DeleteDataFlowRequest.DeleteDataFlowRequest; +import * as DeleteDataFlowValidationRequest from "./delete-data-flow-validation-request"; +export import DeleteDataFlowValidationRequest = DeleteDataFlowValidationRequest.DeleteDataFlowValidationRequest; +import * as DeleteFolderRequest from "./delete-folder-request"; +export import DeleteFolderRequest = DeleteFolderRequest.DeleteFolderRequest; +import * as DeletePatchRequest from "./delete-patch-request"; +export import DeletePatchRequest = DeletePatchRequest.DeletePatchRequest; +import * as DeleteProjectRequest from "./delete-project-request"; +export import DeleteProjectRequest = DeleteProjectRequest.DeleteProjectRequest; +import * as DeleteTaskRequest from "./delete-task-request"; +export import DeleteTaskRequest = DeleteTaskRequest.DeleteTaskRequest; +import * as DeleteTaskRunRequest from "./delete-task-run-request"; +export import DeleteTaskRunRequest = DeleteTaskRunRequest.DeleteTaskRunRequest; +import * as DeleteTaskValidationRequest from "./delete-task-validation-request"; +export import DeleteTaskValidationRequest = DeleteTaskValidationRequest.DeleteTaskValidationRequest; +import * as DeleteWorkspaceRequest from "./delete-workspace-request"; +export import DeleteWorkspaceRequest = DeleteWorkspaceRequest.DeleteWorkspaceRequest; +import * as GetApplicationRequest from "./get-application-request"; +export import GetApplicationRequest = GetApplicationRequest.GetApplicationRequest; +import * as GetConnectionRequest from "./get-connection-request"; +export import GetConnectionRequest = GetConnectionRequest.GetConnectionRequest; +import * as GetConnectionValidationRequest from "./get-connection-validation-request"; +export import GetConnectionValidationRequest = GetConnectionValidationRequest.GetConnectionValidationRequest; +import * as GetCountStatisticRequest from "./get-count-statistic-request"; +export import GetCountStatisticRequest = GetCountStatisticRequest.GetCountStatisticRequest; +import * as GetDataAssetRequest from "./get-data-asset-request"; +export import GetDataAssetRequest = GetDataAssetRequest.GetDataAssetRequest; +import * as GetDataEntityRequest from "./get-data-entity-request"; +export import GetDataEntityRequest = GetDataEntityRequest.GetDataEntityRequest; +import * as GetDataFlowRequest from "./get-data-flow-request"; +export import GetDataFlowRequest = GetDataFlowRequest.GetDataFlowRequest; +import * as GetDataFlowValidationRequest from "./get-data-flow-validation-request"; +export import GetDataFlowValidationRequest = GetDataFlowValidationRequest.GetDataFlowValidationRequest; +import * as GetDependentObjectRequest from "./get-dependent-object-request"; +export import GetDependentObjectRequest = GetDependentObjectRequest.GetDependentObjectRequest; +import * as GetFolderRequest from "./get-folder-request"; +export import GetFolderRequest = GetFolderRequest.GetFolderRequest; +import * as GetPatchRequest from "./get-patch-request"; +export import GetPatchRequest = GetPatchRequest.GetPatchRequest; +import * as GetProjectRequest from "./get-project-request"; +export import GetProjectRequest = GetProjectRequest.GetProjectRequest; +import * as GetPublishedObjectRequest from "./get-published-object-request"; +export import GetPublishedObjectRequest = GetPublishedObjectRequest.GetPublishedObjectRequest; +import * as GetSchemaRequest from "./get-schema-request"; +export import GetSchemaRequest = GetSchemaRequest.GetSchemaRequest; +import * as GetTaskRequest from "./get-task-request"; +export import GetTaskRequest = GetTaskRequest.GetTaskRequest; +import * as GetTaskRunRequest from "./get-task-run-request"; +export import GetTaskRunRequest = GetTaskRunRequest.GetTaskRunRequest; +import * as GetTaskValidationRequest from "./get-task-validation-request"; +export import GetTaskValidationRequest = GetTaskValidationRequest.GetTaskValidationRequest; +import * as GetWorkRequestRequest from "./get-work-request-request"; +export import GetWorkRequestRequest = GetWorkRequestRequest.GetWorkRequestRequest; +import * as GetWorkspaceRequest from "./get-workspace-request"; +export import GetWorkspaceRequest = GetWorkspaceRequest.GetWorkspaceRequest; +import * as ListApplicationsRequest from "./list-applications-request"; +export import ListApplicationsRequest = ListApplicationsRequest.ListApplicationsRequest; +import * as ListConnectionValidationsRequest from "./list-connection-validations-request"; +export import ListConnectionValidationsRequest = ListConnectionValidationsRequest.ListConnectionValidationsRequest; +import * as ListConnectionsRequest from "./list-connections-request"; +export import ListConnectionsRequest = ListConnectionsRequest.ListConnectionsRequest; +import * as ListDataAssetsRequest from "./list-data-assets-request"; +export import ListDataAssetsRequest = ListDataAssetsRequest.ListDataAssetsRequest; +import * as ListDataEntitiesRequest from "./list-data-entities-request"; +export import ListDataEntitiesRequest = ListDataEntitiesRequest.ListDataEntitiesRequest; +import * as ListDataFlowValidationsRequest from "./list-data-flow-validations-request"; +export import ListDataFlowValidationsRequest = ListDataFlowValidationsRequest.ListDataFlowValidationsRequest; +import * as ListDataFlowsRequest from "./list-data-flows-request"; +export import ListDataFlowsRequest = ListDataFlowsRequest.ListDataFlowsRequest; +import * as ListDependentObjectsRequest from "./list-dependent-objects-request"; +export import ListDependentObjectsRequest = ListDependentObjectsRequest.ListDependentObjectsRequest; +import * as ListFoldersRequest from "./list-folders-request"; +export import ListFoldersRequest = ListFoldersRequest.ListFoldersRequest; +import * as ListPatchesRequest from "./list-patches-request"; +export import ListPatchesRequest = ListPatchesRequest.ListPatchesRequest; +import * as ListProjectsRequest from "./list-projects-request"; +export import ListProjectsRequest = ListProjectsRequest.ListProjectsRequest; +import * as ListPublishedObjectsRequest from "./list-published-objects-request"; +export import ListPublishedObjectsRequest = ListPublishedObjectsRequest.ListPublishedObjectsRequest; +import * as ListSchemasRequest from "./list-schemas-request"; +export import ListSchemasRequest = ListSchemasRequest.ListSchemasRequest; +import * as ListTaskRunLogsRequest from "./list-task-run-logs-request"; +export import ListTaskRunLogsRequest = ListTaskRunLogsRequest.ListTaskRunLogsRequest; +import * as ListTaskRunsRequest from "./list-task-runs-request"; +export import ListTaskRunsRequest = ListTaskRunsRequest.ListTaskRunsRequest; +import * as ListTaskValidationsRequest from "./list-task-validations-request"; +export import ListTaskValidationsRequest = ListTaskValidationsRequest.ListTaskValidationsRequest; +import * as ListTasksRequest from "./list-tasks-request"; +export import ListTasksRequest = ListTasksRequest.ListTasksRequest; +import * as ListWorkRequestErrorsRequest from "./list-work-request-errors-request"; +export import ListWorkRequestErrorsRequest = ListWorkRequestErrorsRequest.ListWorkRequestErrorsRequest; +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 ListWorkspacesRequest from "./list-workspaces-request"; +export import ListWorkspacesRequest = ListWorkspacesRequest.ListWorkspacesRequest; +import * as StartWorkspaceRequest from "./start-workspace-request"; +export import StartWorkspaceRequest = StartWorkspaceRequest.StartWorkspaceRequest; +import * as StopWorkspaceRequest from "./stop-workspace-request"; +export import StopWorkspaceRequest = StopWorkspaceRequest.StopWorkspaceRequest; +import * as UpdateApplicationRequest from "./update-application-request"; +export import UpdateApplicationRequest = UpdateApplicationRequest.UpdateApplicationRequest; +import * as UpdateConnectionRequest from "./update-connection-request"; +export import UpdateConnectionRequest = UpdateConnectionRequest.UpdateConnectionRequest; +import * as UpdateDataAssetRequest from "./update-data-asset-request"; +export import UpdateDataAssetRequest = UpdateDataAssetRequest.UpdateDataAssetRequest; +import * as UpdateDataFlowRequest from "./update-data-flow-request"; +export import UpdateDataFlowRequest = UpdateDataFlowRequest.UpdateDataFlowRequest; +import * as UpdateFolderRequest from "./update-folder-request"; +export import UpdateFolderRequest = UpdateFolderRequest.UpdateFolderRequest; +import * as UpdateProjectRequest from "./update-project-request"; +export import UpdateProjectRequest = UpdateProjectRequest.UpdateProjectRequest; +import * as UpdateTaskRequest from "./update-task-request"; +export import UpdateTaskRequest = UpdateTaskRequest.UpdateTaskRequest; +import * as UpdateTaskRunRequest from "./update-task-run-request"; +export import UpdateTaskRunRequest = UpdateTaskRunRequest.UpdateTaskRunRequest; +import * as UpdateWorkspaceRequest from "./update-workspace-request"; +export import UpdateWorkspaceRequest = UpdateWorkspaceRequest.UpdateWorkspaceRequest; diff --git a/lib/dataintegration/lib/request/list-applications-request.ts b/lib/dataintegration/lib/request/list-applications-request.ts new file mode 100644 index 0000000000..8f39c7555d --- /dev/null +++ b/lib/dataintegration/lib/request/list-applications-request.ts @@ -0,0 +1,70 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListApplicationsRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the identifier of the published object. + * + */ + "identifier"?: Array; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + "page"?: string; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListApplicationsRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListApplicationsRequest.SortBy; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; +} + +export namespace ListApplicationsRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-connection-validations-request.ts b/lib/dataintegration/lib/request/list-connection-validations-request.ts new file mode 100644 index 0000000000..8e51583836 --- /dev/null +++ b/lib/dataintegration/lib/request/list-connection-validations-request.ts @@ -0,0 +1,72 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListConnectionValidationsRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * This filter parameter can be used to filter by the key of the object. + */ + "key"?: string; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the identifier of the object. + */ + "identifier"?: string; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListConnectionValidationsRequest.SortBy; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListConnectionValidationsRequest.SortOrder; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; +} + +export namespace ListConnectionValidationsRequest { + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } + + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } +} diff --git a/lib/dataintegration/lib/request/list-connections-request.ts b/lib/dataintegration/lib/request/list-connections-request.ts new file mode 100644 index 0000000000..d242306de9 --- /dev/null +++ b/lib/dataintegration/lib/request/list-connections-request.ts @@ -0,0 +1,72 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListConnectionsRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * This filter parameter can be used to filter by the data asset key of the object. + */ + "dataAssetKey": string; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * Type of the object to filter the results with. + */ + "type"?: string; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListConnectionsRequest.SortBy; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListConnectionsRequest.SortOrder; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; +} + +export namespace ListConnectionsRequest { + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } + + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } +} diff --git a/lib/dataintegration/lib/request/list-data-assets-request.ts b/lib/dataintegration/lib/request/list-data-assets-request.ts new file mode 100644 index 0000000000..f57df5cf52 --- /dev/null +++ b/lib/dataintegration/lib/request/list-data-assets-request.ts @@ -0,0 +1,68 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListDataAssetsRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * Type of the object to filter the results with. + */ + "type"?: string; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListDataAssetsRequest.SortBy; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListDataAssetsRequest.SortOrder; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: 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; +} + +export namespace ListDataAssetsRequest { + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } + + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } +} diff --git a/lib/dataintegration/lib/request/list-data-entities-request.ts b/lib/dataintegration/lib/request/list-data-entities-request.ts new file mode 100644 index 0000000000..7928a3e9ba --- /dev/null +++ b/lib/dataintegration/lib/request/list-data-entities-request.ts @@ -0,0 +1,76 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListDataEntitiesRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The connection key + */ + "connectionKey": string; + /** + * Schema resource name used for retrieving schemas + */ + "schemaResourceName": string; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * Type of the object to filter the results with. + */ + "type"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListDataEntitiesRequest.SortBy; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListDataEntitiesRequest.SortOrder; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; +} + +export namespace ListDataEntitiesRequest { + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } + + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } +} diff --git a/lib/dataintegration/lib/request/list-data-flow-validations-request.ts b/lib/dataintegration/lib/request/list-data-flow-validations-request.ts new file mode 100644 index 0000000000..7b5c7ed420 --- /dev/null +++ b/lib/dataintegration/lib/request/list-data-flow-validations-request.ts @@ -0,0 +1,72 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListDataFlowValidationsRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * This filter parameter can be used to filter by the key of the object. + */ + "key"?: string; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the identifier of the object. + */ + "identifier"?: string; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListDataFlowValidationsRequest.SortBy; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListDataFlowValidationsRequest.SortOrder; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; +} + +export namespace ListDataFlowValidationsRequest { + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } + + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } +} diff --git a/lib/dataintegration/lib/request/list-data-flows-request.ts b/lib/dataintegration/lib/request/list-data-flows-request.ts new file mode 100644 index 0000000000..a5149fbbc6 --- /dev/null +++ b/lib/dataintegration/lib/request/list-data-flows-request.ts @@ -0,0 +1,72 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListDataFlowsRequest { + /** + * DIS workspace id + */ + "workspaceId": 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; + /** + * Unique key of the folder + */ + "folderId"?: string; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the identifier of the object. + */ + "identifier"?: Array; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListDataFlowsRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListDataFlowsRequest.SortBy; +} + +export namespace ListDataFlowsRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-dependent-objects-request.ts b/lib/dataintegration/lib/request/list-dependent-objects-request.ts new file mode 100644 index 0000000000..95ffbd94c7 --- /dev/null +++ b/lib/dataintegration/lib/request/list-dependent-objects-request.ts @@ -0,0 +1,88 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListDependentObjectsRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the identifier of the published object. + * + */ + "identifier"?: Array; + /** + * This filter parameter can be used to filter by the object type of the object. + * This parameter can be suffixed with an optional filter operator InSubtree. + * For DIS APIs we will filter based on type Task. + * + */ + "type"?: Array; + /** + * This is used in association with type parameter. If value is true, + * then type all sub types of the given type parameter is considered. + * If value is false, then sub types are not considered. Default is false. + * + */ + "typeInSubtree"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + "page"?: string; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListDependentObjectsRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListDependentObjectsRequest.SortBy; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; +} + +export namespace ListDependentObjectsRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-folders-request.ts b/lib/dataintegration/lib/request/list-folders-request.ts new file mode 100644 index 0000000000..60d14c3575 --- /dev/null +++ b/lib/dataintegration/lib/request/list-folders-request.ts @@ -0,0 +1,73 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListFoldersRequest { + /** + * DIS workspace id + */ + "workspaceId": 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; + /** + * This filter parameter can be used to filter by the project or the folder object. + * + */ + "aggregatorKey"?: string; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the identifier of the object. + */ + "identifier"?: Array; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListFoldersRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListFoldersRequest.SortBy; +} + +export namespace ListFoldersRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-patches-request.ts b/lib/dataintegration/lib/request/list-patches-request.ts new file mode 100644 index 0000000000..c169996e6a --- /dev/null +++ b/lib/dataintegration/lib/request/list-patches-request.ts @@ -0,0 +1,74 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListPatchesRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the identifier of the published object. + * + */ + "identifier"?: Array; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + "page"?: string; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListPatchesRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListPatchesRequest.SortBy; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; +} + +export namespace ListPatchesRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-projects-request.ts b/lib/dataintegration/lib/request/list-projects-request.ts new file mode 100644 index 0000000000..8490bf0bb5 --- /dev/null +++ b/lib/dataintegration/lib/request/list-projects-request.ts @@ -0,0 +1,68 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListProjectsRequest { + /** + * DIS workspace id + */ + "workspaceId": 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; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the identifier of the object. + */ + "identifier"?: Array; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListProjectsRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListProjectsRequest.SortBy; +} + +export namespace ListProjectsRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-published-objects-request.ts b/lib/dataintegration/lib/request/list-published-objects-request.ts new file mode 100644 index 0000000000..1f31e06ad5 --- /dev/null +++ b/lib/dataintegration/lib/request/list-published-objects-request.ts @@ -0,0 +1,88 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListPublishedObjectsRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the identifier of the published object. + * + */ + "identifier"?: Array; + /** + * This filter parameter can be used to filter by the object type of the object. + * This parameter can be suffixed with an optional filter operator InSubtree. + * For DIS APIs we will filter based on type Task. + * + */ + "type"?: Array; + /** + * This is used in association with type parameter. If value is true, + * then type all sub types of the given type parameter is considered. + * If value is false, then sub types are not considered. Default is false. + * + */ + "typeInSubtree"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + "page"?: string; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListPublishedObjectsRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListPublishedObjectsRequest.SortBy; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; +} + +export namespace ListPublishedObjectsRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-schemas-request.ts b/lib/dataintegration/lib/request/list-schemas-request.ts new file mode 100644 index 0000000000..06d3ade1d8 --- /dev/null +++ b/lib/dataintegration/lib/request/list-schemas-request.ts @@ -0,0 +1,72 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListSchemasRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The connection key + */ + "connectionKey": string; + /** + * Schema resource name used for retrieving schemas + */ + "schemaResourceName": string; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListSchemasRequest.SortBy; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListSchemasRequest.SortOrder; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: 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; +} + +export namespace ListSchemasRequest { + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } + + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } +} diff --git a/lib/dataintegration/lib/request/list-task-run-logs-request.ts b/lib/dataintegration/lib/request/list-task-run-logs-request.ts new file mode 100644 index 0000000000..f00a1c40a7 --- /dev/null +++ b/lib/dataintegration/lib/request/list-task-run-logs-request.ts @@ -0,0 +1,64 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListTaskRunLogsRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * DIS taskRun key + */ + "taskRunKey": 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; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListTaskRunLogsRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListTaskRunLogsRequest.SortBy; +} + +export namespace ListTaskRunLogsRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-task-runs-request.ts b/lib/dataintegration/lib/request/list-task-runs-request.ts new file mode 100644 index 0000000000..b99ade3646 --- /dev/null +++ b/lib/dataintegration/lib/request/list-task-runs-request.ts @@ -0,0 +1,72 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListTaskRunsRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": 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; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the identifier of the object. + */ + "identifier"?: Array; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListTaskRunsRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListTaskRunsRequest.SortBy; +} + +export namespace ListTaskRunsRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-task-validations-request.ts b/lib/dataintegration/lib/request/list-task-validations-request.ts new file mode 100644 index 0000000000..0e3e3cfb73 --- /dev/null +++ b/lib/dataintegration/lib/request/list-task-validations-request.ts @@ -0,0 +1,72 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListTaskValidationsRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * This filter parameter can be used to filter by the key of the object. + */ + "key"?: string; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the identifier of the object. + */ + "identifier"?: string; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListTaskValidationsRequest.SortBy; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListTaskValidationsRequest.SortOrder; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; +} + +export namespace ListTaskValidationsRequest { + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } + + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } +} diff --git a/lib/dataintegration/lib/request/list-tasks-request.ts b/lib/dataintegration/lib/request/list-tasks-request.ts new file mode 100644 index 0000000000..a844fa0b2d --- /dev/null +++ b/lib/dataintegration/lib/request/list-tasks-request.ts @@ -0,0 +1,80 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListTasksRequest { + /** + * DIS workspace id + */ + "workspaceId": 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; + /** + * Unique key of the folder + */ + "folderId"?: string; + /** + * This parameter allows users to specify which fields to get for an object. + */ + "fields"?: Array; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This filter parameter can be used to filter by the key of the object. + */ + "key"?: Array; + /** + * This filter parameter can be used to filter by the identifier of the object. + */ + "identifier"?: Array; + /** + * This filter parameter can be used to filter by the object type of the object. This parameter can be suffixed with an optional filter operator InSubtree. If this operator is not specified, then exact match is considered.

Examples:-
  • ?type=DATA_LOADER_TASK&typeInSubtree=false returns all objects of type data loader task
  • ?type=DATA_LOADER_TASK returns all objects of type data loader task
  • ?type=DATA_LOADER_TASK&typeInSubtree=true returns all objects of type data loader task
+ */ + "type"?: Array; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListTasksRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListTasksRequest.SortBy; +} + +export namespace ListTasksRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-work-request-errors-request.ts b/lib/dataintegration/lib/request/list-work-request-errors-request.ts new file mode 100644 index 0000000000..a1ea10bde9 --- /dev/null +++ b/lib/dataintegration/lib/request/list-work-request-errors-request.ts @@ -0,0 +1,56 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListWorkRequestErrorsRequest { + /** + * The ID of the asynchronous request. + */ + "workRequestId": 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; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListWorkRequestErrorsRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListWorkRequestErrorsRequest.SortBy; +} + +export namespace ListWorkRequestErrorsRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-work-request-logs-request.ts b/lib/dataintegration/lib/request/list-work-request-logs-request.ts new file mode 100644 index 0000000000..43736b9cdf --- /dev/null +++ b/lib/dataintegration/lib/request/list-work-request-logs-request.ts @@ -0,0 +1,56 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListWorkRequestLogsRequest { + /** + * The ID of the asynchronous request. + */ + "workRequestId": 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; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListWorkRequestLogsRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListWorkRequestLogsRequest.SortBy; +} + +export namespace ListWorkRequestLogsRequest { + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-work-requests-request.ts b/lib/dataintegration/lib/request/list-work-requests-request.ts new file mode 100644 index 0000000000..d3faccfd06 --- /dev/null +++ b/lib/dataintegration/lib/request/list-work-requests-request.ts @@ -0,0 +1,69 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListWorkRequestsRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId": 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; + /** + * Work Request status. + */ + "workRequestStatus"?: ListWorkRequestsRequest.WorkRequestStatus; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListWorkRequestsRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListWorkRequestsRequest.SortBy; +} + +export namespace ListWorkRequestsRequest { + export enum WorkRequestStatus { + ACCEPTED = "ACCEPTED", + INPROGRESS = "IN_PROGRESS", + FAILED = "FAILED", + SUCCEEDED = "SUCCEEDED", + CANCELING = "CANCELING", + CANCELED = "CANCELED" + } + + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/list-workspaces-request.ts b/lib/dataintegration/lib/request/list-workspaces-request.ts new file mode 100644 index 0000000000..e503dc8d41 --- /dev/null +++ b/lib/dataintegration/lib/request/list-workspaces-request.ts @@ -0,0 +1,76 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListWorkspacesRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId": string; + /** + * This filter parameter can be used to filter by the name of the object. + */ + "name"?: string; + /** + * This parameter allows users to set the maximum number of items to return per page. The value must be between 1 and 100 (inclusive). Default value is 100. + */ + "limit"?: number; + /** + * This parameter will control pagination. Values for the parameter should come from the `opc-next-page` or `opc-prev-page` header in previous response. + */ + "page"?: string; + /** + * Lifecycle state of the resource. + */ + "lifecycleState"?: ListWorkspacesRequest.LifecycleState; + /** + * This parameter is used to control the sort order. Supported values are `ASC` (ascending) and `DESC` (descending). + */ + "sortOrder"?: ListWorkspacesRequest.SortOrder; + /** + * This parameter allows users to specify a sort field. Supported sort fields are `name`, `identifier`, `timeCreated`, and `timeUpdated`. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order). + */ + "sortBy"?: ListWorkspacesRequest.SortBy; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; +} + +export namespace ListWorkspacesRequest { + export enum LifecycleState { + CREATING = "CREATING", + ACTIVE = "ACTIVE", + INACTIVE = "INACTIVE", + UPDATING = "UPDATING", + DELETING = "DELETING", + DELETED = "DELETED", + STOPPING = "STOPPING", + STOPPED = "STOPPED", + FAILED = "FAILED" + } + + export enum SortOrder { + ASC = "ASC", + DESC = "DESC" + } + + export enum SortBy { + TIMECREATED = "TIME_CREATED", + DISPLAYNAME = "DISPLAY_NAME" + } +} diff --git a/lib/dataintegration/lib/request/start-workspace-request.ts b/lib/dataintegration/lib/request/start-workspace-request.ts new file mode 100644 index 0000000000..fc67dfe10f --- /dev/null +++ b/lib/dataintegration/lib/request/start-workspace-request.ts @@ -0,0 +1,41 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 StartWorkspaceRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/dataintegration/lib/request/stop-workspace-request.ts b/lib/dataintegration/lib/request/stop-workspace-request.ts new file mode 100644 index 0000000000..d06defa8c2 --- /dev/null +++ b/lib/dataintegration/lib/request/stop-workspace-request.ts @@ -0,0 +1,49 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 StopWorkspaceRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * This parameter allows users to set the timeout for DIS to gracefully close down any running jobs before stopping the workspace. + */ + "quiesceTimeout"?: number; + /** + * This parameter allows users to force close down the workspace. + */ + "isForceOperation"?: boolean; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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; + /** + * Caller may provide \"retry tokens\" allowing them to retry an operation + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/dataintegration/lib/request/update-application-request.ts b/lib/dataintegration/lib/request/update-application-request.ts new file mode 100644 index 0000000000..eec20cae61 --- /dev/null +++ b/lib/dataintegration/lib/request/update-application-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateApplicationRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * The details needed to update an application. + */ + "updateApplicationDetails": model.UpdateApplicationDetails; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/request/update-connection-request.ts b/lib/dataintegration/lib/request/update-connection-request.ts new file mode 100644 index 0000000000..693c49a8f8 --- /dev/null +++ b/lib/dataintegration/lib/request/update-connection-request.ts @@ -0,0 +1,48 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateConnectionRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The connection key + */ + "connectionKey": string; + /** + * Request body parameter for connection details + */ + "updateConnectionDetails": + | model.UpdateConnectionFromObjectStorage + | model.UpdateConnectionFromAtp + | model.UpdateConnectionFromOracle + | model.UpdateConnectionFromAdwc; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: string; +} diff --git a/lib/dataintegration/lib/request/update-data-asset-request.ts b/lib/dataintegration/lib/request/update-data-asset-request.ts new file mode 100644 index 0000000000..79e45a1650 --- /dev/null +++ b/lib/dataintegration/lib/request/update-data-asset-request.ts @@ -0,0 +1,48 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateDataAssetRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * Data asset key. + */ + "dataAssetKey": string; + /** + * Request body parameter for data asset details + */ + "updateDataAssetDetails": + | model.UpdateDataAssetFromAtp + | model.UpdateDataAssetFromAdwc + | model.UpdateDataAssetFromObjectStorage + | model.UpdateDataAssetFromOracle; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: string; +} diff --git a/lib/dataintegration/lib/request/update-data-flow-request.ts b/lib/dataintegration/lib/request/update-data-flow-request.ts new file mode 100644 index 0000000000..18a32b2524 --- /dev/null +++ b/lib/dataintegration/lib/request/update-data-flow-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateDataFlowRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS DataFlow key + */ + "dataFlowKey": string; + /** + * The details needed to updated a data flow. + */ + "updateDataFlowDetails": model.UpdateDataFlowDetails; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: string; +} diff --git a/lib/dataintegration/lib/request/update-folder-request.ts b/lib/dataintegration/lib/request/update-folder-request.ts new file mode 100644 index 0000000000..3dd3b472b5 --- /dev/null +++ b/lib/dataintegration/lib/request/update-folder-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateFolderRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS Folder key + */ + "folderKey": string; + /** + * The details needed to update a folder. + */ + "updateFolderDetails": model.UpdateFolderDetails; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: string; +} diff --git a/lib/dataintegration/lib/request/update-project-request.ts b/lib/dataintegration/lib/request/update-project-request.ts new file mode 100644 index 0000000000..9a5352c8c2 --- /dev/null +++ b/lib/dataintegration/lib/request/update-project-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateProjectRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS Project key + */ + "projectKey": string; + /** + * The details needed to update a project. + */ + "updateProjectDetails": model.UpdateProjectDetails; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: string; +} diff --git a/lib/dataintegration/lib/request/update-task-request.ts b/lib/dataintegration/lib/request/update-task-request.ts new file mode 100644 index 0000000000..7f2fee2242 --- /dev/null +++ b/lib/dataintegration/lib/request/update-task-request.ts @@ -0,0 +1,44 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateTaskRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS Task key + */ + "taskKey": string; + /** + * The details needed to update a task. + */ + "updateTaskDetails": model.UpdateTaskFromDataLoaderTask | model.UpdateTaskFromIntegrationTask; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: string; +} diff --git a/lib/dataintegration/lib/request/update-task-run-request.ts b/lib/dataintegration/lib/request/update-task-run-request.ts new file mode 100644 index 0000000000..f09639306d --- /dev/null +++ b/lib/dataintegration/lib/request/update-task-run-request.ts @@ -0,0 +1,48 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateTaskRunRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * DIS application key + */ + "applicationKey": string; + /** + * DIS taskRun key + */ + "taskRunKey": string; + /** + * The details needed to update the status of a task run. + */ + "updateTaskRunDetails": model.UpdateTaskRunDetails; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: string; +} diff --git a/lib/dataintegration/lib/request/update-workspace-request.ts b/lib/dataintegration/lib/request/update-workspace-request.ts new file mode 100644 index 0000000000..36e2de485c --- /dev/null +++ b/lib/dataintegration/lib/request/update-workspace-request.ts @@ -0,0 +1,40 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateWorkspaceRequest { + /** + * DIS workspace id + */ + "workspaceId": string; + /** + * The information to be updated. + */ + "updateWorkspaceDetails": model.UpdateWorkspaceDetails; + /** + * Update and Delete operations should accept an optional If-Match header, + * in which clients can send a previously-received ETag. When If-Match is + * provided and its value does not exactly match the ETag of the resource + * on the server, the request should fail with HTTP response status code 412 + * + */ + "ifMatch"?: 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/dataintegration/lib/response/change-compartment-response.ts b/lib/dataintegration/lib/response/change-compartment-response.ts new file mode 100644 index 0000000000..39efbb38c0 --- /dev/null +++ b/lib/dataintegration/lib/response/change-compartment-response.ts @@ -0,0 +1,30 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ChangeCompartmentResponse { + /** + * 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 [OCID](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + "opcWorkRequestId": string; +} diff --git a/lib/dataintegration/lib/response/create-application-response.ts b/lib/dataintegration/lib/response/create-application-response.ts new file mode 100644 index 0000000000..8adb8903ac --- /dev/null +++ b/lib/dataintegration/lib/response/create-application-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateApplicationResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Application instance. + */ + "application": model.Application; +} diff --git a/lib/dataintegration/lib/response/create-connection-response.ts b/lib/dataintegration/lib/response/create-connection-response.ts new file mode 100644 index 0000000000..cd691380f2 --- /dev/null +++ b/lib/dataintegration/lib/response/create-connection-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateConnectionResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Connection instance. + */ + "connection": model.Connection; +} diff --git a/lib/dataintegration/lib/response/create-connection-validation-response.ts b/lib/dataintegration/lib/response/create-connection-validation-response.ts new file mode 100644 index 0000000000..f93fbcb8b8 --- /dev/null +++ b/lib/dataintegration/lib/response/create-connection-validation-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateConnectionValidationResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.ConnectionValidation instance. + */ + "connectionValidation": model.ConnectionValidation; +} diff --git a/lib/dataintegration/lib/response/create-data-asset-response.ts b/lib/dataintegration/lib/response/create-data-asset-response.ts new file mode 100644 index 0000000000..8cb092ff9c --- /dev/null +++ b/lib/dataintegration/lib/response/create-data-asset-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateDataAssetResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.DataAsset instance. + */ + "dataAsset": model.DataAsset; +} diff --git a/lib/dataintegration/lib/response/create-data-flow-response.ts b/lib/dataintegration/lib/response/create-data-flow-response.ts new file mode 100644 index 0000000000..7850a68d55 --- /dev/null +++ b/lib/dataintegration/lib/response/create-data-flow-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateDataFlowResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.DataFlow instance. + */ + "dataFlow": model.DataFlow; +} diff --git a/lib/dataintegration/lib/response/create-data-flow-validation-response.ts b/lib/dataintegration/lib/response/create-data-flow-validation-response.ts new file mode 100644 index 0000000000..17fd56a9cf --- /dev/null +++ b/lib/dataintegration/lib/response/create-data-flow-validation-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateDataFlowValidationResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.DataFlowValidation instance. + */ + "dataFlowValidation": model.DataFlowValidation; +} diff --git a/lib/dataintegration/lib/response/create-entity-shape-response.ts b/lib/dataintegration/lib/response/create-entity-shape-response.ts new file mode 100644 index 0000000000..734f8675f6 --- /dev/null +++ b/lib/dataintegration/lib/response/create-entity-shape-response.ts @@ -0,0 +1,28 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateEntityShapeResponse { + /** + * 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.EntityShape instance. + */ + "entityShape": model.EntityShape; +} diff --git a/lib/dataintegration/lib/response/create-folder-response.ts b/lib/dataintegration/lib/response/create-folder-response.ts new file mode 100644 index 0000000000..c776496195 --- /dev/null +++ b/lib/dataintegration/lib/response/create-folder-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateFolderResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Folder instance. + */ + "folder": model.Folder; +} diff --git a/lib/dataintegration/lib/response/create-patch-response.ts b/lib/dataintegration/lib/response/create-patch-response.ts new file mode 100644 index 0000000000..a0248cc30c --- /dev/null +++ b/lib/dataintegration/lib/response/create-patch-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreatePatchResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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/dataintegration/lib/response/create-project-response.ts b/lib/dataintegration/lib/response/create-project-response.ts new file mode 100644 index 0000000000..0c7728bf45 --- /dev/null +++ b/lib/dataintegration/lib/response/create-project-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateProjectResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Project instance. + */ + "project": model.Project; +} diff --git a/lib/dataintegration/lib/response/create-task-response.ts b/lib/dataintegration/lib/response/create-task-response.ts new file mode 100644 index 0000000000..0ab9023af3 --- /dev/null +++ b/lib/dataintegration/lib/response/create-task-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateTaskResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Task instance. + */ + "task": model.Task; +} diff --git a/lib/dataintegration/lib/response/create-task-run-response.ts b/lib/dataintegration/lib/response/create-task-run-response.ts new file mode 100644 index 0000000000..74e7ccf677 --- /dev/null +++ b/lib/dataintegration/lib/response/create-task-run-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateTaskRunResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.TaskRun instance. + */ + "taskRun": model.TaskRun; +} diff --git a/lib/dataintegration/lib/response/create-task-validation-response.ts b/lib/dataintegration/lib/response/create-task-validation-response.ts new file mode 100644 index 0000000000..7df5a38cda --- /dev/null +++ b/lib/dataintegration/lib/response/create-task-validation-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateTaskValidationResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.TaskValidation instance. + */ + "taskValidation": model.TaskValidation; +} diff --git a/lib/dataintegration/lib/response/create-workspace-response.ts b/lib/dataintegration/lib/response/create-workspace-response.ts new file mode 100644 index 0000000000..1be5761179 --- /dev/null +++ b/lib/dataintegration/lib/response/create-workspace-response.ts @@ -0,0 +1,30 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 CreateWorkspaceResponse { + /** + * 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 [OCID](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + "opcWorkRequestId": string; +} diff --git a/lib/dataintegration/lib/response/delete-application-response.ts b/lib/dataintegration/lib/response/delete-application-response.ts new file mode 100644 index 0000000000..69ae68be09 --- /dev/null +++ b/lib/dataintegration/lib/response/delete-application-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteApplicationResponse { + /** + * 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/dataintegration/lib/response/delete-connection-response.ts b/lib/dataintegration/lib/response/delete-connection-response.ts new file mode 100644 index 0000000000..cedcd62d9d --- /dev/null +++ b/lib/dataintegration/lib/response/delete-connection-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteConnectionResponse { + /** + * 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/dataintegration/lib/response/delete-connection-validation-response.ts b/lib/dataintegration/lib/response/delete-connection-validation-response.ts new file mode 100644 index 0000000000..65edc91ceb --- /dev/null +++ b/lib/dataintegration/lib/response/delete-connection-validation-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteConnectionValidationResponse { + /** + * 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/dataintegration/lib/response/delete-data-asset-response.ts b/lib/dataintegration/lib/response/delete-data-asset-response.ts new file mode 100644 index 0000000000..594e34d909 --- /dev/null +++ b/lib/dataintegration/lib/response/delete-data-asset-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteDataAssetResponse { + /** + * 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/dataintegration/lib/response/delete-data-flow-response.ts b/lib/dataintegration/lib/response/delete-data-flow-response.ts new file mode 100644 index 0000000000..7c53f17000 --- /dev/null +++ b/lib/dataintegration/lib/response/delete-data-flow-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteDataFlowResponse { + /** + * 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/dataintegration/lib/response/delete-data-flow-validation-response.ts b/lib/dataintegration/lib/response/delete-data-flow-validation-response.ts new file mode 100644 index 0000000000..b402b395d0 --- /dev/null +++ b/lib/dataintegration/lib/response/delete-data-flow-validation-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteDataFlowValidationResponse { + /** + * 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/dataintegration/lib/response/delete-folder-response.ts b/lib/dataintegration/lib/response/delete-folder-response.ts new file mode 100644 index 0000000000..2edb3f6aa0 --- /dev/null +++ b/lib/dataintegration/lib/response/delete-folder-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteFolderResponse { + /** + * 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/dataintegration/lib/response/delete-patch-response.ts b/lib/dataintegration/lib/response/delete-patch-response.ts new file mode 100644 index 0000000000..0f26eee510 --- /dev/null +++ b/lib/dataintegration/lib/response/delete-patch-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/dataintegration/lib/response/delete-project-response.ts b/lib/dataintegration/lib/response/delete-project-response.ts new file mode 100644 index 0000000000..ee582f1fd0 --- /dev/null +++ b/lib/dataintegration/lib/response/delete-project-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteProjectResponse { + /** + * 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/dataintegration/lib/response/delete-task-response.ts b/lib/dataintegration/lib/response/delete-task-response.ts new file mode 100644 index 0000000000..e168f32d74 --- /dev/null +++ b/lib/dataintegration/lib/response/delete-task-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteTaskResponse { + /** + * 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/dataintegration/lib/response/delete-task-run-response.ts b/lib/dataintegration/lib/response/delete-task-run-response.ts new file mode 100644 index 0000000000..a770ce7277 --- /dev/null +++ b/lib/dataintegration/lib/response/delete-task-run-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteTaskRunResponse { + /** + * 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/dataintegration/lib/response/delete-task-validation-response.ts b/lib/dataintegration/lib/response/delete-task-validation-response.ts new file mode 100644 index 0000000000..9c69458a7d --- /dev/null +++ b/lib/dataintegration/lib/response/delete-task-validation-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteTaskValidationResponse { + /** + * 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/dataintegration/lib/response/delete-workspace-response.ts b/lib/dataintegration/lib/response/delete-workspace-response.ts new file mode 100644 index 0000000000..d625cefbac --- /dev/null +++ b/lib/dataintegration/lib/response/delete-workspace-response.ts @@ -0,0 +1,30 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 DeleteWorkspaceResponse { + /** + * 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 [OCID](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + "opcWorkRequestId": string; +} diff --git a/lib/dataintegration/lib/response/get-application-response.ts b/lib/dataintegration/lib/response/get-application-response.ts new file mode 100644 index 0000000000..22a4ef24a4 --- /dev/null +++ b/lib/dataintegration/lib/response/get-application-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetApplicationResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Application instance. + */ + "application": model.Application; +} diff --git a/lib/dataintegration/lib/response/get-connection-response.ts b/lib/dataintegration/lib/response/get-connection-response.ts new file mode 100644 index 0000000000..6b6eb91e6f --- /dev/null +++ b/lib/dataintegration/lib/response/get-connection-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetConnectionResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Connection instance. + */ + "connection": model.Connection; +} diff --git a/lib/dataintegration/lib/response/get-connection-validation-response.ts b/lib/dataintegration/lib/response/get-connection-validation-response.ts new file mode 100644 index 0000000000..eee3e3fa6e --- /dev/null +++ b/lib/dataintegration/lib/response/get-connection-validation-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetConnectionValidationResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.ConnectionValidation instance. + */ + "connectionValidation": model.ConnectionValidation; +} diff --git a/lib/dataintegration/lib/response/get-count-statistic-response.ts b/lib/dataintegration/lib/response/get-count-statistic-response.ts new file mode 100644 index 0000000000..27ec3ad3d7 --- /dev/null +++ b/lib/dataintegration/lib/response/get-count-statistic-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetCountStatisticResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * The returned model.CountStatistic instance. + */ + "countStatistic": model.CountStatistic; +} diff --git a/lib/dataintegration/lib/response/get-data-asset-response.ts b/lib/dataintegration/lib/response/get-data-asset-response.ts new file mode 100644 index 0000000000..a26aec1410 --- /dev/null +++ b/lib/dataintegration/lib/response/get-data-asset-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetDataAssetResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.DataAsset instance. + */ + "dataAsset": model.DataAsset; +} diff --git a/lib/dataintegration/lib/response/get-data-entity-response.ts b/lib/dataintegration/lib/response/get-data-entity-response.ts new file mode 100644 index 0000000000..c1ea7bb683 --- /dev/null +++ b/lib/dataintegration/lib/response/get-data-entity-response.ts @@ -0,0 +1,28 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetDataEntityResponse { + /** + * 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.DataEntity instance. + */ + "dataEntity": model.DataEntity; +} diff --git a/lib/dataintegration/lib/response/get-data-flow-response.ts b/lib/dataintegration/lib/response/get-data-flow-response.ts new file mode 100644 index 0000000000..199bf3cbf4 --- /dev/null +++ b/lib/dataintegration/lib/response/get-data-flow-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetDataFlowResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.DataFlow instance. + */ + "dataFlow": model.DataFlow; +} diff --git a/lib/dataintegration/lib/response/get-data-flow-validation-response.ts b/lib/dataintegration/lib/response/get-data-flow-validation-response.ts new file mode 100644 index 0000000000..7a85b45e0f --- /dev/null +++ b/lib/dataintegration/lib/response/get-data-flow-validation-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetDataFlowValidationResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.DataFlowValidation instance. + */ + "dataFlowValidation": model.DataFlowValidation; +} diff --git a/lib/dataintegration/lib/response/get-dependent-object-response.ts b/lib/dataintegration/lib/response/get-dependent-object-response.ts new file mode 100644 index 0000000000..d5ba385ba8 --- /dev/null +++ b/lib/dataintegration/lib/response/get-dependent-object-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetDependentObjectResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.DependentObject instance. + */ + "dependentObject": model.DependentObject; +} diff --git a/lib/dataintegration/lib/response/get-folder-response.ts b/lib/dataintegration/lib/response/get-folder-response.ts new file mode 100644 index 0000000000..27cd0e7a0e --- /dev/null +++ b/lib/dataintegration/lib/response/get-folder-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetFolderResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Folder instance. + */ + "folder": model.Folder; +} diff --git a/lib/dataintegration/lib/response/get-patch-response.ts b/lib/dataintegration/lib/response/get-patch-response.ts new file mode 100644 index 0000000000..b0194a9463 --- /dev/null +++ b/lib/dataintegration/lib/response/get-patch-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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/dataintegration/lib/response/get-project-response.ts b/lib/dataintegration/lib/response/get-project-response.ts new file mode 100644 index 0000000000..675484cadc --- /dev/null +++ b/lib/dataintegration/lib/response/get-project-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetProjectResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Project instance. + */ + "project": model.Project; +} diff --git a/lib/dataintegration/lib/response/get-published-object-response.ts b/lib/dataintegration/lib/response/get-published-object-response.ts new file mode 100644 index 0000000000..9964299587 --- /dev/null +++ b/lib/dataintegration/lib/response/get-published-object-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetPublishedObjectResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.PublishedObject instance. + */ + "publishedObject": model.PublishedObject; +} diff --git a/lib/dataintegration/lib/response/get-schema-response.ts b/lib/dataintegration/lib/response/get-schema-response.ts new file mode 100644 index 0000000000..22a2f673b2 --- /dev/null +++ b/lib/dataintegration/lib/response/get-schema-response.ts @@ -0,0 +1,28 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetSchemaResponse { + /** + * 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.Schema instance. + */ + "schema": model.Schema; +} diff --git a/lib/dataintegration/lib/response/get-task-response.ts b/lib/dataintegration/lib/response/get-task-response.ts new file mode 100644 index 0000000000..a3bb98836b --- /dev/null +++ b/lib/dataintegration/lib/response/get-task-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetTaskResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Task instance. + */ + "task": model.Task; +} diff --git a/lib/dataintegration/lib/response/get-task-run-response.ts b/lib/dataintegration/lib/response/get-task-run-response.ts new file mode 100644 index 0000000000..40398633a6 --- /dev/null +++ b/lib/dataintegration/lib/response/get-task-run-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetTaskRunResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.TaskRun instance. + */ + "taskRun": model.TaskRun; +} diff --git a/lib/dataintegration/lib/response/get-task-validation-response.ts b/lib/dataintegration/lib/response/get-task-validation-response.ts new file mode 100644 index 0000000000..d545d7e6c2 --- /dev/null +++ b/lib/dataintegration/lib/response/get-task-validation-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetTaskValidationResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.TaskValidation instance. + */ + "taskValidation": model.TaskValidation; +} diff --git a/lib/dataintegration/lib/response/get-work-request-response.ts b/lib/dataintegration/lib/response/get-work-request-response.ts new file mode 100644 index 0000000000..98d2154053 --- /dev/null +++ b/lib/dataintegration/lib/response/get-work-request-response.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetWorkRequestResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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; + /** + * Indicates the number of seconds to wait before making a follow-up request. + */ + "retryAfter": number; + /** + * The returned model.WorkRequest instance. + */ + "workRequest": model.WorkRequest; +} diff --git a/lib/dataintegration/lib/response/get-workspace-response.ts b/lib/dataintegration/lib/response/get-workspace-response.ts new file mode 100644 index 0000000000..31e5a4c94d --- /dev/null +++ b/lib/dataintegration/lib/response/get-workspace-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 GetWorkspaceResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Workspace instance. + */ + "workspace": model.Workspace; +} diff --git a/lib/dataintegration/lib/response/index.ts b/lib/dataintegration/lib/response/index.ts new file mode 100644 index 0000000000..afdb06a3a1 --- /dev/null +++ b/lib/dataintegration/lib/response/index.ts @@ -0,0 +1,171 @@ +/** + * Data Integration API + * Use the Data Integration Service APIs to perform common extract, load, and transform (ETL) tasks. + * OpenAPI spec version: 20200430 + * Contact: di_dis_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ChangeCompartmentResponse from "./change-compartment-response"; +export import ChangeCompartmentResponse = ChangeCompartmentResponse.ChangeCompartmentResponse; +import * as CreateApplicationResponse from "./create-application-response"; +export import CreateApplicationResponse = CreateApplicationResponse.CreateApplicationResponse; +import * as CreateConnectionResponse from "./create-connection-response"; +export import CreateConnectionResponse = CreateConnectionResponse.CreateConnectionResponse; +import * as CreateConnectionValidationResponse from "./create-connection-validation-response"; +export import CreateConnectionValidationResponse = CreateConnectionValidationResponse.CreateConnectionValidationResponse; +import * as CreateDataAssetResponse from "./create-data-asset-response"; +export import CreateDataAssetResponse = CreateDataAssetResponse.CreateDataAssetResponse; +import * as CreateDataFlowResponse from "./create-data-flow-response"; +export import CreateDataFlowResponse = CreateDataFlowResponse.CreateDataFlowResponse; +import * as CreateDataFlowValidationResponse from "./create-data-flow-validation-response"; +export import CreateDataFlowValidationResponse = CreateDataFlowValidationResponse.CreateDataFlowValidationResponse; +import * as CreateEntityShapeResponse from "./create-entity-shape-response"; +export import CreateEntityShapeResponse = CreateEntityShapeResponse.CreateEntityShapeResponse; +import * as CreateFolderResponse from "./create-folder-response"; +export import CreateFolderResponse = CreateFolderResponse.CreateFolderResponse; +import * as CreatePatchResponse from "./create-patch-response"; +export import CreatePatchResponse = CreatePatchResponse.CreatePatchResponse; +import * as CreateProjectResponse from "./create-project-response"; +export import CreateProjectResponse = CreateProjectResponse.CreateProjectResponse; +import * as CreateTaskResponse from "./create-task-response"; +export import CreateTaskResponse = CreateTaskResponse.CreateTaskResponse; +import * as CreateTaskRunResponse from "./create-task-run-response"; +export import CreateTaskRunResponse = CreateTaskRunResponse.CreateTaskRunResponse; +import * as CreateTaskValidationResponse from "./create-task-validation-response"; +export import CreateTaskValidationResponse = CreateTaskValidationResponse.CreateTaskValidationResponse; +import * as CreateWorkspaceResponse from "./create-workspace-response"; +export import CreateWorkspaceResponse = CreateWorkspaceResponse.CreateWorkspaceResponse; +import * as DeleteApplicationResponse from "./delete-application-response"; +export import DeleteApplicationResponse = DeleteApplicationResponse.DeleteApplicationResponse; +import * as DeleteConnectionResponse from "./delete-connection-response"; +export import DeleteConnectionResponse = DeleteConnectionResponse.DeleteConnectionResponse; +import * as DeleteConnectionValidationResponse from "./delete-connection-validation-response"; +export import DeleteConnectionValidationResponse = DeleteConnectionValidationResponse.DeleteConnectionValidationResponse; +import * as DeleteDataAssetResponse from "./delete-data-asset-response"; +export import DeleteDataAssetResponse = DeleteDataAssetResponse.DeleteDataAssetResponse; +import * as DeleteDataFlowResponse from "./delete-data-flow-response"; +export import DeleteDataFlowResponse = DeleteDataFlowResponse.DeleteDataFlowResponse; +import * as DeleteDataFlowValidationResponse from "./delete-data-flow-validation-response"; +export import DeleteDataFlowValidationResponse = DeleteDataFlowValidationResponse.DeleteDataFlowValidationResponse; +import * as DeleteFolderResponse from "./delete-folder-response"; +export import DeleteFolderResponse = DeleteFolderResponse.DeleteFolderResponse; +import * as DeletePatchResponse from "./delete-patch-response"; +export import DeletePatchResponse = DeletePatchResponse.DeletePatchResponse; +import * as DeleteProjectResponse from "./delete-project-response"; +export import DeleteProjectResponse = DeleteProjectResponse.DeleteProjectResponse; +import * as DeleteTaskResponse from "./delete-task-response"; +export import DeleteTaskResponse = DeleteTaskResponse.DeleteTaskResponse; +import * as DeleteTaskRunResponse from "./delete-task-run-response"; +export import DeleteTaskRunResponse = DeleteTaskRunResponse.DeleteTaskRunResponse; +import * as DeleteTaskValidationResponse from "./delete-task-validation-response"; +export import DeleteTaskValidationResponse = DeleteTaskValidationResponse.DeleteTaskValidationResponse; +import * as DeleteWorkspaceResponse from "./delete-workspace-response"; +export import DeleteWorkspaceResponse = DeleteWorkspaceResponse.DeleteWorkspaceResponse; +import * as GetApplicationResponse from "./get-application-response"; +export import GetApplicationResponse = GetApplicationResponse.GetApplicationResponse; +import * as GetConnectionResponse from "./get-connection-response"; +export import GetConnectionResponse = GetConnectionResponse.GetConnectionResponse; +import * as GetConnectionValidationResponse from "./get-connection-validation-response"; +export import GetConnectionValidationResponse = GetConnectionValidationResponse.GetConnectionValidationResponse; +import * as GetCountStatisticResponse from "./get-count-statistic-response"; +export import GetCountStatisticResponse = GetCountStatisticResponse.GetCountStatisticResponse; +import * as GetDataAssetResponse from "./get-data-asset-response"; +export import GetDataAssetResponse = GetDataAssetResponse.GetDataAssetResponse; +import * as GetDataEntityResponse from "./get-data-entity-response"; +export import GetDataEntityResponse = GetDataEntityResponse.GetDataEntityResponse; +import * as GetDataFlowResponse from "./get-data-flow-response"; +export import GetDataFlowResponse = GetDataFlowResponse.GetDataFlowResponse; +import * as GetDataFlowValidationResponse from "./get-data-flow-validation-response"; +export import GetDataFlowValidationResponse = GetDataFlowValidationResponse.GetDataFlowValidationResponse; +import * as GetDependentObjectResponse from "./get-dependent-object-response"; +export import GetDependentObjectResponse = GetDependentObjectResponse.GetDependentObjectResponse; +import * as GetFolderResponse from "./get-folder-response"; +export import GetFolderResponse = GetFolderResponse.GetFolderResponse; +import * as GetPatchResponse from "./get-patch-response"; +export import GetPatchResponse = GetPatchResponse.GetPatchResponse; +import * as GetProjectResponse from "./get-project-response"; +export import GetProjectResponse = GetProjectResponse.GetProjectResponse; +import * as GetPublishedObjectResponse from "./get-published-object-response"; +export import GetPublishedObjectResponse = GetPublishedObjectResponse.GetPublishedObjectResponse; +import * as GetSchemaResponse from "./get-schema-response"; +export import GetSchemaResponse = GetSchemaResponse.GetSchemaResponse; +import * as GetTaskResponse from "./get-task-response"; +export import GetTaskResponse = GetTaskResponse.GetTaskResponse; +import * as GetTaskRunResponse from "./get-task-run-response"; +export import GetTaskRunResponse = GetTaskRunResponse.GetTaskRunResponse; +import * as GetTaskValidationResponse from "./get-task-validation-response"; +export import GetTaskValidationResponse = GetTaskValidationResponse.GetTaskValidationResponse; +import * as GetWorkRequestResponse from "./get-work-request-response"; +export import GetWorkRequestResponse = GetWorkRequestResponse.GetWorkRequestResponse; +import * as GetWorkspaceResponse from "./get-workspace-response"; +export import GetWorkspaceResponse = GetWorkspaceResponse.GetWorkspaceResponse; +import * as ListApplicationsResponse from "./list-applications-response"; +export import ListApplicationsResponse = ListApplicationsResponse.ListApplicationsResponse; +import * as ListConnectionValidationsResponse from "./list-connection-validations-response"; +export import ListConnectionValidationsResponse = ListConnectionValidationsResponse.ListConnectionValidationsResponse; +import * as ListConnectionsResponse from "./list-connections-response"; +export import ListConnectionsResponse = ListConnectionsResponse.ListConnectionsResponse; +import * as ListDataAssetsResponse from "./list-data-assets-response"; +export import ListDataAssetsResponse = ListDataAssetsResponse.ListDataAssetsResponse; +import * as ListDataEntitiesResponse from "./list-data-entities-response"; +export import ListDataEntitiesResponse = ListDataEntitiesResponse.ListDataEntitiesResponse; +import * as ListDataFlowValidationsResponse from "./list-data-flow-validations-response"; +export import ListDataFlowValidationsResponse = ListDataFlowValidationsResponse.ListDataFlowValidationsResponse; +import * as ListDataFlowsResponse from "./list-data-flows-response"; +export import ListDataFlowsResponse = ListDataFlowsResponse.ListDataFlowsResponse; +import * as ListDependentObjectsResponse from "./list-dependent-objects-response"; +export import ListDependentObjectsResponse = ListDependentObjectsResponse.ListDependentObjectsResponse; +import * as ListFoldersResponse from "./list-folders-response"; +export import ListFoldersResponse = ListFoldersResponse.ListFoldersResponse; +import * as ListPatchesResponse from "./list-patches-response"; +export import ListPatchesResponse = ListPatchesResponse.ListPatchesResponse; +import * as ListProjectsResponse from "./list-projects-response"; +export import ListProjectsResponse = ListProjectsResponse.ListProjectsResponse; +import * as ListPublishedObjectsResponse from "./list-published-objects-response"; +export import ListPublishedObjectsResponse = ListPublishedObjectsResponse.ListPublishedObjectsResponse; +import * as ListSchemasResponse from "./list-schemas-response"; +export import ListSchemasResponse = ListSchemasResponse.ListSchemasResponse; +import * as ListTaskRunLogsResponse from "./list-task-run-logs-response"; +export import ListTaskRunLogsResponse = ListTaskRunLogsResponse.ListTaskRunLogsResponse; +import * as ListTaskRunsResponse from "./list-task-runs-response"; +export import ListTaskRunsResponse = ListTaskRunsResponse.ListTaskRunsResponse; +import * as ListTaskValidationsResponse from "./list-task-validations-response"; +export import ListTaskValidationsResponse = ListTaskValidationsResponse.ListTaskValidationsResponse; +import * as ListTasksResponse from "./list-tasks-response"; +export import ListTasksResponse = ListTasksResponse.ListTasksResponse; +import * as ListWorkRequestErrorsResponse from "./list-work-request-errors-response"; +export import ListWorkRequestErrorsResponse = ListWorkRequestErrorsResponse.ListWorkRequestErrorsResponse; +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 ListWorkspacesResponse from "./list-workspaces-response"; +export import ListWorkspacesResponse = ListWorkspacesResponse.ListWorkspacesResponse; +import * as StartWorkspaceResponse from "./start-workspace-response"; +export import StartWorkspaceResponse = StartWorkspaceResponse.StartWorkspaceResponse; +import * as StopWorkspaceResponse from "./stop-workspace-response"; +export import StopWorkspaceResponse = StopWorkspaceResponse.StopWorkspaceResponse; +import * as UpdateApplicationResponse from "./update-application-response"; +export import UpdateApplicationResponse = UpdateApplicationResponse.UpdateApplicationResponse; +import * as UpdateConnectionResponse from "./update-connection-response"; +export import UpdateConnectionResponse = UpdateConnectionResponse.UpdateConnectionResponse; +import * as UpdateDataAssetResponse from "./update-data-asset-response"; +export import UpdateDataAssetResponse = UpdateDataAssetResponse.UpdateDataAssetResponse; +import * as UpdateDataFlowResponse from "./update-data-flow-response"; +export import UpdateDataFlowResponse = UpdateDataFlowResponse.UpdateDataFlowResponse; +import * as UpdateFolderResponse from "./update-folder-response"; +export import UpdateFolderResponse = UpdateFolderResponse.UpdateFolderResponse; +import * as UpdateProjectResponse from "./update-project-response"; +export import UpdateProjectResponse = UpdateProjectResponse.UpdateProjectResponse; +import * as UpdateTaskResponse from "./update-task-response"; +export import UpdateTaskResponse = UpdateTaskResponse.UpdateTaskResponse; +import * as UpdateTaskRunResponse from "./update-task-run-response"; +export import UpdateTaskRunResponse = UpdateTaskRunResponse.UpdateTaskRunResponse; +import * as UpdateWorkspaceResponse from "./update-workspace-response"; +export import UpdateWorkspaceResponse = UpdateWorkspaceResponse.UpdateWorkspaceResponse; diff --git a/lib/dataintegration/lib/response/list-applications-response.ts b/lib/dataintegration/lib/response/list-applications-response.ts new file mode 100644 index 0000000000..c49ebe4568 --- /dev/null +++ b/lib/dataintegration/lib/response/list-applications-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListApplicationsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.ApplicationSummaryCollection instance. + */ + "applicationSummaryCollection": model.ApplicationSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-connection-validations-response.ts b/lib/dataintegration/lib/response/list-connection-validations-response.ts new file mode 100644 index 0000000000..19971ec730 --- /dev/null +++ b/lib/dataintegration/lib/response/list-connection-validations-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListConnectionValidationsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.ConnectionValidationSummaryCollection instance. + */ + "connectionValidationSummaryCollection": model.ConnectionValidationSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-connections-response.ts b/lib/dataintegration/lib/response/list-connections-response.ts new file mode 100644 index 0000000000..bd9a3b6dc9 --- /dev/null +++ b/lib/dataintegration/lib/response/list-connections-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListConnectionsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.ConnectionSummaryCollection instance. + */ + "connectionSummaryCollection": model.ConnectionSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-data-assets-response.ts b/lib/dataintegration/lib/response/list-data-assets-response.ts new file mode 100644 index 0000000000..3785b37b18 --- /dev/null +++ b/lib/dataintegration/lib/response/list-data-assets-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListDataAssetsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.DataAssetSummaryCollection instance. + */ + "dataAssetSummaryCollection": model.DataAssetSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-data-entities-response.ts b/lib/dataintegration/lib/response/list-data-entities-response.ts new file mode 100644 index 0000000000..66d4a5ac96 --- /dev/null +++ b/lib/dataintegration/lib/response/list-data-entities-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListDataEntitiesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.DataEntitySummaryCollection instance. + */ + "dataEntitySummaryCollection": model.DataEntitySummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-data-flow-validations-response.ts b/lib/dataintegration/lib/response/list-data-flow-validations-response.ts new file mode 100644 index 0000000000..fce6780bf4 --- /dev/null +++ b/lib/dataintegration/lib/response/list-data-flow-validations-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListDataFlowValidationsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.DataFlowValidationSummaryCollection instance. + */ + "dataFlowValidationSummaryCollection": model.DataFlowValidationSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-data-flows-response.ts b/lib/dataintegration/lib/response/list-data-flows-response.ts new file mode 100644 index 0000000000..25e659b5bd --- /dev/null +++ b/lib/dataintegration/lib/response/list-data-flows-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListDataFlowsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.DataFlowSummaryCollection instance. + */ + "dataFlowSummaryCollection": model.DataFlowSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-dependent-objects-response.ts b/lib/dataintegration/lib/response/list-dependent-objects-response.ts new file mode 100644 index 0000000000..1c15cf1a52 --- /dev/null +++ b/lib/dataintegration/lib/response/list-dependent-objects-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListDependentObjectsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.DependentObjectSummaryCollection instance. + */ + "dependentObjectSummaryCollection": model.DependentObjectSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-folders-response.ts b/lib/dataintegration/lib/response/list-folders-response.ts new file mode 100644 index 0000000000..713e73678e --- /dev/null +++ b/lib/dataintegration/lib/response/list-folders-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListFoldersResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.FolderSummaryCollection instance. + */ + "folderSummaryCollection": model.FolderSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-patches-response.ts b/lib/dataintegration/lib/response/list-patches-response.ts new file mode 100644 index 0000000000..180bea0fa3 --- /dev/null +++ b/lib/dataintegration/lib/response/list-patches-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.PatchSummaryCollection instance. + */ + "patchSummaryCollection": model.PatchSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-projects-response.ts b/lib/dataintegration/lib/response/list-projects-response.ts new file mode 100644 index 0000000000..a91b50c6ec --- /dev/null +++ b/lib/dataintegration/lib/response/list-projects-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListProjectsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.ProjectSummaryCollection instance. + */ + "projectSummaryCollection": model.ProjectSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-published-objects-response.ts b/lib/dataintegration/lib/response/list-published-objects-response.ts new file mode 100644 index 0000000000..ccaa9be5c7 --- /dev/null +++ b/lib/dataintegration/lib/response/list-published-objects-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListPublishedObjectsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.PublishedObjectSummaryCollection instance. + */ + "publishedObjectSummaryCollection": model.PublishedObjectSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-schemas-response.ts b/lib/dataintegration/lib/response/list-schemas-response.ts new file mode 100644 index 0000000000..7a45df1c50 --- /dev/null +++ b/lib/dataintegration/lib/response/list-schemas-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListSchemasResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.SchemaSummaryCollection instance. + */ + "schemaSummaryCollection": model.SchemaSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-task-run-logs-response.ts b/lib/dataintegration/lib/response/list-task-run-logs-response.ts new file mode 100644 index 0000000000..b8976f6795 --- /dev/null +++ b/lib/dataintegration/lib/response/list-task-run-logs-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListTaskRunLogsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * A list of TaskRunLogSummary instances. + */ + "items": model.TaskRunLogSummary[]; +} diff --git a/lib/dataintegration/lib/response/list-task-runs-response.ts b/lib/dataintegration/lib/response/list-task-runs-response.ts new file mode 100644 index 0000000000..90418aaca9 --- /dev/null +++ b/lib/dataintegration/lib/response/list-task-runs-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListTaskRunsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.TaskRunSummaryCollection instance. + */ + "taskRunSummaryCollection": model.TaskRunSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-task-validations-response.ts b/lib/dataintegration/lib/response/list-task-validations-response.ts new file mode 100644 index 0000000000..ddfbfbeacf --- /dev/null +++ b/lib/dataintegration/lib/response/list-task-validations-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListTaskValidationsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.TaskValidationSummaryCollection instance. + */ + "taskValidationSummaryCollection": model.TaskValidationSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-tasks-response.ts b/lib/dataintegration/lib/response/list-tasks-response.ts new file mode 100644 index 0000000000..7e21f7cdba --- /dev/null +++ b/lib/dataintegration/lib/response/list-tasks-response.ts @@ -0,0 +1,43 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListTasksResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * Retrieves the previous page of results. When this header appears in the response, previous pages of results exist. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcPrevPage": string; + /** + * Total items in the entire list. + * + */ + "opcTotalItems": number; + /** + * The returned model.TaskSummaryCollection instance. + */ + "taskSummaryCollection": model.TaskSummaryCollection; +} diff --git a/lib/dataintegration/lib/response/list-work-request-errors-response.ts b/lib/dataintegration/lib/response/list-work-request-errors-response.ts new file mode 100644 index 0000000000..dfa381e43c --- /dev/null +++ b/lib/dataintegration/lib/response/list-work-request-errors-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListWorkRequestErrorsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * A list of WorkRequestError instances. + */ + "items": model.WorkRequestError[]; +} diff --git a/lib/dataintegration/lib/response/list-work-request-logs-response.ts b/lib/dataintegration/lib/response/list-work-request-logs-response.ts new file mode 100644 index 0000000000..f7a50005ea --- /dev/null +++ b/lib/dataintegration/lib/response/list-work-request-logs-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListWorkRequestLogsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * A list of WorkRequestLogEntry instances. + */ + "items": model.WorkRequestLogEntry[]; +} diff --git a/lib/dataintegration/lib/response/list-work-requests-response.ts b/lib/dataintegration/lib/response/list-work-requests-response.ts new file mode 100644 index 0000000000..5fc6b5fb22 --- /dev/null +++ b/lib/dataintegration/lib/response/list-work-requests-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListWorkRequestsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * A list of WorkRequestSummary instances. + */ + "items": model.WorkRequestSummary[]; +} diff --git a/lib/dataintegration/lib/response/list-workspaces-response.ts b/lib/dataintegration/lib/response/list-workspaces-response.ts new file mode 100644 index 0000000000..4aa2d7dfd4 --- /dev/null +++ b/lib/dataintegration/lib/response/list-workspaces-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 ListWorkspacesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * Retrieves the next page of results. When this header appears in the response, additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + "opcNextPage": string; + /** + * A list of WorkspaceSummary instances. + */ + "items": model.WorkspaceSummary[]; +} diff --git a/lib/dataintegration/lib/response/start-workspace-response.ts b/lib/dataintegration/lib/response/start-workspace-response.ts new file mode 100644 index 0000000000..16d12dc5d4 --- /dev/null +++ b/lib/dataintegration/lib/response/start-workspace-response.ts @@ -0,0 +1,30 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 StartWorkspaceResponse { + /** + * 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 [OCID](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + "opcWorkRequestId": string; +} diff --git a/lib/dataintegration/lib/response/stop-workspace-response.ts b/lib/dataintegration/lib/response/stop-workspace-response.ts new file mode 100644 index 0000000000..bac8b0dda5 --- /dev/null +++ b/lib/dataintegration/lib/response/stop-workspace-response.ts @@ -0,0 +1,30 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 StopWorkspaceResponse { + /** + * 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 [OCID](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + "opcWorkRequestId": string; +} diff --git a/lib/dataintegration/lib/response/update-application-response.ts b/lib/dataintegration/lib/response/update-application-response.ts new file mode 100644 index 0000000000..f801069e0c --- /dev/null +++ b/lib/dataintegration/lib/response/update-application-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateApplicationResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Application instance. + */ + "application": model.Application; +} diff --git a/lib/dataintegration/lib/response/update-connection-response.ts b/lib/dataintegration/lib/response/update-connection-response.ts new file mode 100644 index 0000000000..cd49ecb3a2 --- /dev/null +++ b/lib/dataintegration/lib/response/update-connection-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateConnectionResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Connection instance. + */ + "connection": model.Connection; +} diff --git a/lib/dataintegration/lib/response/update-data-asset-response.ts b/lib/dataintegration/lib/response/update-data-asset-response.ts new file mode 100644 index 0000000000..dcd8da0d10 --- /dev/null +++ b/lib/dataintegration/lib/response/update-data-asset-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateDataAssetResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.DataAsset instance. + */ + "dataAsset": model.DataAsset; +} diff --git a/lib/dataintegration/lib/response/update-data-flow-response.ts b/lib/dataintegration/lib/response/update-data-flow-response.ts new file mode 100644 index 0000000000..3c18a92b6e --- /dev/null +++ b/lib/dataintegration/lib/response/update-data-flow-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateDataFlowResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.DataFlow instance. + */ + "dataFlow": model.DataFlow; +} diff --git a/lib/dataintegration/lib/response/update-folder-response.ts b/lib/dataintegration/lib/response/update-folder-response.ts new file mode 100644 index 0000000000..de233d7f18 --- /dev/null +++ b/lib/dataintegration/lib/response/update-folder-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateFolderResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Folder instance. + */ + "folder": model.Folder; +} diff --git a/lib/dataintegration/lib/response/update-project-response.ts b/lib/dataintegration/lib/response/update-project-response.ts new file mode 100644 index 0000000000..e6edcfa6ef --- /dev/null +++ b/lib/dataintegration/lib/response/update-project-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateProjectResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Project instance. + */ + "project": model.Project; +} diff --git a/lib/dataintegration/lib/response/update-task-response.ts b/lib/dataintegration/lib/response/update-task-response.ts new file mode 100644 index 0000000000..734498d433 --- /dev/null +++ b/lib/dataintegration/lib/response/update-task-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateTaskResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.Task instance. + */ + "task": model.Task; +} diff --git a/lib/dataintegration/lib/response/update-task-run-response.ts b/lib/dataintegration/lib/response/update-task-run-response.ts new file mode 100644 index 0000000000..b42824e33d --- /dev/null +++ b/lib/dataintegration/lib/response/update-task-run-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateTaskRunResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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.TaskRunDetails instance. + */ + "taskRunDetails": model.TaskRunDetails; +} diff --git a/lib/dataintegration/lib/response/update-workspace-response.ts b/lib/dataintegration/lib/response/update-workspace-response.ts new file mode 100644 index 0000000000..2b4b1066b8 --- /dev/null +++ b/lib/dataintegration/lib/response/update-workspace-response.ts @@ -0,0 +1,39 @@ +/** + * + * + * OpenAPI spec version: 20200430 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 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 UpdateWorkspaceResponse { + /** + * For optimistic concurrency control. See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + * + */ + "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 [OCID](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/identifiers.htm) of the work request. Use [GetWorkRequest](https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + * with this ID to track the status of the request. + * + */ + "opcWorkRequestId": string; + /** + * The returned model.Workspace instance. + */ + "workspace": model.Workspace; +} diff --git a/lib/dataintegration/package.json b/lib/dataintegration/package.json new file mode 100644 index 0000000000..11db8be44b --- /dev/null +++ b/lib/dataintegration/package.json @@ -0,0 +1,28 @@ +{ + "name": "oci-dataintegration", + "version": "1.2.0", + "description": "OCI NodeJS client for Data Integration Service", + "repository": { + "type": "git", + "url": "https://github.com/oracle/oci-typescript-sdk" + }, + "main": "../../target/lib/dataintegration/index.js", + "typings": "../../target/lib/dataintegration/index.d.ts", + "scripts": {}, + "author": { + "name": "Oracle Cloud Infrastructure", + "email": "" + }, + "license": "(UPL-1.0 OR Apache-2.0)", + "dependencies": { + "oci-common": "../common" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org" + }, + "contributors": [ + "Jyoti Saini ", + "Joe Levy ", + "Walt Tran " + ] +} diff --git a/lib/dataintegration/tsconfig.json b/lib/dataintegration/tsconfig.json new file mode 100644 index 0000000000..bf9170b6ce --- /dev/null +++ b/lib/dataintegration/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "target": "es2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + "declaration": true, /* Generates corresponding '.d.ts' file. */ + "sourceMap": true, /* Generates corresponding '.map' file. */ + "outDir": "target", /* Redirect output structure to the directory. */ + "strict": true, /* Enable all strict type-checking options. */ + "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + } +} \ No newline at end of file diff --git a/lib/datasafe/package.json b/lib/datasafe/package.json index ee2fbab1a7..85ba34caaa 100644 --- a/lib/datasafe/package.json +++ b/lib/datasafe/package.json @@ -1,6 +1,6 @@ { "name": "oci-datasafe", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Data Safe ", "repository": { "type": "git", diff --git a/lib/datascience/package.json b/lib/datascience/package.json index a029511cde..680490a106 100644 --- a/lib/datascience/package.json +++ b/lib/datascience/package.json @@ -1,6 +1,6 @@ { "name": "oci-datascience", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Data Science Service", "repository": { "type": "git", diff --git a/lib/dns/package.json b/lib/dns/package.json index b2f51946db..6011b86918 100644 --- a/lib/dns/package.json +++ b/lib/dns/package.json @@ -1,6 +1,6 @@ { "name": "oci-dns", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for DNS", "repository": { "type": "git", diff --git a/lib/dts/package.json b/lib/dts/package.json index 979178219c..25935f21bc 100644 --- a/lib/dts/package.json +++ b/lib/dts/package.json @@ -1,6 +1,6 @@ { "name": "oci-dts", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Dts Service", "repository": { "type": "git", diff --git a/lib/email/package.json b/lib/email/package.json index 4ff12ddc37..ef632a210d 100644 --- a/lib/email/package.json +++ b/lib/email/package.json @@ -1,6 +1,6 @@ { "name": "oci-email", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Email", "repository": { "type": "git", diff --git a/lib/events/package.json b/lib/events/package.json index c6a2280845..01e8ea18bb 100644 --- a/lib/events/package.json +++ b/lib/events/package.json @@ -1,6 +1,6 @@ { "name": "oci-events", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Events Service", "repository": { "type": "git", diff --git a/lib/filestorage/package.json b/lib/filestorage/package.json index f29e1adef0..7a4b1e98ec 100644 --- a/lib/filestorage/package.json +++ b/lib/filestorage/package.json @@ -1,6 +1,6 @@ { "name": "oci-filestorage", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for File Storage", "repository": { "type": "git", diff --git a/lib/functions/package.json b/lib/functions/package.json index a7418db68b..7357f0ce74 100644 --- a/lib/functions/package.json +++ b/lib/functions/package.json @@ -1,6 +1,6 @@ { "name": "oci-functions", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Functions", "repository": { "type": "git", diff --git a/lib/healthchecks/package.json b/lib/healthchecks/package.json index ee6c4af823..35e3bfc12e 100644 --- a/lib/healthchecks/package.json +++ b/lib/healthchecks/package.json @@ -1,6 +1,6 @@ { "name": "oci-healthchecks", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Healthchecks Service", "repository": { "type": "git", diff --git a/lib/identity/package.json b/lib/identity/package.json index 99aaba35a2..5f76514794 100644 --- a/lib/identity/package.json +++ b/lib/identity/package.json @@ -1,6 +1,6 @@ { "name": "oci-identity", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Identity", "repository": { "type": "git", diff --git a/lib/integration/package.json b/lib/integration/package.json index 62585854cf..9c4ce38294 100644 --- a/lib/integration/package.json +++ b/lib/integration/package.json @@ -1,6 +1,6 @@ { "name": "oci-integration", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Integration service", "repository": { "type": "git", diff --git a/lib/keymanagement/package.json b/lib/keymanagement/package.json index 81060f874a..7ab808d374 100644 --- a/lib/keymanagement/package.json +++ b/lib/keymanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-keymanagement", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Key Management", "repository": { "type": "git", diff --git a/lib/limits/package.json b/lib/limits/package.json index 3811ffd61e..e66ad76746 100644 --- a/lib/limits/package.json +++ b/lib/limits/package.json @@ -1,6 +1,6 @@ { "name": "oci-limits", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Limits Service", "repository": { "type": "git", diff --git a/lib/loadbalancer/package.json b/lib/loadbalancer/package.json index a6c43b7c30..69d039d7d0 100644 --- a/lib/loadbalancer/package.json +++ b/lib/loadbalancer/package.json @@ -1,6 +1,6 @@ { "name": "oci-loadbalancer", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Load Balancer", "repository": { "type": "git", diff --git a/lib/marketplace/package.json b/lib/marketplace/package.json index 44aa35a555..ca31b206cc 100644 --- a/lib/marketplace/package.json +++ b/lib/marketplace/package.json @@ -1,6 +1,6 @@ { "name": "oci-marketplace", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Marketplace Service", "repository": { "type": "git", diff --git a/lib/monitoring/package.json b/lib/monitoring/package.json index dc50fa5f53..77bbff68fb 100644 --- a/lib/monitoring/package.json +++ b/lib/monitoring/package.json @@ -1,6 +1,6 @@ { "name": "oci-monitoring", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Monitoring", "repository": { "type": "git", diff --git a/lib/mysql/package.json b/lib/mysql/package.json index b185c3f654..fe58dc30cb 100644 --- a/lib/mysql/package.json +++ b/lib/mysql/package.json @@ -1,6 +1,6 @@ { "name": "oci-mysql", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Mysql ", "repository": { "type": "git", diff --git a/lib/nosql/package.json b/lib/nosql/package.json index 93bd9e7b99..e87e4f5682 100644 --- a/lib/nosql/package.json +++ b/lib/nosql/package.json @@ -1,6 +1,6 @@ { "name": "oci-nosql", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Nosql Service", "repository": { "type": "git", diff --git a/lib/objectstorage/package.json b/lib/objectstorage/package.json index 7f50ade020..ccf53d30fa 100644 --- a/lib/objectstorage/package.json +++ b/lib/objectstorage/package.json @@ -1,6 +1,6 @@ { "name": "oci-objectstorage", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for ObjectStorage", "repository": { "type": "git", diff --git a/lib/oce/package.json b/lib/oce/package.json index 27dcb767e0..4523ecf0ce 100644 --- a/lib/oce/package.json +++ b/lib/oce/package.json @@ -1,6 +1,6 @@ { "name": "oci-oce", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for OCE Service", "repository": { "type": "git", diff --git a/lib/oda/package.json b/lib/oda/package.json index 519dba9bff..0b57d8a1cb 100644 --- a/lib/oda/package.json +++ b/lib/oda/package.json @@ -1,6 +1,6 @@ { "name": "oci-oda", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Oda Service", "repository": { "type": "git", diff --git a/lib/ons/package.json b/lib/ons/package.json index a4003f1123..67279b1acc 100644 --- a/lib/ons/package.json +++ b/lib/ons/package.json @@ -1,6 +1,6 @@ { "name": "oci-ons", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for ONS", "repository": { "type": "git", diff --git a/lib/osmanagement/package.json b/lib/osmanagement/package.json index eb941edd7c..e309dd440e 100644 --- a/lib/osmanagement/package.json +++ b/lib/osmanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-osmanagement", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for OS Management", "repository": { "type": "git", diff --git a/lib/resourcemanager/package.json b/lib/resourcemanager/package.json index f596ec0c92..2e038cbe85 100644 --- a/lib/resourcemanager/package.json +++ b/lib/resourcemanager/package.json @@ -1,6 +1,6 @@ { "name": "oci-resourcemanager", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Resource manager Service", "repository": { "type": "git", diff --git a/lib/resourcesearch/package.json b/lib/resourcesearch/package.json index 0f0be4d4b7..a1b8ca2f8e 100644 --- a/lib/resourcesearch/package.json +++ b/lib/resourcesearch/package.json @@ -1,6 +1,6 @@ { "name": "oci-resourcesearch", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for resource research Service", "repository": { "type": "git", diff --git a/lib/secrets/package.json b/lib/secrets/package.json index ffda1d1dc9..4fd113e873 100644 --- a/lib/secrets/package.json +++ b/lib/secrets/package.json @@ -1,6 +1,6 @@ { "name": "oci-secrets", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Secrets Service", "repository": { "type": "git", diff --git a/lib/streaming/package.json b/lib/streaming/package.json index 3bc0ce7ddb..b4a00dd709 100644 --- a/lib/streaming/package.json +++ b/lib/streaming/package.json @@ -1,6 +1,6 @@ { "name": "oci-streaming", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Streaming", "repository": { "type": "git", diff --git a/lib/vault/package.json b/lib/vault/package.json index bd7e9e132e..4d415ae099 100644 --- a/lib/vault/package.json +++ b/lib/vault/package.json @@ -1,6 +1,6 @@ { "name": "oci-vault", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for Vault Service", "repository": { "type": "git", diff --git a/lib/waas/package.json b/lib/waas/package.json index 3fa574e899..ed9aa1b9db 100644 --- a/lib/waas/package.json +++ b/lib/waas/package.json @@ -1,6 +1,6 @@ { "name": "oci-waas", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for WAAS", "repository": { "type": "git", diff --git a/lib/workrequests/package.json b/lib/workrequests/package.json index 6269a5de02..79db738d83 100644 --- a/lib/workrequests/package.json +++ b/lib/workrequests/package.json @@ -1,6 +1,6 @@ { "name": "oci-workrequests", - "version": "1.1.1", + "version": "1.2.0", "description": "OCI NodeJS client for WorkRequests", "repository": { "type": "git", diff --git a/package.json b/package.json index 816841677f..aa4653e228 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oci-sdk", - "version": "1.1.1", + "version": "1.2.0", "author": { "name": "Oracle Cloud Infrastructure", "email": "" @@ -67,7 +67,8 @@ "oci-waas": "file:lib/waas", "oci-workrequests": "file:lib/workrequests", "oci-vault": "file:lib/vault", - "oci-secrets": "file:lib/secrets" + "oci-secrets": "file:lib/secrets", + "oci-dataintegration": "file:lib/dataintegration" }, "publishConfig": { "registry": "https://registry.npmjs.org" @@ -82,6 +83,7 @@ }, "devDependencies": { "@types/chai": "^4.1.7", + "@types/isomorphic-fetch": "0.0.35", "@types/jssha": "^2.0.0", "@types/mocha": "^5.2.5", "@types/sshpk": "^1.10.3", @@ -90,7 +92,11 @@ "awesome-typescript-loader": "3.1.3", "chai": "^4.2.0", "eslint": "^5.0.0", + "es6-promise": "4.2.6", + "http-signature": "1.3.0", "husky": "^3.0.3", + "isomorphic-fetch": "2.2.1", + "jssha": "2.4.1", "karma": "^4.1.0", "karma-chai": "^0.1.0", "karma-chrome-launcher": "^2.2.0", @@ -104,11 +110,13 @@ "random-number-csprng": "^1.0.2", "rm-local-modules": "0.0.2", "source-map-loader": "0.2.1", + "sshpk": "1.16.1", "ts-node": "^8.0.2", "typedoc": "0.15.8", "typedoc-neo-theme": "^1.0.8", "typedoc-plugin-sourcefile-url": "^1.0.4", "typescript": "3.6.4", + "uuid": "3.3.3", "webpack": "4.0.0", "webpack-cli": "^3.3.0" },