oci-managementagent 2.112.2 → 2.113.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/lib/client.d.ts +60 -0
- package/lib/client.js +405 -0
- package/lib/client.js.map +1 -1
- package/lib/managementagent-waiter.d.ts +8 -0
- package/lib/managementagent-waiter.js +12 -0
- package/lib/managementagent-waiter.js.map +1 -1
- package/lib/model/architecture-types.d.ts +1 -0
- package/lib/model/architecture-types.js +1 -0
- package/lib/model/architecture-types.js.map +1 -1
- package/lib/model/create-named-credential-details.d.ts +63 -0
- package/lib/model/create-named-credential-details.js +63 -0
- package/lib/model/create-named-credential-details.js.map +1 -0
- package/lib/model/index.d.ts +22 -0
- package/lib/model/index.js +24 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/management-agent-install-key-summary.d.ts +28 -0
- package/lib/model/management-agent-install-key-summary.js.map +1 -1
- package/lib/model/management-agent-install-key.d.ts +28 -0
- package/lib/model/management-agent-install-key.js.map +1 -1
- package/lib/model/management-agent-plugin-resource.d.ts +35 -0
- package/lib/model/management-agent-plugin-resource.js +31 -0
- package/lib/model/management-agent-plugin-resource.js.map +1 -0
- package/lib/model/management-agent-plugin-summary.d.ts +1 -0
- package/lib/model/management-agent-plugin-summary.js +1 -0
- package/lib/model/management-agent-plugin-summary.js.map +1 -1
- package/lib/model/management-agent-plugin.d.ts +2 -1
- package/lib/model/management-agent-plugin.js +1 -0
- package/lib/model/management-agent-plugin.js.map +1 -1
- package/lib/model/management-agent-summary.d.ts +14 -0
- package/lib/model/management-agent-summary.js.map +1 -1
- package/lib/model/management-agent.d.ts +10 -0
- package/lib/model/management-agent.js.map +1 -1
- package/lib/model/named-credential-collection.d.ts +28 -0
- package/lib/model/named-credential-collection.js +63 -0
- package/lib/model/named-credential-collection.js.map +1 -0
- package/lib/model/named-credential-field-definition.d.ts +62 -0
- package/lib/model/named-credential-field-definition.js +43 -0
- package/lib/model/named-credential-field-definition.js.map +1 -0
- package/lib/model/named-credential-metadata-definition.d.ts +40 -0
- package/lib/model/named-credential-metadata-definition.js +63 -0
- package/lib/model/named-credential-metadata-definition.js.map +1 -0
- package/lib/model/named-credential-property.d.ts +41 -0
- package/lib/model/named-credential-property.js +31 -0
- package/lib/model/named-credential-property.js.map +1 -0
- package/lib/model/named-credential-summary.d.ts +89 -0
- package/lib/model/named-credential-summary.js +63 -0
- package/lib/model/named-credential-summary.js.map +1 -0
- package/lib/model/named-credential.d.ts +102 -0
- package/lib/model/named-credential.js +77 -0
- package/lib/model/named-credential.js.map +1 -0
- package/lib/model/named-credentials-metadatum.d.ts +28 -0
- package/lib/model/named-credentials-metadatum.js +63 -0
- package/lib/model/named-credentials-metadatum.js.map +1 -0
- package/lib/model/operation-types.d.ts +5 -0
- package/lib/model/operation-types.js +5 -0
- package/lib/model/operation-types.js.map +1 -1
- package/lib/model/platform-types.d.ts +1 -0
- package/lib/model/platform-types.js +1 -0
- package/lib/model/platform-types.js.map +1 -1
- package/lib/model/update-named-credential-details.d.ts +51 -0
- package/lib/model/update-named-credential-details.js +63 -0
- package/lib/model/update-named-credential-details.js.map +1 -0
- package/lib/model/value-category-type.d.ts +37 -0
- package/lib/model/value-category-type.js +48 -0
- package/lib/model/value-category-type.js.map +1 -0
- package/lib/request/create-named-credential-request.d.ts +45 -0
- package/lib/request/create-named-credential-request.js +15 -0
- package/lib/request/create-named-credential-request.js.map +1 -0
- package/lib/request/delete-named-credential-request.d.ts +35 -0
- package/lib/request/delete-named-credential-request.js +15 -0
- package/lib/request/delete-named-credential-request.js.map +1 -0
- package/lib/request/get-named-credential-request.d.ts +35 -0
- package/lib/request/get-named-credential-request.js +15 -0
- package/lib/request/get-named-credential-request.js.map +1 -0
- package/lib/request/get-named-credentials-metadatum-request.d.ts +30 -0
- package/lib/request/get-named-credentials-metadatum-request.js +15 -0
- package/lib/request/get-named-credentials-metadatum-request.js.map +1 -0
- package/lib/request/index.d.ts +12 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-named-credentials-request.d.ts +72 -0
- package/lib/request/list-named-credentials-request.js +31 -0
- package/lib/request/list-named-credentials-request.js.map +1 -0
- package/lib/request/update-named-credential-request.d.ts +49 -0
- package/lib/request/update-named-credential-request.js +15 -0
- package/lib/request/update-named-credential-request.js.map +1 -0
- package/lib/response/create-named-credential-response.d.ts +35 -0
- package/lib/response/create-named-credential-response.js +15 -0
- package/lib/response/create-named-credential-response.js.map +1 -0
- package/lib/response/delete-named-credential-response.d.ts +25 -0
- package/lib/response/delete-named-credential-response.js +15 -0
- package/lib/response/delete-named-credential-response.js.map +1 -0
- package/lib/response/get-named-credential-response.d.ts +30 -0
- package/lib/response/get-named-credential-response.js +15 -0
- package/lib/response/get-named-credential-response.js.map +1 -0
- package/lib/response/get-named-credentials-metadatum-response.d.ts +30 -0
- package/lib/response/get-named-credentials-metadatum-response.js +15 -0
- package/lib/response/get-named-credentials-metadatum-response.js.map +1 -0
- package/lib/response/index.d.ts +12 -0
- package/lib/response/list-named-credentials-response.d.ts +32 -0
- package/lib/response/list-named-credentials-response.js +15 -0
- package/lib/response/list-named-credentials-response.js.map +1 -0
- package/lib/response/update-named-credential-response.d.ts +35 -0
- package/lib/response/update-named-credential-response.js +15 -0
- package/lib/response/update-named-credential-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -117,6 +117,16 @@ export declare class ManagementAgentClient {
|
|
|
117
117
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/CreateManagementAgentInstallKey.ts.html |here} to see how to use CreateManagementAgentInstallKey API.
|
|
118
118
|
*/
|
|
119
119
|
createManagementAgentInstallKey(createManagementAgentInstallKeyRequest: requests.CreateManagementAgentInstallKeyRequest): Promise<responses.CreateManagementAgentInstallKeyResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* Named credential creation request to given Management Agent.
|
|
122
|
+
*
|
|
123
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
124
|
+
* @param CreateNamedCredentialRequest
|
|
125
|
+
* @return CreateNamedCredentialResponse
|
|
126
|
+
* @throws OciError when an error occurs
|
|
127
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/CreateNamedCredential.ts.html |here} to see how to use CreateNamedCredential API.
|
|
128
|
+
*/
|
|
129
|
+
createNamedCredential(createNamedCredentialRequest: requests.CreateNamedCredentialRequest): Promise<responses.CreateNamedCredentialResponse>;
|
|
120
130
|
/**
|
|
121
131
|
* Datasource delete request to given Management Agent.
|
|
122
132
|
*
|
|
@@ -145,6 +155,16 @@ export declare class ManagementAgentClient {
|
|
|
145
155
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/DeleteManagementAgentInstallKey.ts.html |here} to see how to use DeleteManagementAgentInstallKey API.
|
|
146
156
|
*/
|
|
147
157
|
deleteManagementAgentInstallKey(deleteManagementAgentInstallKeyRequest: requests.DeleteManagementAgentInstallKeyRequest): Promise<responses.DeleteManagementAgentInstallKeyResponse>;
|
|
158
|
+
/**
|
|
159
|
+
* Named credential delete request to sent to associated Management Agent.
|
|
160
|
+
*
|
|
161
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
162
|
+
* @param DeleteNamedCredentialRequest
|
|
163
|
+
* @return DeleteNamedCredentialResponse
|
|
164
|
+
* @throws OciError when an error occurs
|
|
165
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/DeleteNamedCredential.ts.html |here} to see how to use DeleteNamedCredential API.
|
|
166
|
+
*/
|
|
167
|
+
deleteNamedCredential(deleteNamedCredentialRequest: requests.DeleteNamedCredentialRequest): Promise<responses.DeleteNamedCredentialResponse>;
|
|
148
168
|
/**
|
|
149
169
|
* Cancel the work request with the given ID.
|
|
150
170
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
@@ -213,6 +233,26 @@ export declare class ManagementAgentClient {
|
|
|
213
233
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/GetManagementAgentInstallKeyContent.ts.html |here} to see how to use GetManagementAgentInstallKeyContent API.
|
|
214
234
|
*/
|
|
215
235
|
getManagementAgentInstallKeyContent(getManagementAgentInstallKeyContentRequest: requests.GetManagementAgentInstallKeyContentRequest): Promise<responses.GetManagementAgentInstallKeyContentResponse>;
|
|
236
|
+
/**
|
|
237
|
+
* Get Named credential details for given Id and given Management Agent.
|
|
238
|
+
*
|
|
239
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
240
|
+
* @param GetNamedCredentialRequest
|
|
241
|
+
* @return GetNamedCredentialResponse
|
|
242
|
+
* @throws OciError when an error occurs
|
|
243
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/GetNamedCredential.ts.html |here} to see how to use GetNamedCredential API.
|
|
244
|
+
*/
|
|
245
|
+
getNamedCredential(getNamedCredentialRequest: requests.GetNamedCredentialRequest): Promise<responses.GetNamedCredentialResponse>;
|
|
246
|
+
/**
|
|
247
|
+
* Return the Metadata definition for Named Credentials supported by Management Agent.
|
|
248
|
+
*
|
|
249
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
250
|
+
* @param GetNamedCredentialsMetadatumRequest
|
|
251
|
+
* @return GetNamedCredentialsMetadatumResponse
|
|
252
|
+
* @throws OciError when an error occurs
|
|
253
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/GetNamedCredentialsMetadatum.ts.html |here} to see how to use GetNamedCredentialsMetadatum API.
|
|
254
|
+
*/
|
|
255
|
+
getNamedCredentialsMetadatum(getNamedCredentialsMetadatumRequest: requests.GetNamedCredentialsMetadatumRequest): Promise<responses.GetNamedCredentialsMetadatumResponse>;
|
|
216
256
|
/**
|
|
217
257
|
* Gets the status of the work request with the given ID.
|
|
218
258
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
@@ -475,6 +515,16 @@ export declare class ManagementAgentClient {
|
|
|
475
515
|
* @param request a request which can be sent to the service operation
|
|
476
516
|
*/
|
|
477
517
|
listManagementAgentsResponseIterator(request: requests.ListManagementAgentsRequest): AsyncIterableIterator<responses.ListManagementAgentsResponse>;
|
|
518
|
+
/**
|
|
519
|
+
* A list of Management Agent Data Sources for the given Management Agent Id.
|
|
520
|
+
*
|
|
521
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
522
|
+
* @param ListNamedCredentialsRequest
|
|
523
|
+
* @return ListNamedCredentialsResponse
|
|
524
|
+
* @throws OciError when an error occurs
|
|
525
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/ListNamedCredentials.ts.html |here} to see how to use ListNamedCredentials API.
|
|
526
|
+
*/
|
|
527
|
+
listNamedCredentials(listNamedCredentialsRequest: requests.ListNamedCredentialsRequest): Promise<responses.ListNamedCredentialsResponse>;
|
|
478
528
|
/**
|
|
479
529
|
* Return a (paginated) list of errors for a given work request.
|
|
480
530
|
*
|
|
@@ -664,5 +714,15 @@ export declare class ManagementAgentClient {
|
|
|
664
714
|
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/UpdateManagementAgentInstallKey.ts.html |here} to see how to use UpdateManagementAgentInstallKey API.
|
|
665
715
|
*/
|
|
666
716
|
updateManagementAgentInstallKey(updateManagementAgentInstallKeyRequest: requests.UpdateManagementAgentInstallKeyRequest): Promise<responses.UpdateManagementAgentInstallKeyResponse>;
|
|
717
|
+
/**
|
|
718
|
+
* Named credential update request to given Management Agent.
|
|
719
|
+
*
|
|
720
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
721
|
+
* @param UpdateNamedCredentialRequest
|
|
722
|
+
* @return UpdateNamedCredentialResponse
|
|
723
|
+
* @throws OciError when an error occurs
|
|
724
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/UpdateNamedCredential.ts.html |here} to see how to use UpdateNamedCredential API.
|
|
725
|
+
*/
|
|
726
|
+
updateNamedCredential(updateNamedCredentialRequest: requests.UpdateNamedCredentialRequest): Promise<responses.UpdateNamedCredentialResponse>;
|
|
667
727
|
}
|
|
668
728
|
export {};
|
package/lib/client.js
CHANGED
|
@@ -337,6 +337,76 @@ class ManagementAgentClient {
|
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
|
+
/**
|
|
341
|
+
* Named credential creation request to given Management Agent.
|
|
342
|
+
*
|
|
343
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
344
|
+
* @param CreateNamedCredentialRequest
|
|
345
|
+
* @return CreateNamedCredentialResponse
|
|
346
|
+
* @throws OciError when an error occurs
|
|
347
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/CreateNamedCredential.ts.html |here} to see how to use CreateNamedCredential API.
|
|
348
|
+
*/
|
|
349
|
+
createNamedCredential(createNamedCredentialRequest) {
|
|
350
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
351
|
+
if (this.logger)
|
|
352
|
+
this.logger.debug("Calling operation ManagementAgentClient#createNamedCredential.");
|
|
353
|
+
const operationName = "createNamedCredential";
|
|
354
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/NamedCredential/CreateNamedCredential";
|
|
355
|
+
const pathParams = {};
|
|
356
|
+
const queryParams = {};
|
|
357
|
+
let headerParams = {
|
|
358
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
359
|
+
"opc-retry-token": createNamedCredentialRequest.opcRetryToken,
|
|
360
|
+
"opc-request-id": createNamedCredentialRequest.opcRequestId,
|
|
361
|
+
"if-match": createNamedCredentialRequest.ifMatch
|
|
362
|
+
};
|
|
363
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
364
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createNamedCredentialRequest.retryConfiguration, specRetryConfiguration);
|
|
365
|
+
if (this.logger)
|
|
366
|
+
retrier.logger = this.logger;
|
|
367
|
+
const request = yield oci_common_2.composeRequest({
|
|
368
|
+
baseEndpoint: this._endpoint,
|
|
369
|
+
defaultHeaders: this._defaultHeaders,
|
|
370
|
+
path: "/namedCredentials",
|
|
371
|
+
method: "POST",
|
|
372
|
+
bodyContent: common.ObjectSerializer.serialize(createNamedCredentialRequest.createNamedCredentialDetails, "CreateNamedCredentialDetails", model.CreateNamedCredentialDetails.getJsonObj),
|
|
373
|
+
pathParams: pathParams,
|
|
374
|
+
headerParams: headerParams,
|
|
375
|
+
queryParams: queryParams
|
|
376
|
+
});
|
|
377
|
+
try {
|
|
378
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
379
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
380
|
+
responseObject: {},
|
|
381
|
+
body: yield response.json(),
|
|
382
|
+
bodyKey: "namedCredential",
|
|
383
|
+
bodyModel: model.NamedCredential,
|
|
384
|
+
type: "model.NamedCredential",
|
|
385
|
+
responseHeaders: [
|
|
386
|
+
{
|
|
387
|
+
value: response.headers.get("opc-work-request-id"),
|
|
388
|
+
key: "opcWorkRequestId",
|
|
389
|
+
dataType: "string"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
value: response.headers.get("opc-request-id"),
|
|
393
|
+
key: "opcRequestId",
|
|
394
|
+
dataType: "string"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
value: response.headers.get("etag"),
|
|
398
|
+
key: "etag",
|
|
399
|
+
dataType: "string"
|
|
400
|
+
}
|
|
401
|
+
]
|
|
402
|
+
});
|
|
403
|
+
return sdkResponse;
|
|
404
|
+
}
|
|
405
|
+
catch (err) {
|
|
406
|
+
throw err;
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
}
|
|
340
410
|
/**
|
|
341
411
|
* Datasource delete request to given Management Agent.
|
|
342
412
|
*
|
|
@@ -509,6 +579,67 @@ class ManagementAgentClient {
|
|
|
509
579
|
}
|
|
510
580
|
});
|
|
511
581
|
}
|
|
582
|
+
/**
|
|
583
|
+
* Named credential delete request to sent to associated Management Agent.
|
|
584
|
+
*
|
|
585
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
586
|
+
* @param DeleteNamedCredentialRequest
|
|
587
|
+
* @return DeleteNamedCredentialResponse
|
|
588
|
+
* @throws OciError when an error occurs
|
|
589
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/DeleteNamedCredential.ts.html |here} to see how to use DeleteNamedCredential API.
|
|
590
|
+
*/
|
|
591
|
+
deleteNamedCredential(deleteNamedCredentialRequest) {
|
|
592
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
593
|
+
if (this.logger)
|
|
594
|
+
this.logger.debug("Calling operation ManagementAgentClient#deleteNamedCredential.");
|
|
595
|
+
const operationName = "deleteNamedCredential";
|
|
596
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/DeleteNamedCredential";
|
|
597
|
+
const pathParams = {
|
|
598
|
+
"{namedCredentialId}": deleteNamedCredentialRequest.namedCredentialId
|
|
599
|
+
};
|
|
600
|
+
const queryParams = {};
|
|
601
|
+
let headerParams = {
|
|
602
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
603
|
+
"if-match": deleteNamedCredentialRequest.ifMatch,
|
|
604
|
+
"opc-request-id": deleteNamedCredentialRequest.opcRequestId
|
|
605
|
+
};
|
|
606
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
607
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteNamedCredentialRequest.retryConfiguration, specRetryConfiguration);
|
|
608
|
+
if (this.logger)
|
|
609
|
+
retrier.logger = this.logger;
|
|
610
|
+
const request = yield oci_common_2.composeRequest({
|
|
611
|
+
baseEndpoint: this._endpoint,
|
|
612
|
+
defaultHeaders: this._defaultHeaders,
|
|
613
|
+
path: "/namedCredentials/{namedCredentialId}",
|
|
614
|
+
method: "DELETE",
|
|
615
|
+
pathParams: pathParams,
|
|
616
|
+
headerParams: headerParams,
|
|
617
|
+
queryParams: queryParams
|
|
618
|
+
});
|
|
619
|
+
try {
|
|
620
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
621
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
622
|
+
responseObject: {},
|
|
623
|
+
responseHeaders: [
|
|
624
|
+
{
|
|
625
|
+
value: response.headers.get("opc-request-id"),
|
|
626
|
+
key: "opcRequestId",
|
|
627
|
+
dataType: "string"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
value: response.headers.get("opc-work-request-id"),
|
|
631
|
+
key: "opcWorkRequestId",
|
|
632
|
+
dataType: "string"
|
|
633
|
+
}
|
|
634
|
+
]
|
|
635
|
+
});
|
|
636
|
+
return sdkResponse;
|
|
637
|
+
}
|
|
638
|
+
catch (err) {
|
|
639
|
+
throw err;
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
}
|
|
512
643
|
/**
|
|
513
644
|
* Cancel the work request with the given ID.
|
|
514
645
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
@@ -946,6 +1077,136 @@ class ManagementAgentClient {
|
|
|
946
1077
|
}
|
|
947
1078
|
});
|
|
948
1079
|
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Get Named credential details for given Id and given Management Agent.
|
|
1082
|
+
*
|
|
1083
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1084
|
+
* @param GetNamedCredentialRequest
|
|
1085
|
+
* @return GetNamedCredentialResponse
|
|
1086
|
+
* @throws OciError when an error occurs
|
|
1087
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/GetNamedCredential.ts.html |here} to see how to use GetNamedCredential API.
|
|
1088
|
+
*/
|
|
1089
|
+
getNamedCredential(getNamedCredentialRequest) {
|
|
1090
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1091
|
+
if (this.logger)
|
|
1092
|
+
this.logger.debug("Calling operation ManagementAgentClient#getNamedCredential.");
|
|
1093
|
+
const operationName = "getNamedCredential";
|
|
1094
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/GetNamedCredential";
|
|
1095
|
+
const pathParams = {
|
|
1096
|
+
"{namedCredentialId}": getNamedCredentialRequest.namedCredentialId
|
|
1097
|
+
};
|
|
1098
|
+
const queryParams = {};
|
|
1099
|
+
let headerParams = {
|
|
1100
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1101
|
+
"opc-retry-token": getNamedCredentialRequest.opcRetryToken,
|
|
1102
|
+
"opc-request-id": getNamedCredentialRequest.opcRequestId
|
|
1103
|
+
};
|
|
1104
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1105
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNamedCredentialRequest.retryConfiguration, specRetryConfiguration);
|
|
1106
|
+
if (this.logger)
|
|
1107
|
+
retrier.logger = this.logger;
|
|
1108
|
+
const request = yield oci_common_2.composeRequest({
|
|
1109
|
+
baseEndpoint: this._endpoint,
|
|
1110
|
+
defaultHeaders: this._defaultHeaders,
|
|
1111
|
+
path: "/namedCredentials/{namedCredentialId}",
|
|
1112
|
+
method: "GET",
|
|
1113
|
+
pathParams: pathParams,
|
|
1114
|
+
headerParams: headerParams,
|
|
1115
|
+
queryParams: queryParams
|
|
1116
|
+
});
|
|
1117
|
+
try {
|
|
1118
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1119
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1120
|
+
responseObject: {},
|
|
1121
|
+
body: yield response.json(),
|
|
1122
|
+
bodyKey: "namedCredential",
|
|
1123
|
+
bodyModel: model.NamedCredential,
|
|
1124
|
+
type: "model.NamedCredential",
|
|
1125
|
+
responseHeaders: [
|
|
1126
|
+
{
|
|
1127
|
+
value: response.headers.get("opc-request-id"),
|
|
1128
|
+
key: "opcRequestId",
|
|
1129
|
+
dataType: "string"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
value: response.headers.get("etag"),
|
|
1133
|
+
key: "etag",
|
|
1134
|
+
dataType: "string"
|
|
1135
|
+
}
|
|
1136
|
+
]
|
|
1137
|
+
});
|
|
1138
|
+
return sdkResponse;
|
|
1139
|
+
}
|
|
1140
|
+
catch (err) {
|
|
1141
|
+
throw err;
|
|
1142
|
+
}
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* Return the Metadata definition for Named Credentials supported by Management Agent.
|
|
1147
|
+
*
|
|
1148
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1149
|
+
* @param GetNamedCredentialsMetadatumRequest
|
|
1150
|
+
* @return GetNamedCredentialsMetadatumResponse
|
|
1151
|
+
* @throws OciError when an error occurs
|
|
1152
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/GetNamedCredentialsMetadatum.ts.html |here} to see how to use GetNamedCredentialsMetadatum API.
|
|
1153
|
+
*/
|
|
1154
|
+
getNamedCredentialsMetadatum(getNamedCredentialsMetadatumRequest) {
|
|
1155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1156
|
+
if (this.logger)
|
|
1157
|
+
this.logger.debug("Calling operation ManagementAgentClient#getNamedCredentialsMetadatum.");
|
|
1158
|
+
const operationName = "getNamedCredentialsMetadatum";
|
|
1159
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/NamedCredential/GetNamedCredentialsMetadatum";
|
|
1160
|
+
const pathParams = {};
|
|
1161
|
+
const queryParams = {
|
|
1162
|
+
"compartmentId": getNamedCredentialsMetadatumRequest.compartmentId,
|
|
1163
|
+
"managementAgentId": getNamedCredentialsMetadatumRequest.managementAgentId
|
|
1164
|
+
};
|
|
1165
|
+
let headerParams = {
|
|
1166
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1167
|
+
"opc-request-id": getNamedCredentialsMetadatumRequest.opcRequestId
|
|
1168
|
+
};
|
|
1169
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1170
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNamedCredentialsMetadatumRequest.retryConfiguration, specRetryConfiguration);
|
|
1171
|
+
if (this.logger)
|
|
1172
|
+
retrier.logger = this.logger;
|
|
1173
|
+
const request = yield oci_common_2.composeRequest({
|
|
1174
|
+
baseEndpoint: this._endpoint,
|
|
1175
|
+
defaultHeaders: this._defaultHeaders,
|
|
1176
|
+
path: "/managementAgents/namedCredentialsMetadata",
|
|
1177
|
+
method: "GET",
|
|
1178
|
+
pathParams: pathParams,
|
|
1179
|
+
headerParams: headerParams,
|
|
1180
|
+
queryParams: queryParams
|
|
1181
|
+
});
|
|
1182
|
+
try {
|
|
1183
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1184
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1185
|
+
responseObject: {},
|
|
1186
|
+
body: yield response.json(),
|
|
1187
|
+
bodyKey: "namedCredentialsMetadatum",
|
|
1188
|
+
bodyModel: model.NamedCredentialsMetadatum,
|
|
1189
|
+
type: "model.NamedCredentialsMetadatum",
|
|
1190
|
+
responseHeaders: [
|
|
1191
|
+
{
|
|
1192
|
+
value: response.headers.get("opc-request-id"),
|
|
1193
|
+
key: "opcRequestId",
|
|
1194
|
+
dataType: "string"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
value: response.headers.get("etag"),
|
|
1198
|
+
key: "etag",
|
|
1199
|
+
dataType: "string"
|
|
1200
|
+
}
|
|
1201
|
+
]
|
|
1202
|
+
});
|
|
1203
|
+
return sdkResponse;
|
|
1204
|
+
}
|
|
1205
|
+
catch (err) {
|
|
1206
|
+
throw err;
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
949
1210
|
/**
|
|
950
1211
|
* Gets the status of the work request with the given ID.
|
|
951
1212
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
@@ -1693,6 +1954,78 @@ class ManagementAgentClient {
|
|
|
1693
1954
|
listManagementAgentsResponseIterator(request) {
|
|
1694
1955
|
return oci_common_1.paginateResponses(request, req => this.listManagementAgents(req));
|
|
1695
1956
|
}
|
|
1957
|
+
/**
|
|
1958
|
+
* A list of Management Agent Data Sources for the given Management Agent Id.
|
|
1959
|
+
*
|
|
1960
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1961
|
+
* @param ListNamedCredentialsRequest
|
|
1962
|
+
* @return ListNamedCredentialsResponse
|
|
1963
|
+
* @throws OciError when an error occurs
|
|
1964
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/ListNamedCredentials.ts.html |here} to see how to use ListNamedCredentials API.
|
|
1965
|
+
*/
|
|
1966
|
+
listNamedCredentials(listNamedCredentialsRequest) {
|
|
1967
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1968
|
+
if (this.logger)
|
|
1969
|
+
this.logger.debug("Calling operation ManagementAgentClient#listNamedCredentials.");
|
|
1970
|
+
const operationName = "listNamedCredentials";
|
|
1971
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/NamedCredential/ListNamedCredentials";
|
|
1972
|
+
const pathParams = {};
|
|
1973
|
+
const queryParams = {
|
|
1974
|
+
"page": listNamedCredentialsRequest.page,
|
|
1975
|
+
"limit": listNamedCredentialsRequest.limit,
|
|
1976
|
+
"sortOrder": listNamedCredentialsRequest.sortOrder,
|
|
1977
|
+
"sortBy": listNamedCredentialsRequest.sortBy,
|
|
1978
|
+
"lifecycleState": listNamedCredentialsRequest.lifecycleState,
|
|
1979
|
+
"name": listNamedCredentialsRequest.name,
|
|
1980
|
+
"type": listNamedCredentialsRequest.type,
|
|
1981
|
+
"managementAgentId": listNamedCredentialsRequest.managementAgentId,
|
|
1982
|
+
"id": listNamedCredentialsRequest.id
|
|
1983
|
+
};
|
|
1984
|
+
let headerParams = {
|
|
1985
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1986
|
+
"opc-request-id": listNamedCredentialsRequest.opcRequestId
|
|
1987
|
+
};
|
|
1988
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1989
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listNamedCredentialsRequest.retryConfiguration, specRetryConfiguration);
|
|
1990
|
+
if (this.logger)
|
|
1991
|
+
retrier.logger = this.logger;
|
|
1992
|
+
const request = yield oci_common_2.composeRequest({
|
|
1993
|
+
baseEndpoint: this._endpoint,
|
|
1994
|
+
defaultHeaders: this._defaultHeaders,
|
|
1995
|
+
path: "/namedCredentials",
|
|
1996
|
+
method: "GET",
|
|
1997
|
+
pathParams: pathParams,
|
|
1998
|
+
headerParams: headerParams,
|
|
1999
|
+
queryParams: queryParams
|
|
2000
|
+
});
|
|
2001
|
+
try {
|
|
2002
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2003
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2004
|
+
responseObject: {},
|
|
2005
|
+
body: yield response.json(),
|
|
2006
|
+
bodyKey: "namedCredentialCollection",
|
|
2007
|
+
bodyModel: model.NamedCredentialCollection,
|
|
2008
|
+
type: "model.NamedCredentialCollection",
|
|
2009
|
+
responseHeaders: [
|
|
2010
|
+
{
|
|
2011
|
+
value: response.headers.get("opc-next-page"),
|
|
2012
|
+
key: "opcNextPage",
|
|
2013
|
+
dataType: "string"
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
value: response.headers.get("opc-request-id"),
|
|
2017
|
+
key: "opcRequestId",
|
|
2018
|
+
dataType: "string"
|
|
2019
|
+
}
|
|
2020
|
+
]
|
|
2021
|
+
});
|
|
2022
|
+
return sdkResponse;
|
|
2023
|
+
}
|
|
2024
|
+
catch (err) {
|
|
2025
|
+
throw err;
|
|
2026
|
+
}
|
|
2027
|
+
});
|
|
2028
|
+
}
|
|
1696
2029
|
/**
|
|
1697
2030
|
* Return a (paginated) list of errors for a given work request.
|
|
1698
2031
|
*
|
|
@@ -2419,6 +2752,78 @@ class ManagementAgentClient {
|
|
|
2419
2752
|
}
|
|
2420
2753
|
});
|
|
2421
2754
|
}
|
|
2755
|
+
/**
|
|
2756
|
+
* Named credential update request to given Management Agent.
|
|
2757
|
+
*
|
|
2758
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2759
|
+
* @param UpdateNamedCredentialRequest
|
|
2760
|
+
* @return UpdateNamedCredentialResponse
|
|
2761
|
+
* @throws OciError when an error occurs
|
|
2762
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/managementagent/UpdateNamedCredential.ts.html |here} to see how to use UpdateNamedCredential API.
|
|
2763
|
+
*/
|
|
2764
|
+
updateNamedCredential(updateNamedCredentialRequest) {
|
|
2765
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2766
|
+
if (this.logger)
|
|
2767
|
+
this.logger.debug("Calling operation ManagementAgentClient#updateNamedCredential.");
|
|
2768
|
+
const operationName = "updateNamedCredential";
|
|
2769
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/management-agent/20200202/ManagementAgent/UpdateNamedCredential";
|
|
2770
|
+
const pathParams = {
|
|
2771
|
+
"{namedCredentialId}": updateNamedCredentialRequest.namedCredentialId
|
|
2772
|
+
};
|
|
2773
|
+
const queryParams = {};
|
|
2774
|
+
let headerParams = {
|
|
2775
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2776
|
+
"opc-retry-token": updateNamedCredentialRequest.opcRetryToken,
|
|
2777
|
+
"opc-request-id": updateNamedCredentialRequest.opcRequestId,
|
|
2778
|
+
"if-match": updateNamedCredentialRequest.ifMatch
|
|
2779
|
+
};
|
|
2780
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2781
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateNamedCredentialRequest.retryConfiguration, specRetryConfiguration);
|
|
2782
|
+
if (this.logger)
|
|
2783
|
+
retrier.logger = this.logger;
|
|
2784
|
+
const request = yield oci_common_2.composeRequest({
|
|
2785
|
+
baseEndpoint: this._endpoint,
|
|
2786
|
+
defaultHeaders: this._defaultHeaders,
|
|
2787
|
+
path: "/namedCredentials/{namedCredentialId}",
|
|
2788
|
+
method: "PUT",
|
|
2789
|
+
bodyContent: common.ObjectSerializer.serialize(updateNamedCredentialRequest.updateNamedCredentialDetails, "UpdateNamedCredentialDetails", model.UpdateNamedCredentialDetails.getJsonObj),
|
|
2790
|
+
pathParams: pathParams,
|
|
2791
|
+
headerParams: headerParams,
|
|
2792
|
+
queryParams: queryParams
|
|
2793
|
+
});
|
|
2794
|
+
try {
|
|
2795
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2796
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
2797
|
+
responseObject: {},
|
|
2798
|
+
body: yield response.json(),
|
|
2799
|
+
bodyKey: "namedCredential",
|
|
2800
|
+
bodyModel: model.NamedCredential,
|
|
2801
|
+
type: "model.NamedCredential",
|
|
2802
|
+
responseHeaders: [
|
|
2803
|
+
{
|
|
2804
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2805
|
+
key: "opcWorkRequestId",
|
|
2806
|
+
dataType: "string"
|
|
2807
|
+
},
|
|
2808
|
+
{
|
|
2809
|
+
value: response.headers.get("opc-request-id"),
|
|
2810
|
+
key: "opcRequestId",
|
|
2811
|
+
dataType: "string"
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
value: response.headers.get("etag"),
|
|
2815
|
+
key: "etag",
|
|
2816
|
+
dataType: "string"
|
|
2817
|
+
}
|
|
2818
|
+
]
|
|
2819
|
+
});
|
|
2820
|
+
return sdkResponse;
|
|
2821
|
+
}
|
|
2822
|
+
catch (err) {
|
|
2823
|
+
throw err;
|
|
2824
|
+
}
|
|
2825
|
+
});
|
|
2826
|
+
}
|
|
2422
2827
|
}
|
|
2423
2828
|
exports.ManagementAgentClient = ManagementAgentClient;
|
|
2424
2829
|
ManagementAgentClient.serviceEndpointTemplate = "https://management-agent.{region}.oci.{secondLevelDomain}";
|