oci-sch 2.80.0 → 2.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +8 -4
- package/index.js +9 -5
- package/index.js.map +1 -1
- package/lib/client.d.ts +165 -56
- package/lib/client.js +378 -81
- package/lib/client.js.map +1 -1
- package/lib/connectorplugins-waiter.d.ts +33 -0
- package/lib/connectorplugins-waiter.js +69 -0
- package/lib/connectorplugins-waiter.js.map +1 -0
- package/lib/model/action-type.d.ts +5 -4
- package/lib/model/action-type.js +5 -4
- package/lib/model/action-type.js.map +1 -1
- package/lib/model/change-service-connector-compartment-details.d.ts +7 -6
- package/lib/model/change-service-connector-compartment-details.js +5 -4
- package/lib/model/change-service-connector-compartment-details.js.map +1 -1
- package/lib/model/connector-plugin-collection.d.ts +32 -0
- package/lib/model/connector-plugin-collection.js +65 -0
- package/lib/model/connector-plugin-collection.js.map +1 -0
- package/lib/model/connector-plugin-lifecycle-state.d.ts +33 -0
- package/lib/model/connector-plugin-lifecycle-state.js +44 -0
- package/lib/model/connector-plugin-lifecycle-state.js.map +1 -0
- package/lib/model/connector-plugin-summary.d.ts +61 -0
- package/lib/model/connector-plugin-summary.js +76 -0
- package/lib/model/connector-plugin-summary.js.map +1 -0
- package/lib/model/connector-plugin.d.ts +67 -0
- package/lib/model/connector-plugin.js +76 -0
- package/lib/model/connector-plugin.js.map +1 -0
- package/lib/model/create-service-connector-details.d.ts +8 -7
- package/lib/model/create-service-connector-details.js +5 -4
- package/lib/model/create-service-connector-details.js.map +1 -1
- package/lib/model/dimension-details.d.ts +6 -5
- package/lib/model/dimension-details.js +5 -4
- package/lib/model/dimension-details.js.map +1 -1
- package/lib/model/dimension-value-details.d.ts +5 -4
- package/lib/model/dimension-value-details.js +5 -4
- package/lib/model/dimension-value-details.js.map +1 -1
- package/lib/model/estimated-throughput.d.ts +35 -0
- package/lib/model/estimated-throughput.js +46 -0
- package/lib/model/estimated-throughput.js.map +1 -0
- package/lib/model/function-task-details.d.ts +6 -5
- package/lib/model/function-task-details.js +5 -4
- package/lib/model/function-task-details.js.map +1 -1
- package/lib/model/functions-target-details.d.ts +22 -6
- package/lib/model/functions-target-details.js +5 -4
- package/lib/model/functions-target-details.js.map +1 -1
- package/lib/model/index.d.ts +25 -4
- package/lib/model/index.js +27 -5
- package/lib/model/index.js.map +1 -1
- package/lib/model/jmes-path-dimension-value.d.ts +5 -4
- package/lib/model/jmes-path-dimension-value.js +5 -4
- package/lib/model/jmes-path-dimension-value.js.map +1 -1
- package/lib/model/latest-streaming-cursor.d.ts +8 -5
- package/lib/model/latest-streaming-cursor.js +5 -4
- package/lib/model/latest-streaming-cursor.js.map +1 -1
- package/lib/model/lifecycle-state.d.ts +5 -4
- package/lib/model/lifecycle-state.js +5 -4
- package/lib/model/lifecycle-state.js.map +1 -1
- package/lib/model/log-rule-task-details.d.ts +8 -7
- package/lib/model/log-rule-task-details.js +5 -4
- package/lib/model/log-rule-task-details.js.map +1 -1
- package/lib/model/log-source.d.ts +7 -4
- package/lib/model/log-source.js +5 -4
- package/lib/model/log-source.js.map +1 -1
- package/lib/model/logging-analytics-target-details.d.ts +8 -7
- package/lib/model/logging-analytics-target-details.js +5 -4
- package/lib/model/logging-analytics-target-details.js.map +1 -1
- package/lib/model/logging-source-details.d.ts +6 -5
- package/lib/model/logging-source-details.js +5 -4
- package/lib/model/logging-source-details.js.map +1 -1
- package/lib/model/monitoring-source-all-metrics.d.ts +5 -4
- package/lib/model/monitoring-source-all-metrics.js +5 -4
- package/lib/model/monitoring-source-all-metrics.js.map +1 -1
- package/lib/model/monitoring-source-details.d.ts +7 -6
- package/lib/model/monitoring-source-details.js +5 -4
- package/lib/model/monitoring-source-details.js.map +1 -1
- package/lib/model/monitoring-source-metric-details.d.ts +5 -4
- package/lib/model/monitoring-source-metric-details.js +5 -4
- package/lib/model/monitoring-source-metric-details.js.map +1 -1
- package/lib/model/monitoring-source-namespace-details.d.ts +5 -4
- package/lib/model/monitoring-source-namespace-details.js +5 -4
- package/lib/model/monitoring-source-namespace-details.js.map +1 -1
- package/lib/model/monitoring-source-selected-namespace-details.d.ts +5 -4
- package/lib/model/monitoring-source-selected-namespace-details.js +5 -4
- package/lib/model/monitoring-source-selected-namespace-details.js.map +1 -1
- package/lib/model/monitoring-source-selected-namespace.d.ts +5 -4
- package/lib/model/monitoring-source-selected-namespace.js +5 -4
- package/lib/model/monitoring-source-selected-namespace.js.map +1 -1
- package/lib/model/monitoring-source.d.ts +6 -5
- package/lib/model/monitoring-source.js +5 -4
- package/lib/model/monitoring-source.js.map +1 -1
- package/lib/model/monitoring-target-details.d.ts +7 -6
- package/lib/model/monitoring-target-details.js +5 -4
- package/lib/model/monitoring-target-details.js.map +1 -1
- package/lib/model/notifications-target-details.d.ts +8 -7
- package/lib/model/notifications-target-details.js +5 -4
- package/lib/model/notifications-target-details.js.map +1 -1
- package/lib/model/object-storage-target-details.d.ts +10 -7
- package/lib/model/object-storage-target-details.js +5 -4
- package/lib/model/object-storage-target-details.js.map +1 -1
- package/lib/model/operation-status.d.ts +5 -4
- package/lib/model/operation-status.js +5 -4
- package/lib/model/operation-status.js.map +1 -1
- package/lib/model/operation-type.d.ts +5 -4
- package/lib/model/operation-type.js +5 -4
- package/lib/model/operation-type.js.map +1 -1
- package/lib/model/plugin-source-details.d.ts +44 -0
- package/lib/model/plugin-source-details.js +56 -0
- package/lib/model/plugin-source-details.js.map +1 -0
- package/lib/model/service-connector-collection.d.ts +6 -5
- package/lib/model/service-connector-collection.js +5 -4
- package/lib/model/service-connector-collection.js.map +1 -1
- package/lib/model/service-connector-summary.d.ts +11 -10
- package/lib/model/service-connector-summary.js +5 -4
- package/lib/model/service-connector-summary.js.map +1 -1
- package/lib/model/service-connector.d.ts +14 -13
- package/lib/model/service-connector.js +5 -4
- package/lib/model/service-connector.js.map +1 -1
- package/lib/model/sort-order.d.ts +5 -4
- package/lib/model/sort-order.js +5 -4
- package/lib/model/sort-order.js.map +1 -1
- package/lib/model/source-connector-plugin-summary.d.ts +37 -0
- package/lib/model/source-connector-plugin-summary.js +58 -0
- package/lib/model/source-connector-plugin-summary.js.map +1 -0
- package/lib/model/source-connector-plugin.d.ts +37 -0
- package/lib/model/source-connector-plugin.js +56 -0
- package/lib/model/source-connector-plugin.js.map +1 -0
- package/lib/model/source-details.d.ts +9 -8
- package/lib/model/source-details.js +9 -4
- package/lib/model/source-details.js.map +1 -1
- package/lib/model/static-dimension-value.d.ts +5 -4
- package/lib/model/static-dimension-value.js +5 -4
- package/lib/model/static-dimension-value.js.map +1 -1
- package/lib/model/streaming-cursor-details.d.ts +8 -5
- package/lib/model/streaming-cursor-details.js +5 -4
- package/lib/model/streaming-cursor-details.js.map +1 -1
- package/lib/model/streaming-source-details.d.ts +7 -4
- package/lib/model/streaming-source-details.js +5 -4
- package/lib/model/streaming-source-details.js.map +1 -1
- package/lib/model/streaming-target-details.d.ts +7 -6
- package/lib/model/streaming-target-details.js +5 -4
- package/lib/model/streaming-target-details.js.map +1 -1
- package/lib/model/target-connector-plugin-summary.d.ts +31 -0
- package/lib/model/target-connector-plugin-summary.js +58 -0
- package/lib/model/target-connector-plugin-summary.js.map +1 -0
- package/lib/model/target-connector-plugin.d.ts +31 -0
- package/lib/model/target-connector-plugin.js +56 -0
- package/lib/model/target-connector-plugin.js.map +1 -0
- package/lib/model/target-details.d.ts +9 -8
- package/lib/model/target-details.js +5 -4
- package/lib/model/target-details.js.map +1 -1
- package/lib/model/task-details.d.ts +9 -8
- package/lib/model/task-details.js +5 -4
- package/lib/model/task-details.js.map +1 -1
- package/lib/model/trim-horizon-streaming-cursor.d.ts +8 -5
- package/lib/model/trim-horizon-streaming-cursor.js +5 -4
- package/lib/model/trim-horizon-streaming-cursor.js.map +1 -1
- package/lib/model/update-service-connector-details.d.ts +7 -6
- package/lib/model/update-service-connector-details.js +5 -4
- package/lib/model/update-service-connector-details.js.map +1 -1
- package/lib/model/work-request-collection.d.ts +5 -4
- package/lib/model/work-request-collection.js +5 -4
- package/lib/model/work-request-collection.js.map +1 -1
- package/lib/model/work-request-error-collection.d.ts +5 -4
- package/lib/model/work-request-error-collection.js +5 -4
- package/lib/model/work-request-error-collection.js.map +1 -1
- package/lib/model/work-request-error.d.ts +5 -4
- package/lib/model/work-request-error.js +5 -4
- package/lib/model/work-request-error.js.map +1 -1
- package/lib/model/work-request-log-entry-collection.d.ts +5 -4
- package/lib/model/work-request-log-entry-collection.js +5 -4
- package/lib/model/work-request-log-entry-collection.js.map +1 -1
- package/lib/model/work-request-log-entry.d.ts +5 -4
- package/lib/model/work-request-log-entry.js +5 -4
- package/lib/model/work-request-log-entry.js.map +1 -1
- package/lib/model/work-request-resource.d.ts +5 -4
- package/lib/model/work-request-resource.js +5 -4
- package/lib/model/work-request-resource.js.map +1 -1
- package/lib/model/work-request.d.ts +7 -6
- package/lib/model/work-request.js +5 -4
- package/lib/model/work-request.js.map +1 -1
- package/lib/request/activate-service-connector-request.d.ts +2 -2
- package/lib/request/change-service-connector-compartment-request.d.ts +3 -3
- package/lib/request/create-service-connector-request.d.ts +2 -2
- package/lib/request/deactivate-service-connector-request.d.ts +2 -2
- package/lib/request/delete-service-connector-request.d.ts +2 -2
- package/lib/request/get-connector-plugin-request.d.ts +29 -0
- package/lib/request/get-connector-plugin-request.js +15 -0
- package/lib/request/get-connector-plugin-request.js.map +1 -0
- package/lib/request/get-service-connector-request.d.ts +2 -2
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +9 -4
- package/lib/request/index.js +8 -5
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-connector-plugins-request.d.ts +77 -0
- package/lib/request/list-connector-plugins-request.js +24 -0
- package/lib/request/list-connector-plugins-request.js.map +1 -0
- package/lib/request/list-service-connectors-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/update-service-connector-request.d.ts +2 -2
- package/lib/response/get-connector-plugin-response.d.ts +25 -0
- package/lib/response/get-connector-plugin-response.js +15 -0
- package/lib/response/get-connector-plugin-response.js.map +1 -0
- package/lib/response/index.d.ts +9 -4
- package/lib/response/index.js +5 -4
- package/lib/response/index.js.map +1 -1
- package/lib/response/list-connector-plugins-response.d.ts +41 -0
- package/lib/response/list-connector-plugins-response.js +15 -0
- package/lib/response/list-connector-plugins-response.js.map +1 -0
- package/lib/serviceconnector-waiter.d.ts +5 -4
- package/lib/serviceconnector-waiter.js +5 -4
- package/lib/serviceconnector-waiter.js.map +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* Use the
|
|
5
|
-
For more information about
|
|
6
|
-
[
|
|
3
|
+
* Connector Hub API
|
|
4
|
+
* Use the Connector Hub API to transfer data between services in Oracle Cloud Infrastructure.
|
|
5
|
+
For more information about Connector Hub, see
|
|
6
|
+
[the Connector Hub documentation](/iaas/Content/connector-hub/home.htm).
|
|
7
|
+
Connector Hub is formerly known as Service Connector Hub.
|
|
7
8
|
|
|
8
9
|
* OpenAPI spec version: 20200909
|
|
9
10
|
*
|
|
@@ -43,15 +44,295 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
44
|
});
|
|
44
45
|
};
|
|
45
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.ServiceConnectorClient = exports.ServiceConnectorApiKeys = void 0;
|
|
47
|
+
exports.ServiceConnectorClient = exports.ServiceConnectorApiKeys = exports.ConnectorPluginsClient = exports.ConnectorPluginsApiKeys = void 0;
|
|
47
48
|
const common = require("oci-common");
|
|
48
49
|
const model = __importStar(require("./model"));
|
|
50
|
+
const connectorplugins_waiter_1 = require("./connectorplugins-waiter");
|
|
49
51
|
const serviceconnector_waiter_1 = require("./serviceconnector-waiter");
|
|
50
52
|
const oci_common_1 = require("oci-common");
|
|
51
53
|
const Breaker = require("opossum");
|
|
52
54
|
// ===============================================
|
|
53
55
|
// This file is autogenerated - Please do not edit
|
|
54
56
|
// ===============================================
|
|
57
|
+
var ConnectorPluginsApiKeys;
|
|
58
|
+
(function (ConnectorPluginsApiKeys) {
|
|
59
|
+
})(ConnectorPluginsApiKeys = exports.ConnectorPluginsApiKeys || (exports.ConnectorPluginsApiKeys = {}));
|
|
60
|
+
/**
|
|
61
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
62
|
+
*/
|
|
63
|
+
class ConnectorPluginsClient {
|
|
64
|
+
constructor(params, clientConfiguration) {
|
|
65
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
66
|
+
this["_endpoint"] = "";
|
|
67
|
+
this["_defaultHeaders"] = {};
|
|
68
|
+
this._circuitBreaker = null;
|
|
69
|
+
this._httpOptions = undefined;
|
|
70
|
+
this._bodyDuplexMode = undefined;
|
|
71
|
+
this.targetService = "ConnectorPlugins";
|
|
72
|
+
this._regionId = "";
|
|
73
|
+
this._lastSetRegionOrRegionId = "";
|
|
74
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
75
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
76
|
+
: null;
|
|
77
|
+
if (clientConfiguration) {
|
|
78
|
+
this._clientConfiguration = clientConfiguration;
|
|
79
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
80
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
81
|
+
: null;
|
|
82
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
83
|
+
? clientConfiguration.httpOptions
|
|
84
|
+
: undefined;
|
|
85
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
86
|
+
? clientConfiguration.bodyDuplexMode
|
|
87
|
+
: undefined;
|
|
88
|
+
}
|
|
89
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("sch")) {
|
|
90
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
91
|
+
throw errmsg.concat("sch");
|
|
92
|
+
}
|
|
93
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
94
|
+
const specCircuitBreakerEnabled = true;
|
|
95
|
+
if (!this._circuitBreaker &&
|
|
96
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
97
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
98
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
99
|
+
}
|
|
100
|
+
this._httpClient =
|
|
101
|
+
params.httpClient ||
|
|
102
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
103
|
+
if (params.authenticationDetailsProvider &&
|
|
104
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
105
|
+
const provider = params.authenticationDetailsProvider;
|
|
106
|
+
if (provider.getRegion()) {
|
|
107
|
+
this.region = provider.getRegion();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
113
|
+
*/
|
|
114
|
+
get endpoint() {
|
|
115
|
+
return this._endpoint;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
119
|
+
* @param endpoint The endpoint of the service.
|
|
120
|
+
*/
|
|
121
|
+
set endpoint(endpoint) {
|
|
122
|
+
this._endpoint = endpoint;
|
|
123
|
+
this._endpoint = this._endpoint + "/20200909";
|
|
124
|
+
if (this.logger)
|
|
125
|
+
this.logger.info(`ConnectorPluginsClient endpoint set to ${this._endpoint}`);
|
|
126
|
+
}
|
|
127
|
+
get logger() {
|
|
128
|
+
return common.LOG.logger;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
132
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
133
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
134
|
+
*/
|
|
135
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
136
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
137
|
+
if (this.logger)
|
|
138
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
139
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
140
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ConnectorPluginsClient.serviceEndpointTemplate, this._region, ConnectorPluginsClient.endpointServiceName);
|
|
141
|
+
}
|
|
142
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
143
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ConnectorPluginsClient.serviceEndpointTemplate, this._regionId, ConnectorPluginsClient.endpointServiceName);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
148
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
149
|
+
* @param region The region of the service.
|
|
150
|
+
*/
|
|
151
|
+
set region(region) {
|
|
152
|
+
this._region = region;
|
|
153
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ConnectorPluginsClient.serviceEndpointTemplate, region, ConnectorPluginsClient.endpointServiceName);
|
|
154
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
158
|
+
*
|
|
159
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
160
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
161
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
162
|
+
* @param regionId The public region ID.
|
|
163
|
+
*/
|
|
164
|
+
set regionId(regionId) {
|
|
165
|
+
this._regionId = regionId;
|
|
166
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ConnectorPluginsClient.serviceEndpointTemplate, regionId, ConnectorPluginsClient.endpointServiceName);
|
|
167
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Creates a new ConnectorPluginsWaiter for resources for this service.
|
|
171
|
+
*
|
|
172
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
173
|
+
* @return The service waiters.
|
|
174
|
+
*/
|
|
175
|
+
createWaiters(config) {
|
|
176
|
+
this._waiters = new connectorplugins_waiter_1.ConnectorPluginsWaiter(this, config);
|
|
177
|
+
return this._waiters;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Gets the waiters available for resources for this service.
|
|
181
|
+
*
|
|
182
|
+
* @return The service waiters.
|
|
183
|
+
*/
|
|
184
|
+
getWaiters() {
|
|
185
|
+
if (this._waiters) {
|
|
186
|
+
return this._waiters;
|
|
187
|
+
}
|
|
188
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
192
|
+
*/
|
|
193
|
+
shutdownCircuitBreaker() {
|
|
194
|
+
if (this._circuitBreaker) {
|
|
195
|
+
this._circuitBreaker.shutdown();
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Gets the specified connector plugin configuration information.
|
|
200
|
+
*
|
|
201
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
202
|
+
* @param GetConnectorPluginRequest
|
|
203
|
+
* @return GetConnectorPluginResponse
|
|
204
|
+
* @throws OciError when an error occurs
|
|
205
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/GetConnectorPlugin.ts.html |here} to see how to use GetConnectorPlugin API.
|
|
206
|
+
*/
|
|
207
|
+
getConnectorPlugin(getConnectorPluginRequest) {
|
|
208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
if (this.logger)
|
|
210
|
+
this.logger.debug("Calling operation ConnectorPluginsClient#getConnectorPlugin.");
|
|
211
|
+
const operationName = "getConnectorPlugin";
|
|
212
|
+
const apiReferenceLink = "";
|
|
213
|
+
const pathParams = {
|
|
214
|
+
"{connectorPluginName}": getConnectorPluginRequest.connectorPluginName
|
|
215
|
+
};
|
|
216
|
+
const queryParams = {};
|
|
217
|
+
let headerParams = {
|
|
218
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
219
|
+
"opc-request-id": getConnectorPluginRequest.opcRequestId
|
|
220
|
+
};
|
|
221
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
222
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getConnectorPluginRequest.retryConfiguration, specRetryConfiguration);
|
|
223
|
+
if (this.logger)
|
|
224
|
+
retrier.logger = this.logger;
|
|
225
|
+
const request = yield oci_common_1.composeRequest({
|
|
226
|
+
baseEndpoint: this._endpoint,
|
|
227
|
+
defaultHeaders: this._defaultHeaders,
|
|
228
|
+
path: "/connectorPlugins/{connectorPluginName}",
|
|
229
|
+
method: "GET",
|
|
230
|
+
pathParams: pathParams,
|
|
231
|
+
headerParams: headerParams,
|
|
232
|
+
queryParams: queryParams
|
|
233
|
+
});
|
|
234
|
+
try {
|
|
235
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
236
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
237
|
+
responseObject: {},
|
|
238
|
+
body: yield response.json(),
|
|
239
|
+
bodyKey: "connectorPlugin",
|
|
240
|
+
bodyModel: model.ConnectorPlugin,
|
|
241
|
+
type: "model.ConnectorPlugin",
|
|
242
|
+
responseHeaders: [
|
|
243
|
+
{
|
|
244
|
+
value: response.headers.get("opc-request-id"),
|
|
245
|
+
key: "opcRequestId",
|
|
246
|
+
dataType: "string"
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
});
|
|
250
|
+
return sdkResponse;
|
|
251
|
+
}
|
|
252
|
+
catch (err) {
|
|
253
|
+
throw err;
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Lists connector plugins according to the specified filter.
|
|
259
|
+
*
|
|
260
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
261
|
+
* @param ListConnectorPluginsRequest
|
|
262
|
+
* @return ListConnectorPluginsResponse
|
|
263
|
+
* @throws OciError when an error occurs
|
|
264
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/ListConnectorPlugins.ts.html |here} to see how to use ListConnectorPlugins API.
|
|
265
|
+
*/
|
|
266
|
+
listConnectorPlugins(listConnectorPluginsRequest) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
if (this.logger)
|
|
269
|
+
this.logger.debug("Calling operation ConnectorPluginsClient#listConnectorPlugins.");
|
|
270
|
+
const operationName = "listConnectorPlugins";
|
|
271
|
+
const apiReferenceLink = "";
|
|
272
|
+
const pathParams = {};
|
|
273
|
+
const queryParams = {
|
|
274
|
+
"lifecycleState": listConnectorPluginsRequest.lifecycleState,
|
|
275
|
+
"displayName": listConnectorPluginsRequest.displayName,
|
|
276
|
+
"name": listConnectorPluginsRequest.name,
|
|
277
|
+
"limit": listConnectorPluginsRequest.limit,
|
|
278
|
+
"page": listConnectorPluginsRequest.page,
|
|
279
|
+
"sortOrder": listConnectorPluginsRequest.sortOrder,
|
|
280
|
+
"sortBy": listConnectorPluginsRequest.sortBy
|
|
281
|
+
};
|
|
282
|
+
let headerParams = {
|
|
283
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
284
|
+
"opc-request-id": listConnectorPluginsRequest.opcRequestId
|
|
285
|
+
};
|
|
286
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
287
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listConnectorPluginsRequest.retryConfiguration, specRetryConfiguration);
|
|
288
|
+
if (this.logger)
|
|
289
|
+
retrier.logger = this.logger;
|
|
290
|
+
const request = yield oci_common_1.composeRequest({
|
|
291
|
+
baseEndpoint: this._endpoint,
|
|
292
|
+
defaultHeaders: this._defaultHeaders,
|
|
293
|
+
path: "/connectorPlugins",
|
|
294
|
+
method: "GET",
|
|
295
|
+
pathParams: pathParams,
|
|
296
|
+
headerParams: headerParams,
|
|
297
|
+
queryParams: queryParams
|
|
298
|
+
});
|
|
299
|
+
try {
|
|
300
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
301
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
302
|
+
responseObject: {},
|
|
303
|
+
body: yield response.json(),
|
|
304
|
+
bodyKey: "connectorPluginCollection",
|
|
305
|
+
bodyModel: model.ConnectorPluginCollection,
|
|
306
|
+
type: "model.ConnectorPluginCollection",
|
|
307
|
+
responseHeaders: [
|
|
308
|
+
{
|
|
309
|
+
value: response.headers.get("opc-request-id"),
|
|
310
|
+
key: "opcRequestId",
|
|
311
|
+
dataType: "string"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
value: response.headers.get("opc-next-page"),
|
|
315
|
+
key: "opcNextPage",
|
|
316
|
+
dataType: "string"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
value: response.headers.get("opc-prev-page"),
|
|
320
|
+
key: "opcPrevPage",
|
|
321
|
+
dataType: "string"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
});
|
|
325
|
+
return sdkResponse;
|
|
326
|
+
}
|
|
327
|
+
catch (err) {
|
|
328
|
+
throw err;
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
exports.ConnectorPluginsClient = ConnectorPluginsClient;
|
|
334
|
+
ConnectorPluginsClient.serviceEndpointTemplate = "https://service-connector-hub.{region}.oci.{secondLevelDomain}";
|
|
335
|
+
ConnectorPluginsClient.endpointServiceName = "";
|
|
55
336
|
var ServiceConnectorApiKeys;
|
|
56
337
|
(function (ServiceConnectorApiKeys) {
|
|
57
338
|
})(ServiceConnectorApiKeys = exports.ServiceConnectorApiKeys || (exports.ServiceConnectorApiKeys = {}));
|
|
@@ -194,26 +475,26 @@ class ServiceConnectorClient {
|
|
|
194
475
|
}
|
|
195
476
|
}
|
|
196
477
|
/**
|
|
197
|
-
* Activates the specified
|
|
478
|
+
* Activates the specified connector.
|
|
198
479
|
* <p>
|
|
199
|
-
After you send your request, the
|
|
480
|
+
After you send your request, the connector's state is temporarily
|
|
200
481
|
* UPDATING. When the state changes to ACTIVE, data begins transferring from the
|
|
201
|
-
* source service to the target service.
|
|
202
|
-
*
|
|
203
|
-
* [
|
|
482
|
+
* source service to the target service.
|
|
483
|
+
* For more information, see
|
|
484
|
+
* [Activating a Connector](https://docs.cloud.oracle.com/iaas/Content/connector-hub/activate-service-connector.htm).
|
|
204
485
|
*
|
|
205
|
-
* This operation
|
|
486
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
206
487
|
* @param ActivateServiceConnectorRequest
|
|
207
488
|
* @return ActivateServiceConnectorResponse
|
|
208
489
|
* @throws OciError when an error occurs
|
|
209
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
490
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/ActivateServiceConnector.ts.html |here} to see how to use ActivateServiceConnector API.
|
|
210
491
|
*/
|
|
211
492
|
activateServiceConnector(activateServiceConnectorRequest) {
|
|
212
493
|
return __awaiter(this, void 0, void 0, function* () {
|
|
213
494
|
if (this.logger)
|
|
214
495
|
this.logger.debug("Calling operation ServiceConnectorClient#activateServiceConnector.");
|
|
215
496
|
const operationName = "activateServiceConnector";
|
|
216
|
-
const apiReferenceLink = "
|
|
497
|
+
const apiReferenceLink = "";
|
|
217
498
|
const pathParams = {
|
|
218
499
|
"{serviceConnectorId}": activateServiceConnectorRequest.serviceConnectorId
|
|
219
500
|
};
|
|
@@ -224,7 +505,7 @@ class ServiceConnectorClient {
|
|
|
224
505
|
"if-match": activateServiceConnectorRequest.ifMatch,
|
|
225
506
|
"opc-request-id": activateServiceConnectorRequest.opcRequestId
|
|
226
507
|
};
|
|
227
|
-
const specRetryConfiguration = common.
|
|
508
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
228
509
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, activateServiceConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
229
510
|
if (this.logger)
|
|
230
511
|
retrier.logger = this.logger;
|
|
@@ -262,24 +543,24 @@ class ServiceConnectorClient {
|
|
|
262
543
|
});
|
|
263
544
|
}
|
|
264
545
|
/**
|
|
265
|
-
* Moves a
|
|
266
|
-
* For information
|
|
267
|
-
* [Moving
|
|
546
|
+
* Moves a connector into a different compartment within the same tenancy.
|
|
547
|
+
* For more information, see
|
|
548
|
+
* [Moving a Connector](https://docs.cloud.oracle.com/iaas/Content/connector-hub/change-compartment-service-connector.htm).
|
|
268
549
|
* <p>
|
|
269
550
|
When provided, If-Match is checked against ETag values of the resource.
|
|
270
551
|
*
|
|
271
|
-
* This operation
|
|
552
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
272
553
|
* @param ChangeServiceConnectorCompartmentRequest
|
|
273
554
|
* @return ChangeServiceConnectorCompartmentResponse
|
|
274
555
|
* @throws OciError when an error occurs
|
|
275
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
556
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/ChangeServiceConnectorCompartment.ts.html |here} to see how to use ChangeServiceConnectorCompartment API.
|
|
276
557
|
*/
|
|
277
558
|
changeServiceConnectorCompartment(changeServiceConnectorCompartmentRequest) {
|
|
278
559
|
return __awaiter(this, void 0, void 0, function* () {
|
|
279
560
|
if (this.logger)
|
|
280
561
|
this.logger.debug("Calling operation ServiceConnectorClient#changeServiceConnectorCompartment.");
|
|
281
562
|
const operationName = "changeServiceConnectorCompartment";
|
|
282
|
-
const apiReferenceLink = "
|
|
563
|
+
const apiReferenceLink = "";
|
|
283
564
|
const pathParams = {
|
|
284
565
|
"{serviceConnectorId}": changeServiceConnectorCompartmentRequest.serviceConnectorId
|
|
285
566
|
};
|
|
@@ -289,7 +570,7 @@ class ServiceConnectorClient {
|
|
|
289
570
|
"if-match": changeServiceConnectorCompartmentRequest.ifMatch,
|
|
290
571
|
"opc-request-id": changeServiceConnectorCompartmentRequest.opcRequestId
|
|
291
572
|
};
|
|
292
|
-
const specRetryConfiguration = common.
|
|
573
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
293
574
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeServiceConnectorCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
294
575
|
if (this.logger)
|
|
295
576
|
retrier.logger = this.logger;
|
|
@@ -328,39 +609,39 @@ class ServiceConnectorClient {
|
|
|
328
609
|
});
|
|
329
610
|
}
|
|
330
611
|
/**
|
|
331
|
-
* Creates a new
|
|
332
|
-
* A
|
|
612
|
+
* Creates a new connector in the specified compartment.
|
|
613
|
+
* A connector is a logically defined flow for moving data from
|
|
333
614
|
* a source service to a destination service in Oracle Cloud Infrastructure.
|
|
334
|
-
* For
|
|
335
|
-
* [
|
|
336
|
-
* For general information about
|
|
337
|
-
* [
|
|
615
|
+
* For more information, see
|
|
616
|
+
* [Creating a Connector](https://docs.cloud.oracle.com/iaas/Content/connector-hub/create-service-connector.htm).
|
|
617
|
+
* For general information about connectors, see
|
|
618
|
+
* [Overview of Connector Hub](https://docs.cloud.oracle.com/iaas/Content/connector-hub/overview.htm).
|
|
338
619
|
* <p>
|
|
339
620
|
For purposes of access control, you must provide the
|
|
340
621
|
* [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where
|
|
341
|
-
* you want the
|
|
622
|
+
* you want the connector to reside. Notice that the connector
|
|
342
623
|
* doesn't have to be in the same compartment as the source or target services.
|
|
343
624
|
* For information about access control and compartments, see
|
|
344
625
|
* [Overview of the IAM Service](https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm).
|
|
345
626
|
* <p>
|
|
346
|
-
After you send your request, the new
|
|
627
|
+
After you send your request, the new connector's state is temporarily
|
|
347
628
|
* CREATING. When the state changes to ACTIVE, data begins transferring from the
|
|
348
629
|
* source service to the target service. For instructions on deactivating and
|
|
349
|
-
* activating
|
|
350
|
-
* [
|
|
630
|
+
* activating connectors, see
|
|
631
|
+
* [Activating a Connector](https://docs.cloud.oracle.com/iaas/Content/connector-hub/activate-service-connector.htm).
|
|
351
632
|
*
|
|
352
|
-
* This operation
|
|
633
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
353
634
|
* @param CreateServiceConnectorRequest
|
|
354
635
|
* @return CreateServiceConnectorResponse
|
|
355
636
|
* @throws OciError when an error occurs
|
|
356
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
637
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/CreateServiceConnector.ts.html |here} to see how to use CreateServiceConnector API.
|
|
357
638
|
*/
|
|
358
639
|
createServiceConnector(createServiceConnectorRequest) {
|
|
359
640
|
return __awaiter(this, void 0, void 0, function* () {
|
|
360
641
|
if (this.logger)
|
|
361
642
|
this.logger.debug("Calling operation ServiceConnectorClient#createServiceConnector.");
|
|
362
643
|
const operationName = "createServiceConnector";
|
|
363
|
-
const apiReferenceLink = "
|
|
644
|
+
const apiReferenceLink = "";
|
|
364
645
|
const pathParams = {};
|
|
365
646
|
const queryParams = {};
|
|
366
647
|
let headerParams = {
|
|
@@ -368,7 +649,7 @@ class ServiceConnectorClient {
|
|
|
368
649
|
"opc-retry-token": createServiceConnectorRequest.opcRetryToken,
|
|
369
650
|
"opc-request-id": createServiceConnectorRequest.opcRequestId
|
|
370
651
|
};
|
|
371
|
-
const specRetryConfiguration = common.
|
|
652
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
372
653
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createServiceConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
373
654
|
if (this.logger)
|
|
374
655
|
retrier.logger = this.logger;
|
|
@@ -407,25 +688,25 @@ class ServiceConnectorClient {
|
|
|
407
688
|
});
|
|
408
689
|
}
|
|
409
690
|
/**
|
|
410
|
-
* Deactivates the specified
|
|
691
|
+
* Deactivates the specified connector.
|
|
411
692
|
* <p>
|
|
412
|
-
After you send your request, the
|
|
693
|
+
After you send your request, the connector's state is temporarily
|
|
413
694
|
* UPDATING and any data transfer stops. The state then changes to INACTIVE.
|
|
414
|
-
* For
|
|
415
|
-
* [
|
|
695
|
+
* For more information, see
|
|
696
|
+
* [Deactivating a Connector](https://docs.cloud.oracle.com/iaas/Content/connector-hub/deactivate-service-connector.htm).
|
|
416
697
|
*
|
|
417
|
-
* This operation
|
|
698
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
418
699
|
* @param DeactivateServiceConnectorRequest
|
|
419
700
|
* @return DeactivateServiceConnectorResponse
|
|
420
701
|
* @throws OciError when an error occurs
|
|
421
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
702
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/DeactivateServiceConnector.ts.html |here} to see how to use DeactivateServiceConnector API.
|
|
422
703
|
*/
|
|
423
704
|
deactivateServiceConnector(deactivateServiceConnectorRequest) {
|
|
424
705
|
return __awaiter(this, void 0, void 0, function* () {
|
|
425
706
|
if (this.logger)
|
|
426
707
|
this.logger.debug("Calling operation ServiceConnectorClient#deactivateServiceConnector.");
|
|
427
708
|
const operationName = "deactivateServiceConnector";
|
|
428
|
-
const apiReferenceLink = "
|
|
709
|
+
const apiReferenceLink = "";
|
|
429
710
|
const pathParams = {
|
|
430
711
|
"{serviceConnectorId}": deactivateServiceConnectorRequest.serviceConnectorId
|
|
431
712
|
};
|
|
@@ -436,7 +717,7 @@ class ServiceConnectorClient {
|
|
|
436
717
|
"if-match": deactivateServiceConnectorRequest.ifMatch,
|
|
437
718
|
"opc-request-id": deactivateServiceConnectorRequest.opcRequestId
|
|
438
719
|
};
|
|
439
|
-
const specRetryConfiguration = common.
|
|
720
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
440
721
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deactivateServiceConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
441
722
|
if (this.logger)
|
|
442
723
|
retrier.logger = this.logger;
|
|
@@ -474,23 +755,25 @@ class ServiceConnectorClient {
|
|
|
474
755
|
});
|
|
475
756
|
}
|
|
476
757
|
/**
|
|
477
|
-
* Deletes the specified
|
|
758
|
+
* Deletes the specified connector.
|
|
759
|
+
* For more information, see
|
|
760
|
+
* [Deleting a Connector](https://docs.cloud.oracle.com/iaas/Content/connector-hub/delete-service-connector.htm).
|
|
478
761
|
* <p>
|
|
479
|
-
After you send your request, the
|
|
762
|
+
After you send your request, the connector's state is temporarily
|
|
480
763
|
* DELETING and any data transfer stops. The state then changes to DELETED.
|
|
481
764
|
*
|
|
482
|
-
* This operation
|
|
765
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
483
766
|
* @param DeleteServiceConnectorRequest
|
|
484
767
|
* @return DeleteServiceConnectorResponse
|
|
485
768
|
* @throws OciError when an error occurs
|
|
486
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
769
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/DeleteServiceConnector.ts.html |here} to see how to use DeleteServiceConnector API.
|
|
487
770
|
*/
|
|
488
771
|
deleteServiceConnector(deleteServiceConnectorRequest) {
|
|
489
772
|
return __awaiter(this, void 0, void 0, function* () {
|
|
490
773
|
if (this.logger)
|
|
491
774
|
this.logger.debug("Calling operation ServiceConnectorClient#deleteServiceConnector.");
|
|
492
775
|
const operationName = "deleteServiceConnector";
|
|
493
|
-
const apiReferenceLink = "
|
|
776
|
+
const apiReferenceLink = "";
|
|
494
777
|
const pathParams = {
|
|
495
778
|
"{serviceConnectorId}": deleteServiceConnectorRequest.serviceConnectorId
|
|
496
779
|
};
|
|
@@ -500,7 +783,7 @@ class ServiceConnectorClient {
|
|
|
500
783
|
"if-match": deleteServiceConnectorRequest.ifMatch,
|
|
501
784
|
"opc-request-id": deleteServiceConnectorRequest.opcRequestId
|
|
502
785
|
};
|
|
503
|
-
const specRetryConfiguration = common.
|
|
786
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
504
787
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteServiceConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
505
788
|
if (this.logger)
|
|
506
789
|
retrier.logger = this.logger;
|
|
@@ -538,20 +821,22 @@ class ServiceConnectorClient {
|
|
|
538
821
|
});
|
|
539
822
|
}
|
|
540
823
|
/**
|
|
541
|
-
* Gets the specified
|
|
824
|
+
* Gets the specified connector's configuration information.
|
|
825
|
+
* For more information, see
|
|
826
|
+
* [Getting a Connector](https://docs.cloud.oracle.com/iaas/Content/connector-hub/get-service-connector.htm).
|
|
542
827
|
*
|
|
543
|
-
* This operation
|
|
828
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
544
829
|
* @param GetServiceConnectorRequest
|
|
545
830
|
* @return GetServiceConnectorResponse
|
|
546
831
|
* @throws OciError when an error occurs
|
|
547
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
832
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/GetServiceConnector.ts.html |here} to see how to use GetServiceConnector API.
|
|
548
833
|
*/
|
|
549
834
|
getServiceConnector(getServiceConnectorRequest) {
|
|
550
835
|
return __awaiter(this, void 0, void 0, function* () {
|
|
551
836
|
if (this.logger)
|
|
552
837
|
this.logger.debug("Calling operation ServiceConnectorClient#getServiceConnector.");
|
|
553
838
|
const operationName = "getServiceConnector";
|
|
554
|
-
const apiReferenceLink = "
|
|
839
|
+
const apiReferenceLink = "";
|
|
555
840
|
const pathParams = {
|
|
556
841
|
"{serviceConnectorId}": getServiceConnectorRequest.serviceConnectorId
|
|
557
842
|
};
|
|
@@ -560,7 +845,7 @@ class ServiceConnectorClient {
|
|
|
560
845
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
561
846
|
"opc-request-id": getServiceConnectorRequest.opcRequestId
|
|
562
847
|
};
|
|
563
|
-
const specRetryConfiguration = common.
|
|
848
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
564
849
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getServiceConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
565
850
|
if (this.logger)
|
|
566
851
|
retrier.logger = this.logger;
|
|
@@ -603,19 +888,21 @@ class ServiceConnectorClient {
|
|
|
603
888
|
}
|
|
604
889
|
/**
|
|
605
890
|
* Gets the details of the specified work request.
|
|
891
|
+
* For more information, see
|
|
892
|
+
* [Getting a Work Request's Details](https://docs.cloud.oracle.com/iaas/Content/connector-hub/get-work-request.htm).
|
|
606
893
|
*
|
|
607
|
-
* This operation
|
|
894
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
608
895
|
* @param GetWorkRequestRequest
|
|
609
896
|
* @return GetWorkRequestResponse
|
|
610
897
|
* @throws OciError when an error occurs
|
|
611
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
898
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
612
899
|
*/
|
|
613
900
|
getWorkRequest(getWorkRequestRequest) {
|
|
614
901
|
return __awaiter(this, void 0, void 0, function* () {
|
|
615
902
|
if (this.logger)
|
|
616
903
|
this.logger.debug("Calling operation ServiceConnectorClient#getWorkRequest.");
|
|
617
904
|
const operationName = "getWorkRequest";
|
|
618
|
-
const apiReferenceLink = "
|
|
905
|
+
const apiReferenceLink = "";
|
|
619
906
|
const pathParams = {
|
|
620
907
|
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
621
908
|
};
|
|
@@ -624,7 +911,7 @@ class ServiceConnectorClient {
|
|
|
624
911
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
625
912
|
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
626
913
|
};
|
|
627
|
-
const specRetryConfiguration = common.
|
|
914
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
628
915
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
629
916
|
if (this.logger)
|
|
630
917
|
retrier.logger = this.logger;
|
|
@@ -666,20 +953,22 @@ class ServiceConnectorClient {
|
|
|
666
953
|
});
|
|
667
954
|
}
|
|
668
955
|
/**
|
|
669
|
-
* Lists
|
|
956
|
+
* Lists connectors in the specified compartment.
|
|
957
|
+
* For more information, see
|
|
958
|
+
* [Listing Connectors](https://docs.cloud.oracle.com/iaas/Content/connector-hub/list-service-connector.htm).
|
|
670
959
|
*
|
|
671
|
-
* This operation
|
|
960
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
672
961
|
* @param ListServiceConnectorsRequest
|
|
673
962
|
* @return ListServiceConnectorsResponse
|
|
674
963
|
* @throws OciError when an error occurs
|
|
675
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
964
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/ListServiceConnectors.ts.html |here} to see how to use ListServiceConnectors API.
|
|
676
965
|
*/
|
|
677
966
|
listServiceConnectors(listServiceConnectorsRequest) {
|
|
678
967
|
return __awaiter(this, void 0, void 0, function* () {
|
|
679
968
|
if (this.logger)
|
|
680
969
|
this.logger.debug("Calling operation ServiceConnectorClient#listServiceConnectors.");
|
|
681
970
|
const operationName = "listServiceConnectors";
|
|
682
|
-
const apiReferenceLink = "
|
|
971
|
+
const apiReferenceLink = "";
|
|
683
972
|
const pathParams = {};
|
|
684
973
|
const queryParams = {
|
|
685
974
|
"compartmentId": listServiceConnectorsRequest.compartmentId,
|
|
@@ -694,7 +983,7 @@ class ServiceConnectorClient {
|
|
|
694
983
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
695
984
|
"opc-request-id": listServiceConnectorsRequest.opcRequestId
|
|
696
985
|
};
|
|
697
|
-
const specRetryConfiguration = common.
|
|
986
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
698
987
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listServiceConnectorsRequest.retryConfiguration, specRetryConfiguration);
|
|
699
988
|
if (this.logger)
|
|
700
989
|
retrier.logger = this.logger;
|
|
@@ -742,19 +1031,21 @@ class ServiceConnectorClient {
|
|
|
742
1031
|
}
|
|
743
1032
|
/**
|
|
744
1033
|
* Lists work request errors for the specified work request. Results are paginated.
|
|
1034
|
+
* For more information, see
|
|
1035
|
+
* [Listing Work Request Errors](https://docs.cloud.oracle.com/iaas/Content/connector-hub/list-work-request-error.htm).
|
|
745
1036
|
*
|
|
746
|
-
* This operation
|
|
1037
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
747
1038
|
* @param ListWorkRequestErrorsRequest
|
|
748
1039
|
* @return ListWorkRequestErrorsResponse
|
|
749
1040
|
* @throws OciError when an error occurs
|
|
750
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1041
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
751
1042
|
*/
|
|
752
1043
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
753
1044
|
return __awaiter(this, void 0, void 0, function* () {
|
|
754
1045
|
if (this.logger)
|
|
755
1046
|
this.logger.debug("Calling operation ServiceConnectorClient#listWorkRequestErrors.");
|
|
756
1047
|
const operationName = "listWorkRequestErrors";
|
|
757
|
-
const apiReferenceLink = "
|
|
1048
|
+
const apiReferenceLink = "";
|
|
758
1049
|
const pathParams = {
|
|
759
1050
|
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
760
1051
|
};
|
|
@@ -766,7 +1057,7 @@ class ServiceConnectorClient {
|
|
|
766
1057
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
767
1058
|
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
768
1059
|
};
|
|
769
|
-
const specRetryConfiguration = common.
|
|
1060
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
770
1061
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
771
1062
|
if (this.logger)
|
|
772
1063
|
retrier.logger = this.logger;
|
|
@@ -814,19 +1105,21 @@ class ServiceConnectorClient {
|
|
|
814
1105
|
}
|
|
815
1106
|
/**
|
|
816
1107
|
* Lists logs for the specified work request. Results are paginated.
|
|
1108
|
+
* For more information, see
|
|
1109
|
+
* [Listing Work Request Log Entries](https://docs.cloud.oracle.com/iaas/Content/connector-hub/list-work-request-log-entry.htm).
|
|
817
1110
|
*
|
|
818
|
-
* This operation
|
|
1111
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
819
1112
|
* @param ListWorkRequestLogsRequest
|
|
820
1113
|
* @return ListWorkRequestLogsResponse
|
|
821
1114
|
* @throws OciError when an error occurs
|
|
822
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1115
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
823
1116
|
*/
|
|
824
1117
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
825
1118
|
return __awaiter(this, void 0, void 0, function* () {
|
|
826
1119
|
if (this.logger)
|
|
827
1120
|
this.logger.debug("Calling operation ServiceConnectorClient#listWorkRequestLogs.");
|
|
828
1121
|
const operationName = "listWorkRequestLogs";
|
|
829
|
-
const apiReferenceLink = "
|
|
1122
|
+
const apiReferenceLink = "";
|
|
830
1123
|
const pathParams = {
|
|
831
1124
|
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
832
1125
|
};
|
|
@@ -838,7 +1131,7 @@ class ServiceConnectorClient {
|
|
|
838
1131
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
839
1132
|
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
840
1133
|
};
|
|
841
|
-
const specRetryConfiguration = common.
|
|
1134
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
842
1135
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
843
1136
|
if (this.logger)
|
|
844
1137
|
retrier.logger = this.logger;
|
|
@@ -886,19 +1179,21 @@ class ServiceConnectorClient {
|
|
|
886
1179
|
}
|
|
887
1180
|
/**
|
|
888
1181
|
* Lists the work requests in the specified compartment.
|
|
1182
|
+
* For more information, see
|
|
1183
|
+
* [Listing Work Requests](https://docs.cloud.oracle.com/iaas/Content/connector-hub/list-work-request.htm).
|
|
889
1184
|
*
|
|
890
|
-
* This operation
|
|
1185
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
891
1186
|
* @param ListWorkRequestsRequest
|
|
892
1187
|
* @return ListWorkRequestsResponse
|
|
893
1188
|
* @throws OciError when an error occurs
|
|
894
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1189
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
895
1190
|
*/
|
|
896
1191
|
listWorkRequests(listWorkRequestsRequest) {
|
|
897
1192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
898
1193
|
if (this.logger)
|
|
899
1194
|
this.logger.debug("Calling operation ServiceConnectorClient#listWorkRequests.");
|
|
900
1195
|
const operationName = "listWorkRequests";
|
|
901
|
-
const apiReferenceLink = "
|
|
1196
|
+
const apiReferenceLink = "";
|
|
902
1197
|
const pathParams = {};
|
|
903
1198
|
const queryParams = {
|
|
904
1199
|
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
@@ -909,7 +1204,7 @@ class ServiceConnectorClient {
|
|
|
909
1204
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
910
1205
|
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
911
1206
|
};
|
|
912
|
-
const specRetryConfiguration = common.
|
|
1207
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
913
1208
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
914
1209
|
if (this.logger)
|
|
915
1210
|
retrier.logger = this.logger;
|
|
@@ -956,24 +1251,26 @@ class ServiceConnectorClient {
|
|
|
956
1251
|
});
|
|
957
1252
|
}
|
|
958
1253
|
/**
|
|
959
|
-
* Updates the configuration information for the specified
|
|
1254
|
+
* Updates the configuration information for the specified connector.
|
|
1255
|
+
* For more information, see
|
|
1256
|
+
* [Updating a Connector](https://docs.cloud.oracle.com/iaas/Content/connector-hub/update-service-connector.htm).
|
|
960
1257
|
* <p>
|
|
961
|
-
After you send your request, the
|
|
1258
|
+
After you send your request, the connector's state is temporarily
|
|
962
1259
|
* UPDATING and any data transfer pauses. The state then changes back to its
|
|
963
1260
|
* original value: if ACTIVE, then data transfer resumes.
|
|
964
1261
|
*
|
|
965
|
-
* This operation
|
|
1262
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
966
1263
|
* @param UpdateServiceConnectorRequest
|
|
967
1264
|
* @return UpdateServiceConnectorResponse
|
|
968
1265
|
* @throws OciError when an error occurs
|
|
969
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1266
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/sch/UpdateServiceConnector.ts.html |here} to see how to use UpdateServiceConnector API.
|
|
970
1267
|
*/
|
|
971
1268
|
updateServiceConnector(updateServiceConnectorRequest) {
|
|
972
1269
|
return __awaiter(this, void 0, void 0, function* () {
|
|
973
1270
|
if (this.logger)
|
|
974
1271
|
this.logger.debug("Calling operation ServiceConnectorClient#updateServiceConnector.");
|
|
975
1272
|
const operationName = "updateServiceConnector";
|
|
976
|
-
const apiReferenceLink = "
|
|
1273
|
+
const apiReferenceLink = "";
|
|
977
1274
|
const pathParams = {
|
|
978
1275
|
"{serviceConnectorId}": updateServiceConnectorRequest.serviceConnectorId
|
|
979
1276
|
};
|
|
@@ -983,7 +1280,7 @@ class ServiceConnectorClient {
|
|
|
983
1280
|
"if-match": updateServiceConnectorRequest.ifMatch,
|
|
984
1281
|
"opc-request-id": updateServiceConnectorRequest.opcRequestId
|
|
985
1282
|
};
|
|
986
|
-
const specRetryConfiguration = common.
|
|
1283
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
987
1284
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateServiceConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
988
1285
|
if (this.logger)
|
|
989
1286
|
retrier.logger = this.logger;
|