diff --git a/CHANGELOG.md b/CHANGELOG.md index f749439f26..5f31b5b960 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 2.92.0 - 2024-08-20 +### Added +- Support for Fleet Application Management service +- Support for creating maintenance runs using autonomous database software images in the Database service +- Support for Object Storage buckets, Oracle databases, Oracle databases on exascale Infrastructure, autonomous container databases, and autonomous container databases on Cloud at Customer in the Disaster Recovery service +- Support for multiple sharing modes in the OCI Cache service +- Support for extended data retention periods for instances in the Integration Cloud service +- Support for SQL watch and lifecycle management in the Database management service +- Support for identity domains and feature sets in the Analytics Cloud service +- Support for automatically extending the storage space for MySQL DB systems in pre-defined increments in the MySQL Database service + +### Breaking Changes +- The field `drPlanExecutionType` has been removed from the model `ListDrPlanExecutionsRequest` in the Disaster Recovery service + ## 2.91.1 - 2024-08-12 ### Added - Support for calling Oracle Cloud Infrastructure services in the `me-abudhabi-4` region diff --git a/index.ts b/index.ts index 73386dd02e..2cc1507c0b 100755 --- a/index.ts +++ b/index.ts @@ -225,3 +225,4 @@ export import clusterplacementgroups = require("oci-clusterplacementgroups"); export import marketplaceprivateoffer = require("oci-marketplaceprivateoffer"); export import resourcescheduler = require("oci-resourcescheduler"); export import demandsignal = require("oci-demandsignal"); +export import fleetappsmanagement = require("oci-fleetappsmanagement"); diff --git a/lib/accessgovernancecp/package.json b/lib/accessgovernancecp/package.json index 72b223a450..5c64790bf3 100644 --- a/lib/accessgovernancecp/package.json +++ b/lib/accessgovernancecp/package.json @@ -1,6 +1,6 @@ { "name": "oci-accessgovernancecp", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Access Governance Cp Service", "repository": { "type": "git", diff --git a/lib/adm/package.json b/lib/adm/package.json index e2b9e6f2af..d9eeea019e 100644 --- a/lib/adm/package.json +++ b/lib/adm/package.json @@ -1,6 +1,6 @@ { "name": "oci-adm", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Adm Service", "repository": { "type": "git", diff --git a/lib/aianomalydetection/package.json b/lib/aianomalydetection/package.json index 888a2ea1b7..d43294384b 100644 --- a/lib/aianomalydetection/package.json +++ b/lib/aianomalydetection/package.json @@ -1,6 +1,6 @@ { "name": "oci-aianomalydetection", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Ai Anomaly Detection Service", "repository": { "type": "git", diff --git a/lib/aidocument/package.json b/lib/aidocument/package.json index 3fa493f91b..f9a9e704cb 100644 --- a/lib/aidocument/package.json +++ b/lib/aidocument/package.json @@ -1,6 +1,6 @@ { "name": "oci-aidocument", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Ai Document Service", "repository": { "type": "git", diff --git a/lib/ailanguage/package.json b/lib/ailanguage/package.json index b0060a23ff..aa9cacdbe0 100644 --- a/lib/ailanguage/package.json +++ b/lib/ailanguage/package.json @@ -1,6 +1,6 @@ { "name": "oci-ailanguage", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Ai Language Service", "repository": { "type": "git", diff --git a/lib/aispeech/package.json b/lib/aispeech/package.json index 0e9d3553dd..5b8e351af0 100644 --- a/lib/aispeech/package.json +++ b/lib/aispeech/package.json @@ -1,6 +1,6 @@ { "name": "oci-aispeech", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Ai Speech Service", "repository": { "type": "git", diff --git a/lib/aivision/package.json b/lib/aivision/package.json index d484ae7b11..79fd0cf3f9 100644 --- a/lib/aivision/package.json +++ b/lib/aivision/package.json @@ -1,6 +1,6 @@ { "name": "oci-aivision", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Ai Vision Service", "repository": { "type": "git", diff --git a/lib/analytics/lib/client.ts b/lib/analytics/lib/client.ts index 26248c63bd..1f68a1b992 100644 --- a/lib/analytics/lib/client.ts +++ b/lib/analytics/lib/client.ts @@ -1799,6 +1799,86 @@ export class AnalyticsClient { } } + /** + * Set the external service properties of an Analytics instance. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param SetFeatureBundleRequest + * @return SetFeatureBundleResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/analytics/SetFeatureBundle.ts.html |here} to see how to use SetFeatureBundle API. + */ + public async setFeatureBundle( + setFeatureBundleRequest: requests.SetFeatureBundleRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation AnalyticsClient#setFeatureBundle."); + const operationName = "setFeatureBundle"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/analytics/20190331/AnalyticsInstance/SetFeatureBundle"; + const pathParams = { + "{analyticsInstanceId}": setFeatureBundleRequest.analyticsInstanceId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": setFeatureBundleRequest.ifMatch, + "opc-request-id": setFeatureBundleRequest.opcRequestId, + "opc-retry-token": setFeatureBundleRequest.opcRetryToken + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + setFeatureBundleRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/analyticsInstances/{analyticsInstanceId}/actions/setFeatureBundle", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + setFeatureBundleRequest.setFeatureBundleDetails, + "SetFeatureBundleDetails", + model.SetFeatureBundleDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + /** * Encrypts the customer data of this Analytics instance using either a customer OCI Vault Key or Oracle managed default key. * diff --git a/lib/analytics/lib/model/analytics-instance-summary.ts b/lib/analytics/lib/model/analytics-instance-summary.ts index e2b60a9c84..0060f21bdc 100644 --- a/lib/analytics/lib/model/analytics-instance-summary.ts +++ b/lib/analytics/lib/model/analytics-instance-summary.ts @@ -67,6 +67,28 @@ export interface AnalyticsInstanceSummary { * */ "serviceUrl"?: string; + /** + * Defined tags for this resource. Each key is predefined and scoped to a +* namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: {@code {\"Operations\": {\"CostCenter\": \"42\"}}} +* + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no +* predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). +*

+Example: {@code {\"Department\": \"Finance\"}} +* + */ + "freeformTags"?: { [key: string]: string }; + /** + * System tags for this resource. These predefined keys are scoped to namespaces. + * Example: {@code {\"orcl-cloud\": {\"key\": \"value\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; /** * The date and time the instance was created, in the format defined by RFC3339. *

diff --git a/lib/analytics/lib/model/analytics-instance.ts b/lib/analytics/lib/model/analytics-instance.ts index 5b3ef6c296..6b4f282b7e 100644 --- a/lib/analytics/lib/model/analytics-instance.ts +++ b/lib/analytics/lib/model/analytics-instance.ts @@ -94,7 +94,13 @@ Example: {@code {\"Department\": \"Finance\"}} */ "freeformTags"?: { [key: string]: string }; /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. + * System tags for this resource. These predefined keys are scoped to namespaces. + * Example: {@code {\"orcl-cloud\": {\"key\": \"value\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; + /** + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. * */ "kmsKeyId"?: string; @@ -112,6 +118,16 @@ Example: {@code 2016-08-25T21:10:29.600Z} * */ "timeUpdated"?: Date; + /** + * The feature set of an Analytics instance. + * + */ + "featureBundle"?: model.FeatureBundle; + /** + * Identity domain OCID. + * + */ + "domainId"?: string; } export namespace AnalyticsInstance { diff --git a/lib/analytics/lib/model/capacity.ts b/lib/analytics/lib/model/capacity.ts index 521f13b624..11f277394e 100644 --- a/lib/analytics/lib/model/capacity.ts +++ b/lib/analytics/lib/model/capacity.ts @@ -22,12 +22,14 @@ import common = require("oci-common"); export interface Capacity { /** * The capacity model to use. + * Accepted values are: + * OLPU_COUNT, USER_COUNT * */ "capacityType": model.CapacityType; /** - * The capacity value selected (OLPU count, number of users, ...etc...). This parameter affects the - * number of CPUs, amount of memory or other resources allocated to the instance. + * The capacity value selected, either the number of OCPUs (OLPU_COUNT) or the number of users (USER_COUNT). + * This parameter affects the number of OCPUs, amount of memory, and other resources allocated to the instance. * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "capacityValue": number; diff --git a/lib/analytics/lib/model/create-analytics-instance-details.ts b/lib/analytics/lib/model/create-analytics-instance-details.ts index 8967158678..2c38ae9aaf 100644 --- a/lib/analytics/lib/model/create-analytics-instance-details.ts +++ b/lib/analytics/lib/model/create-analytics-instance-details.ts @@ -74,10 +74,25 @@ Example: {@code {\"Department\": \"Finance\"}} */ "freeformTags"?: { [key: string]: string }; /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. + * OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption. * */ "kmsKeyId"?: string; + /** + * domain id for which the user is authorized. + * + */ + "domainId"?: string; + /** + * user name of the authorized user. + * + */ + "adminUser"?: string; + /** + * The feature set of an Analytics instance. + * + */ + "featureBundle"?: model.FeatureBundle; } export namespace CreateAnalyticsInstanceDetails { diff --git a/lib/analytics/lib/model/feature-bundle.ts b/lib/analytics/lib/model/feature-bundle.ts new file mode 100644 index 0000000000..2855368423 --- /dev/null +++ b/lib/analytics/lib/model/feature-bundle.ts @@ -0,0 +1,42 @@ +/** + * Analytics API + * Analytics API. + + * OpenAPI spec version: 20190331 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Feature Bundle Enum. + * + **/ +export enum FeatureBundle { + FawPaid = "FAW_PAID", + FawFree = "FAW_FREE", + EeEmbedded = "EE_EMBEDDED", + SeEmbedded = "SE_EMBEDDED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace FeatureBundle { + export function getJsonObj(obj: FeatureBundle): FeatureBundle { + return obj; + } + export function getDeserializedJsonObj(obj: FeatureBundle): FeatureBundle { + return obj; + } +} diff --git a/lib/analytics/lib/model/index.ts b/lib/analytics/lib/model/index.ts index aa312769af..d28a369432 100644 --- a/lib/analytics/lib/model/index.ts +++ b/lib/analytics/lib/model/index.ts @@ -34,6 +34,8 @@ import * as CreatePrivateAccessChannelDetails from "./create-private-access-chan export import CreatePrivateAccessChannelDetails = CreatePrivateAccessChannelDetails.CreatePrivateAccessChannelDetails; import * as CreateVanityUrlDetails from "./create-vanity-url-details"; export import CreateVanityUrlDetails = CreateVanityUrlDetails.CreateVanityUrlDetails; +import * as FeatureBundle from "./feature-bundle"; +export import FeatureBundle = FeatureBundle.FeatureBundle; import * as FeatureSet from "./feature-set"; export import FeatureSet = FeatureSet.FeatureSet; import * as LicenseType from "./license-type"; @@ -50,6 +52,8 @@ import * as PrivateSourceScanHost from "./private-source-scan-host"; export import PrivateSourceScanHost = PrivateSourceScanHost.PrivateSourceScanHost; import * as ScaleAnalyticsInstanceDetails from "./scale-analytics-instance-details"; export import ScaleAnalyticsInstanceDetails = ScaleAnalyticsInstanceDetails.ScaleAnalyticsInstanceDetails; +import * as SetFeatureBundleDetails from "./set-feature-bundle-details"; +export import SetFeatureBundleDetails = SetFeatureBundleDetails.SetFeatureBundleDetails; import * as SetKmsKeyDetails from "./set-kms-key-details"; export import SetKmsKeyDetails = SetKmsKeyDetails.SetKmsKeyDetails; import * as SortBy from "./sort-by"; diff --git a/lib/analytics/lib/model/set-feature-bundle-details.ts b/lib/analytics/lib/model/set-feature-bundle-details.ts new file mode 100644 index 0000000000..29a8d85a94 --- /dev/null +++ b/lib/analytics/lib/model/set-feature-bundle-details.ts @@ -0,0 +1,41 @@ +/** + * Analytics API + * Analytics API. + + * OpenAPI spec version: 20190331 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Input payload for the feature set of an Analytics instance. + * + */ +export interface SetFeatureBundleDetails { + /** + * The feature set of an Analytics instance. + * + */ + "featureBundle"?: model.FeatureBundle; +} + +export namespace SetFeatureBundleDetails { + export function getJsonObj(obj: SetFeatureBundleDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SetFeatureBundleDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/analytics/lib/request/index.ts b/lib/analytics/lib/request/index.ts index 860f4fe451..7684d48822 100644 --- a/lib/analytics/lib/request/index.ts +++ b/lib/analytics/lib/request/index.ts @@ -46,6 +46,8 @@ import * as ListWorkRequestsRequest from "./list-work-requests-request"; export import ListWorkRequestsRequest = ListWorkRequestsRequest.ListWorkRequestsRequest; import * as ScaleAnalyticsInstanceRequest from "./scale-analytics-instance-request"; export import ScaleAnalyticsInstanceRequest = ScaleAnalyticsInstanceRequest.ScaleAnalyticsInstanceRequest; +import * as SetFeatureBundleRequest from "./set-feature-bundle-request"; +export import SetFeatureBundleRequest = SetFeatureBundleRequest.SetFeatureBundleRequest; import * as SetKmsKeyRequest from "./set-kms-key-request"; export import SetKmsKeyRequest = SetKmsKeyRequest.SetKmsKeyRequest; import * as StartAnalyticsInstanceRequest from "./start-analytics-instance-request"; diff --git a/lib/analytics/lib/request/set-feature-bundle-request.ts b/lib/analytics/lib/request/set-feature-bundle-request.ts new file mode 100644 index 0000000000..d24cb0b4f5 --- /dev/null +++ b/lib/analytics/lib/request/set-feature-bundle-request.ts @@ -0,0 +1,53 @@ +/** + * + * + * OpenAPI spec version: 20190331 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/analytics/SetFeatureBundle.ts.html |here} to see how to use SetFeatureBundleRequest. + */ +export interface SetFeatureBundleRequest extends common.BaseRequest { + /** + * The OCID of the AnalyticsInstance. + * + */ + "analyticsInstanceId": string; + /** + * Input payload for the feature set of an Analytics instance. + * + */ + "setFeatureBundleDetails": model.SetFeatureBundleDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * Unique identifier for the request. + * If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId"?: string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/analytics/lib/response/index.ts b/lib/analytics/lib/response/index.ts index 752a55c676..59f0917112 100644 --- a/lib/analytics/lib/response/index.ts +++ b/lib/analytics/lib/response/index.ts @@ -46,6 +46,8 @@ import * as ListWorkRequestsResponse from "./list-work-requests-response"; export import ListWorkRequestsResponse = ListWorkRequestsResponse.ListWorkRequestsResponse; import * as ScaleAnalyticsInstanceResponse from "./scale-analytics-instance-response"; export import ScaleAnalyticsInstanceResponse = ScaleAnalyticsInstanceResponse.ScaleAnalyticsInstanceResponse; +import * as SetFeatureBundleResponse from "./set-feature-bundle-response"; +export import SetFeatureBundleResponse = SetFeatureBundleResponse.SetFeatureBundleResponse; import * as SetKmsKeyResponse from "./set-kms-key-response"; export import SetKmsKeyResponse = SetKmsKeyResponse.SetKmsKeyResponse; import * as StartAnalyticsInstanceResponse from "./start-analytics-instance-response"; diff --git a/lib/analytics/lib/response/set-feature-bundle-response.ts b/lib/analytics/lib/response/set-feature-bundle-response.ts new file mode 100644 index 0000000000..eae852e202 --- /dev/null +++ b/lib/analytics/lib/response/set-feature-bundle-response.ts @@ -0,0 +1,30 @@ +/** + * + * + * OpenAPI spec version: 20190331 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface SetFeatureBundleResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this ID to track the status + * of the request. + * + */ + "opcWorkRequestId": string; +} diff --git a/lib/analytics/package.json b/lib/analytics/package.json index 983bec64ec..898da46799 100644 --- a/lib/analytics/package.json +++ b/lib/analytics/package.json @@ -1,6 +1,6 @@ { "name": "oci-analytics", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Analytics Service", "repository": { "type": "git", diff --git a/lib/announcementsservice/package.json b/lib/announcementsservice/package.json index 7051585a03..c9802fbbb5 100644 --- a/lib/announcementsservice/package.json +++ b/lib/announcementsservice/package.json @@ -1,6 +1,6 @@ { "name": "oci-announcementsservice", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Announcement Service", "repository": { "type": "git", diff --git a/lib/apigateway/package.json b/lib/apigateway/package.json index 76a40238bd..91eb2b5ca2 100644 --- a/lib/apigateway/package.json +++ b/lib/apigateway/package.json @@ -1,6 +1,6 @@ { "name": "oci-apigateway", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for API gateway service", "repository": { "type": "git", diff --git a/lib/apmconfig/package.json b/lib/apmconfig/package.json index efe078623c..5a4ccb6518 100644 --- a/lib/apmconfig/package.json +++ b/lib/apmconfig/package.json @@ -1,6 +1,6 @@ { "name": "oci-apmconfig", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Apm Config Service", "repository": { "type": "git", diff --git a/lib/apmcontrolplane/package.json b/lib/apmcontrolplane/package.json index cf14029e8f..f81cf29086 100644 --- a/lib/apmcontrolplane/package.json +++ b/lib/apmcontrolplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-apmcontrolplane", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Apm Control Plane Service", "repository": { "type": "git", diff --git a/lib/apmsynthetics/package.json b/lib/apmsynthetics/package.json index a3273a60bd..e393b56ef6 100644 --- a/lib/apmsynthetics/package.json +++ b/lib/apmsynthetics/package.json @@ -1,6 +1,6 @@ { "name": "oci-apmsynthetics", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Apm Synthetics Service", "repository": { "type": "git", diff --git a/lib/apmtraces/package.json b/lib/apmtraces/package.json index 7fdbb07de9..b040f5b8b5 100644 --- a/lib/apmtraces/package.json +++ b/lib/apmtraces/package.json @@ -1,6 +1,6 @@ { "name": "oci-apmtraces", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Apm Traces Service", "repository": { "type": "git", diff --git a/lib/appmgmtcontrol/package.json b/lib/appmgmtcontrol/package.json index ca6e2a0a7c..87a44d428c 100644 --- a/lib/appmgmtcontrol/package.json +++ b/lib/appmgmtcontrol/package.json @@ -1,6 +1,6 @@ { "name": "oci-appmgmtcontrol", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Appmgmt Control Service", "repository": { "type": "git", diff --git a/lib/artifacts/package.json b/lib/artifacts/package.json index d5847e1b57..45ed2c0962 100644 --- a/lib/artifacts/package.json +++ b/lib/artifacts/package.json @@ -1,6 +1,6 @@ { "name": "oci-artifacts", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Artifacts Service", "repository": { "type": "git", diff --git a/lib/audit/package.json b/lib/audit/package.json index e7423c591c..4d6109a5eb 100644 --- a/lib/audit/package.json +++ b/lib/audit/package.json @@ -1,6 +1,6 @@ { "name": "oci-audit", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Audit Service", "repository": { "type": "git", diff --git a/lib/autoscaling/package.json b/lib/autoscaling/package.json index 5d53da4c43..02607ea549 100644 --- a/lib/autoscaling/package.json +++ b/lib/autoscaling/package.json @@ -1,6 +1,6 @@ { "name": "oci-autoscaling", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Autoscaling Service", "repository": { "type": "git", diff --git a/lib/bastion/package.json b/lib/bastion/package.json index 6696d0e2a3..115473ff17 100644 --- a/lib/bastion/package.json +++ b/lib/bastion/package.json @@ -1,6 +1,6 @@ { "name": "oci-bastion", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Bastion Service", "repository": { "type": "git", diff --git a/lib/bds/package.json b/lib/bds/package.json index 0a6ffe5289..e16333862c 100644 --- a/lib/bds/package.json +++ b/lib/bds/package.json @@ -1,6 +1,6 @@ { "name": "oci-bds", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for BDS Service", "repository": { "type": "git", diff --git a/lib/blockchain/package.json b/lib/blockchain/package.json index 1aecb3cee4..29d1d44e57 100644 --- a/lib/blockchain/package.json +++ b/lib/blockchain/package.json @@ -1,6 +1,6 @@ { "name": "oci-blockchain", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Blockchain Service", "repository": { "type": "git", diff --git a/lib/budget/package.json b/lib/budget/package.json index 7a0c68b816..d91ba8bed4 100644 --- a/lib/budget/package.json +++ b/lib/budget/package.json @@ -1,6 +1,6 @@ { "name": "oci-budget", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Budget Service", "repository": { "type": "git", diff --git a/lib/capacitymanagement/package.json b/lib/capacitymanagement/package.json index 1267d625e5..e3b63629f1 100644 --- a/lib/capacitymanagement/package.json +++ b/lib/capacitymanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-capacitymanagement", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Capacity Management Service", "repository": { "type": "git", diff --git a/lib/certificates/package.json b/lib/certificates/package.json index d054131898..2e74064f09 100644 --- a/lib/certificates/package.json +++ b/lib/certificates/package.json @@ -1,6 +1,6 @@ { "name": "oci-certificates", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Certificates Service", "repository": { "type": "git", diff --git a/lib/certificatesmanagement/package.json b/lib/certificatesmanagement/package.json index 7e38be36f5..55a958f62d 100644 --- a/lib/certificatesmanagement/package.json +++ b/lib/certificatesmanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-certificatesmanagement", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Certificates Management Service", "repository": { "type": "git", diff --git a/lib/cims/package.json b/lib/cims/package.json index 9096cccd88..05e3ad50bd 100644 --- a/lib/cims/package.json +++ b/lib/cims/package.json @@ -1,6 +1,6 @@ { "name": "oci-cims", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Cims ", "repository": { "type": "git", diff --git a/lib/cloudbridge/package.json b/lib/cloudbridge/package.json index cbd0cc7bf3..3c2479c873 100644 --- a/lib/cloudbridge/package.json +++ b/lib/cloudbridge/package.json @@ -1,6 +1,6 @@ { "name": "oci-cloudbridge", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Cloud Bridge Service", "repository": { "type": "git", diff --git a/lib/cloudguard/package.json b/lib/cloudguard/package.json index 72bd569ae1..99942fa9cc 100644 --- a/lib/cloudguard/package.json +++ b/lib/cloudguard/package.json @@ -1,6 +1,6 @@ { "name": "oci-cloudguard", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Cloud Guard Service", "repository": { "type": "git", diff --git a/lib/cloudmigrations/package.json b/lib/cloudmigrations/package.json index ef4e0872b5..3a6c61a6f4 100644 --- a/lib/cloudmigrations/package.json +++ b/lib/cloudmigrations/package.json @@ -1,6 +1,6 @@ { "name": "oci-cloudmigrations", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Cloud Migrations Service", "repository": { "type": "git", diff --git a/lib/clusterplacementgroups/package.json b/lib/clusterplacementgroups/package.json index 7298df13bd..21376ef41f 100644 --- a/lib/clusterplacementgroups/package.json +++ b/lib/clusterplacementgroups/package.json @@ -1,6 +1,6 @@ { "name": "oci-clusterplacementgroups", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Cluster Placement Groups Service", "repository": { "type": "git", diff --git a/lib/common/package.json b/lib/common/package.json index 968a54fc77..d369c6b061 100644 --- a/lib/common/package.json +++ b/lib/common/package.json @@ -1,6 +1,6 @@ { "name": "oci-common", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI Common module for NodeJS", "repository": { "type": "git", diff --git a/lib/computecloudatcustomer/package.json b/lib/computecloudatcustomer/package.json index 95cd74be14..c078ded002 100644 --- a/lib/computecloudatcustomer/package.json +++ b/lib/computecloudatcustomer/package.json @@ -1,6 +1,6 @@ { "name": "oci-computecloudatcustomer", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Compute Cloud At Customer Service", "repository": { "type": "git", diff --git a/lib/computeinstanceagent/package.json b/lib/computeinstanceagent/package.json index 070fdb4b94..13cf86a8f3 100644 --- a/lib/computeinstanceagent/package.json +++ b/lib/computeinstanceagent/package.json @@ -1,6 +1,6 @@ { "name": "oci-computeinstanceagent", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Compute Instance Agent Service", "repository": { "type": "git", diff --git a/lib/containerengine/package.json b/lib/containerengine/package.json index 3852d0668c..49bc87bb13 100644 --- a/lib/containerengine/package.json +++ b/lib/containerengine/package.json @@ -1,6 +1,6 @@ { "name": "oci-containerengine", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Container Engine", "repository": { "type": "git", diff --git a/lib/containerinstances/package.json b/lib/containerinstances/package.json index 49ae59b4a8..0985de7a0a 100644 --- a/lib/containerinstances/package.json +++ b/lib/containerinstances/package.json @@ -1,6 +1,6 @@ { "name": "oci-containerinstances", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Container Instances Service", "repository": { "type": "git", diff --git a/lib/core/package.json b/lib/core/package.json index 9a2055275b..629962043a 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -1,6 +1,6 @@ { "name": "oci-core", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Core", "repository": { "type": "git", diff --git a/lib/dashboardservice/package.json b/lib/dashboardservice/package.json index 932cd2773e..d0f46be9ee 100644 --- a/lib/dashboardservice/package.json +++ b/lib/dashboardservice/package.json @@ -1,6 +1,6 @@ { "name": "oci-dashboardservice", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Dashboard Service Service", "repository": { "type": "git", diff --git a/lib/database/lib/model/autonomous-database-software-image-summary.ts b/lib/database/lib/model/autonomous-database-software-image-summary.ts index 8e8a1bd13a..6a94e2ccec 100644 --- a/lib/database/lib/model/autonomous-database-software-image-summary.ts +++ b/lib/database/lib/model/autonomous-database-software-image-summary.ts @@ -74,6 +74,10 @@ Example: {@code {\"Department\": \"Finance\"}} * To what shape the image is meant for. */ "imageShapeFamily": string; + /** + * DST Time-Zone File version of the Autonomous Container Database. + */ + "dstFileVersion"?: string; } export namespace AutonomousDatabaseSoftwareImageSummary { diff --git a/lib/database/lib/model/autonomous-database-software-image.ts b/lib/database/lib/model/autonomous-database-software-image.ts index 8af5753ff8..4a2126122d 100644 --- a/lib/database/lib/model/autonomous-database-software-image.ts +++ b/lib/database/lib/model/autonomous-database-software-image.ts @@ -74,6 +74,10 @@ Example: {@code {\"Department\": \"Finance\"}} * To what shape the image is meant for. */ "imageShapeFamily": AutonomousDatabaseSoftwareImage.ImageShapeFamily; + /** + * DST Time-Zone File version of the Autonomous Container Database. + */ + "dstFileVersion"?: string; } export namespace AutonomousDatabaseSoftwareImage { diff --git a/lib/database/lib/model/create-maintenance-run-details.ts b/lib/database/lib/model/create-maintenance-run-details.ts index 9253437093..b93a19c714 100644 --- a/lib/database/lib/model/create-maintenance-run-details.ts +++ b/lib/database/lib/model/create-maintenance-run-details.ts @@ -40,7 +40,7 @@ export interface CreateMaintenanceRunDetails { */ "patchingMode"?: CreateMaintenanceRunDetails.PatchingMode; /** - * Patch type, either \"QUARTERLY\" or \"TIMEZONE\". + * Patch type, either \"QUARTERLY\", \"TIMEZONE\" or \"CUSTOM_DATABASE_SOFTWARE_IMAGE\". * */ "patchType": CreateMaintenanceRunDetails.PatchType; @@ -48,6 +48,10 @@ export interface CreateMaintenanceRunDetails { * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the Maintenance Run. */ "compartmentId"?: string; + /** + * The Autonomous Database Software Image [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + */ + "databaseSoftwareImageId"?: string; } export namespace CreateMaintenanceRunDetails { @@ -58,7 +62,8 @@ export namespace CreateMaintenanceRunDetails { export enum PatchType { Quarterly = "QUARTERLY", - Timezone = "TIMEZONE" + Timezone = "TIMEZONE", + CustomDatabaseSoftwareImage = "CUSTOM_DATABASE_SOFTWARE_IMAGE" } export function getJsonObj(obj: CreateMaintenanceRunDetails): object { diff --git a/lib/database/lib/model/maintenance-run-summary.ts b/lib/database/lib/model/maintenance-run-summary.ts index 5fd95b1d6a..6b3fe0a4d3 100644 --- a/lib/database/lib/model/maintenance-run-summary.ts +++ b/lib/database/lib/model/maintenance-run-summary.ts @@ -139,6 +139,10 @@ export interface MaintenanceRunSummary { * The estimated start time of the next infrastruture component patching operation. */ "estimatedComponentPatchingStartTime"?: Date; + /** + * The Autonomous Database Software Image [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + */ + "databaseSoftwareImageId"?: string; } export namespace MaintenanceRunSummary { @@ -194,6 +198,7 @@ export namespace MaintenanceRunSummary { Oneoff = "ONEOFF", SecurityMonthly = "SECURITY_MONTHLY", Timezone = "TIMEZONE", + CustomDatabaseSoftwareImage = "CUSTOM_DATABASE_SOFTWARE_IMAGE", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/database/lib/model/maintenance-run.ts b/lib/database/lib/model/maintenance-run.ts index e179053313..9e8d18fd28 100644 --- a/lib/database/lib/model/maintenance-run.ts +++ b/lib/database/lib/model/maintenance-run.ts @@ -139,6 +139,10 @@ export interface MaintenanceRun { * The estimated start time of the next infrastruture component patching operation. */ "estimatedComponentPatchingStartTime"?: Date; + /** + * The Autonomous Database Software Image [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + */ + "databaseSoftwareImageId"?: string; } export namespace MaintenanceRun { @@ -194,6 +198,7 @@ export namespace MaintenanceRun { Oneoff = "ONEOFF", SecurityMonthly = "SECURITY_MONTHLY", Timezone = "TIMEZONE", + CustomDatabaseSoftwareImage = "CUSTOM_DATABASE_SOFTWARE_IMAGE", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/database/package.json b/lib/database/package.json index b4e84a948a..8551401b7c 100644 --- a/lib/database/package.json +++ b/lib/database/package.json @@ -1,6 +1,6 @@ { "name": "oci-database", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Database", "repository": { "type": "git", diff --git a/lib/databasemanagement/lib/model/basic-database-connection-string-details.ts b/lib/databasemanagement/lib/model/basic-database-connection-string-details.ts index ab56e9a881..6932e9e1c0 100644 --- a/lib/databasemanagement/lib/model/basic-database-connection-string-details.ts +++ b/lib/databasemanagement/lib/model/basic-database-connection-string-details.ts @@ -41,7 +41,12 @@ export interface BasicDatabaseConnectionStringDetails export namespace BasicDatabaseConnectionStringDetails { export enum Protocol { Tcp = "TCP", - Tcps = "TCPS" + Tcps = "TCPS", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" } export function getJsonObj( diff --git a/lib/databasemanagement/lib/model/database-connection-credentials.ts b/lib/databasemanagement/lib/model/database-connection-credentials.ts index 340bb26e71..f8a87eb21d 100644 --- a/lib/databasemanagement/lib/model/database-connection-credentials.ts +++ b/lib/databasemanagement/lib/model/database-connection-credentials.ts @@ -32,6 +32,11 @@ export namespace DatabaseConnectionCredentials { if (obj && "credentialType" in obj && obj.credentialType) { switch (obj.credentialType) { + case "NAMED_CREDENTIAL": + return model.DatabaseNamedCredentialConnectionDetails.getJsonObj( + (jsonObj), + true + ); case "NAME_REFERENCE": return model.DatabaseConnectionCredentailsByName.getJsonObj( (jsonObj), @@ -58,6 +63,11 @@ export namespace DatabaseConnectionCredentials { if (obj && "credentialType" in obj && obj.credentialType) { switch (obj.credentialType) { + case "NAMED_CREDENTIAL": + return model.DatabaseNamedCredentialConnectionDetails.getDeserializedJsonObj( + (jsonObj), + true + ); case "NAME_REFERENCE": return model.DatabaseConnectionCredentailsByName.getDeserializedJsonObj( (jsonObj), diff --git a/lib/databasemanagement/lib/model/database-connection-details.ts b/lib/databasemanagement/lib/model/database-connection-details.ts index 976ef74af1..936995df85 100644 --- a/lib/databasemanagement/lib/model/database-connection-details.ts +++ b/lib/databasemanagement/lib/model/database-connection-details.ts @@ -23,6 +23,7 @@ import common = require("oci-common"); export interface DatabaseConnectionDetails { "connectionString": model.BasicDatabaseConnectionStringDetails; "connectionCredentials": + | model.DatabaseNamedCredentialConnectionDetails | model.DatabaseConnectionCredentailsByName | model.DatabaseSslConnectionCredentials | model.DatabaseConnectionCredentialsByDetails; diff --git a/lib/databasemanagement/lib/model/database-diagnostics-and-management-feature-configuration.ts b/lib/databasemanagement/lib/model/database-diagnostics-and-management-feature-configuration.ts index ab50e2315a..5f24d51e1b 100644 --- a/lib/databasemanagement/lib/model/database-diagnostics-and-management-feature-configuration.ts +++ b/lib/databasemanagement/lib/model/database-diagnostics-and-management-feature-configuration.ts @@ -34,7 +34,12 @@ export interface DatabaseDiagnosticsAndManagementFeatureConfiguration export namespace DatabaseDiagnosticsAndManagementFeatureConfiguration { export enum LicenseModel { LicenseIncluded = "LICENSE_INCLUDED", - BringYourOwnLicense = "BRING_YOUR_OWN_LICENSE" + BringYourOwnLicense = "BRING_YOUR_OWN_LICENSE", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" } export function getJsonObj( diff --git a/lib/databasemanagement/lib/model/database-feature-configuration.ts b/lib/databasemanagement/lib/model/database-feature-configuration.ts index f7cc2f05fe..cbf4b21477 100644 --- a/lib/databasemanagement/lib/model/database-feature-configuration.ts +++ b/lib/databasemanagement/lib/model/database-feature-configuration.ts @@ -46,7 +46,12 @@ export namespace DatabaseFeatureConfiguration { EnabledWithWarnings = "ENABLED_WITH_WARNINGS", PendingDisable = "PENDING_DISABLE", Enabling = "ENABLING", - Disabling = "DISABLING" + Disabling = "DISABLING", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" } export function getJsonObj(obj: DatabaseFeatureConfiguration): object { @@ -69,6 +74,16 @@ export namespace DatabaseFeatureConfiguration { (jsonObj), true ); + case "DB_LIFECYCLE_MANAGEMENT": + return model.DatabaseLifecycleFeatureConfiguration.getJsonObj( + (jsonObj), + true + ); + case "SQLWATCH": + return model.DatabaseSqlWatchFeatureConfiguration.getJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.feature}`); } @@ -95,6 +110,16 @@ export namespace DatabaseFeatureConfiguration { (jsonObj), true ); + case "DB_LIFECYCLE_MANAGEMENT": + return model.DatabaseLifecycleFeatureConfiguration.getDeserializedJsonObj( + (jsonObj), + true + ); + case "SQLWATCH": + return model.DatabaseSqlWatchFeatureConfiguration.getDeserializedJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.feature}`); } diff --git a/lib/databasemanagement/lib/model/database-feature-details.ts b/lib/databasemanagement/lib/model/database-feature-details.ts index 294296f675..74fabb476b 100644 --- a/lib/databasemanagement/lib/model/database-feature-details.ts +++ b/lib/databasemanagement/lib/model/database-feature-details.ts @@ -51,6 +51,16 @@ export namespace DatabaseFeatureDetails { (jsonObj), true ); + case "DB_LIFECYCLE_MANAGEMENT": + return model.DatabaseLifecycleManagementFeatureDetails.getJsonObj( + (jsonObj), + true + ); + case "SQLWATCH": + return model.DatabaseSqlWatchFeatureDetails.getJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.feature}`); } @@ -77,6 +87,16 @@ export namespace DatabaseFeatureDetails { (jsonObj), true ); + case "DB_LIFECYCLE_MANAGEMENT": + return model.DatabaseLifecycleManagementFeatureDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "SQLWATCH": + return model.DatabaseSqlWatchFeatureDetails.getDeserializedJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.feature}`); } diff --git a/lib/databasemanagement/lib/model/database-lifecycle-feature-configuration.ts b/lib/databasemanagement/lib/model/database-lifecycle-feature-configuration.ts new file mode 100644 index 0000000000..76d1d8c76c --- /dev/null +++ b/lib/databasemanagement/lib/model/database-lifecycle-feature-configuration.ts @@ -0,0 +1,75 @@ +/** + * Database Management API + * Use the Database Management API to monitor and manage resources such as +Oracle Databases, MySQL Databases, and External Database Systems. +For more information, see [Database Management](/iaas/database-management/home.htm). + + * OpenAPI spec version: 20201101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details required to enable the Database Lifecycle Management feature. + */ +export interface DatabaseLifecycleFeatureConfiguration extends model.DatabaseFeatureConfiguration { + /** + * The Oracle license model that applies to the external database. + * + */ + "licenseModel"?: DatabaseLifecycleFeatureConfiguration.LicenseModel; + + "feature": string; +} + +export namespace DatabaseLifecycleFeatureConfiguration { + export enum LicenseModel { + LicenseIncluded = "LICENSE_INCLUDED", + BringYourOwnLicense = "BRING_YOUR_OWN_LICENSE", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj( + obj: DatabaseLifecycleFeatureConfiguration, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DatabaseFeatureConfiguration.getJsonObj( + obj + ) as DatabaseLifecycleFeatureConfiguration)), + ...{} + }; + + return jsonObj; + } + export const feature = "DB_LIFECYCLE_MANAGEMENT"; + export function getDeserializedJsonObj( + obj: DatabaseLifecycleFeatureConfiguration, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DatabaseFeatureConfiguration.getDeserializedJsonObj( + obj + ) as DatabaseLifecycleFeatureConfiguration)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/databasemanagement/lib/model/database-lifecycle-management-feature-details.ts b/lib/databasemanagement/lib/model/database-lifecycle-management-feature-details.ts new file mode 100644 index 0000000000..96dd736d71 --- /dev/null +++ b/lib/databasemanagement/lib/model/database-lifecycle-management-feature-details.ts @@ -0,0 +1,59 @@ +/** + * Database Management API + * Use the Database Management API to monitor and manage resources such as +Oracle Databases, MySQL Databases, and External Database Systems. +For more information, see [Database Management](/iaas/database-management/home.htm). + + * OpenAPI spec version: 20201101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details required to enable the Database Lifecycle Management feature. + */ +export interface DatabaseLifecycleManagementFeatureDetails extends model.DatabaseFeatureDetails { + "feature": string; +} + +export namespace DatabaseLifecycleManagementFeatureDetails { + export function getJsonObj( + obj: DatabaseLifecycleManagementFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DatabaseFeatureDetails.getJsonObj( + obj + ) as DatabaseLifecycleManagementFeatureDetails)), + ...{} + }; + + return jsonObj; + } + export const feature = "DB_LIFECYCLE_MANAGEMENT"; + export function getDeserializedJsonObj( + obj: DatabaseLifecycleManagementFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DatabaseFeatureDetails.getDeserializedJsonObj( + obj + ) as DatabaseLifecycleManagementFeatureDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/databasemanagement/lib/model/database-named-credential-connection-details.ts b/lib/databasemanagement/lib/model/database-named-credential-connection-details.ts new file mode 100644 index 0000000000..da092000aa --- /dev/null +++ b/lib/databasemanagement/lib/model/database-named-credential-connection-details.ts @@ -0,0 +1,68 @@ +/** + * Database Management API + * Use the Database Management API to monitor and manage resources such as +Oracle Databases, MySQL Databases, and External Database Systems. +For more information, see [Database Management](/iaas/database-management/home.htm). + + * OpenAPI spec version: 20201101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * User provides a named credential OCID, which will be used to retrieve the password to connect to the database. + * + */ +export interface DatabaseNamedCredentialConnectionDetails + extends model.DatabaseConnectionCredentials { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Named Credential + * where the database password metadata is stored. + * + */ + "namedCredentialId": string; + + "credentialType": string; +} + +export namespace DatabaseNamedCredentialConnectionDetails { + export function getJsonObj( + obj: DatabaseNamedCredentialConnectionDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DatabaseConnectionCredentials.getJsonObj( + obj + ) as DatabaseNamedCredentialConnectionDetails)), + ...{} + }; + + return jsonObj; + } + export const credentialType = "NAMED_CREDENTIAL"; + export function getDeserializedJsonObj( + obj: DatabaseNamedCredentialConnectionDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DatabaseConnectionCredentials.getDeserializedJsonObj( + obj + ) as DatabaseNamedCredentialConnectionDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/databasemanagement/lib/model/database-sql-watch-feature-configuration.ts b/lib/databasemanagement/lib/model/database-sql-watch-feature-configuration.ts new file mode 100644 index 0000000000..3495f04bd6 --- /dev/null +++ b/lib/databasemanagement/lib/model/database-sql-watch-feature-configuration.ts @@ -0,0 +1,59 @@ +/** + * Database Management API + * Use the Database Management API to monitor and manage resources such as +Oracle Databases, MySQL Databases, and External Database Systems. +For more information, see [Database Management](/iaas/database-management/home.htm). + + * OpenAPI spec version: 20201101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details required to enable the SQL Watch feature. + */ +export interface DatabaseSqlWatchFeatureConfiguration extends model.DatabaseFeatureConfiguration { + "feature": string; +} + +export namespace DatabaseSqlWatchFeatureConfiguration { + export function getJsonObj( + obj: DatabaseSqlWatchFeatureConfiguration, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DatabaseFeatureConfiguration.getJsonObj( + obj + ) as DatabaseSqlWatchFeatureConfiguration)), + ...{} + }; + + return jsonObj; + } + export const feature = "SQLWATCH"; + export function getDeserializedJsonObj( + obj: DatabaseSqlWatchFeatureConfiguration, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DatabaseFeatureConfiguration.getDeserializedJsonObj( + obj + ) as DatabaseSqlWatchFeatureConfiguration)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/databasemanagement/lib/model/database-sql-watch-feature-details.ts b/lib/databasemanagement/lib/model/database-sql-watch-feature-details.ts new file mode 100644 index 0000000000..5e9c0fdb0e --- /dev/null +++ b/lib/databasemanagement/lib/model/database-sql-watch-feature-details.ts @@ -0,0 +1,57 @@ +/** + * Database Management API + * Use the Database Management API to monitor and manage resources such as +Oracle Databases, MySQL Databases, and External Database Systems. +For more information, see [Database Management](/iaas/database-management/home.htm). + + * OpenAPI spec version: 20201101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details required to enable the SQL Watch feature. + */ +export interface DatabaseSqlWatchFeatureDetails extends model.DatabaseFeatureDetails { + "feature": string; +} + +export namespace DatabaseSqlWatchFeatureDetails { + export function getJsonObj( + obj: DatabaseSqlWatchFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DatabaseFeatureDetails.getJsonObj(obj) as DatabaseSqlWatchFeatureDetails)), + ...{} + }; + + return jsonObj; + } + export const feature = "SQLWATCH"; + export function getDeserializedJsonObj( + obj: DatabaseSqlWatchFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DatabaseFeatureDetails.getDeserializedJsonObj( + obj + ) as DatabaseSqlWatchFeatureDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/databasemanagement/lib/model/db-management-feature.ts b/lib/databasemanagement/lib/model/db-management-feature.ts index 4e5c01c7bb..3ca9e225fe 100644 --- a/lib/databasemanagement/lib/model/db-management-feature.ts +++ b/lib/databasemanagement/lib/model/db-management-feature.ts @@ -25,7 +25,15 @@ import common = require("oci-common"); * **/ export enum DbManagementFeature { - DiagnosticsAndManagement = "DIAGNOSTICS_AND_MANAGEMENT" + DiagnosticsAndManagement = "DIAGNOSTICS_AND_MANAGEMENT", + DbLifecycleManagement = "DB_LIFECYCLE_MANAGEMENT", + Sqlwatch = "SQLWATCH", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" } export namespace DbManagementFeature { diff --git a/lib/databasemanagement/lib/model/enable-database-management-feature-details.ts b/lib/databasemanagement/lib/model/enable-database-management-feature-details.ts index 24d9a4d3b3..c9ca2ddbaa 100644 --- a/lib/databasemanagement/lib/model/enable-database-management-feature-details.ts +++ b/lib/databasemanagement/lib/model/enable-database-management-feature-details.ts @@ -21,7 +21,10 @@ import common = require("oci-common"); * The details required to enable Database Management features for an Oracle cloud database. */ export interface EnableDatabaseManagementFeatureDetails { - "featureDetails": model.DatabaseDiagnosticsAndManagementFeatureDetails; + "featureDetails": + | model.DatabaseDiagnosticsAndManagementFeatureDetails + | model.DatabaseLifecycleManagementFeatureDetails + | model.DatabaseSqlWatchFeatureDetails; } export namespace EnableDatabaseManagementFeatureDetails { diff --git a/lib/databasemanagement/lib/model/enable-external-container-database-management-feature-details.ts b/lib/databasemanagement/lib/model/enable-external-container-database-management-feature-details.ts index 5fe9b24cda..b95e1cccf2 100644 --- a/lib/databasemanagement/lib/model/enable-external-container-database-management-feature-details.ts +++ b/lib/databasemanagement/lib/model/enable-external-container-database-management-feature-details.ts @@ -21,7 +21,10 @@ import common = require("oci-common"); * The details required to enable a Database Management feature for an external container database. */ export interface EnableExternalContainerDatabaseManagementFeatureDetails { - "featureDetails": model.ExternalDatabaseDiagnosticsAndManagementFeatureDetails; + "featureDetails": + | model.ExternalDatabaseLifecycleManagementFeatureDetails + | model.ExternalDatabaseSqlWatchFeatureDetails + | model.ExternalDatabaseDiagnosticsAndManagementFeatureDetails; } export namespace EnableExternalContainerDatabaseManagementFeatureDetails { diff --git a/lib/databasemanagement/lib/model/enable-external-non-container-database-management-feature-details.ts b/lib/databasemanagement/lib/model/enable-external-non-container-database-management-feature-details.ts index 1a098e85cc..7c2aef6eda 100644 --- a/lib/databasemanagement/lib/model/enable-external-non-container-database-management-feature-details.ts +++ b/lib/databasemanagement/lib/model/enable-external-non-container-database-management-feature-details.ts @@ -21,7 +21,10 @@ import common = require("oci-common"); * The details required to enable a Database Management feature for an external non-container database. */ export interface EnableExternalNonContainerDatabaseManagementFeatureDetails { - "featureDetails": model.ExternalDatabaseDiagnosticsAndManagementFeatureDetails; + "featureDetails": + | model.ExternalDatabaseLifecycleManagementFeatureDetails + | model.ExternalDatabaseSqlWatchFeatureDetails + | model.ExternalDatabaseDiagnosticsAndManagementFeatureDetails; } export namespace EnableExternalNonContainerDatabaseManagementFeatureDetails { diff --git a/lib/databasemanagement/lib/model/enable-external-pluggable-database-management-feature-details.ts b/lib/databasemanagement/lib/model/enable-external-pluggable-database-management-feature-details.ts index b7aa8cece0..b066e4369a 100644 --- a/lib/databasemanagement/lib/model/enable-external-pluggable-database-management-feature-details.ts +++ b/lib/databasemanagement/lib/model/enable-external-pluggable-database-management-feature-details.ts @@ -21,7 +21,10 @@ import common = require("oci-common"); * The details required to enable a Database Management feature for an external pluggable database. */ export interface EnableExternalPluggableDatabaseManagementFeatureDetails { - "featureDetails": model.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails; + "featureDetails": + | model.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails + | model.ExternalPluggableDatabaseLifecycleManagementFeatureDetails + | model.ExternalPluggableDatabaseSqlWatchFeatureDetails; } export namespace EnableExternalPluggableDatabaseManagementFeatureDetails { diff --git a/lib/databasemanagement/lib/model/enable-pluggable-database-management-feature-details.ts b/lib/databasemanagement/lib/model/enable-pluggable-database-management-feature-details.ts index 013fc76158..c87791d3d3 100644 --- a/lib/databasemanagement/lib/model/enable-pluggable-database-management-feature-details.ts +++ b/lib/databasemanagement/lib/model/enable-pluggable-database-management-feature-details.ts @@ -21,7 +21,10 @@ import common = require("oci-common"); * The details required to enable a Database Management feature for an Oracle cloud pluggable database. */ export interface EnablePluggableDatabaseManagementFeatureDetails { - "featureDetails": model.DatabaseDiagnosticsAndManagementFeatureDetails; + "featureDetails": + | model.DatabaseDiagnosticsAndManagementFeatureDetails + | model.DatabaseLifecycleManagementFeatureDetails + | model.DatabaseSqlWatchFeatureDetails; } export namespace EnablePluggableDatabaseManagementFeatureDetails { diff --git a/lib/databasemanagement/lib/model/external-database-connection-info.ts b/lib/databasemanagement/lib/model/external-database-connection-info.ts index 760b9f47fd..d97a86ae17 100644 --- a/lib/databasemanagement/lib/model/external-database-connection-info.ts +++ b/lib/databasemanagement/lib/model/external-database-connection-info.ts @@ -25,6 +25,7 @@ import common = require("oci-common"); export interface ExternalDatabaseConnectionInfo extends model.ExternalDbSystemConnectionInfo { "connectionString": model.DatabaseConnectionString; "connectionCredentials"?: + | model.DatabaseNamedCredentialConnectionDetails | model.DatabaseConnectionCredentailsByName | model.DatabaseSslConnectionCredentials | model.DatabaseConnectionCredentialsByDetails; diff --git a/lib/databasemanagement/lib/model/external-database-feature-details.ts b/lib/databasemanagement/lib/model/external-database-feature-details.ts index b013d44fca..55ab98b571 100644 --- a/lib/databasemanagement/lib/model/external-database-feature-details.ts +++ b/lib/databasemanagement/lib/model/external-database-feature-details.ts @@ -42,6 +42,16 @@ export namespace ExternalDatabaseFeatureDetails { if (obj && "feature" in obj && obj.feature) { switch (obj.feature) { + case "DB_LIFECYCLE_MANAGEMENT": + return model.ExternalDatabaseLifecycleManagementFeatureDetails.getJsonObj( + (jsonObj), + true + ); + case "SQLWATCH": + return model.ExternalDatabaseSqlWatchFeatureDetails.getJsonObj( + (jsonObj), + true + ); case "DIAGNOSTICS_AND_MANAGEMENT": return model.ExternalDatabaseDiagnosticsAndManagementFeatureDetails.getJsonObj( (jsonObj), @@ -65,6 +75,16 @@ export namespace ExternalDatabaseFeatureDetails { if (obj && "feature" in obj && obj.feature) { switch (obj.feature) { + case "DB_LIFECYCLE_MANAGEMENT": + return model.ExternalDatabaseLifecycleManagementFeatureDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "SQLWATCH": + return model.ExternalDatabaseSqlWatchFeatureDetails.getDeserializedJsonObj( + (jsonObj), + true + ); case "DIAGNOSTICS_AND_MANAGEMENT": return model.ExternalDatabaseDiagnosticsAndManagementFeatureDetails.getDeserializedJsonObj( (jsonObj), diff --git a/lib/databasemanagement/lib/model/external-database-lifecycle-management-feature-details.ts b/lib/databasemanagement/lib/model/external-database-lifecycle-management-feature-details.ts new file mode 100644 index 0000000000..87009b1cce --- /dev/null +++ b/lib/databasemanagement/lib/model/external-database-lifecycle-management-feature-details.ts @@ -0,0 +1,71 @@ +/** + * Database Management API + * Use the Database Management API to monitor and manage resources such as +Oracle Databases, MySQL Databases, and External Database Systems. +For more information, see [Database Management](/iaas/database-management/home.htm). + + * OpenAPI spec version: 20201101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details required to enable the Database Lifecycle Management feature. + */ +export interface ExternalDatabaseLifecycleManagementFeatureDetails + extends model.ExternalDatabaseFeatureDetails { + /** + * The Oracle license model that applies to the external database. + * + */ + "licenseModel": ExternalDatabaseLifecycleManagementFeatureDetails.LicenseModel; + + "feature": string; +} + +export namespace ExternalDatabaseLifecycleManagementFeatureDetails { + export enum LicenseModel { + LicenseIncluded = "LICENSE_INCLUDED", + BringYourOwnLicense = "BRING_YOUR_OWN_LICENSE" + } + + export function getJsonObj( + obj: ExternalDatabaseLifecycleManagementFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExternalDatabaseFeatureDetails.getJsonObj( + obj + ) as ExternalDatabaseLifecycleManagementFeatureDetails)), + ...{} + }; + + return jsonObj; + } + export const feature = "DB_LIFECYCLE_MANAGEMENT"; + export function getDeserializedJsonObj( + obj: ExternalDatabaseLifecycleManagementFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExternalDatabaseFeatureDetails.getDeserializedJsonObj( + obj + ) as ExternalDatabaseLifecycleManagementFeatureDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/databasemanagement/lib/model/external-database-sql-watch-feature-details.ts b/lib/databasemanagement/lib/model/external-database-sql-watch-feature-details.ts new file mode 100644 index 0000000000..eebc369acd --- /dev/null +++ b/lib/databasemanagement/lib/model/external-database-sql-watch-feature-details.ts @@ -0,0 +1,60 @@ +/** + * Database Management API + * Use the Database Management API to monitor and manage resources such as +Oracle Databases, MySQL Databases, and External Database Systems. +For more information, see [Database Management](/iaas/database-management/home.htm). + + * OpenAPI spec version: 20201101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details required to enable the SQL Watch feature. + */ +export interface ExternalDatabaseSqlWatchFeatureDetails + extends model.ExternalDatabaseFeatureDetails { + "feature": string; +} + +export namespace ExternalDatabaseSqlWatchFeatureDetails { + export function getJsonObj( + obj: ExternalDatabaseSqlWatchFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExternalDatabaseFeatureDetails.getJsonObj( + obj + ) as ExternalDatabaseSqlWatchFeatureDetails)), + ...{} + }; + + return jsonObj; + } + export const feature = "SQLWATCH"; + export function getDeserializedJsonObj( + obj: ExternalDatabaseSqlWatchFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExternalDatabaseFeatureDetails.getDeserializedJsonObj( + obj + ) as ExternalDatabaseSqlWatchFeatureDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/databasemanagement/lib/model/external-database-summary.ts b/lib/databasemanagement/lib/model/external-database-summary.ts index 734e4ec0df..959a755937 100644 --- a/lib/databasemanagement/lib/model/external-database-summary.ts +++ b/lib/databasemanagement/lib/model/external-database-summary.ts @@ -94,6 +94,18 @@ Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} * */ "systemTags"?: { [key: string]: { [key: string]: any } }; + /** + * The list of feature configurations + */ + "dbmgmtFeatureConfigs"?: Array; + /** + * The Oracle database version. + */ + "databaseVersion"?: string; + /** + * The operating system of database. + */ + "databasePlatformName"?: string; } export namespace ExternalDatabaseSummary { @@ -126,6 +138,12 @@ export namespace ExternalDatabaseSummary { ? obj.instanceDetails.map(item => { return model.ExternalDatabaseInstance.getJsonObj(item); }) + : undefined, + + "dbmgmtFeatureConfigs": obj.dbmgmtFeatureConfigs + ? obj.dbmgmtFeatureConfigs.map(item => { + return model.DatabaseFeatureConfiguration.getJsonObj(item); + }) : undefined } }; @@ -146,6 +164,12 @@ export namespace ExternalDatabaseSummary { ? obj.instanceDetails.map(item => { return model.ExternalDatabaseInstance.getDeserializedJsonObj(item); }) + : undefined, + + "dbmgmtFeatureConfigs": obj.dbmgmtFeatureConfigs + ? obj.dbmgmtFeatureConfigs.map(item => { + return model.DatabaseFeatureConfiguration.getDeserializedJsonObj(item); + }) : undefined } }; diff --git a/lib/databasemanagement/lib/model/external-pluggable-database-feature-details.ts b/lib/databasemanagement/lib/model/external-pluggable-database-feature-details.ts index 85ba7a1756..26d8051664 100644 --- a/lib/databasemanagement/lib/model/external-pluggable-database-feature-details.ts +++ b/lib/databasemanagement/lib/model/external-pluggable-database-feature-details.ts @@ -49,6 +49,16 @@ export namespace ExternalPluggableDatabaseFeatureDetails { ), true ); + case "DB_LIFECYCLE_MANAGEMENT": + return model.ExternalPluggableDatabaseLifecycleManagementFeatureDetails.getJsonObj( + (jsonObj), + true + ); + case "SQLWATCH": + return model.ExternalPluggableDatabaseSqlWatchFeatureDetails.getJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.feature}`); } @@ -74,6 +84,16 @@ export namespace ExternalPluggableDatabaseFeatureDetails { ), true ); + case "DB_LIFECYCLE_MANAGEMENT": + return model.ExternalPluggableDatabaseLifecycleManagementFeatureDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "SQLWATCH": + return model.ExternalPluggableDatabaseSqlWatchFeatureDetails.getDeserializedJsonObj( + (jsonObj), + true + ); default: if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.feature}`); } diff --git a/lib/databasemanagement/lib/model/external-pluggable-database-lifecycle-management-feature-details.ts b/lib/databasemanagement/lib/model/external-pluggable-database-lifecycle-management-feature-details.ts new file mode 100644 index 0000000000..aac70f3fc9 --- /dev/null +++ b/lib/databasemanagement/lib/model/external-pluggable-database-lifecycle-management-feature-details.ts @@ -0,0 +1,60 @@ +/** + * Database Management API + * Use the Database Management API to monitor and manage resources such as +Oracle Databases, MySQL Databases, and External Database Systems. +For more information, see [Database Management](/iaas/database-management/home.htm). + + * OpenAPI spec version: 20201101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details required to enable the Database Lifecycle Management feature. + */ +export interface ExternalPluggableDatabaseLifecycleManagementFeatureDetails + extends model.ExternalPluggableDatabaseFeatureDetails { + "feature": string; +} + +export namespace ExternalPluggableDatabaseLifecycleManagementFeatureDetails { + export function getJsonObj( + obj: ExternalPluggableDatabaseLifecycleManagementFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExternalPluggableDatabaseFeatureDetails.getJsonObj( + obj + ) as ExternalPluggableDatabaseLifecycleManagementFeatureDetails)), + ...{} + }; + + return jsonObj; + } + export const feature = "DB_LIFECYCLE_MANAGEMENT"; + export function getDeserializedJsonObj( + obj: ExternalPluggableDatabaseLifecycleManagementFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExternalPluggableDatabaseFeatureDetails.getDeserializedJsonObj( + obj + ) as ExternalPluggableDatabaseLifecycleManagementFeatureDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/databasemanagement/lib/model/external-pluggable-database-sql-watch-feature-details.ts b/lib/databasemanagement/lib/model/external-pluggable-database-sql-watch-feature-details.ts new file mode 100644 index 0000000000..3b4d6bf8fa --- /dev/null +++ b/lib/databasemanagement/lib/model/external-pluggable-database-sql-watch-feature-details.ts @@ -0,0 +1,60 @@ +/** + * Database Management API + * Use the Database Management API to monitor and manage resources such as +Oracle Databases, MySQL Databases, and External Database Systems. +For more information, see [Database Management](/iaas/database-management/home.htm). + + * OpenAPI spec version: 20201101 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details required to enable the SQL watch feature. + */ +export interface ExternalPluggableDatabaseSqlWatchFeatureDetails + extends model.ExternalPluggableDatabaseFeatureDetails { + "feature": string; +} + +export namespace ExternalPluggableDatabaseSqlWatchFeatureDetails { + export function getJsonObj( + obj: ExternalPluggableDatabaseSqlWatchFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExternalPluggableDatabaseFeatureDetails.getJsonObj( + obj + ) as ExternalPluggableDatabaseSqlWatchFeatureDetails)), + ...{} + }; + + return jsonObj; + } + export const feature = "SQLWATCH"; + export function getDeserializedJsonObj( + obj: ExternalPluggableDatabaseSqlWatchFeatureDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExternalPluggableDatabaseFeatureDetails.getDeserializedJsonObj( + obj + ) as ExternalPluggableDatabaseSqlWatchFeatureDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/databasemanagement/lib/model/index.ts b/lib/databasemanagement/lib/model/index.ts index 84ee6ef289..71e0c24b96 100644 --- a/lib/databasemanagement/lib/model/index.ts +++ b/lib/databasemanagement/lib/model/index.ts @@ -967,12 +967,22 @@ import * as DatabaseDiagnosticsAndManagementFeatureConfiguration from "./databas export import DatabaseDiagnosticsAndManagementFeatureConfiguration = DatabaseDiagnosticsAndManagementFeatureConfiguration.DatabaseDiagnosticsAndManagementFeatureConfiguration; import * as DatabaseDiagnosticsAndManagementFeatureDetails from "./database-diagnostics-and-management-feature-details"; export import DatabaseDiagnosticsAndManagementFeatureDetails = DatabaseDiagnosticsAndManagementFeatureDetails.DatabaseDiagnosticsAndManagementFeatureDetails; +import * as DatabaseLifecycleFeatureConfiguration from "./database-lifecycle-feature-configuration"; +export import DatabaseLifecycleFeatureConfiguration = DatabaseLifecycleFeatureConfiguration.DatabaseLifecycleFeatureConfiguration; +import * as DatabaseLifecycleManagementFeatureDetails from "./database-lifecycle-management-feature-details"; +export import DatabaseLifecycleManagementFeatureDetails = DatabaseLifecycleManagementFeatureDetails.DatabaseLifecycleManagementFeatureDetails; +import * as DatabaseNamedCredentialConnectionDetails from "./database-named-credential-connection-details"; +export import DatabaseNamedCredentialConnectionDetails = DatabaseNamedCredentialConnectionDetails.DatabaseNamedCredentialConnectionDetails; import * as DatabaseNamedCredentialDetails from "./database-named-credential-details"; export import DatabaseNamedCredentialDetails = DatabaseNamedCredentialDetails.DatabaseNamedCredentialDetails; import * as DatabasePasswordCredentialDetails from "./database-password-credential-details"; export import DatabasePasswordCredentialDetails = DatabasePasswordCredentialDetails.DatabasePasswordCredentialDetails; import * as DatabaseSecretCredentialDetails from "./database-secret-credential-details"; export import DatabaseSecretCredentialDetails = DatabaseSecretCredentialDetails.DatabaseSecretCredentialDetails; +import * as DatabaseSqlWatchFeatureConfiguration from "./database-sql-watch-feature-configuration"; +export import DatabaseSqlWatchFeatureConfiguration = DatabaseSqlWatchFeatureConfiguration.DatabaseSqlWatchFeatureConfiguration; +import * as DatabaseSqlWatchFeatureDetails from "./database-sql-watch-feature-details"; +export import DatabaseSqlWatchFeatureDetails = DatabaseSqlWatchFeatureDetails.DatabaseSqlWatchFeatureDetails; import * as DatabaseSslConnectionCredentials from "./database-ssl-connection-credentials"; export import DatabaseSslConnectionCredentials = DatabaseSslConnectionCredentials.DatabaseSslConnectionCredentials; import * as DiscoveredExternalAsm from "./discovered-external-asm"; @@ -1001,6 +1011,10 @@ import * as ExternalDatabaseConnectionInfo from "./external-database-connection- export import ExternalDatabaseConnectionInfo = ExternalDatabaseConnectionInfo.ExternalDatabaseConnectionInfo; import * as ExternalDatabaseDiagnosticsAndManagementFeatureDetails from "./external-database-diagnostics-and-management-feature-details"; export import ExternalDatabaseDiagnosticsAndManagementFeatureDetails = ExternalDatabaseDiagnosticsAndManagementFeatureDetails.ExternalDatabaseDiagnosticsAndManagementFeatureDetails; +import * as ExternalDatabaseLifecycleManagementFeatureDetails from "./external-database-lifecycle-management-feature-details"; +export import ExternalDatabaseLifecycleManagementFeatureDetails = ExternalDatabaseLifecycleManagementFeatureDetails.ExternalDatabaseLifecycleManagementFeatureDetails; +import * as ExternalDatabaseSqlWatchFeatureDetails from "./external-database-sql-watch-feature-details"; +export import ExternalDatabaseSqlWatchFeatureDetails = ExternalDatabaseSqlWatchFeatureDetails.ExternalDatabaseSqlWatchFeatureDetails; import * as ExternalDatabaseSystemDiscoverySummary from "./external-database-system-discovery-summary"; export import ExternalDatabaseSystemDiscoverySummary = ExternalDatabaseSystemDiscoverySummary.ExternalDatabaseSystemDiscoverySummary; import * as ExternalDbSystemDiscoveryMacsConnector from "./external-db-system-discovery-macs-connector"; @@ -1037,6 +1051,10 @@ import * as ExternalListenerTcpsEndpoint from "./external-listener-tcps-endpoint export import ExternalListenerTcpsEndpoint = ExternalListenerTcpsEndpoint.ExternalListenerTcpsEndpoint; import * as ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails from "./external-pluggable-database-diagnostics-and-management-feature-details"; export import ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails = ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails; +import * as ExternalPluggableDatabaseLifecycleManagementFeatureDetails from "./external-pluggable-database-lifecycle-management-feature-details"; +export import ExternalPluggableDatabaseLifecycleManagementFeatureDetails = ExternalPluggableDatabaseLifecycleManagementFeatureDetails.ExternalPluggableDatabaseLifecycleManagementFeatureDetails; +import * as ExternalPluggableDatabaseSqlWatchFeatureDetails from "./external-pluggable-database-sql-watch-feature-details"; +export import ExternalPluggableDatabaseSqlWatchFeatureDetails = ExternalPluggableDatabaseSqlWatchFeatureDetails.ExternalPluggableDatabaseSqlWatchFeatureDetails; import * as ExternalStorageGridDiscoverySummary from "./external-storage-grid-discovery-summary"; export import ExternalStorageGridDiscoverySummary = ExternalStorageGridDiscoverySummary.ExternalStorageGridDiscoverySummary; import * as ExternalStorageServerDiscoverySummary from "./external-storage-server-discovery-summary"; diff --git a/lib/databasemanagement/lib/model/managed-database-summary.ts b/lib/databasemanagement/lib/model/managed-database-summary.ts index a4c6f43a3c..5cfd2046cb 100644 --- a/lib/databasemanagement/lib/model/managed-database-summary.ts +++ b/lib/databasemanagement/lib/model/managed-database-summary.ts @@ -106,16 +106,42 @@ Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} * */ "systemTags"?: { [key: string]: { [key: string]: any } }; + /** + * The list of feature configurations + */ + "dbmgmtFeatureConfigs"?: Array; + /** + * The operating system of database. + */ + "databasePlatformName"?: string; } export namespace ManagedDatabaseSummary { export function getJsonObj(obj: ManagedDatabaseSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "dbmgmtFeatureConfigs": obj.dbmgmtFeatureConfigs + ? obj.dbmgmtFeatureConfigs.map(item => { + return model.DatabaseFeatureConfiguration.getJsonObj(item); + }) + : undefined + } + }; return jsonObj; } export function getDeserializedJsonObj(obj: ManagedDatabaseSummary): object { - const jsonObj = { ...obj, ...{} }; + const jsonObj = { + ...obj, + ...{ + "dbmgmtFeatureConfigs": obj.dbmgmtFeatureConfigs + ? obj.dbmgmtFeatureConfigs.map(item => { + return model.DatabaseFeatureConfiguration.getDeserializedJsonObj(item); + }) + : undefined + } + }; return jsonObj; } diff --git a/lib/databasemanagement/lib/model/managed-database.ts b/lib/databasemanagement/lib/model/managed-database.ts index 006bda025a..349a57ac5f 100644 --- a/lib/databasemanagement/lib/model/managed-database.ts +++ b/lib/databasemanagement/lib/model/managed-database.ts @@ -149,6 +149,14 @@ Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} * */ "systemTags"?: { [key: string]: { [key: string]: any } }; + /** + * The list of feature configurations + */ + "dbmgmtFeatureConfigs"?: Array; + /** + * The operating system of database. + */ + "databasePlatformName"?: string; } export namespace ManagedDatabase { @@ -172,6 +180,12 @@ export namespace ManagedDatabase { ? obj.pdbStatus.map(item => { return model.PdbStatusDetails.getJsonObj(item); }) + : undefined, + + "dbmgmtFeatureConfigs": obj.dbmgmtFeatureConfigs + ? obj.dbmgmtFeatureConfigs.map(item => { + return model.DatabaseFeatureConfiguration.getJsonObj(item); + }) : undefined } }; @@ -198,6 +212,12 @@ export namespace ManagedDatabase { ? obj.pdbStatus.map(item => { return model.PdbStatusDetails.getDeserializedJsonObj(item); }) + : undefined, + + "dbmgmtFeatureConfigs": obj.dbmgmtFeatureConfigs + ? obj.dbmgmtFeatureConfigs.map(item => { + return model.DatabaseFeatureConfiguration.getDeserializedJsonObj(item); + }) : undefined } }; diff --git a/lib/databasemanagement/lib/model/modify-database-management-feature-details.ts b/lib/databasemanagement/lib/model/modify-database-management-feature-details.ts index 1e9b65bf8e..9e1639b102 100644 --- a/lib/databasemanagement/lib/model/modify-database-management-feature-details.ts +++ b/lib/databasemanagement/lib/model/modify-database-management-feature-details.ts @@ -21,7 +21,10 @@ import common = require("oci-common"); * The details required to modify a Database Management features for an Oracle cloud database. */ export interface ModifyDatabaseManagementFeatureDetails { - "featureDetails": model.DatabaseDiagnosticsAndManagementFeatureDetails; + "featureDetails": + | model.DatabaseDiagnosticsAndManagementFeatureDetails + | model.DatabaseLifecycleManagementFeatureDetails + | model.DatabaseSqlWatchFeatureDetails; } export namespace ModifyDatabaseManagementFeatureDetails { diff --git a/lib/databasemanagement/lib/model/modify-pluggable-database-management-feature-details.ts b/lib/databasemanagement/lib/model/modify-pluggable-database-management-feature-details.ts index eaca3aeae7..39e333935d 100644 --- a/lib/databasemanagement/lib/model/modify-pluggable-database-management-feature-details.ts +++ b/lib/databasemanagement/lib/model/modify-pluggable-database-management-feature-details.ts @@ -21,7 +21,10 @@ import common = require("oci-common"); * The details required to modify a Database Management feature for an Oracle cloud pluggable database. */ export interface ModifyPluggableDatabaseManagementFeatureDetails { - "featureDetails": model.DatabaseDiagnosticsAndManagementFeatureDetails; + "featureDetails": + | model.DatabaseDiagnosticsAndManagementFeatureDetails + | model.DatabaseLifecycleManagementFeatureDetails + | model.DatabaseSqlWatchFeatureDetails; } export namespace ModifyPluggableDatabaseManagementFeatureDetails { diff --git a/lib/databasemanagement/package.json b/lib/databasemanagement/package.json index 32e52e14ad..3e07a9b51a 100644 --- a/lib/databasemanagement/package.json +++ b/lib/databasemanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-databasemanagement", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Database Management Service", "repository": { "type": "git", diff --git a/lib/databasemigration/package.json b/lib/databasemigration/package.json index caa6e48d84..60ab75d98d 100644 --- a/lib/databasemigration/package.json +++ b/lib/databasemigration/package.json @@ -1,6 +1,6 @@ { "name": "oci-databasemigration", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Database Migration Service", "repository": { "type": "git", diff --git a/lib/databasetools/package.json b/lib/databasetools/package.json index 7cb2ccc8b9..876173e2e8 100644 --- a/lib/databasetools/package.json +++ b/lib/databasetools/package.json @@ -1,6 +1,6 @@ { "name": "oci-databasetools", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Database Tools Service", "repository": { "type": "git", diff --git a/lib/datacatalog/package.json b/lib/datacatalog/package.json index be1f17f3bf..9c8a3a0e2a 100644 --- a/lib/datacatalog/package.json +++ b/lib/datacatalog/package.json @@ -1,6 +1,6 @@ { "name": "oci-datacatalog", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Data catalogue Service", "repository": { "type": "git", diff --git a/lib/dataflow/package.json b/lib/dataflow/package.json index 568a5b9505..63d8c6fc54 100644 --- a/lib/dataflow/package.json +++ b/lib/dataflow/package.json @@ -1,6 +1,6 @@ { "name": "oci-dataflow", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Dataflow service", "repository": { "type": "git", diff --git a/lib/dataintegration/package.json b/lib/dataintegration/package.json index d033259cc9..9c5e5fe952 100644 --- a/lib/dataintegration/package.json +++ b/lib/dataintegration/package.json @@ -1,6 +1,6 @@ { "name": "oci-dataintegration", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Data Integration Service", "repository": { "type": "git", diff --git a/lib/datalabelingservice/package.json b/lib/datalabelingservice/package.json index d38f57a22b..c5323b1bae 100644 --- a/lib/datalabelingservice/package.json +++ b/lib/datalabelingservice/package.json @@ -1,6 +1,6 @@ { "name": "oci-datalabelingservice", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Data Labeling Service Service", "repository": { "type": "git", diff --git a/lib/datalabelingservicedataplane/package.json b/lib/datalabelingservicedataplane/package.json index 61cbb0d04a..d9688d1b30 100644 --- a/lib/datalabelingservicedataplane/package.json +++ b/lib/datalabelingservicedataplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-datalabelingservicedataplane", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Data Labeling Service Dataplane Service", "repository": { "type": "git", diff --git a/lib/datasafe/package.json b/lib/datasafe/package.json index fe2451809c..24db276b4f 100644 --- a/lib/datasafe/package.json +++ b/lib/datasafe/package.json @@ -1,6 +1,6 @@ { "name": "oci-datasafe", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Data Safe ", "repository": { "type": "git", diff --git a/lib/datascience/package.json b/lib/datascience/package.json index 3d1040329c..47e5c16a71 100644 --- a/lib/datascience/package.json +++ b/lib/datascience/package.json @@ -1,6 +1,6 @@ { "name": "oci-datascience", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Data Science Service", "repository": { "type": "git", diff --git a/lib/demandsignal/package.json b/lib/demandsignal/package.json index b4821b1e42..69e4306f0a 100644 --- a/lib/demandsignal/package.json +++ b/lib/demandsignal/package.json @@ -1,6 +1,6 @@ { "name": "oci-demandsignal", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Demand Signal Service", "repository": { "type": "git", diff --git a/lib/desktops/package.json b/lib/desktops/package.json index ed3585af07..c5102080ba 100644 --- a/lib/desktops/package.json +++ b/lib/desktops/package.json @@ -1,6 +1,6 @@ { "name": "oci-desktops", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Desktops Service", "repository": { "type": "git", diff --git a/lib/devops/package.json b/lib/devops/package.json index 1e71d09a47..571dc7f353 100644 --- a/lib/devops/package.json +++ b/lib/devops/package.json @@ -1,6 +1,6 @@ { "name": "oci-devops", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Devops Service", "repository": { "type": "git", diff --git a/lib/disasterrecovery/lib/client.ts b/lib/disasterrecovery/lib/client.ts index ee20029f40..8818d9ce6c 100644 --- a/lib/disasterrecovery/lib/client.ts +++ b/lib/disasterrecovery/lib/client.ts @@ -1505,7 +1505,6 @@ export class DisasterRecoveryClient { "drProtectionGroupId": listDrPlanExecutionsRequest.drProtectionGroupId, "lifecycleState": listDrPlanExecutionsRequest.lifecycleState, "drPlanExecutionId": listDrPlanExecutionsRequest.drPlanExecutionId, - "drPlanExecutionType": listDrPlanExecutionsRequest.drPlanExecutionType, "displayName": listDrPlanExecutionsRequest.displayName, "limit": listDrPlanExecutionsRequest.limit, "page": listDrPlanExecutionsRequest.page, diff --git a/lib/disasterrecovery/lib/model/autonomous-container-database-snapshot-standby-connection-string-type.ts b/lib/disasterrecovery/lib/model/autonomous-container-database-snapshot-standby-connection-string-type.ts new file mode 100644 index 0000000000..494e8e3f66 --- /dev/null +++ b/lib/disasterrecovery/lib/model/autonomous-container-database-snapshot-standby-connection-string-type.ts @@ -0,0 +1,50 @@ +/** + * Full Stack Disaster Recovery API + * Use the Full Stack Disaster Recovery (DR) API to manage disaster recovery for business applications. +Full Stack DR is an OCI disaster recovery orchestration and management service that provides comprehensive disaster +recovery capabilities for all layers of an application stack, including infrastructure, middleware, database, +and application. + + * OpenAPI spec version: 20220125 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The type of connection strings used to connect to an Autonomous Container Database snapshot standby created during a DR Drill operation. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for information about these service types. + * - SNAPSHOT_SERVICE - Connect to the snapshot standby using new services that are active only in snapshot standby mode. + * - PRIMARY_SERVICE - Connect to the snapshot standby database using the same services as the primary database. + * + **/ +export enum AutonomousContainerDatabaseSnapshotStandbyConnectionStringType { + SnapshotService = "SNAPSHOT_SERVICE", + PrimaryService = "PRIMARY_SERVICE", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace AutonomousContainerDatabaseSnapshotStandbyConnectionStringType { + export function getJsonObj( + obj: AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + ): AutonomousContainerDatabaseSnapshotStandbyConnectionStringType { + return obj; + } + export function getDeserializedJsonObj( + obj: AutonomousContainerDatabaseSnapshotStandbyConnectionStringType + ): AutonomousContainerDatabaseSnapshotStandbyConnectionStringType { + return obj; + } +} diff --git a/lib/disasterrecovery/lib/model/autonomous-database-standby-type-for-dr-drills.ts b/lib/disasterrecovery/lib/model/autonomous-database-standby-type-for-dr-drills.ts new file mode 100644 index 0000000000..4022302ac0 --- /dev/null +++ b/lib/disasterrecovery/lib/model/autonomous-database-standby-type-for-dr-drills.ts @@ -0,0 +1,53 @@ +/** + * Full Stack Disaster Recovery API + * Use the Full Stack Disaster Recovery (DR) API to manage disaster recovery for business applications. +Full Stack DR is an OCI disaster recovery orchestration and management service that provides comprehensive disaster +recovery capabilities for all layers of an application stack, including infrastructure, middleware, database, +and application. + + * OpenAPI spec version: 20220125 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * This specifies the mechanism used to create a temporary Autonomous Database instance for DR Drills. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html for information about these clone types. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html for information about snapshot standby. + * - FULL_CLONE - Creates a full clone of the source Autonomous Database with read-write access for DR Drill operations. + * - REFRESHABLE_CLONE - Creates a full clone of the source Autonomous Database with read-only access for DR Drill operations. + * - SNAPSHOT_STANDBY - Converts the existing standby Autonomous Database to a snapshot standby for DR Drill operations. + * + **/ +export enum AutonomousDatabaseStandbyTypeForDrDrills { + FullClone = "FULL_CLONE", + RefreshableClone = "REFRESHABLE_CLONE", + SnapshotStandby = "SNAPSHOT_STANDBY", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace AutonomousDatabaseStandbyTypeForDrDrills { + export function getJsonObj( + obj: AutonomousDatabaseStandbyTypeForDrDrills + ): AutonomousDatabaseStandbyTypeForDrDrills { + return obj; + } + export function getDeserializedJsonObj( + obj: AutonomousDatabaseStandbyTypeForDrDrills + ): AutonomousDatabaseStandbyTypeForDrDrills { + return obj; + } +} diff --git a/lib/disasterrecovery/lib/model/create-dr-protection-group-member-autonomous-container-database-details.ts b/lib/disasterrecovery/lib/model/create-dr-protection-group-member-autonomous-container-database-details.ts new file mode 100644 index 0000000000..0d22e59cef --- /dev/null +++ b/lib/disasterrecovery/lib/model/create-dr-protection-group-member-autonomous-container-database-details.ts @@ -0,0 +1,68 @@ +/** + * Full Stack Disaster Recovery API + * Use the Full Stack Disaster Recovery (DR) API to manage disaster recovery for business applications. +Full Stack DR is an OCI disaster recovery orchestration and management service that provides comprehensive disaster +recovery capabilities for all layers of an application stack, including infrastructure, middleware, database, +and application. + + * OpenAPI spec version: 20220125 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Create properties for an Autonomous Container Database member. + */ +export interface CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails + extends model.CreateDrProtectionGroupMemberDetails { + /** + * The type of connection strings used to connect to an Autonomous Container Database snapshot standby created during a DR Drill operation. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for information about these service types. + * + */ + "connectionStringType"?: model.AutonomousContainerDatabaseSnapshotStandbyConnectionStringType; + + "memberType": string; +} + +export namespace CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails { + export function getJsonObj( + obj: CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateDrProtectionGroupMemberDetails.getJsonObj( + obj + ) as CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails)), + ...{} + }; + + return jsonObj; + } + export const memberType = "AUTONOMOUS_CONTAINER_DATABASE"; + export function getDeserializedJsonObj( + obj: CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateDrProtectionGroupMemberDetails.getDeserializedJsonObj( + obj + ) as CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/disasterrecovery/lib/model/create-dr-protection-group-member-autonomous-database-details.ts b/lib/disasterrecovery/lib/model/create-dr-protection-group-member-autonomous-database-details.ts index e18333d388..5492f4d067 100644 --- a/lib/disasterrecovery/lib/model/create-dr-protection-group-member-autonomous-database-details.ts +++ b/lib/disasterrecovery/lib/model/create-dr-protection-group-member-autonomous-database-details.ts @@ -23,6 +23,22 @@ import common = require("oci-common"); */ export interface CreateDrProtectionGroupMemberAutonomousDatabaseDetails extends model.CreateDrProtectionGroupMemberDetails { + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for DR Drills. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html for information about these clone types. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html for information about snapshot standby. + * + */ + "autonomousDatabaseStandbyTypeForDrDrills"?: model.AutonomousDatabaseStandbyTypeForDrDrills; + /** + * The OCID of the vault secret where the database SYSDBA password is stored. +* This password is required and used for performing database DR Drill operations when using full clone. +*

+Example: {@code ocid1.vaultsecret.oc1..uniqueID} +* + */ + "passwordVaultSecretId"?: string; + "memberType": string; } diff --git a/lib/disasterrecovery/lib/model/create-dr-protection-group-member-details.ts b/lib/disasterrecovery/lib/model/create-dr-protection-group-member-details.ts index e1ef795607..42f5ccf4d7 100644 --- a/lib/disasterrecovery/lib/model/create-dr-protection-group-member-details.ts +++ b/lib/disasterrecovery/lib/model/create-dr-protection-group-member-details.ts @@ -44,6 +44,13 @@ export namespace CreateDrProtectionGroupMemberDetails { (jsonObj), true ); + case "AUTONOMOUS_CONTAINER_DATABASE": + return model.CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.getJsonObj( + ( + (jsonObj) + ), + true + ); case "COMPUTE_INSTANCE_NON_MOVABLE": return model.CreateDrProtectionGroupMemberComputeInstanceNonMovableDetails.getJsonObj( (jsonObj), @@ -79,6 +86,11 @@ export namespace CreateDrProtectionGroupMemberDetails { (jsonObj), true ); + case "OBJECT_STORAGE_BUCKET": + return model.CreateDrProtectionGroupMemberObjectStorageBucketDetails.getJsonObj( + (jsonObj), + true + ); case "LOAD_BALANCER": return model.CreateDrProtectionGroupMemberLoadBalancerDetails.getJsonObj( (jsonObj), @@ -100,6 +112,13 @@ export namespace CreateDrProtectionGroupMemberDetails { (jsonObj), true ); + case "AUTONOMOUS_CONTAINER_DATABASE": + return model.CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.getDeserializedJsonObj( + ( + (jsonObj) + ), + true + ); case "COMPUTE_INSTANCE_NON_MOVABLE": return model.CreateDrProtectionGroupMemberComputeInstanceNonMovableDetails.getDeserializedJsonObj( (jsonObj), @@ -135,6 +154,11 @@ export namespace CreateDrProtectionGroupMemberDetails { (jsonObj), true ); + case "OBJECT_STORAGE_BUCKET": + return model.CreateDrProtectionGroupMemberObjectStorageBucketDetails.getDeserializedJsonObj( + (jsonObj), + true + ); case "LOAD_BALANCER": return model.CreateDrProtectionGroupMemberLoadBalancerDetails.getDeserializedJsonObj( (jsonObj), diff --git a/lib/disasterrecovery/lib/model/create-dr-protection-group-member-object-storage-bucket-details.ts b/lib/disasterrecovery/lib/model/create-dr-protection-group-member-object-storage-bucket-details.ts new file mode 100644 index 0000000000..590861d050 --- /dev/null +++ b/lib/disasterrecovery/lib/model/create-dr-protection-group-member-object-storage-bucket-details.ts @@ -0,0 +1,76 @@ +/** + * Full Stack Disaster Recovery API + * Use the Full Stack Disaster Recovery (DR) API to manage disaster recovery for business applications. +Full Stack DR is an OCI disaster recovery orchestration and management service that provides comprehensive disaster +recovery capabilities for all layers of an application stack, including infrastructure, middleware, database, +and application. + + * OpenAPI spec version: 20220125 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Create properties for a object storage bucket member. + */ +export interface CreateDrProtectionGroupMemberObjectStorageBucketDetails + extends model.CreateDrProtectionGroupMemberDetails { + /** + * The namespace in object storage (Note - this is usually the tenancy name). +*

+Example: {@code myocitenancy} +* + */ + "namespaceName": string; + /** + * The bucket name inside the object storage namespace. +*

+Example: {@code bucket_name} +* + */ + "bucketName": string; + + "memberType": string; +} + +export namespace CreateDrProtectionGroupMemberObjectStorageBucketDetails { + export function getJsonObj( + obj: CreateDrProtectionGroupMemberObjectStorageBucketDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateDrProtectionGroupMemberDetails.getJsonObj( + obj + ) as CreateDrProtectionGroupMemberObjectStorageBucketDetails)), + ...{} + }; + + return jsonObj; + } + export const memberType = "OBJECT_STORAGE_BUCKET"; + export function getDeserializedJsonObj( + obj: CreateDrProtectionGroupMemberObjectStorageBucketDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CreateDrProtectionGroupMemberDetails.getDeserializedJsonObj( + obj + ) as CreateDrProtectionGroupMemberObjectStorageBucketDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/disasterrecovery/lib/model/dr-plan-step-type.ts b/lib/disasterrecovery/lib/model/dr-plan-step-type.ts index 2a1b7b3feb..9a6064d457 100644 --- a/lib/disasterrecovery/lib/model/dr-plan-step-type.ts +++ b/lib/disasterrecovery/lib/model/dr-plan-step-type.ts @@ -33,6 +33,22 @@ export enum DrPlanStepType { DatabaseFailoverPrecheck = "DATABASE_FAILOVER_PRECHECK", AutonomousDatabaseSwitchoverPrecheck = "AUTONOMOUS_DATABASE_SWITCHOVER_PRECHECK", AutonomousDatabaseFailoverPrecheck = "AUTONOMOUS_DATABASE_FAILOVER_PRECHECK", + AutonomousContainerDatabaseSwitchoverPrecheck = "AUTONOMOUS_CONTAINER_DATABASE_SWITCHOVER_PRECHECK", + AutonomousContainerDatabaseFailoverPrecheck = "AUTONOMOUS_CONTAINER_DATABASE_FAILOVER_PRECHECK", + AutonomousContainerDatabaseStartDrillConvertToSnapshotStandbyPrecheck = "AUTONOMOUS_CONTAINER_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY_PRECHECK", + AutonomousContainerDatabaseStopDrillConvertToPhysicalStandbyPrecheck = "AUTONOMOUS_CONTAINER_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY_PRECHECK", + AutonomousContainerDatabaseSwitchover = "AUTONOMOUS_CONTAINER_DATABASE_SWITCHOVER", + AutonomousContainerDatabaseFailover = "AUTONOMOUS_CONTAINER_DATABASE_FAILOVER", + AutonomousContainerDatabaseStartDrillConvertToSnapshotStandby = "AUTONOMOUS_CONTAINER_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY", + AutonomousContainerDatabaseStopDrillConvertToPhysicalStandby = "AUTONOMOUS_CONTAINER_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY", + AutonomousDatabaseStartDrillCreateCloneStandbyPrecheck = "AUTONOMOUS_DATABASE_START_DRILL_CREATE_CLONE_STANDBY_PRECHECK", + AutonomousDatabaseStopDrillDeleteCloneStandbyPrecheck = "AUTONOMOUS_DATABASE_STOP_DRILL_DELETE_CLONE_STANDBY_PRECHECK", + AutonomousDatabaseStartDrillConvertToSnapshotStandbyPrecheck = "AUTONOMOUS_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY_PRECHECK", + AutonomousDatabaseStopDrillConvertToPhysicalStandbyPrecheck = "AUTONOMOUS_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY_PRECHECK", + AutonomousDatabaseStartDrillCreateCloneStandby = "AUTONOMOUS_DATABASE_START_DRILL_CREATE_CLONE_STANDBY", + AutonomousDatabaseStopDrillDeleteCloneStandby = "AUTONOMOUS_DATABASE_STOP_DRILL_DELETE_CLONE_STANDBY", + AutonomousDatabaseStartDrillConvertToSnapshotStandby = "AUTONOMOUS_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY", + AutonomousDatabaseStopDrillConvertToPhysicalStandby = "AUTONOMOUS_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY", UserDefinedPrecheck = "USER_DEFINED_PRECHECK", ComputeInstanceLaunch = "COMPUTE_INSTANCE_LAUNCH", ComputeInstanceStop = "COMPUTE_INSTANCE_STOP", @@ -92,6 +108,14 @@ export enum DrPlanStepType { ComputeCapacityReservationFailoverPrecheck = "COMPUTE_CAPACITY_RESERVATION_FAILOVER_PRECHECK", ComputeCapacityAvailabilitySwitchoverPrecheck = "COMPUTE_CAPACITY_AVAILABILITY_SWITCHOVER_PRECHECK", ComputeCapacityAvailabilityFailoverPrecheck = "COMPUTE_CAPACITY_AVAILABILITY_FAILOVER_PRECHECK", + ObjectStorageBucketSwitchoverDeleteReplicationPrimaryPrecheck = "OBJECT_STORAGE_BUCKET_SWITCHOVER_DELETE_REPLICATION_PRIMARY_PRECHECK", + ObjectStorageBucketSwitchoverSetupReverseReplicationStandbyPrecheck = "OBJECT_STORAGE_BUCKET_SWITCHOVER_SETUP_REVERSE_REPLICATION_STANDBY_PRECHECK", + ObjectStorageBucketFailoverDeleteReplicationStandbyPrecheck = "OBJECT_STORAGE_BUCKET_FAILOVER_DELETE_REPLICATION_STANDBY_PRECHECK", + ObjectStorageBucketFailoverSetupReverseReplicationStandbyPrecheck = "OBJECT_STORAGE_BUCKET_FAILOVER_SETUP_REVERSE_REPLICATION_STANDBY_PRECHECK", + ObjectStorageBucketSwitchoverDeleteReplicationPrimary = "OBJECT_STORAGE_BUCKET_SWITCHOVER_DELETE_REPLICATION_PRIMARY", + ObjectStorageBucketSwitchoverSetupReverseReplicationStandby = "OBJECT_STORAGE_BUCKET_SWITCHOVER_SETUP_REVERSE_REPLICATION_STANDBY", + ObjectStorageBucketFailoverDeleteReplicationStandby = "OBJECT_STORAGE_BUCKET_FAILOVER_DELETE_REPLICATION_STANDBY", + ObjectStorageBucketFailoverSetupReverseReplicationStandby = "OBJECT_STORAGE_BUCKET_FAILOVER_SETUP_REVERSE_REPLICATION_STANDBY", /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/lib/disasterrecovery/lib/model/dr-protection-group-member-autonomous-container-database.ts b/lib/disasterrecovery/lib/model/dr-protection-group-member-autonomous-container-database.ts new file mode 100644 index 0000000000..c9593fa3d5 --- /dev/null +++ b/lib/disasterrecovery/lib/model/dr-protection-group-member-autonomous-container-database.ts @@ -0,0 +1,69 @@ +/** + * Full Stack Disaster Recovery API + * Use the Full Stack Disaster Recovery (DR) API to manage disaster recovery for business applications. +Full Stack DR is an OCI disaster recovery orchestration and management service that provides comprehensive disaster +recovery capabilities for all layers of an application stack, including infrastructure, middleware, database, +and application. + + * OpenAPI spec version: 20220125 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The properties for an Autonomous Container Database member of a DR protection group. + * + */ +export interface DrProtectionGroupMemberAutonomousContainerDatabase + extends model.DrProtectionGroupMember { + /** + * The type of connection strings used to connect to an Autonomous Container Database snapshot standby created during a DR Drill operation. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for information about these service types. + * + */ + "connectionStringType"?: model.AutonomousContainerDatabaseSnapshotStandbyConnectionStringType; + + "memberType": string; +} + +export namespace DrProtectionGroupMemberAutonomousContainerDatabase { + export function getJsonObj( + obj: DrProtectionGroupMemberAutonomousContainerDatabase, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DrProtectionGroupMember.getJsonObj( + obj + ) as DrProtectionGroupMemberAutonomousContainerDatabase)), + ...{} + }; + + return jsonObj; + } + export const memberType = "AUTONOMOUS_CONTAINER_DATABASE"; + export function getDeserializedJsonObj( + obj: DrProtectionGroupMemberAutonomousContainerDatabase, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DrProtectionGroupMember.getDeserializedJsonObj( + obj + ) as DrProtectionGroupMemberAutonomousContainerDatabase)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/disasterrecovery/lib/model/dr-protection-group-member-autonomous-database.ts b/lib/disasterrecovery/lib/model/dr-protection-group-member-autonomous-database.ts index 020662a647..4f9da5e89f 100644 --- a/lib/disasterrecovery/lib/model/dr-protection-group-member-autonomous-database.ts +++ b/lib/disasterrecovery/lib/model/dr-protection-group-member-autonomous-database.ts @@ -23,6 +23,22 @@ import common = require("oci-common"); * */ export interface DrProtectionGroupMemberAutonomousDatabase extends model.DrProtectionGroupMember { + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for DR Drills. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html for information about these clone types. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html for information about snapshot standby. + * + */ + "autonomousDatabaseStandbyTypeForDrDrills"?: model.AutonomousDatabaseStandbyTypeForDrDrills; + /** + * The OCID of the vault secret where the database SYSDBA password is stored. +* This password is required and used for performing database DR Drill operations when using full clone. +*

+Example: {@code ocid1.vaultsecret.oc1..uniqueID} +* + */ + "passwordVaultSecretId"?: string; + "memberType": string; } diff --git a/lib/disasterrecovery/lib/model/dr-protection-group-member-object-storage-bucket.ts b/lib/disasterrecovery/lib/model/dr-protection-group-member-object-storage-bucket.ts new file mode 100644 index 0000000000..9f8afa1eaa --- /dev/null +++ b/lib/disasterrecovery/lib/model/dr-protection-group-member-object-storage-bucket.ts @@ -0,0 +1,76 @@ +/** + * Full Stack Disaster Recovery API + * Use the Full Stack Disaster Recovery (DR) API to manage disaster recovery for business applications. +Full Stack DR is an OCI disaster recovery orchestration and management service that provides comprehensive disaster +recovery capabilities for all layers of an application stack, including infrastructure, middleware, database, +and application. + + * OpenAPI spec version: 20220125 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The properties for a object storage bucket member of a DR protection group. + * + */ +export interface DrProtectionGroupMemberObjectStorageBucket extends model.DrProtectionGroupMember { + /** + * The namespace in object storage (Note - this is usually the tenancy name). +*

+Example: {@code myocitenancy} +* + */ + "namespaceName": string; + /** + * The bucket name inside the object storage namespace. +*

+Example: {@code bucket_name} +* + */ + "bucketName": string; + + "memberType": string; +} + +export namespace DrProtectionGroupMemberObjectStorageBucket { + export function getJsonObj( + obj: DrProtectionGroupMemberObjectStorageBucket, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DrProtectionGroupMember.getJsonObj( + obj + ) as DrProtectionGroupMemberObjectStorageBucket)), + ...{} + }; + + return jsonObj; + } + export const memberType = "OBJECT_STORAGE_BUCKET"; + export function getDeserializedJsonObj( + obj: DrProtectionGroupMemberObjectStorageBucket, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.DrProtectionGroupMember.getDeserializedJsonObj( + obj + ) as DrProtectionGroupMemberObjectStorageBucket)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/disasterrecovery/lib/model/dr-protection-group-member-type.ts b/lib/disasterrecovery/lib/model/dr-protection-group-member-type.ts index 6eb1b46fbd..0fdc32f32f 100644 --- a/lib/disasterrecovery/lib/model/dr-protection-group-member-type.ts +++ b/lib/disasterrecovery/lib/model/dr-protection-group-member-type.ts @@ -26,6 +26,7 @@ import common = require("oci-common"); * - VOLUME_GROUP - A volume group. * - DATABASE - An Oracle Database instance from Base Database service, or Exadata Database service. * - AUTONOMOUS_DATABASE - An Oracle Autonomous Database Serverless. + * - AUTONOMOUS_CONTAINER_DATABASE - An Oracle Autonomous Container Database. * - LOAD_BALANCER - A load balancer. * - NETWORK_LOAD_BALANCER - A network load balancer. * - FILE_SYSTEM - A file system. @@ -38,9 +39,11 @@ export enum DrProtectionGroupMemberType { VolumeGroup = "VOLUME_GROUP", Database = "DATABASE", AutonomousDatabase = "AUTONOMOUS_DATABASE", + AutonomousContainerDatabase = "AUTONOMOUS_CONTAINER_DATABASE", LoadBalancer = "LOAD_BALANCER", NetworkLoadBalancer = "NETWORK_LOAD_BALANCER", FileSystem = "FILE_SYSTEM", + ObjectStorageBucket = "OBJECT_STORAGE_BUCKET", /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/lib/disasterrecovery/lib/model/dr-protection-group-member.ts b/lib/disasterrecovery/lib/model/dr-protection-group-member.ts index fc60585e0a..3f756b917e 100644 --- a/lib/disasterrecovery/lib/model/dr-protection-group-member.ts +++ b/lib/disasterrecovery/lib/model/dr-protection-group-member.ts @@ -49,6 +49,11 @@ export namespace DrProtectionGroupMember { (jsonObj), true ); + case "OBJECT_STORAGE_BUCKET": + return model.DrProtectionGroupMemberObjectStorageBucket.getJsonObj( + (jsonObj), + true + ); case "FILE_SYSTEM": return model.DrProtectionGroupMemberFileSystem.getJsonObj( (jsonObj), @@ -79,6 +84,11 @@ export namespace DrProtectionGroupMember { (jsonObj), true ); + case "AUTONOMOUS_CONTAINER_DATABASE": + return model.DrProtectionGroupMemberAutonomousContainerDatabase.getJsonObj( + (jsonObj), + true + ); case "DATABASE": return model.DrProtectionGroupMemberDatabase.getJsonObj( (jsonObj), @@ -105,6 +115,11 @@ export namespace DrProtectionGroupMember { (jsonObj), true ); + case "OBJECT_STORAGE_BUCKET": + return model.DrProtectionGroupMemberObjectStorageBucket.getDeserializedJsonObj( + (jsonObj), + true + ); case "FILE_SYSTEM": return model.DrProtectionGroupMemberFileSystem.getDeserializedJsonObj( (jsonObj), @@ -135,6 +150,11 @@ export namespace DrProtectionGroupMember { (jsonObj), true ); + case "AUTONOMOUS_CONTAINER_DATABASE": + return model.DrProtectionGroupMemberAutonomousContainerDatabase.getDeserializedJsonObj( + (jsonObj), + true + ); case "DATABASE": return model.DrProtectionGroupMemberDatabase.getDeserializedJsonObj( (jsonObj), diff --git a/lib/disasterrecovery/lib/model/index.ts b/lib/disasterrecovery/lib/model/index.ts index e2f6a980d4..f8c29801bd 100644 --- a/lib/disasterrecovery/lib/model/index.ts +++ b/lib/disasterrecovery/lib/model/index.ts @@ -19,6 +19,10 @@ import * as ActionType from "./action-type"; export import ActionType = ActionType.ActionType; import * as AssociateDrProtectionGroupDetails from "./associate-dr-protection-group-details"; export import AssociateDrProtectionGroupDetails = AssociateDrProtectionGroupDetails.AssociateDrProtectionGroupDetails; +import * as AutonomousContainerDatabaseSnapshotStandbyConnectionStringType from "./autonomous-container-database-snapshot-standby-connection-string-type"; +export import AutonomousContainerDatabaseSnapshotStandbyConnectionStringType = AutonomousContainerDatabaseSnapshotStandbyConnectionStringType.AutonomousContainerDatabaseSnapshotStandbyConnectionStringType; +import * as AutonomousDatabaseStandbyTypeForDrDrills from "./autonomous-database-standby-type-for-dr-drills"; +export import AutonomousDatabaseStandbyTypeForDrDrills = AutonomousDatabaseStandbyTypeForDrDrills.AutonomousDatabaseStandbyTypeForDrDrills; import * as BlockVolumeAttachmentDetails from "./block-volume-attachment-details"; export import BlockVolumeAttachmentDetails = BlockVolumeAttachmentDetails.BlockVolumeAttachmentDetails; import * as BlockVolumeMountDetails from "./block-volume-mount-details"; @@ -210,6 +214,8 @@ export import WorkRequestSummaryCollection = WorkRequestSummaryCollection.WorkRe import * as CancelDrPlanExecutionDetails from "./cancel-dr-plan-execution-details"; export import CancelDrPlanExecutionDetails = CancelDrPlanExecutionDetails.CancelDrPlanExecutionDetails; +import * as CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails from "./create-dr-protection-group-member-autonomous-container-database-details"; +export import CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails = CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.CreateDrProtectionGroupMemberAutonomousContainerDatabaseDetails; import * as CreateDrProtectionGroupMemberAutonomousDatabaseDetails from "./create-dr-protection-group-member-autonomous-database-details"; export import CreateDrProtectionGroupMemberAutonomousDatabaseDetails = CreateDrProtectionGroupMemberAutonomousDatabaseDetails.CreateDrProtectionGroupMemberAutonomousDatabaseDetails; import * as CreateDrProtectionGroupMemberComputeInstanceDetails from "./create-dr-protection-group-member-compute-instance-details"; @@ -226,10 +232,14 @@ import * as CreateDrProtectionGroupMemberLoadBalancerDetails from "./create-dr-p export import CreateDrProtectionGroupMemberLoadBalancerDetails = CreateDrProtectionGroupMemberLoadBalancerDetails.CreateDrProtectionGroupMemberLoadBalancerDetails; import * as CreateDrProtectionGroupMemberNetworkLoadBalancerDetails from "./create-dr-protection-group-member-network-load-balancer-details"; export import CreateDrProtectionGroupMemberNetworkLoadBalancerDetails = CreateDrProtectionGroupMemberNetworkLoadBalancerDetails.CreateDrProtectionGroupMemberNetworkLoadBalancerDetails; +import * as CreateDrProtectionGroupMemberObjectStorageBucketDetails from "./create-dr-protection-group-member-object-storage-bucket-details"; +export import CreateDrProtectionGroupMemberObjectStorageBucketDetails = CreateDrProtectionGroupMemberObjectStorageBucketDetails.CreateDrProtectionGroupMemberObjectStorageBucketDetails; import * as CreateDrProtectionGroupMemberVolumeGroupDetails from "./create-dr-protection-group-member-volume-group-details"; export import CreateDrProtectionGroupMemberVolumeGroupDetails = CreateDrProtectionGroupMemberVolumeGroupDetails.CreateDrProtectionGroupMemberVolumeGroupDetails; import * as DisassociateDrProtectionGroupDefaultDetails from "./disassociate-dr-protection-group-default-details"; export import DisassociateDrProtectionGroupDefaultDetails = DisassociateDrProtectionGroupDefaultDetails.DisassociateDrProtectionGroupDefaultDetails; +import * as DrProtectionGroupMemberAutonomousContainerDatabase from "./dr-protection-group-member-autonomous-container-database"; +export import DrProtectionGroupMemberAutonomousContainerDatabase = DrProtectionGroupMemberAutonomousContainerDatabase.DrProtectionGroupMemberAutonomousContainerDatabase; import * as DrProtectionGroupMemberAutonomousDatabase from "./dr-protection-group-member-autonomous-database"; export import DrProtectionGroupMemberAutonomousDatabase = DrProtectionGroupMemberAutonomousDatabase.DrProtectionGroupMemberAutonomousDatabase; import * as DrProtectionGroupMemberComputeInstance from "./dr-protection-group-member-compute-instance"; @@ -246,6 +256,8 @@ import * as DrProtectionGroupMemberLoadBalancer from "./dr-protection-group-memb export import DrProtectionGroupMemberLoadBalancer = DrProtectionGroupMemberLoadBalancer.DrProtectionGroupMemberLoadBalancer; import * as DrProtectionGroupMemberNetworkLoadBalancer from "./dr-protection-group-member-network-load-balancer"; export import DrProtectionGroupMemberNetworkLoadBalancer = DrProtectionGroupMemberNetworkLoadBalancer.DrProtectionGroupMemberNetworkLoadBalancer; +import * as DrProtectionGroupMemberObjectStorageBucket from "./dr-protection-group-member-object-storage-bucket"; +export import DrProtectionGroupMemberObjectStorageBucket = DrProtectionGroupMemberObjectStorageBucket.DrProtectionGroupMemberObjectStorageBucket; import * as DrProtectionGroupMemberVolumeGroup from "./dr-protection-group-member-volume-group"; export import DrProtectionGroupMemberVolumeGroup = DrProtectionGroupMemberVolumeGroup.DrProtectionGroupMemberVolumeGroup; import * as FailoverExecutionOptionDetails from "./failover-execution-option-details"; @@ -296,6 +308,8 @@ import * as SwitchoverPrecheckExecutionOptionDetails from "./switchover-precheck export import SwitchoverPrecheckExecutionOptionDetails = SwitchoverPrecheckExecutionOptionDetails.SwitchoverPrecheckExecutionOptionDetails; import * as SwitchoverPrecheckExecutionOptions from "./switchover-precheck-execution-options"; export import SwitchoverPrecheckExecutionOptions = SwitchoverPrecheckExecutionOptions.SwitchoverPrecheckExecutionOptions; +import * as UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails from "./update-dr-protection-group-member-autonomous-container-database-details"; +export import UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails = UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails; import * as UpdateDrProtectionGroupMemberAutonomousDatabaseDetails from "./update-dr-protection-group-member-autonomous-database-details"; export import UpdateDrProtectionGroupMemberAutonomousDatabaseDetails = UpdateDrProtectionGroupMemberAutonomousDatabaseDetails.UpdateDrProtectionGroupMemberAutonomousDatabaseDetails; import * as UpdateDrProtectionGroupMemberComputeInstanceDetails from "./update-dr-protection-group-member-compute-instance-details"; @@ -312,6 +326,8 @@ import * as UpdateDrProtectionGroupMemberLoadBalancerDetails from "./update-dr-p export import UpdateDrProtectionGroupMemberLoadBalancerDetails = UpdateDrProtectionGroupMemberLoadBalancerDetails.UpdateDrProtectionGroupMemberLoadBalancerDetails; import * as UpdateDrProtectionGroupMemberNetworkLoadBalancerDetails from "./update-dr-protection-group-member-network-load-balancer-details"; export import UpdateDrProtectionGroupMemberNetworkLoadBalancerDetails = UpdateDrProtectionGroupMemberNetworkLoadBalancerDetails.UpdateDrProtectionGroupMemberNetworkLoadBalancerDetails; +import * as UpdateDrProtectionGroupMemberObjectStorageBucketDetails from "./update-dr-protection-group-member-object-storage-bucket-details"; +export import UpdateDrProtectionGroupMemberObjectStorageBucketDetails = UpdateDrProtectionGroupMemberObjectStorageBucketDetails.UpdateDrProtectionGroupMemberObjectStorageBucketDetails; import * as UpdateDrProtectionGroupMemberVolumeGroupDetails from "./update-dr-protection-group-member-volume-group-details"; export import UpdateDrProtectionGroupMemberVolumeGroupDetails = UpdateDrProtectionGroupMemberVolumeGroupDetails.UpdateDrProtectionGroupMemberVolumeGroupDetails; import * as UpdateInvokeFunctionPrecheckStepDetails from "./update-invoke-function-precheck-step-details"; diff --git a/lib/disasterrecovery/lib/model/update-dr-protection-group-member-autonomous-container-database-details.ts b/lib/disasterrecovery/lib/model/update-dr-protection-group-member-autonomous-container-database-details.ts new file mode 100644 index 0000000000..4cd7093b9c --- /dev/null +++ b/lib/disasterrecovery/lib/model/update-dr-protection-group-member-autonomous-container-database-details.ts @@ -0,0 +1,68 @@ +/** + * Full Stack Disaster Recovery API + * Use the Full Stack Disaster Recovery (DR) API to manage disaster recovery for business applications. +Full Stack DR is an OCI disaster recovery orchestration and management service that provides comprehensive disaster +recovery capabilities for all layers of an application stack, including infrastructure, middleware, database, +and application. + + * OpenAPI spec version: 20220125 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Update properties for an Autonomous Container Database member. + */ +export interface UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails + extends model.UpdateDrProtectionGroupMemberDetails { + /** + * The type of connection strings used to connect to an Autonomous Container Database snapshot standby created during a DR Drill operation. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html for information about these service types. + * + */ + "connectionStringType"?: model.AutonomousContainerDatabaseSnapshotStandbyConnectionStringType; + + "memberType": string; +} + +export namespace UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails { + export function getJsonObj( + obj: UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateDrProtectionGroupMemberDetails.getJsonObj( + obj + ) as UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails)), + ...{} + }; + + return jsonObj; + } + export const memberType = "AUTONOMOUS_CONTAINER_DATABASE"; + export function getDeserializedJsonObj( + obj: UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateDrProtectionGroupMemberDetails.getDeserializedJsonObj( + obj + ) as UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/disasterrecovery/lib/model/update-dr-protection-group-member-autonomous-database-details.ts b/lib/disasterrecovery/lib/model/update-dr-protection-group-member-autonomous-database-details.ts index 1f5b1c24d6..4dd2c8e1b7 100644 --- a/lib/disasterrecovery/lib/model/update-dr-protection-group-member-autonomous-database-details.ts +++ b/lib/disasterrecovery/lib/model/update-dr-protection-group-member-autonomous-database-details.ts @@ -23,6 +23,22 @@ import common = require("oci-common"); */ export interface UpdateDrProtectionGroupMemberAutonomousDatabaseDetails extends model.UpdateDrProtectionGroupMemberDetails { + /** + * This specifies the mechanism used to create a temporary Autonomous Database instance for DR Drills. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-clone-about.html for information about these clone types. + * See https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-snapshot-standby.html for information about snapshot standby. + * + */ + "autonomousDatabaseStandbyTypeForDrDrills"?: model.AutonomousDatabaseStandbyTypeForDrDrills; + /** + * The OCID of the vault secret where the database SYSDBA password is stored. +* This password is required and used for performing database DR Drill operations when using full clone. +*

+Example: {@code ocid1.vaultsecret.oc1..uniqueID} +* + */ + "passwordVaultSecretId"?: string; + "memberType": string; } diff --git a/lib/disasterrecovery/lib/model/update-dr-protection-group-member-details.ts b/lib/disasterrecovery/lib/model/update-dr-protection-group-member-details.ts index 1c9f28d989..b26e6e905e 100644 --- a/lib/disasterrecovery/lib/model/update-dr-protection-group-member-details.ts +++ b/lib/disasterrecovery/lib/model/update-dr-protection-group-member-details.ts @@ -69,11 +69,23 @@ export namespace UpdateDrProtectionGroupMemberDetails { (jsonObj), true ); + case "AUTONOMOUS_CONTAINER_DATABASE": + return model.UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.getJsonObj( + ( + (jsonObj) + ), + true + ); case "LOAD_BALANCER": return model.UpdateDrProtectionGroupMemberLoadBalancerDetails.getJsonObj( (jsonObj), true ); + case "OBJECT_STORAGE_BUCKET": + return model.UpdateDrProtectionGroupMemberObjectStorageBucketDetails.getJsonObj( + (jsonObj), + true + ); case "COMPUTE_INSTANCE_MOVABLE": return model.UpdateDrProtectionGroupMemberComputeInstanceMovableDetails.getJsonObj( (jsonObj), @@ -125,11 +137,23 @@ export namespace UpdateDrProtectionGroupMemberDetails { (jsonObj), true ); + case "AUTONOMOUS_CONTAINER_DATABASE": + return model.UpdateDrProtectionGroupMemberAutonomousContainerDatabaseDetails.getDeserializedJsonObj( + ( + (jsonObj) + ), + true + ); case "LOAD_BALANCER": return model.UpdateDrProtectionGroupMemberLoadBalancerDetails.getDeserializedJsonObj( (jsonObj), true ); + case "OBJECT_STORAGE_BUCKET": + return model.UpdateDrProtectionGroupMemberObjectStorageBucketDetails.getDeserializedJsonObj( + (jsonObj), + true + ); case "COMPUTE_INSTANCE_MOVABLE": return model.UpdateDrProtectionGroupMemberComputeInstanceMovableDetails.getDeserializedJsonObj( (jsonObj), diff --git a/lib/disasterrecovery/lib/model/update-dr-protection-group-member-object-storage-bucket-details.ts b/lib/disasterrecovery/lib/model/update-dr-protection-group-member-object-storage-bucket-details.ts new file mode 100644 index 0000000000..ececab6eb2 --- /dev/null +++ b/lib/disasterrecovery/lib/model/update-dr-protection-group-member-object-storage-bucket-details.ts @@ -0,0 +1,76 @@ +/** + * Full Stack Disaster Recovery API + * Use the Full Stack Disaster Recovery (DR) API to manage disaster recovery for business applications. +Full Stack DR is an OCI disaster recovery orchestration and management service that provides comprehensive disaster +recovery capabilities for all layers of an application stack, including infrastructure, middleware, database, +and application. + + * OpenAPI spec version: 20220125 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Update properties for a object storage bucket member. + */ +export interface UpdateDrProtectionGroupMemberObjectStorageBucketDetails + extends model.UpdateDrProtectionGroupMemberDetails { + /** + * The namespace in object storage (Note - this is usually the tenancy name). +*

+Example: {@code myocitenancy} +* + */ + "namespaceName": string; + /** + * The bucket name inside the object storage namespace. +*

+Example: {@code bucket_name} +* + */ + "bucketName": string; + + "memberType": string; +} + +export namespace UpdateDrProtectionGroupMemberObjectStorageBucketDetails { + export function getJsonObj( + obj: UpdateDrProtectionGroupMemberObjectStorageBucketDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateDrProtectionGroupMemberDetails.getJsonObj( + obj + ) as UpdateDrProtectionGroupMemberObjectStorageBucketDetails)), + ...{} + }; + + return jsonObj; + } + export const memberType = "OBJECT_STORAGE_BUCKET"; + export function getDeserializedJsonObj( + obj: UpdateDrProtectionGroupMemberObjectStorageBucketDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.UpdateDrProtectionGroupMemberDetails.getDeserializedJsonObj( + obj + ) as UpdateDrProtectionGroupMemberObjectStorageBucketDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/disasterrecovery/lib/request/list-dr-plan-executions-request.ts b/lib/disasterrecovery/lib/request/list-dr-plan-executions-request.ts index 5209c2d1d2..a481a720be 100644 --- a/lib/disasterrecovery/lib/request/list-dr-plan-executions-request.ts +++ b/lib/disasterrecovery/lib/request/list-dr-plan-executions-request.ts @@ -37,10 +37,6 @@ Example: {@code ocid1.drplanexecution.oc1..uniqueID} * */ "drPlanExecutionId"?: string; - /** - * The DR plan execution type. - */ - "drPlanExecutionType"?: model.DrPlanExecutionType; /** * A filter to return only resources that match the given display name. *

diff --git a/lib/disasterrecovery/package.json b/lib/disasterrecovery/package.json index 4407a4bb18..aab59f48d2 100644 --- a/lib/disasterrecovery/package.json +++ b/lib/disasterrecovery/package.json @@ -1,6 +1,6 @@ { "name": "oci-disasterrecovery", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Disaster Recovery Service", "repository": { "type": "git", diff --git a/lib/dns/package.json b/lib/dns/package.json index 4ef10c2886..b560439a9f 100644 --- a/lib/dns/package.json +++ b/lib/dns/package.json @@ -1,6 +1,6 @@ { "name": "oci-dns", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for DNS", "repository": { "type": "git", diff --git a/lib/dts/package.json b/lib/dts/package.json index 0e69ade68a..5c28b6e390 100644 --- a/lib/dts/package.json +++ b/lib/dts/package.json @@ -1,6 +1,6 @@ { "name": "oci-dts", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Dts Service", "repository": { "type": "git", diff --git a/lib/email/package.json b/lib/email/package.json index cc4ef74870..3626debe9a 100644 --- a/lib/email/package.json +++ b/lib/email/package.json @@ -1,6 +1,6 @@ { "name": "oci-email", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Email", "repository": { "type": "git", diff --git a/lib/emaildataplane/package.json b/lib/emaildataplane/package.json index 99928f0a7f..8262dcd3dd 100644 --- a/lib/emaildataplane/package.json +++ b/lib/emaildataplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-emaildataplane", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Email Data Plane Service", "repository": { "type": "git", diff --git a/lib/emwarehouse/package.json b/lib/emwarehouse/package.json index 106b277e9e..c35fcbcc6f 100644 --- a/lib/emwarehouse/package.json +++ b/lib/emwarehouse/package.json @@ -1,6 +1,6 @@ { "name": "oci-emwarehouse", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Em Warehouse Service", "repository": { "type": "git", diff --git a/lib/events/package.json b/lib/events/package.json index d69607a163..c733d4a067 100644 --- a/lib/events/package.json +++ b/lib/events/package.json @@ -1,6 +1,6 @@ { "name": "oci-events", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Events Service", "repository": { "type": "git", diff --git a/lib/filestorage/package.json b/lib/filestorage/package.json index e436db084d..1f0616b70d 100644 --- a/lib/filestorage/package.json +++ b/lib/filestorage/package.json @@ -1,6 +1,6 @@ { "name": "oci-filestorage", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for File Storage", "repository": { "type": "git", diff --git a/lib/fleetappsmanagement/README.md b/lib/fleetappsmanagement/README.md new file mode 100644 index 0000000000..3dd3c28ffc --- /dev/null +++ b/lib/fleetappsmanagement/README.md @@ -0,0 +1,22 @@ + +# OCI NodeJS client for Fleet Apps Management Service + +This module enables you to write code to manage resources for Fleet Apps Management Service. + +## Requirements + +To use this module, you must have the following: + +- An Oracle Cloud Infrastructure account. +- A user created in that account, in a group with a policy that grants the desired permissions. This can be a user for yourself, or another person/system that needs to call the API. For an example of how to set up a new user, group, compartment, and policy, see [Adding Users](https://docs.cloud.oracle.com/en-us/iaas/Content/GSG/Tasks/addingusers.htm). For a list of typical policies you may want to use, see [Common Policies](https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Concepts/commonpolicies.htm). +- A key pair used for signing API requests, with the public key uploaded to Oracle. Only the user calling the API should be in possession of the private key. For more information, see [Configuring Credentials](https://docs.cloud.oracle.com/en-us/iaas/Content/API/SDKDocs/typescriptsdkgettingstarted.htm#Configure) + +## Installing + +Use the following command to install this module: + +``` +npm install oci-fleetappsmanagement +``` + +Alternatively you can git clone this repo. diff --git a/lib/fleetappsmanagement/index.ts b/lib/fleetappsmanagement/index.ts new file mode 100644 index 0000000000..e2799ad098 --- /dev/null +++ b/lib/fleetappsmanagement/index.ts @@ -0,0 +1,38 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as requests from "./lib/request"; +import * as models from "./lib/model"; +import * as responses from "./lib/response"; +import * as client from "./lib/client"; +import * as fleetappsmanagement_waiter from "./lib/fleetappsmanagement-waiter"; +import * as fleetappsmanagementadmin_waiter from "./lib/fleetappsmanagementadmin-waiter"; +import * as fleetappsmanagementmaintenancewindow_waiter from "./lib/fleetappsmanagementmaintenancewindow-waiter"; +import * as fleetappsmanagementoperations_waiter from "./lib/fleetappsmanagementoperations-waiter"; +import * as fleetappsmanagementrunbooks_waiter from "./lib/fleetappsmanagementrunbooks-waiter"; + +export { models }; +export { requests }; +export { responses }; +export import FleetAppsManagementClient = client.FleetAppsManagementClient; +export import FleetAppsManagementWaiter = fleetappsmanagement_waiter.FleetAppsManagementWaiter; +export import FleetAppsManagementAdminClient = client.FleetAppsManagementAdminClient; +export import FleetAppsManagementAdminWaiter = fleetappsmanagementadmin_waiter.FleetAppsManagementAdminWaiter; +export import FleetAppsManagementMaintenanceWindowClient = client.FleetAppsManagementMaintenanceWindowClient; +export import FleetAppsManagementMaintenanceWindowWaiter = fleetappsmanagementmaintenancewindow_waiter.FleetAppsManagementMaintenanceWindowWaiter; +export import FleetAppsManagementOperationsClient = client.FleetAppsManagementOperationsClient; +export import FleetAppsManagementOperationsWaiter = fleetappsmanagementoperations_waiter.FleetAppsManagementOperationsWaiter; +export import FleetAppsManagementRunbooksClient = client.FleetAppsManagementRunbooksClient; +export import FleetAppsManagementRunbooksWaiter = fleetappsmanagementrunbooks_waiter.FleetAppsManagementRunbooksWaiter; diff --git a/lib/fleetappsmanagement/lib/client.ts b/lib/fleetappsmanagement/lib/client.ts new file mode 100644 index 0000000000..7d16658dd7 --- /dev/null +++ b/lib/fleetappsmanagement/lib/client.ts @@ -0,0 +1,6336 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import common = require("oci-common"); +import * as requests from "./request"; +import * as model from "./model"; +import * as responses from "./response"; +import { FleetAppsManagementWaiter } from "./fleetappsmanagement-waiter"; +import { FleetAppsManagementAdminWaiter } from "./fleetappsmanagementadmin-waiter"; +import { FleetAppsManagementMaintenanceWindowWaiter } from "./fleetappsmanagementmaintenancewindow-waiter"; +import { FleetAppsManagementOperationsWaiter } from "./fleetappsmanagementoperations-waiter"; +import { FleetAppsManagementRunbooksWaiter } from "./fleetappsmanagementrunbooks-waiter"; +import { + composeResponse, + composeRequest, + GenericRetrier, + developerToolConfiguration +} from "oci-common"; +const Breaker = require("opossum"); + +// =============================================== +// This file is autogenerated - Please do not edit +// =============================================== + +export enum FleetAppsManagementApiKeys {} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export class FleetAppsManagementClient { + protected static serviceEndpointTemplate = "https://fams.{region}.oci.{secondLevelDomain}"; + protected static endpointServiceName = ""; + protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined; + protected "_endpoint": string = ""; + protected "_defaultHeaders": any = {}; + protected "_waiters": FleetAppsManagementWaiter; + protected "_clientConfiguration": common.ClientConfiguration; + protected _circuitBreaker: typeof Breaker | null = null; + protected _httpOptions: any = undefined; + protected _bodyDuplexMode: any = undefined; + public targetService = "FleetAppsManagement"; + protected _regionId: string = ""; + protected "_region": common.Region; + protected _lastSetRegionOrRegionId: string = ""; + + protected _httpClient: common.HttpClient; + + constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) { + const requestSigner = params.authenticationDetailsProvider + ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) + : null; + if (clientConfiguration) { + this._clientConfiguration = clientConfiguration; + this._circuitBreaker = clientConfiguration.circuitBreaker + ? clientConfiguration.circuitBreaker!.circuit + : null; + this._httpOptions = clientConfiguration.httpOptions + ? clientConfiguration.httpOptions + : undefined; + this._bodyDuplexMode = clientConfiguration.bodyDuplexMode + ? clientConfiguration.bodyDuplexMode + : undefined; + } + + if (!developerToolConfiguration.isServiceEnabled("fleetappsmanagement")) { + let errmsg = + "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : "; + throw errmsg.concat("fleetappsmanagement"); + } + + // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker + const specCircuitBreakerEnabled = true; + if ( + !this._circuitBreaker && + common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && + (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden) + ) { + this._circuitBreaker = new common.CircuitBreaker().circuit; + } + this._httpClient = + params.httpClient || + new common.FetchHttpClient( + requestSigner, + this._circuitBreaker, + this._httpOptions, + this._bodyDuplexMode + ); + + if ( + params.authenticationDetailsProvider && + common.isRegionProvider(params.authenticationDetailsProvider) + ) { + const provider: common.RegionProvider = params.authenticationDetailsProvider; + if (provider.getRegion()) { + this.region = provider.getRegion(); + } + } + } + + /** + * Get the endpoint that is being used to call (ex, https://www.example.com). + */ + public get endpoint() { + return this._endpoint; + } + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + public set endpoint(endpoint: string) { + this._endpoint = endpoint; + this._endpoint = this._endpoint + "/20230831"; + if (this.logger) + this.logger.info(`FleetAppsManagementClient endpoint set to ${this._endpoint}`); + } + + public get logger() { + return common.LOG.logger; + } + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) { + this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled; + if (this.logger) + this.logger.info( + `realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}` + ); + if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementClient.serviceEndpointTemplate, + this._region, + FleetAppsManagementClient.endpointServiceName + ); + } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementClient.serviceEndpointTemplate, + this._regionId, + FleetAppsManagementClient.endpointServiceName + ); + } + } + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. + * @param region The region of the service. + */ + public set region(region: common.Region) { + this._region = region; + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementClient.serviceEndpointTemplate, + region, + FleetAppsManagementClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_STRING; + } + + /** + * Sets the regionId to call (ex, 'us-phoenix-1'). + * + * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. + * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 + * and then call {@link #endpoint(String) endpoint}. + * @param regionId The public region ID. + */ + public set regionId(regionId: string) { + this._regionId = regionId; + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementClient.serviceEndpointTemplate, + regionId, + FleetAppsManagementClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING; + } + + /** + * Creates a new FleetAppsManagementWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + public createWaiters(config?: common.WaiterConfiguration): FleetAppsManagementWaiter { + this._waiters = new FleetAppsManagementWaiter(this, config); + return this._waiters; + } + + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + public getWaiters(): FleetAppsManagementWaiter { + if (this._waiters) { + return this._waiters; + } + throw Error("Waiters do not exist. Please create waiters."); + } + + /** + * Shutdown the circuit breaker used by the client when it is no longer needed + */ + public shutdownCircuitBreaker() { + if (this._circuitBreaker) { + this._circuitBreaker.shutdown(); + } + } + + /** + * Close the client once it is no longer needed + */ + public close() { + this.shutdownCircuitBreaker(); + } + + /** + * Check if FAMS tags can be added for the resources + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CheckResourceTaggingRequest + * @return CheckResourceTaggingResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CheckResourceTagging.ts.html |here} to see how to use CheckResourceTagging API. + */ + public async checkResourceTagging( + checkResourceTaggingRequest: requests.CheckResourceTaggingRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#checkResourceTagging."); + const operationName = "checkResourceTagging"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": checkResourceTaggingRequest.opcRetryToken, + "opc-request-id": checkResourceTaggingRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + checkResourceTaggingRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/actions/checkResourceTagging", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + checkResourceTaggingRequest.checkResourceTaggingDetails, + "CheckResourceTaggingDetails", + model.CheckResourceTaggingDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "resourceTagCheckDetails", + bodyModel: model.ResourceTagCheckDetails, + type: "model.ResourceTagCheckDetails", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by FAMS + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ConfirmTargetsRequest + * @return ConfirmTargetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ConfirmTargets.ts.html |here} to see how to use ConfirmTargets API. + */ + public async confirmTargets( + confirmTargetsRequest: requests.ConfirmTargetsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#confirmTargets."); + const operationName = "confirmTargets"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": confirmTargetsRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": confirmTargetsRequest.opcRetryToken, + "opc-request-id": confirmTargetsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + confirmTargetsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/actions/confirmTargets", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + confirmTargetsRequest.confirmTargetsDetails, + "ConfirmTargetsDetails", + model.ConfirmTargetsDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Creates a new fleet instance that includes fleet resources and properties. + * For more information, please see the documentation. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CreateFleetRequest + * @return CreateFleetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateFleet.ts.html |here} to see how to use CreateFleet API. + */ + public async createFleet( + createFleetRequest: requests.CreateFleetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FleetAppsManagementClient#createFleet."); + const operationName = "createFleet"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createFleetRequest.opcRetryToken, + "opc-request-id": createFleetRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + createFleetRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createFleetRequest.createFleetDetails, + "CreateFleetDetails", + model.CreateFleetDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleet", + bodyModel: model.Fleet, + type: "model.Fleet", + responseHeaders: [ + { + value: response.headers.get("location"), + key: "location", + dataType: "string" + }, + { + value: response.headers.get("content-location"), + key: "contentLocation", + dataType: "string" + }, + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Creates a new FleetCredential. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CreateFleetCredentialRequest + * @return CreateFleetCredentialResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateFleetCredential.ts.html |here} to see how to use CreateFleetCredential API. + */ + public async createFleetCredential( + createFleetCredentialRequest: requests.CreateFleetCredentialRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#createFleetCredential."); + const operationName = "createFleetCredential"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": createFleetCredentialRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createFleetCredentialRequest.opcRetryToken, + "opc-request-id": createFleetCredentialRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + createFleetCredentialRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetCredentials", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createFleetCredentialRequest.createFleetCredentialDetails, + "CreateFleetCredentialDetails", + model.CreateFleetCredentialDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetCredential", + bodyModel: model.FleetCredential, + type: "model.FleetCredential", + responseHeaders: [ + { + value: response.headers.get("location"), + key: "location", + dataType: "string" + }, + { + value: response.headers.get("content-location"), + key: "contentLocation", + dataType: "string" + }, + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Creates a new FleetProperty. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CreateFleetPropertyRequest + * @return CreateFleetPropertyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateFleetProperty.ts.html |here} to see how to use CreateFleetProperty API. + */ + public async createFleetProperty( + createFleetPropertyRequest: requests.CreateFleetPropertyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#createFleetProperty."); + const operationName = "createFleetProperty"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": createFleetPropertyRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createFleetPropertyRequest.opcRetryToken, + "opc-request-id": createFleetPropertyRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + createFleetPropertyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetProperties", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createFleetPropertyRequest.createFleetPropertyDetails, + "CreateFleetPropertyDetails", + model.CreateFleetPropertyDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetProperty", + bodyModel: model.FleetProperty, + type: "model.FleetProperty", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Creates a new FleetResource. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CreateFleetResourceRequest + * @return CreateFleetResourceResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateFleetResource.ts.html |here} to see how to use CreateFleetResource API. + */ + public async createFleetResource( + createFleetResourceRequest: requests.CreateFleetResourceRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#createFleetResource."); + const operationName = "createFleetResource"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": createFleetResourceRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createFleetResourceRequest.opcRetryToken, + "opc-request-id": createFleetResourceRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + createFleetResourceRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetResources", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createFleetResourceRequest.createFleetResourceDetails, + "CreateFleetResourceDetails", + model.CreateFleetResourceDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetResource", + bodyModel: model.FleetResource, + type: "model.FleetResource", + responseHeaders: [ + { + value: response.headers.get("location"), + key: "location", + dataType: "string" + }, + { + value: response.headers.get("content-location"), + key: "contentLocation", + dataType: "string" + }, + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Deletes a Fleet resource by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeleteFleetRequest + * @return DeleteFleetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteFleet.ts.html |here} to see how to use DeleteFleet API. + */ + public async deleteFleet( + deleteFleetRequest: requests.DeleteFleetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FleetAppsManagementClient#deleteFleet."); + const operationName = "deleteFleet"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": deleteFleetRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deleteFleetRequest.ifMatch, + "opc-request-id": deleteFleetRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deleteFleetRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Deletes a FleetCredential resource by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeleteFleetCredentialRequest + * @return DeleteFleetCredentialResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteFleetCredential.ts.html |here} to see how to use DeleteFleetCredential API. + */ + public async deleteFleetCredential( + deleteFleetCredentialRequest: requests.DeleteFleetCredentialRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#deleteFleetCredential."); + const operationName = "deleteFleetCredential"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetCredentialId}": deleteFleetCredentialRequest.fleetCredentialId, + "{fleetId}": deleteFleetCredentialRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deleteFleetCredentialRequest.ifMatch, + "opc-request-id": deleteFleetCredentialRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deleteFleetCredentialRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetCredentials/{fleetCredentialId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Deletes a FleetProperty resource by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeleteFleetPropertyRequest + * @return DeleteFleetPropertyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteFleetProperty.ts.html |here} to see how to use DeleteFleetProperty API. + */ + public async deleteFleetProperty( + deleteFleetPropertyRequest: requests.DeleteFleetPropertyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#deleteFleetProperty."); + const operationName = "deleteFleetProperty"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetPropertyId}": deleteFleetPropertyRequest.fleetPropertyId, + "{fleetId}": deleteFleetPropertyRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deleteFleetPropertyRequest.ifMatch, + "opc-request-id": deleteFleetPropertyRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deleteFleetPropertyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetProperties/{fleetPropertyId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Deletes a FleetResource resource by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeleteFleetResourceRequest + * @return DeleteFleetResourceResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteFleetResource.ts.html |here} to see how to use DeleteFleetResource API. + */ + public async deleteFleetResource( + deleteFleetResourceRequest: requests.DeleteFleetResourceRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#deleteFleetResource."); + const operationName = "deleteFleetResource"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetResourceId}": deleteFleetResourceRequest.fleetResourceId, + "{fleetId}": deleteFleetResourceRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deleteFleetResourceRequest.ifMatch, + "opc-request-id": deleteFleetResourceRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deleteFleetResourceRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetResources/{fleetResourceId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Request to generate compliance report for a Fleet + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GenerateComplianceReportRequest + * @return GenerateComplianceReportResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GenerateComplianceReport.ts.html |here} to see how to use GenerateComplianceReport API. + */ + public async generateComplianceReport( + generateComplianceReportRequest: requests.GenerateComplianceReportRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#generateComplianceReport."); + const operationName = "generateComplianceReport"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": generateComplianceReportRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": generateComplianceReportRequest.opcRetryToken, + "opc-request-id": generateComplianceReportRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + generateComplianceReportRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/actions/generateComplianceReport", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + generateComplianceReportRequest.generateComplianceReportDetails, + "GenerateComplianceReportDetails", + model.GenerateComplianceReportDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Retrieve compiane report for a Fleet + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetComplianceReportRequest + * @return GetComplianceReportResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetComplianceReport.ts.html |here} to see how to use GetComplianceReport API. + */ + public async getComplianceReport( + getComplianceReportRequest: requests.GetComplianceReportRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#getComplianceReport."); + const operationName = "getComplianceReport"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": getComplianceReportRequest.fleetId, + "{complianceReportId}": getComplianceReportRequest.complianceReportId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getComplianceReportRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getComplianceReportRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/complianceReports/{complianceReportId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "complianceReport", + bodyModel: model.ComplianceReport, + type: "model.ComplianceReport", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a Fleet by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetFleetRequest + * @return GetFleetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetFleet.ts.html |here} to see how to use GetFleet API. + */ + public async getFleet( + getFleetRequest: requests.GetFleetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FleetAppsManagementClient#getFleet."); + const operationName = "getFleet"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": getFleetRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getFleetRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getFleetRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleet", + bodyModel: model.Fleet, + type: "model.Fleet", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a FleetCredential by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetFleetCredentialRequest + * @return GetFleetCredentialResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetFleetCredential.ts.html |here} to see how to use GetFleetCredential API. + */ + public async getFleetCredential( + getFleetCredentialRequest: requests.GetFleetCredentialRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#getFleetCredential."); + const operationName = "getFleetCredential"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetCredentialId}": getFleetCredentialRequest.fleetCredentialId, + "{fleetId}": getFleetCredentialRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getFleetCredentialRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getFleetCredentialRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetCredentials/{fleetCredentialId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetCredential", + bodyModel: model.FleetCredential, + type: "model.FleetCredential", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a FleetProperty by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetFleetPropertyRequest + * @return GetFleetPropertyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetFleetProperty.ts.html |here} to see how to use GetFleetProperty API. + */ + public async getFleetProperty( + getFleetPropertyRequest: requests.GetFleetPropertyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#getFleetProperty."); + const operationName = "getFleetProperty"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetPropertyId}": getFleetPropertyRequest.fleetPropertyId, + "{fleetId}": getFleetPropertyRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getFleetPropertyRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getFleetPropertyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetProperties/{fleetPropertyId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetProperty", + bodyModel: model.FleetProperty, + type: "model.FleetProperty", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a FleetResource by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetFleetResourceRequest + * @return GetFleetResourceResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetFleetResource.ts.html |here} to see how to use GetFleetResource API. + */ + public async getFleetResource( + getFleetResourceRequest: requests.GetFleetResourceRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#getFleetResource."); + const operationName = "getFleetResource"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetResourceId}": getFleetResourceRequest.fleetResourceId, + "{fleetId}": getFleetResourceRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getFleetResourceRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getFleetResourceRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetResources/{fleetResourceId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetResource", + bodyModel: model.FleetResource, + type: "model.FleetResource", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets details of the work request with the given ID. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetWorkRequestRequest + * @return GetWorkRequestResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API. + */ + public async getWorkRequest( + getWorkRequestRequest: requests.GetWorkRequestRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#getWorkRequest."); + const operationName = "getWorkRequest"; + const apiReferenceLink = ""; + const pathParams = { + "{workRequestId}": getWorkRequestRequest.workRequestId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getWorkRequestRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getWorkRequestRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workRequests/{workRequestId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "workRequest", + bodyModel: model.WorkRequest, + type: "model.WorkRequest", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("retry-after"), + key: "retryAfter", + dataType: "number" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Return a list of AnnouncementSummary items + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListAnnouncementsRequest + * @return ListAnnouncementsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListAnnouncements.ts.html |here} to see how to use ListAnnouncements API. + */ + public async listAnnouncements( + listAnnouncementsRequest: requests.ListAnnouncementsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#listAnnouncements."); + const operationName = "listAnnouncements"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "summaryContains": listAnnouncementsRequest.summaryContains, + "displayName": listAnnouncementsRequest.displayName, + "limit": listAnnouncementsRequest.limit, + "page": listAnnouncementsRequest.page, + "sortOrder": listAnnouncementsRequest.sortOrder, + "sortBy": listAnnouncementsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listAnnouncementsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listAnnouncementsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/announcements", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "announcementCollection", + bodyModel: model.AnnouncementCollection, + type: "model.AnnouncementCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of FleetCredentials. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListFleetCredentialsRequest + * @return ListFleetCredentialsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleetCredentials.ts.html |here} to see how to use ListFleetCredentials API. + */ + public async listFleetCredentials( + listFleetCredentialsRequest: requests.ListFleetCredentialsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#listFleetCredentials."); + const operationName = "listFleetCredentials"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": listFleetCredentialsRequest.fleetId + }; + + const queryParams = { + "compartmentId": listFleetCredentialsRequest.compartmentId, + "lifecycleState": listFleetCredentialsRequest.lifecycleState, + "displayName": listFleetCredentialsRequest.displayName, + "credentialLevel": listFleetCredentialsRequest.credentialLevel, + "id": listFleetCredentialsRequest.id, + "limit": listFleetCredentialsRequest.limit, + "page": listFleetCredentialsRequest.page, + "sortOrder": listFleetCredentialsRequest.sortOrder, + "sortBy": listFleetCredentialsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listFleetCredentialsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listFleetCredentialsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetCredentials", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetCredentialCollection", + bodyModel: model.FleetCredentialCollection, + type: "model.FleetCredentialCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of FleetProducts. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListFleetProductsRequest + * @return ListFleetProductsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleetProducts.ts.html |here} to see how to use ListFleetProducts API. + */ + public async listFleetProducts( + listFleetProductsRequest: requests.ListFleetProductsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#listFleetProducts."); + const operationName = "listFleetProducts"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": listFleetProductsRequest.fleetId + }; + + const queryParams = { + "compartmentId": listFleetProductsRequest.compartmentId, + "resourceId": listFleetProductsRequest.resourceId, + "resourceDisplayName": listFleetProductsRequest.resourceDisplayName, + "displayName": listFleetProductsRequest.displayName, + "limit": listFleetProductsRequest.limit, + "page": listFleetProductsRequest.page, + "sortOrder": listFleetProductsRequest.sortOrder, + "sortBy": listFleetProductsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listFleetProductsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listFleetProductsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetProducts", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetProductCollection", + bodyModel: model.FleetProductCollection, + type: "model.FleetProductCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of FleetProperties. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListFleetPropertiesRequest + * @return ListFleetPropertiesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleetProperties.ts.html |here} to see how to use ListFleetProperties API. + */ + public async listFleetProperties( + listFleetPropertiesRequest: requests.ListFleetPropertiesRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#listFleetProperties."); + const operationName = "listFleetProperties"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": listFleetPropertiesRequest.fleetId + }; + + const queryParams = { + "compartmentId": listFleetPropertiesRequest.compartmentId, + "lifecycleState": listFleetPropertiesRequest.lifecycleState, + "displayName": listFleetPropertiesRequest.displayName, + "id": listFleetPropertiesRequest.id, + "limit": listFleetPropertiesRequest.limit, + "page": listFleetPropertiesRequest.page, + "sortOrder": listFleetPropertiesRequest.sortOrder, + "sortBy": listFleetPropertiesRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listFleetPropertiesRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listFleetPropertiesRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetProperties", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetPropertyCollection", + bodyModel: model.FleetPropertyCollection, + type: "model.FleetPropertyCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of FleetResources. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListFleetResourcesRequest + * @return ListFleetResourcesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleetResources.ts.html |here} to see how to use ListFleetResources API. + */ + public async listFleetResources( + listFleetResourcesRequest: requests.ListFleetResourcesRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#listFleetResources."); + const operationName = "listFleetResources"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": listFleetResourcesRequest.fleetId + }; + + const queryParams = { + "tenancyId": listFleetResourcesRequest.tenancyId, + "lifecycleState": listFleetResourcesRequest.lifecycleState, + "displayName": listFleetResourcesRequest.displayName, + "id": listFleetResourcesRequest.id, + "fleetResourceType": listFleetResourcesRequest.fleetResourceType, + "limit": listFleetResourcesRequest.limit, + "page": listFleetResourcesRequest.page, + "sortOrder": listFleetResourcesRequest.sortOrder, + "sortBy": listFleetResourcesRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listFleetResourcesRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listFleetResourcesRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetResources", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetResourceCollection", + bodyModel: model.FleetResourceCollection, + type: "model.FleetResourceCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of FleetTargets. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListFleetTargetsRequest + * @return ListFleetTargetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleetTargets.ts.html |here} to see how to use ListFleetTargets API. + */ + public async listFleetTargets( + listFleetTargetsRequest: requests.ListFleetTargetsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#listFleetTargets."); + const operationName = "listFleetTargets"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": listFleetTargetsRequest.fleetId + }; + + const queryParams = { + "displayName": listFleetTargetsRequest.displayName, + "product": listFleetTargetsRequest.product, + "resourceId": listFleetTargetsRequest.resourceId, + "resourceDisplayName": listFleetTargetsRequest.resourceDisplayName, + "limit": listFleetTargetsRequest.limit, + "page": listFleetTargetsRequest.page, + "sortOrder": listFleetTargetsRequest.sortOrder, + "sortBy": listFleetTargetsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listFleetTargetsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listFleetTargetsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetTargets", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetTargetCollection", + bodyModel: model.FleetTargetCollection, + type: "model.FleetTargetCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of Fleets in the specified Tenancy. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListFleetsRequest + * @return ListFleetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleets.ts.html |here} to see how to use ListFleets API. + */ + public async listFleets( + listFleetsRequest: requests.ListFleetsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FleetAppsManagementClient#listFleets."); + const operationName = "listFleets"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "lifecycleState": listFleetsRequest.lifecycleState, + "compartmentId": listFleetsRequest.compartmentId, + "fleetType": listFleetsRequest.fleetType, + "applicationType": listFleetsRequest.applicationType, + "product": listFleetsRequest.product, + "environmentType": listFleetsRequest.environmentType, + "displayName": listFleetsRequest.displayName, + "id": listFleetsRequest.id, + "limit": listFleetsRequest.limit, + "page": listFleetsRequest.page, + "sortOrder": listFleetsRequest.sortOrder, + "sortBy": listFleetsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listFleetsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listFleetsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetCollection", + bodyModel: model.FleetCollection, + type: "model.FleetCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of InventoryResources. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListInventoryResourcesRequest + * @return ListInventoryResourcesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListInventoryResources.ts.html |here} to see how to use ListInventoryResources API. + */ + public async listInventoryResources( + listInventoryResourcesRequest: requests.ListInventoryResourcesRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#listInventoryResources."); + const operationName = "listInventoryResources"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listInventoryResourcesRequest.compartmentId, + "lifecycleState": listInventoryResourcesRequest.lifecycleState, + "displayName": listInventoryResourcesRequest.displayName, + "resourceRegion": listInventoryResourcesRequest.resourceRegion, + "resourceCompartmentId": listInventoryResourcesRequest.resourceCompartmentId, + "definedTagEquals": listInventoryResourcesRequest.definedTagEquals, + "freeformTagEquals": listInventoryResourcesRequest.freeformTagEquals, + "inventoryProperties": listInventoryResourcesRequest.inventoryProperties, + "matchingCriteria": listInventoryResourcesRequest.matchingCriteria, + "limit": listInventoryResourcesRequest.limit, + "page": listInventoryResourcesRequest.page, + "sortOrder": listInventoryResourcesRequest.sortOrder, + "sortBy": listInventoryResourcesRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listInventoryResourcesRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listInventoryResourcesRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/inventoryResources", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "inventoryResourceCollection", + bodyModel: model.InventoryResourceCollection, + type: "model.InventoryResourceCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of FleetTargets. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListTargetsRequest + * @return ListTargetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListTargets.ts.html |here} to see how to use ListTargets API. + */ + public async listTargets( + listTargetsRequest: requests.ListTargetsRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FleetAppsManagementClient#listTargets."); + const operationName = "listTargets"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": listTargetsRequest.fleetId + }; + + const queryParams = { + "displayName": listTargetsRequest.displayName, + "limit": listTargetsRequest.limit, + "page": listTargetsRequest.page, + "sortOrder": listTargetsRequest.sortOrder, + "sortBy": listTargetsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listTargetsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listTargetsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/targets", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetTargetCollection", + bodyModel: model.FleetTargetCollection, + type: "model.FleetTargetCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a (paginated) list of errors for the work request with the given ID. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListWorkRequestErrorsRequest + * @return ListWorkRequestErrorsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API. + */ + public async listWorkRequestErrors( + listWorkRequestErrorsRequest: requests.ListWorkRequestErrorsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#listWorkRequestErrors."); + const operationName = "listWorkRequestErrors"; + const apiReferenceLink = ""; + const pathParams = { + "{workRequestId}": listWorkRequestErrorsRequest.workRequestId + }; + + const queryParams = { + "page": listWorkRequestErrorsRequest.page, + "limit": listWorkRequestErrorsRequest.limit, + "sortBy": listWorkRequestErrorsRequest.sortBy, + "sortOrder": listWorkRequestErrorsRequest.sortOrder + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listWorkRequestErrorsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listWorkRequestErrorsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workRequests/{workRequestId}/errors", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "workRequestErrorCollection", + bodyModel: model.WorkRequestErrorCollection, + type: "model.WorkRequestErrorCollection", + responseHeaders: [ + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a (paginated) list of logs for the work request with the given ID. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListWorkRequestLogsRequest + * @return ListWorkRequestLogsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API. + */ + public async listWorkRequestLogs( + listWorkRequestLogsRequest: requests.ListWorkRequestLogsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#listWorkRequestLogs."); + const operationName = "listWorkRequestLogs"; + const apiReferenceLink = ""; + const pathParams = { + "{workRequestId}": listWorkRequestLogsRequest.workRequestId + }; + + const queryParams = { + "page": listWorkRequestLogsRequest.page, + "limit": listWorkRequestLogsRequest.limit, + "sortBy": listWorkRequestLogsRequest.sortBy, + "sortOrder": listWorkRequestLogsRequest.sortOrder + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listWorkRequestLogsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listWorkRequestLogsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workRequests/{workRequestId}/logs", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "workRequestLogEntryCollection", + bodyModel: model.WorkRequestLogEntryCollection, + type: "model.WorkRequestLogEntryCollection", + responseHeaders: [ + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Lists the work requests in a compartment. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListWorkRequestsRequest + * @return ListWorkRequestsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API. + */ + public async listWorkRequests( + listWorkRequestsRequest: requests.ListWorkRequestsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#listWorkRequests."); + const operationName = "listWorkRequests"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listWorkRequestsRequest.compartmentId, + "workRequestId": listWorkRequestsRequest.workRequestId, + "status": listWorkRequestsRequest.status, + "resourceId": listWorkRequestsRequest.resourceId, + "page": listWorkRequestsRequest.page, + "limit": listWorkRequestsRequest.limit, + "sortOrder": listWorkRequestsRequest.sortOrder, + "sortBy": listWorkRequestsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listWorkRequestsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listWorkRequestsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/workRequests", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "workRequestSummaryCollection", + bodyModel: model.WorkRequestSummaryCollection, + type: "model.WorkRequestSummaryCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Request validation for resources with in a fleet + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param RequestResourceValidationRequest + * @return RequestResourceValidationResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/RequestResourceValidation.ts.html |here} to see how to use RequestResourceValidation API. + */ + public async requestResourceValidation( + requestResourceValidationRequest: requests.RequestResourceValidationRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#requestResourceValidation."); + const operationName = "requestResourceValidation"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": requestResourceValidationRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": requestResourceValidationRequest.opcRetryToken, + "opc-request-id": requestResourceValidationRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + requestResourceValidationRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/actions/requestResourceValidation", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + requestResourceValidationRequest.requestResourceValidationDetails, + "RequestResourceValidationDetails", + model.RequestResourceValidationDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Confirm targets to be managed for a Fleet.Only targets that are confirmed will be managed by FAMS + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param RequestTargetDiscoveryRequest + * @return RequestTargetDiscoveryResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/RequestTargetDiscovery.ts.html |here} to see how to use RequestTargetDiscovery API. + */ + public async requestTargetDiscovery( + requestTargetDiscoveryRequest: requests.RequestTargetDiscoveryRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#requestTargetDiscovery."); + const operationName = "requestTargetDiscovery"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": requestTargetDiscoveryRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": requestTargetDiscoveryRequest.opcRetryToken, + "opc-request-id": requestTargetDiscoveryRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + requestTargetDiscoveryRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/actions/requestTargetDiscovery", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + requestTargetDiscoveryRequest.requestTargetDiscoveryDetails, + "RequestTargetDiscoveryDetails", + model.RequestTargetDiscoveryDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the Fleet + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateFleetRequest + * @return UpdateFleetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateFleet.ts.html |here} to see how to use UpdateFleet API. + */ + public async updateFleet( + updateFleetRequest: requests.UpdateFleetRequest + ): Promise { + if (this.logger) this.logger.debug("Calling operation FleetAppsManagementClient#updateFleet."); + const operationName = "updateFleet"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetId}": updateFleetRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateFleetRequest.ifMatch, + "opc-request-id": updateFleetRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateFleetRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateFleetRequest.updateFleetDetails, + "UpdateFleetDetails", + model.UpdateFleetDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleet", + bodyModel: model.Fleet, + type: "model.Fleet", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the FleetCredential + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateFleetCredentialRequest + * @return UpdateFleetCredentialResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateFleetCredential.ts.html |here} to see how to use UpdateFleetCredential API. + */ + public async updateFleetCredential( + updateFleetCredentialRequest: requests.UpdateFleetCredentialRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#updateFleetCredential."); + const operationName = "updateFleetCredential"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetCredentialId}": updateFleetCredentialRequest.fleetCredentialId, + "{fleetId}": updateFleetCredentialRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateFleetCredentialRequest.ifMatch, + "opc-request-id": updateFleetCredentialRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateFleetCredentialRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetCredentials/{fleetCredentialId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateFleetCredentialRequest.updateFleetCredentialDetails, + "UpdateFleetCredentialDetails", + model.UpdateFleetCredentialDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the FleetProperty + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateFleetPropertyRequest + * @return UpdateFleetPropertyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateFleetProperty.ts.html |here} to see how to use UpdateFleetProperty API. + */ + public async updateFleetProperty( + updateFleetPropertyRequest: requests.UpdateFleetPropertyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#updateFleetProperty."); + const operationName = "updateFleetProperty"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetPropertyId}": updateFleetPropertyRequest.fleetPropertyId, + "{fleetId}": updateFleetPropertyRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateFleetPropertyRequest.ifMatch, + "opc-request-id": updateFleetPropertyRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateFleetPropertyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetProperties/{fleetPropertyId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateFleetPropertyRequest.updateFleetPropertyDetails, + "UpdateFleetPropertyDetails", + model.UpdateFleetPropertyDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "fleetProperty", + bodyModel: model.FleetProperty, + type: "model.FleetProperty", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the FleetResource + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateFleetResourceRequest + * @return UpdateFleetResourceResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateFleetResource.ts.html |here} to see how to use UpdateFleetResource API. + */ + public async updateFleetResource( + updateFleetResourceRequest: requests.UpdateFleetResourceRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementClient#updateFleetResource."); + const operationName = "updateFleetResource"; + const apiReferenceLink = ""; + const pathParams = { + "{fleetResourceId}": updateFleetResourceRequest.fleetResourceId, + "{fleetId}": updateFleetResourceRequest.fleetId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateFleetResourceRequest.ifMatch, + "opc-request-id": updateFleetResourceRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateFleetResourceRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/fleets/{fleetId}/fleetResources/{fleetResourceId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateFleetResourceRequest.updateFleetResourceDetails, + "UpdateFleetResourceDetails", + model.UpdateFleetResourceDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } +} +export enum FleetAppsManagementAdminApiKeys {} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export class FleetAppsManagementAdminClient { + protected static serviceEndpointTemplate = "https://fams.{region}.oci.{secondLevelDomain}"; + protected static endpointServiceName = ""; + protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined; + protected "_endpoint": string = ""; + protected "_defaultHeaders": any = {}; + protected "_waiters": FleetAppsManagementAdminWaiter; + protected "_clientConfiguration": common.ClientConfiguration; + protected _circuitBreaker: typeof Breaker | null = null; + protected _httpOptions: any = undefined; + protected _bodyDuplexMode: any = undefined; + public targetService = "FleetAppsManagementAdmin"; + protected _regionId: string = ""; + protected "_region": common.Region; + protected _lastSetRegionOrRegionId: string = ""; + + protected _httpClient: common.HttpClient; + + constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) { + const requestSigner = params.authenticationDetailsProvider + ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) + : null; + if (clientConfiguration) { + this._clientConfiguration = clientConfiguration; + this._circuitBreaker = clientConfiguration.circuitBreaker + ? clientConfiguration.circuitBreaker!.circuit + : null; + this._httpOptions = clientConfiguration.httpOptions + ? clientConfiguration.httpOptions + : undefined; + this._bodyDuplexMode = clientConfiguration.bodyDuplexMode + ? clientConfiguration.bodyDuplexMode + : undefined; + } + + if (!developerToolConfiguration.isServiceEnabled("fleetappsmanagement")) { + let errmsg = + "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : "; + throw errmsg.concat("fleetappsmanagement"); + } + + // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker + const specCircuitBreakerEnabled = true; + if ( + !this._circuitBreaker && + common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && + (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden) + ) { + this._circuitBreaker = new common.CircuitBreaker().circuit; + } + this._httpClient = + params.httpClient || + new common.FetchHttpClient( + requestSigner, + this._circuitBreaker, + this._httpOptions, + this._bodyDuplexMode + ); + + if ( + params.authenticationDetailsProvider && + common.isRegionProvider(params.authenticationDetailsProvider) + ) { + const provider: common.RegionProvider = params.authenticationDetailsProvider; + if (provider.getRegion()) { + this.region = provider.getRegion(); + } + } + } + + /** + * Get the endpoint that is being used to call (ex, https://www.example.com). + */ + public get endpoint() { + return this._endpoint; + } + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + public set endpoint(endpoint: string) { + this._endpoint = endpoint; + this._endpoint = this._endpoint + "/20230831"; + if (this.logger) + this.logger.info(`FleetAppsManagementAdminClient endpoint set to ${this._endpoint}`); + } + + public get logger() { + return common.LOG.logger; + } + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) { + this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled; + if (this.logger) + this.logger.info( + `realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}` + ); + if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementAdminClient.serviceEndpointTemplate, + this._region, + FleetAppsManagementAdminClient.endpointServiceName + ); + } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementAdminClient.serviceEndpointTemplate, + this._regionId, + FleetAppsManagementAdminClient.endpointServiceName + ); + } + } + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. + * @param region The region of the service. + */ + public set region(region: common.Region) { + this._region = region; + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementAdminClient.serviceEndpointTemplate, + region, + FleetAppsManagementAdminClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_STRING; + } + + /** + * Sets the regionId to call (ex, 'us-phoenix-1'). + * + * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. + * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 + * and then call {@link #endpoint(String) endpoint}. + * @param regionId The public region ID. + */ + public set regionId(regionId: string) { + this._regionId = regionId; + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementAdminClient.serviceEndpointTemplate, + regionId, + FleetAppsManagementAdminClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING; + } + + /** + * Creates a new FleetAppsManagementAdminWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + public createWaiters(config?: common.WaiterConfiguration): FleetAppsManagementAdminWaiter { + this._waiters = new FleetAppsManagementAdminWaiter(this, config); + return this._waiters; + } + + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + public getWaiters(): FleetAppsManagementAdminWaiter { + if (this._waiters) { + return this._waiters; + } + throw Error("Waiters do not exist. Please create waiters."); + } + + /** + * Shutdown the circuit breaker used by the client when it is no longer needed + */ + public shutdownCircuitBreaker() { + if (this._circuitBreaker) { + this._circuitBreaker.shutdown(); + } + } + + /** + * Close the client once it is no longer needed + */ + public close() { + this.shutdownCircuitBreaker(); + } + + /** + * Onboard a tenant to Fleet Application Management Service + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CreateOnboardingRequest + * @return CreateOnboardingResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateOnboarding.ts.html |here} to see how to use CreateOnboarding API. + */ + public async createOnboarding( + createOnboardingRequest: requests.CreateOnboardingRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#createOnboarding."); + const operationName = "createOnboarding"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createOnboardingRequest.opcRetryToken, + "opc-request-id": createOnboardingRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + createOnboardingRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/Onboardings", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createOnboardingRequest.createOnboardingDetails, + "CreateOnboardingDetails", + model.CreateOnboardingDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "onboarding", + bodyModel: model.Onboarding, + type: "model.Onboarding", + responseHeaders: [ + { + value: response.headers.get("location"), + key: "location", + dataType: "string" + }, + { + value: response.headers.get("content-location"), + key: "contentLocation", + dataType: "string" + }, + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Creates a new Property. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CreatePropertyRequest + * @return CreatePropertyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateProperty.ts.html |here} to see how to use CreateProperty API. + */ + public async createProperty( + createPropertyRequest: requests.CreatePropertyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#createProperty."); + const operationName = "createProperty"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createPropertyRequest.opcRetryToken, + "opc-request-id": createPropertyRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + createPropertyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/properties", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createPropertyRequest.createPropertyDetails, + "CreatePropertyDetails", + model.CreatePropertyDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "property", + bodyModel: model.Property, + type: "model.Property", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Deletes a Property resource by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeletePropertyRequest + * @return DeletePropertyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteProperty.ts.html |here} to see how to use DeleteProperty API. + */ + public async deleteProperty( + deletePropertyRequest: requests.DeletePropertyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#deleteProperty."); + const operationName = "deleteProperty"; + const apiReferenceLink = ""; + const pathParams = { + "{propertyId}": deletePropertyRequest.propertyId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deletePropertyRequest.ifMatch, + "opc-request-id": deletePropertyRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deletePropertyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/properties/{propertyId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a Property by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetPropertyRequest + * @return GetPropertyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetProperty.ts.html |here} to see how to use GetProperty API. + */ + public async getProperty( + getPropertyRequest: requests.GetPropertyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#getProperty."); + const operationName = "getProperty"; + const apiReferenceLink = ""; + const pathParams = { + "{propertyId}": getPropertyRequest.propertyId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getPropertyRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getPropertyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/properties/{propertyId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "property", + bodyModel: model.Property, + type: "model.Property", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of onboarding policy information for FAMS. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListOnboardingPoliciesRequest + * @return ListOnboardingPoliciesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListOnboardingPolicies.ts.html |here} to see how to use ListOnboardingPolicies API. + */ + public async listOnboardingPolicies( + listOnboardingPoliciesRequest: requests.ListOnboardingPoliciesRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#listOnboardingPolicies."); + const operationName = "listOnboardingPolicies"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "limit": listOnboardingPoliciesRequest.limit, + "page": listOnboardingPoliciesRequest.page, + "sortOrder": listOnboardingPoliciesRequest.sortOrder, + "sortBy": listOnboardingPoliciesRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listOnboardingPoliciesRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listOnboardingPoliciesRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/OnboardingPolicies", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "onboardingPolicyCollection", + bodyModel: model.OnboardingPolicyCollection, + type: "model.OnboardingPolicyCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of onboarding information for the Tenancy. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListOnboardingsRequest + * @return ListOnboardingsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListOnboardings.ts.html |here} to see how to use ListOnboardings API. + */ + public async listOnboardings( + listOnboardingsRequest: requests.ListOnboardingsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#listOnboardings."); + const operationName = "listOnboardings"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listOnboardingsRequest.compartmentId, + "lifecycleState": listOnboardingsRequest.lifecycleState, + "id": listOnboardingsRequest.id, + "limit": listOnboardingsRequest.limit, + "page": listOnboardingsRequest.page, + "sortOrder": listOnboardingsRequest.sortOrder, + "sortBy": listOnboardingsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listOnboardingsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listOnboardingsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/Onboardings", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "onboardingCollection", + bodyModel: model.OnboardingCollection, + type: "model.OnboardingCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of Properties for Tenancy. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListPropertiesRequest + * @return ListPropertiesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListProperties.ts.html |here} to see how to use ListProperties API. + */ + public async listProperties( + listPropertiesRequest: requests.ListPropertiesRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#listProperties."); + const operationName = "listProperties"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listPropertiesRequest.compartmentId, + "lifecycleState": listPropertiesRequest.lifecycleState, + "displayName": listPropertiesRequest.displayName, + "id": listPropertiesRequest.id, + "scope": listPropertiesRequest.scope, + "limit": listPropertiesRequest.limit, + "page": listPropertiesRequest.page, + "sortOrder": listPropertiesRequest.sortOrder, + "sortBy": listPropertiesRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listPropertiesRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listPropertiesRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/properties", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "propertyCollection", + bodyModel: model.PropertyCollection, + type: "model.PropertyCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the Property + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdatePropertyRequest + * @return UpdatePropertyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateProperty.ts.html |here} to see how to use UpdateProperty API. + */ + public async updateProperty( + updatePropertyRequest: requests.UpdatePropertyRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementAdminClient#updateProperty."); + const operationName = "updateProperty"; + const apiReferenceLink = ""; + const pathParams = { + "{propertyId}": updatePropertyRequest.propertyId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updatePropertyRequest.ifMatch, + "opc-request-id": updatePropertyRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updatePropertyRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/properties/{propertyId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updatePropertyRequest.updatePropertyDetails, + "UpdatePropertyDetails", + model.UpdatePropertyDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "property", + bodyModel: model.Property, + type: "model.Property", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } +} +export enum FleetAppsManagementMaintenanceWindowApiKeys {} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export class FleetAppsManagementMaintenanceWindowClient { + protected static serviceEndpointTemplate = "https://fams.{region}.oci.{secondLevelDomain}"; + protected static endpointServiceName = ""; + protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined; + protected "_endpoint": string = ""; + protected "_defaultHeaders": any = {}; + protected "_waiters": FleetAppsManagementMaintenanceWindowWaiter; + protected "_clientConfiguration": common.ClientConfiguration; + protected _circuitBreaker: typeof Breaker | null = null; + protected _httpOptions: any = undefined; + protected _bodyDuplexMode: any = undefined; + public targetService = "FleetAppsManagementMaintenanceWindow"; + protected _regionId: string = ""; + protected "_region": common.Region; + protected _lastSetRegionOrRegionId: string = ""; + + protected _httpClient: common.HttpClient; + + constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) { + const requestSigner = params.authenticationDetailsProvider + ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) + : null; + if (clientConfiguration) { + this._clientConfiguration = clientConfiguration; + this._circuitBreaker = clientConfiguration.circuitBreaker + ? clientConfiguration.circuitBreaker!.circuit + : null; + this._httpOptions = clientConfiguration.httpOptions + ? clientConfiguration.httpOptions + : undefined; + this._bodyDuplexMode = clientConfiguration.bodyDuplexMode + ? clientConfiguration.bodyDuplexMode + : undefined; + } + + if (!developerToolConfiguration.isServiceEnabled("fleetappsmanagement")) { + let errmsg = + "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : "; + throw errmsg.concat("fleetappsmanagement"); + } + + // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker + const specCircuitBreakerEnabled = true; + if ( + !this._circuitBreaker && + common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && + (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden) + ) { + this._circuitBreaker = new common.CircuitBreaker().circuit; + } + this._httpClient = + params.httpClient || + new common.FetchHttpClient( + requestSigner, + this._circuitBreaker, + this._httpOptions, + this._bodyDuplexMode + ); + + if ( + params.authenticationDetailsProvider && + common.isRegionProvider(params.authenticationDetailsProvider) + ) { + const provider: common.RegionProvider = params.authenticationDetailsProvider; + if (provider.getRegion()) { + this.region = provider.getRegion(); + } + } + } + + /** + * Get the endpoint that is being used to call (ex, https://www.example.com). + */ + public get endpoint() { + return this._endpoint; + } + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + public set endpoint(endpoint: string) { + this._endpoint = endpoint; + this._endpoint = this._endpoint + "/20230831"; + if (this.logger) + this.logger.info( + `FleetAppsManagementMaintenanceWindowClient endpoint set to ${this._endpoint}` + ); + } + + public get logger() { + return common.LOG.logger; + } + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) { + this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled; + if (this.logger) + this.logger.info( + `realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}` + ); + if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, + this._region, + FleetAppsManagementMaintenanceWindowClient.endpointServiceName + ); + } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, + this._regionId, + FleetAppsManagementMaintenanceWindowClient.endpointServiceName + ); + } + } + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. + * @param region The region of the service. + */ + public set region(region: common.Region) { + this._region = region; + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, + region, + FleetAppsManagementMaintenanceWindowClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_STRING; + } + + /** + * Sets the regionId to call (ex, 'us-phoenix-1'). + * + * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. + * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 + * and then call {@link #endpoint(String) endpoint}. + * @param regionId The public region ID. + */ + public set regionId(regionId: string) { + this._regionId = regionId; + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementMaintenanceWindowClient.serviceEndpointTemplate, + regionId, + FleetAppsManagementMaintenanceWindowClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING; + } + + /** + * Creates a new FleetAppsManagementMaintenanceWindowWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + public createWaiters( + config?: common.WaiterConfiguration + ): FleetAppsManagementMaintenanceWindowWaiter { + this._waiters = new FleetAppsManagementMaintenanceWindowWaiter(this, config); + return this._waiters; + } + + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + public getWaiters(): FleetAppsManagementMaintenanceWindowWaiter { + if (this._waiters) { + return this._waiters; + } + throw Error("Waiters do not exist. Please create waiters."); + } + + /** + * Shutdown the circuit breaker used by the client when it is no longer needed + */ + public shutdownCircuitBreaker() { + if (this._circuitBreaker) { + this._circuitBreaker.shutdown(); + } + } + + /** + * Close the client once it is no longer needed + */ + public close() { + this.shutdownCircuitBreaker(); + } + + /** + * Creates a new MaintenanceWindow. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CreateMaintenanceWindowRequest + * @return CreateMaintenanceWindowResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateMaintenanceWindow.ts.html |here} to see how to use CreateMaintenanceWindow API. + */ + public async createMaintenanceWindow( + createMaintenanceWindowRequest: requests.CreateMaintenanceWindowRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementMaintenanceWindowClient#createMaintenanceWindow." + ); + const operationName = "createMaintenanceWindow"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createMaintenanceWindowRequest.opcRetryToken, + "opc-request-id": createMaintenanceWindowRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + createMaintenanceWindowRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/maintenanceWindows", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createMaintenanceWindowRequest.createMaintenanceWindowDetails, + "CreateMaintenanceWindowDetails", + model.CreateMaintenanceWindowDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "maintenanceWindow", + bodyModel: model.MaintenanceWindow, + type: "model.MaintenanceWindow", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Deletes a MaintenanceWindow resource by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeleteMaintenanceWindowRequest + * @return DeleteMaintenanceWindowResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteMaintenanceWindow.ts.html |here} to see how to use DeleteMaintenanceWindow API. + */ + public async deleteMaintenanceWindow( + deleteMaintenanceWindowRequest: requests.DeleteMaintenanceWindowRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementMaintenanceWindowClient#deleteMaintenanceWindow." + ); + const operationName = "deleteMaintenanceWindow"; + const apiReferenceLink = ""; + const pathParams = { + "{maintenanceWindowId}": deleteMaintenanceWindowRequest.maintenanceWindowId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deleteMaintenanceWindowRequest.ifMatch, + "opc-request-id": deleteMaintenanceWindowRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deleteMaintenanceWindowRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/maintenanceWindows/{maintenanceWindowId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a MaintenanceWindow by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetMaintenanceWindowRequest + * @return GetMaintenanceWindowResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetMaintenanceWindow.ts.html |here} to see how to use GetMaintenanceWindow API. + */ + public async getMaintenanceWindow( + getMaintenanceWindowRequest: requests.GetMaintenanceWindowRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementMaintenanceWindowClient#getMaintenanceWindow." + ); + const operationName = "getMaintenanceWindow"; + const apiReferenceLink = ""; + const pathParams = { + "{maintenanceWindowId}": getMaintenanceWindowRequest.maintenanceWindowId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getMaintenanceWindowRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getMaintenanceWindowRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/maintenanceWindows/{maintenanceWindowId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "maintenanceWindow", + bodyModel: model.MaintenanceWindow, + type: "model.MaintenanceWindow", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of MaintenanceWindows in the specified Tenancy. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListMaintenanceWindowsRequest + * @return ListMaintenanceWindowsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListMaintenanceWindows.ts.html |here} to see how to use ListMaintenanceWindows API. + */ + public async listMaintenanceWindows( + listMaintenanceWindowsRequest: requests.ListMaintenanceWindowsRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementMaintenanceWindowClient#listMaintenanceWindows." + ); + const operationName = "listMaintenanceWindows"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listMaintenanceWindowsRequest.compartmentId, + "lifecycleState": listMaintenanceWindowsRequest.lifecycleState, + "displayName": listMaintenanceWindowsRequest.displayName, + "id": listMaintenanceWindowsRequest.id, + "limit": listMaintenanceWindowsRequest.limit, + "page": listMaintenanceWindowsRequest.page, + "sortOrder": listMaintenanceWindowsRequest.sortOrder, + "sortBy": listMaintenanceWindowsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listMaintenanceWindowsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listMaintenanceWindowsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/maintenanceWindows", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "maintenanceWindowCollection", + bodyModel: model.MaintenanceWindowCollection, + type: "model.MaintenanceWindowCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the MaintenanceWindow + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateMaintenanceWindowRequest + * @return UpdateMaintenanceWindowResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateMaintenanceWindow.ts.html |here} to see how to use UpdateMaintenanceWindow API. + */ + public async updateMaintenanceWindow( + updateMaintenanceWindowRequest: requests.UpdateMaintenanceWindowRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementMaintenanceWindowClient#updateMaintenanceWindow." + ); + const operationName = "updateMaintenanceWindow"; + const apiReferenceLink = ""; + const pathParams = { + "{maintenanceWindowId}": updateMaintenanceWindowRequest.maintenanceWindowId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateMaintenanceWindowRequest.ifMatch, + "opc-request-id": updateMaintenanceWindowRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateMaintenanceWindowRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/maintenanceWindows/{maintenanceWindowId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateMaintenanceWindowRequest.updateMaintenanceWindowDetails, + "UpdateMaintenanceWindowDetails", + model.UpdateMaintenanceWindowDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } +} +export enum FleetAppsManagementOperationsApiKeys {} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export class FleetAppsManagementOperationsClient { + protected static serviceEndpointTemplate = "https://fams.{region}.oci.{secondLevelDomain}"; + protected static endpointServiceName = ""; + protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined; + protected "_endpoint": string = ""; + protected "_defaultHeaders": any = {}; + protected "_waiters": FleetAppsManagementOperationsWaiter; + protected "_clientConfiguration": common.ClientConfiguration; + protected _circuitBreaker: typeof Breaker | null = null; + protected _httpOptions: any = undefined; + protected _bodyDuplexMode: any = undefined; + public targetService = "FleetAppsManagementOperations"; + protected _regionId: string = ""; + protected "_region": common.Region; + protected _lastSetRegionOrRegionId: string = ""; + + protected _httpClient: common.HttpClient; + + constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) { + const requestSigner = params.authenticationDetailsProvider + ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) + : null; + if (clientConfiguration) { + this._clientConfiguration = clientConfiguration; + this._circuitBreaker = clientConfiguration.circuitBreaker + ? clientConfiguration.circuitBreaker!.circuit + : null; + this._httpOptions = clientConfiguration.httpOptions + ? clientConfiguration.httpOptions + : undefined; + this._bodyDuplexMode = clientConfiguration.bodyDuplexMode + ? clientConfiguration.bodyDuplexMode + : undefined; + } + + if (!developerToolConfiguration.isServiceEnabled("fleetappsmanagement")) { + let errmsg = + "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : "; + throw errmsg.concat("fleetappsmanagement"); + } + + // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker + const specCircuitBreakerEnabled = true; + if ( + !this._circuitBreaker && + common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && + (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden) + ) { + this._circuitBreaker = new common.CircuitBreaker().circuit; + } + this._httpClient = + params.httpClient || + new common.FetchHttpClient( + requestSigner, + this._circuitBreaker, + this._httpOptions, + this._bodyDuplexMode + ); + + if ( + params.authenticationDetailsProvider && + common.isRegionProvider(params.authenticationDetailsProvider) + ) { + const provider: common.RegionProvider = params.authenticationDetailsProvider; + if (provider.getRegion()) { + this.region = provider.getRegion(); + } + } + } + + /** + * Get the endpoint that is being used to call (ex, https://www.example.com). + */ + public get endpoint() { + return this._endpoint; + } + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + public set endpoint(endpoint: string) { + this._endpoint = endpoint; + this._endpoint = this._endpoint + "/20230831"; + if (this.logger) + this.logger.info(`FleetAppsManagementOperationsClient endpoint set to ${this._endpoint}`); + } + + public get logger() { + return common.LOG.logger; + } + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) { + this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled; + if (this.logger) + this.logger.info( + `realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}` + ); + if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementOperationsClient.serviceEndpointTemplate, + this._region, + FleetAppsManagementOperationsClient.endpointServiceName + ); + } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementOperationsClient.serviceEndpointTemplate, + this._regionId, + FleetAppsManagementOperationsClient.endpointServiceName + ); + } + } + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. + * @param region The region of the service. + */ + public set region(region: common.Region) { + this._region = region; + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementOperationsClient.serviceEndpointTemplate, + region, + FleetAppsManagementOperationsClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_STRING; + } + + /** + * Sets the regionId to call (ex, 'us-phoenix-1'). + * + * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. + * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 + * and then call {@link #endpoint(String) endpoint}. + * @param regionId The public region ID. + */ + public set regionId(regionId: string) { + this._regionId = regionId; + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementOperationsClient.serviceEndpointTemplate, + regionId, + FleetAppsManagementOperationsClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING; + } + + /** + * Creates a new FleetAppsManagementOperationsWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + public createWaiters(config?: common.WaiterConfiguration): FleetAppsManagementOperationsWaiter { + this._waiters = new FleetAppsManagementOperationsWaiter(this, config); + return this._waiters; + } + + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + public getWaiters(): FleetAppsManagementOperationsWaiter { + if (this._waiters) { + return this._waiters; + } + throw Error("Waiters do not exist. Please create waiters."); + } + + /** + * Shutdown the circuit breaker used by the client when it is no longer needed + */ + public shutdownCircuitBreaker() { + if (this._circuitBreaker) { + this._circuitBreaker.shutdown(); + } + } + + /** + * Close the client once it is no longer needed + */ + public close() { + this.shutdownCircuitBreaker(); + } + + /** + * Creates a new SchedulerDefinition. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param CreateSchedulerDefinitionRequest + * @return CreateSchedulerDefinitionResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateSchedulerDefinition.ts.html |here} to see how to use CreateSchedulerDefinition API. + */ + public async createSchedulerDefinition( + createSchedulerDefinitionRequest: requests.CreateSchedulerDefinitionRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#createSchedulerDefinition." + ); + const operationName = "createSchedulerDefinition"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-retry-token": createSchedulerDefinitionRequest.opcRetryToken, + "opc-request-id": createSchedulerDefinitionRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + createSchedulerDefinitionRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerDefinitions", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + createSchedulerDefinitionRequest.createSchedulerDefinitionDetails, + "CreateSchedulerDefinitionDetails", + model.CreateSchedulerDefinitionDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schedulerDefinition", + bodyModel: model.SchedulerDefinition, + type: "model.SchedulerDefinition", + responseHeaders: [ + { + value: response.headers.get("location"), + key: "location", + dataType: "string" + }, + { + value: response.headers.get("content-location"), + key: "contentLocation", + dataType: "string" + }, + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Deletes a SchedulerDefinition resource by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeleteSchedulerDefinitionRequest + * @return DeleteSchedulerDefinitionResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteSchedulerDefinition.ts.html |here} to see how to use DeleteSchedulerDefinition API. + */ + public async deleteSchedulerDefinition( + deleteSchedulerDefinitionRequest: requests.DeleteSchedulerDefinitionRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#deleteSchedulerDefinition." + ); + const operationName = "deleteSchedulerDefinition"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerDefinitionId}": deleteSchedulerDefinitionRequest.schedulerDefinitionId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deleteSchedulerDefinitionRequest.ifMatch, + "opc-request-id": deleteSchedulerDefinitionRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deleteSchedulerDefinitionRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerDefinitions/{schedulerDefinitionId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Deletes a SchedulerJob resource by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param DeleteSchedulerJobRequest + * @return DeleteSchedulerJobResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteSchedulerJob.ts.html |here} to see how to use DeleteSchedulerJob API. + */ + public async deleteSchedulerJob( + deleteSchedulerJobRequest: requests.DeleteSchedulerJobRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#deleteSchedulerJob." + ); + const operationName = "deleteSchedulerJob"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": deleteSchedulerJobRequest.schedulerJobId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": deleteSchedulerJobRequest.ifMatch, + "opc-request-id": deleteSchedulerJobRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + deleteSchedulerJobRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerJobs/{schedulerJobId}", + method: "DELETE", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a JobActivity by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetExecutionRequest + * @return GetExecutionResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetExecution.ts.html |here} to see how to use GetExecution API. + */ + public async getExecution( + getExecutionRequest: requests.GetExecutionRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#getExecution."); + const operationName = "getExecution"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": getExecutionRequest.schedulerJobId, + "{jobActivityId}": getExecutionRequest.jobActivityId, + "{resourceId}": getExecutionRequest.resourceId, + "{executionId}": getExecutionRequest.executionId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getExecutionRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getExecutionRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: + "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions/{executionId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "execution", + bodyModel: model.Execution, + type: "model.Execution", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a JobActivity by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetJobActivityRequest + * @return GetJobActivityResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetJobActivity.ts.html |here} to see how to use GetJobActivity API. + */ + public async getJobActivity( + getJobActivityRequest: requests.GetJobActivityRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#getJobActivity."); + const operationName = "getJobActivity"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": getJobActivityRequest.schedulerJobId, + "{jobActivityId}": getJobActivityRequest.jobActivityId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getJobActivityRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getJobActivityRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "jobActivity", + bodyModel: model.JobActivity, + type: "model.JobActivity", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a SchedulerDefinition by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetSchedulerDefinitionRequest + * @return GetSchedulerDefinitionResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetSchedulerDefinition.ts.html |here} to see how to use GetSchedulerDefinition API. + */ + public async getSchedulerDefinition( + getSchedulerDefinitionRequest: requests.GetSchedulerDefinitionRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#getSchedulerDefinition." + ); + const operationName = "getSchedulerDefinition"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerDefinitionId}": getSchedulerDefinitionRequest.schedulerDefinitionId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getSchedulerDefinitionRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getSchedulerDefinitionRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerDefinitions/{schedulerDefinitionId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schedulerDefinition", + bodyModel: model.SchedulerDefinition, + type: "model.SchedulerDefinition", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a SchedulerJob by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetSchedulerJobRequest + * @return GetSchedulerJobResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetSchedulerJob.ts.html |here} to see how to use GetSchedulerJob API. + */ + public async getSchedulerJob( + getSchedulerJobRequest: requests.GetSchedulerJobRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#getSchedulerJob."); + const operationName = "getSchedulerJob"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": getSchedulerJobRequest.schedulerJobId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getSchedulerJobRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getSchedulerJobRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerJobs/{schedulerJobId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schedulerJob", + bodyModel: model.SchedulerJob, + type: "model.SchedulerJob", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of Task Executions for a Resource. + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListExecutionsRequest + * @return ListExecutionsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListExecutions.ts.html |here} to see how to use ListExecutions API. + */ + public async listExecutions( + listExecutionsRequest: requests.ListExecutionsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#listExecutions."); + const operationName = "listExecutions"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": listExecutionsRequest.schedulerJobId, + "{jobActivityId}": listExecutionsRequest.jobActivityId, + "{resourceId}": listExecutionsRequest.resourceId + }; + + const queryParams = { + "resourceTaskId": listExecutionsRequest.resourceTaskId, + "stepName": listExecutionsRequest.stepName, + "targetName": listExecutionsRequest.targetName, + "sequence": listExecutionsRequest.sequence, + "limit": listExecutionsRequest.limit, + "page": listExecutionsRequest.page, + "sortOrder": listExecutionsRequest.sortOrder, + "sortBy": listExecutionsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listExecutionsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listExecutionsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: + "/schedulerJobs/{schedulerJobId}/jobActivities/{jobActivityId}/resources/{resourceId}/executions", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "executionCollection", + bodyModel: model.ExecutionCollection, + type: "model.ExecutionCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of ScheduledFleets + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListScheduledFleetsRequest + * @return ListScheduledFleetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListScheduledFleets.ts.html |here} to see how to use ListScheduledFleets API. + */ + public async listScheduledFleets( + listScheduledFleetsRequest: requests.ListScheduledFleetsRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#listScheduledFleets." + ); + const operationName = "listScheduledFleets"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerDefinitionId}": listScheduledFleetsRequest.schedulerDefinitionId + }; + + const queryParams = { + "compartmentId": listScheduledFleetsRequest.compartmentId, + "displayName": listScheduledFleetsRequest.displayName, + "limit": listScheduledFleetsRequest.limit, + "page": listScheduledFleetsRequest.page, + "sortOrder": listScheduledFleetsRequest.sortOrder, + "sortBy": listScheduledFleetsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listScheduledFleetsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listScheduledFleetsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerDefinitions/{schedulerDefinitionId}/scheduledFleets", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "scheduledFleetCollection", + bodyModel: model.ScheduledFleetCollection, + type: "model.ScheduledFleetCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of SchedulerDefinitions. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListSchedulerDefinitionsRequest + * @return ListSchedulerDefinitionsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListSchedulerDefinitions.ts.html |here} to see how to use ListSchedulerDefinitions API. + */ + public async listSchedulerDefinitions( + listSchedulerDefinitionsRequest: requests.ListSchedulerDefinitionsRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#listSchedulerDefinitions." + ); + const operationName = "listSchedulerDefinitions"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listSchedulerDefinitionsRequest.compartmentId, + "lifecycleState": listSchedulerDefinitionsRequest.lifecycleState, + "displayName": listSchedulerDefinitionsRequest.displayName, + "product": listSchedulerDefinitionsRequest.product, + "id": listSchedulerDefinitionsRequest.id, + "maintenanceWindowId": listSchedulerDefinitionsRequest.maintenanceWindowId, + "fleetId": listSchedulerDefinitionsRequest.fleetId, + "limit": listSchedulerDefinitionsRequest.limit, + "page": listSchedulerDefinitionsRequest.page, + "sortOrder": listSchedulerDefinitionsRequest.sortOrder, + "sortBy": listSchedulerDefinitionsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listSchedulerDefinitionsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listSchedulerDefinitionsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerDefinitions", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schedulerDefinitionCollection", + bodyModel: model.SchedulerDefinitionCollection, + type: "model.SchedulerDefinitionCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + }, + { + value: response.headers.get("opc-total-items"), + key: "opcTotalItems", + dataType: "number" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of SchedulerJobs. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListSchedulerJobsRequest + * @return ListSchedulerJobsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListSchedulerJobs.ts.html |here} to see how to use ListSchedulerJobs API. + */ + public async listSchedulerJobs( + listSchedulerJobsRequest: requests.ListSchedulerJobsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementOperationsClient#listSchedulerJobs."); + const operationName = "listSchedulerJobs"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listSchedulerJobsRequest.compartmentId, + "lifecycleState": listSchedulerJobsRequest.lifecycleState, + "fleetId": listSchedulerJobsRequest.fleetId, + "timeScheduledGreaterThanOrEqualTo": + listSchedulerJobsRequest.timeScheduledGreaterThanOrEqualTo, + "timeScheduledLessThan": listSchedulerJobsRequest.timeScheduledLessThan, + "isRemediationJobNeeded": listSchedulerJobsRequest.isRemediationJobNeeded, + "displayName": listSchedulerJobsRequest.displayName, + "id": listSchedulerJobsRequest.id, + "defintionId": listSchedulerJobsRequest.defintionId, + "limit": listSchedulerJobsRequest.limit, + "page": listSchedulerJobsRequest.page, + "sortOrder": listSchedulerJobsRequest.sortOrder, + "sortBy": listSchedulerJobsRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listSchedulerJobsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listSchedulerJobsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerJobs", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schedulerJobCollection", + bodyModel: model.SchedulerJobCollection, + type: "model.SchedulerJobCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the SchedulerDefinition + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateSchedulerDefinitionRequest + * @return UpdateSchedulerDefinitionResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateSchedulerDefinition.ts.html |here} to see how to use UpdateSchedulerDefinition API. + */ + public async updateSchedulerDefinition( + updateSchedulerDefinitionRequest: requests.UpdateSchedulerDefinitionRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#updateSchedulerDefinition." + ); + const operationName = "updateSchedulerDefinition"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerDefinitionId}": updateSchedulerDefinitionRequest.schedulerDefinitionId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateSchedulerDefinitionRequest.ifMatch, + "opc-request-id": updateSchedulerDefinitionRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateSchedulerDefinitionRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerDefinitions/{schedulerDefinitionId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateSchedulerDefinitionRequest.updateSchedulerDefinitionDetails, + "UpdateSchedulerDefinitionDetails", + model.UpdateSchedulerDefinitionDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Updates the SchedulerJob + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param UpdateSchedulerJobRequest + * @return UpdateSchedulerJobResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateSchedulerJob.ts.html |here} to see how to use UpdateSchedulerJob API. + */ + public async updateSchedulerJob( + updateSchedulerJobRequest: requests.UpdateSchedulerJobRequest + ): Promise { + if (this.logger) + this.logger.debug( + "Calling operation FleetAppsManagementOperationsClient#updateSchedulerJob." + ); + const operationName = "updateSchedulerJob"; + const apiReferenceLink = ""; + const pathParams = { + "{schedulerJobId}": updateSchedulerJobRequest.schedulerJobId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": updateSchedulerJobRequest.ifMatch, + "opc-request-id": updateSchedulerJobRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + updateSchedulerJobRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/schedulerJobs/{schedulerJobId}", + method: "PUT", + bodyContent: common.ObjectSerializer.serialize( + updateSchedulerJobRequest.updateSchedulerJobDetails, + "UpdateSchedulerJobDetails", + model.UpdateSchedulerJobDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "schedulerJob", + bodyModel: model.SchedulerJob, + type: "model.SchedulerJob", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } +} +export enum FleetAppsManagementRunbooksApiKeys {} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export class FleetAppsManagementRunbooksClient { + protected static serviceEndpointTemplate = "https://fams.{region}.oci.{secondLevelDomain}"; + protected static endpointServiceName = ""; + protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined = undefined; + protected "_endpoint": string = ""; + protected "_defaultHeaders": any = {}; + protected "_waiters": FleetAppsManagementRunbooksWaiter; + protected "_clientConfiguration": common.ClientConfiguration; + protected _circuitBreaker: typeof Breaker | null = null; + protected _httpOptions: any = undefined; + protected _bodyDuplexMode: any = undefined; + public targetService = "FleetAppsManagementRunbooks"; + protected _regionId: string = ""; + protected "_region": common.Region; + protected _lastSetRegionOrRegionId: string = ""; + + protected _httpClient: common.HttpClient; + + constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration) { + const requestSigner = params.authenticationDetailsProvider + ? new common.DefaultRequestSigner(params.authenticationDetailsProvider) + : null; + if (clientConfiguration) { + this._clientConfiguration = clientConfiguration; + this._circuitBreaker = clientConfiguration.circuitBreaker + ? clientConfiguration.circuitBreaker!.circuit + : null; + this._httpOptions = clientConfiguration.httpOptions + ? clientConfiguration.httpOptions + : undefined; + this._bodyDuplexMode = clientConfiguration.bodyDuplexMode + ? clientConfiguration.bodyDuplexMode + : undefined; + } + + if (!developerToolConfiguration.isServiceEnabled("fleetappsmanagement")) { + let errmsg = + "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : "; + throw errmsg.concat("fleetappsmanagement"); + } + + // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker + const specCircuitBreakerEnabled = true; + if ( + !this._circuitBreaker && + common.utils.isCircuitBreakerSystemEnabled(clientConfiguration!) && + (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden) + ) { + this._circuitBreaker = new common.CircuitBreaker().circuit; + } + this._httpClient = + params.httpClient || + new common.FetchHttpClient( + requestSigner, + this._circuitBreaker, + this._httpOptions, + this._bodyDuplexMode + ); + + if ( + params.authenticationDetailsProvider && + common.isRegionProvider(params.authenticationDetailsProvider) + ) { + const provider: common.RegionProvider = params.authenticationDetailsProvider; + if (provider.getRegion()) { + this.region = provider.getRegion(); + } + } + } + + /** + * Get the endpoint that is being used to call (ex, https://www.example.com). + */ + public get endpoint() { + return this._endpoint; + } + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + public set endpoint(endpoint: string) { + this._endpoint = endpoint; + this._endpoint = this._endpoint + "/20230831"; + if (this.logger) + this.logger.info(`FleetAppsManagementRunbooksClient endpoint set to ${this._endpoint}`); + } + + public get logger() { + return common.LOG.logger; + } + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + public set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean) { + this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled; + if (this.logger) + this.logger.info( + `realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}` + ); + if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementRunbooksClient.serviceEndpointTemplate, + this._region, + FleetAppsManagementRunbooksClient.endpointServiceName + ); + } else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) { + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementRunbooksClient.serviceEndpointTemplate, + this._regionId, + FleetAppsManagementRunbooksClient.endpointServiceName + ); + } + } + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. + * @param region The region of the service. + */ + public set region(region: common.Region) { + this._region = region; + this.endpoint = common.EndpointBuilder.createEndpointFromRegion( + FleetAppsManagementRunbooksClient.serviceEndpointTemplate, + region, + FleetAppsManagementRunbooksClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_STRING; + } + + /** + * Sets the regionId to call (ex, 'us-phoenix-1'). + * + * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. + * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 + * and then call {@link #endpoint(String) endpoint}. + * @param regionId The public region ID. + */ + public set regionId(regionId: string) { + this._regionId = regionId; + this.endpoint = common.EndpointBuilder.createEndpointFromRegionId( + FleetAppsManagementRunbooksClient.serviceEndpointTemplate, + regionId, + FleetAppsManagementRunbooksClient.endpointServiceName + ); + this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING; + } + + /** + * Creates a new FleetAppsManagementRunbooksWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + public createWaiters(config?: common.WaiterConfiguration): FleetAppsManagementRunbooksWaiter { + this._waiters = new FleetAppsManagementRunbooksWaiter(this, config); + return this._waiters; + } + + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + public getWaiters(): FleetAppsManagementRunbooksWaiter { + if (this._waiters) { + return this._waiters; + } + throw Error("Waiters do not exist. Please create waiters."); + } + + /** + * Shutdown the circuit breaker used by the client when it is no longer needed + */ + public shutdownCircuitBreaker() { + if (this._circuitBreaker) { + this._circuitBreaker.shutdown(); + } + } + + /** + * Close the client once it is no longer needed + */ + public close() { + this.shutdownCircuitBreaker(); + } + + /** + * Gets a Runbook by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetRunbookRequest + * @return GetRunbookResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetRunbook.ts.html |here} to see how to use GetRunbook API. + */ + public async getRunbook( + getRunbookRequest: requests.GetRunbookRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#getRunbook."); + const operationName = "getRunbook"; + const apiReferenceLink = ""; + const pathParams = { + "{runbookId}": getRunbookRequest.runbookId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getRunbookRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getRunbookRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/runbooks/{runbookId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "runbook", + bodyModel: model.Runbook, + type: "model.Runbook", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Gets a TaskRecord by identifier + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param GetTaskRecordRequest + * @return GetTaskRecordResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetTaskRecord.ts.html |here} to see how to use GetTaskRecord API. + */ + public async getTaskRecord( + getTaskRecordRequest: requests.GetTaskRecordRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#getTaskRecord."); + const operationName = "getTaskRecord"; + const apiReferenceLink = ""; + const pathParams = { + "{taskRecordId}": getTaskRecordRequest.taskRecordId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": getTaskRecordRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + getTaskRecordRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/taskRecords/{taskRecordId}", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "taskRecord", + bodyModel: model.TaskRecord, + type: "model.TaskRecord", + responseHeaders: [ + { + value: response.headers.get("etag"), + key: "etag", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of Runbooks. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListRunbooksRequest + * @return ListRunbooksResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListRunbooks.ts.html |here} to see how to use ListRunbooks API. + */ + public async listRunbooks( + listRunbooksRequest: requests.ListRunbooksRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#listRunbooks."); + const operationName = "listRunbooks"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listRunbooksRequest.compartmentId, + "lifecycleState": listRunbooksRequest.lifecycleState, + "displayName": listRunbooksRequest.displayName, + "id": listRunbooksRequest.id, + "type": listRunbooksRequest.type, + "runbookRelevance": listRunbooksRequest.runbookRelevance, + "platform": listRunbooksRequest.platform, + "operation": listRunbooksRequest.operation, + "limit": listRunbooksRequest.limit, + "page": listRunbooksRequest.page, + "sortOrder": listRunbooksRequest.sortOrder, + "sortBy": listRunbooksRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listRunbooksRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listRunbooksRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/runbooks", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "runbookCollection", + bodyModel: model.RunbookCollection, + type: "model.RunbookCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Returns a list of TaskRecords. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListTaskRecordsRequest + * @return ListTaskRecordsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListTaskRecords.ts.html |here} to see how to use ListTaskRecords API. + */ + public async listTaskRecords( + listTaskRecordsRequest: requests.ListTaskRecordsRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation FleetAppsManagementRunbooksClient#listTaskRecords."); + const operationName = "listTaskRecords"; + const apiReferenceLink = ""; + const pathParams = {}; + + const queryParams = { + "compartmentId": listTaskRecordsRequest.compartmentId, + "platform": listTaskRecordsRequest.platform, + "type": listTaskRecordsRequest.type, + "displayName": listTaskRecordsRequest.displayName, + "id": listTaskRecordsRequest.id, + "limit": listTaskRecordsRequest.limit, + "page": listTaskRecordsRequest.page, + "lifecycleState": listTaskRecordsRequest.lifecycleState, + "sortBy": listTaskRecordsRequest.sortBy, + "sortOrder": listTaskRecordsRequest.sortOrder + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listTaskRecordsRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listTaskRecordsRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/taskRecords", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "taskRecordCollection", + bodyModel: model.TaskRecordCollection, + type: "model.TaskRecordCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } +} diff --git a/lib/fleetappsmanagement/lib/fleetappsmanagement-waiter.ts b/lib/fleetappsmanagement/lib/fleetappsmanagement-waiter.ts new file mode 100644 index 0000000000..ef9aa08116 --- /dev/null +++ b/lib/fleetappsmanagement/lib/fleetappsmanagement-waiter.ts @@ -0,0 +1,119 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as serviceRequests from "./request"; +import * as serviceResponses from "./response"; +import * as models from "./model"; +import { FleetAppsManagementClient } from "./client"; +import { genericWaiter, genericTerminalConditionWaiter, WaiterConfiguration } from "oci-common"; + +export class FleetAppsManagementWaiter { + public constructor( + private client: FleetAppsManagementClient, + private readonly config?: WaiterConfiguration + ) {} + + /** + * Waits forFleet till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetFleetResponse | null (null in case of 404 response) + */ + public async forFleet( + request: serviceRequests.GetFleetRequest, + ...targetStates: models.Fleet.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getFleet(request), + response => targetStates.includes(response.fleet.lifecycleState!), + targetStates.includes(models.Fleet.LifecycleState.Deleted) + ); + } + + /** + * Waits forFleetCredential till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetFleetCredentialResponse | null (null in case of 404 response) + */ + public async forFleetCredential( + request: serviceRequests.GetFleetCredentialRequest, + ...targetStates: models.FleetCredential.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getFleetCredential(request), + response => targetStates.includes(response.fleetCredential.lifecycleState!), + targetStates.includes(models.FleetCredential.LifecycleState.Deleted) + ); + } + + /** + * Waits forFleetProperty till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetFleetPropertyResponse | null (null in case of 404 response) + */ + public async forFleetProperty( + request: serviceRequests.GetFleetPropertyRequest, + ...targetStates: models.FleetProperty.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getFleetProperty(request), + response => targetStates.includes(response.fleetProperty.lifecycleState!), + targetStates.includes(models.FleetProperty.LifecycleState.Deleted) + ); + } + + /** + * Waits forFleetResource till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetFleetResourceResponse | null (null in case of 404 response) + */ + public async forFleetResource( + request: serviceRequests.GetFleetResourceRequest, + ...targetStates: models.FleetResource.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getFleetResource(request), + response => targetStates.includes(response.fleetResource.lifecycleState!), + targetStates.includes(models.FleetResource.LifecycleState.Deleted) + ); + } + + /** + * Waits forWorkRequest + * + * @param request the request to send + * @return response returns GetWorkRequestResponse + */ + public async forWorkRequest( + request: serviceRequests.GetWorkRequestRequest + ): Promise { + return genericWaiter( + this.config, + () => this.client.getWorkRequest(request), + response => (response.workRequest.timeFinished ? true : false) + ); + } +} diff --git a/lib/fleetappsmanagement/lib/fleetappsmanagementadmin-waiter.ts b/lib/fleetappsmanagement/lib/fleetappsmanagementadmin-waiter.ts new file mode 100644 index 0000000000..1c58f0a5a1 --- /dev/null +++ b/lib/fleetappsmanagement/lib/fleetappsmanagementadmin-waiter.ts @@ -0,0 +1,46 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as serviceRequests from "./request"; +import * as serviceResponses from "./response"; +import * as models from "./model"; +import { FleetAppsManagementAdminClient } from "./client"; +import { genericWaiter, genericTerminalConditionWaiter, WaiterConfiguration } from "oci-common"; + +export class FleetAppsManagementAdminWaiter { + public constructor( + private client: FleetAppsManagementAdminClient, + private readonly config?: WaiterConfiguration + ) {} + + /** + * Waits forProperty till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetPropertyResponse | null (null in case of 404 response) + */ + public async forProperty( + request: serviceRequests.GetPropertyRequest, + ...targetStates: models.Property.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getProperty(request), + response => targetStates.includes(response.property.lifecycleState!), + targetStates.includes(models.Property.LifecycleState.Deleted) + ); + } +} diff --git a/lib/fleetappsmanagement/lib/fleetappsmanagementmaintenancewindow-waiter.ts b/lib/fleetappsmanagement/lib/fleetappsmanagementmaintenancewindow-waiter.ts new file mode 100644 index 0000000000..d11c93e8e6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/fleetappsmanagementmaintenancewindow-waiter.ts @@ -0,0 +1,46 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as serviceRequests from "./request"; +import * as serviceResponses from "./response"; +import * as models from "./model"; +import { FleetAppsManagementMaintenanceWindowClient } from "./client"; +import { genericWaiter, genericTerminalConditionWaiter, WaiterConfiguration } from "oci-common"; + +export class FleetAppsManagementMaintenanceWindowWaiter { + public constructor( + private client: FleetAppsManagementMaintenanceWindowClient, + private readonly config?: WaiterConfiguration + ) {} + + /** + * Waits forMaintenanceWindow till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetMaintenanceWindowResponse | null (null in case of 404 response) + */ + public async forMaintenanceWindow( + request: serviceRequests.GetMaintenanceWindowRequest, + ...targetStates: models.MaintenanceWindow.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getMaintenanceWindow(request), + response => targetStates.includes(response.maintenanceWindow.lifecycleState!), + targetStates.includes(models.MaintenanceWindow.LifecycleState.Deleted) + ); + } +} diff --git a/lib/fleetappsmanagement/lib/fleetappsmanagementoperations-waiter.ts b/lib/fleetappsmanagement/lib/fleetappsmanagementoperations-waiter.ts new file mode 100644 index 0000000000..0a2626a56b --- /dev/null +++ b/lib/fleetappsmanagement/lib/fleetappsmanagementoperations-waiter.ts @@ -0,0 +1,65 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as serviceRequests from "./request"; +import * as serviceResponses from "./response"; +import * as models from "./model"; +import { FleetAppsManagementOperationsClient } from "./client"; +import { genericWaiter, genericTerminalConditionWaiter, WaiterConfiguration } from "oci-common"; + +export class FleetAppsManagementOperationsWaiter { + public constructor( + private client: FleetAppsManagementOperationsClient, + private readonly config?: WaiterConfiguration + ) {} + + /** + * Waits forSchedulerDefinition till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetSchedulerDefinitionResponse | null (null in case of 404 response) + */ + public async forSchedulerDefinition( + request: serviceRequests.GetSchedulerDefinitionRequest, + ...targetStates: models.SchedulerDefinition.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getSchedulerDefinition(request), + response => targetStates.includes(response.schedulerDefinition.lifecycleState!), + targetStates.includes(models.SchedulerDefinition.LifecycleState.Deleted) + ); + } + + /** + * Waits forSchedulerJob till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetSchedulerJobResponse | null (null in case of 404 response) + */ + public async forSchedulerJob( + request: serviceRequests.GetSchedulerJobRequest, + ...targetStates: models.SchedulerJob.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getSchedulerJob(request), + response => targetStates.includes(response.schedulerJob.lifecycleState!), + targetStates.includes(models.SchedulerJob.LifecycleState.Deleted) + ); + } +} diff --git a/lib/fleetappsmanagement/lib/fleetappsmanagementrunbooks-waiter.ts b/lib/fleetappsmanagement/lib/fleetappsmanagementrunbooks-waiter.ts new file mode 100644 index 0000000000..cdcaf97e1f --- /dev/null +++ b/lib/fleetappsmanagement/lib/fleetappsmanagementrunbooks-waiter.ts @@ -0,0 +1,65 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as serviceRequests from "./request"; +import * as serviceResponses from "./response"; +import * as models from "./model"; +import { FleetAppsManagementRunbooksClient } from "./client"; +import { genericWaiter, genericTerminalConditionWaiter, WaiterConfiguration } from "oci-common"; + +export class FleetAppsManagementRunbooksWaiter { + public constructor( + private client: FleetAppsManagementRunbooksClient, + private readonly config?: WaiterConfiguration + ) {} + + /** + * Waits forRunbook till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetRunbookResponse | null (null in case of 404 response) + */ + public async forRunbook( + request: serviceRequests.GetRunbookRequest, + ...targetStates: models.Runbook.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getRunbook(request), + response => targetStates.includes(response.runbook.lifecycleState!), + targetStates.includes(models.Runbook.LifecycleState.Deleted) + ); + } + + /** + * Waits forTaskRecord till it reaches any of the provided states + * + * @param request the request to send + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return response returns GetTaskRecordResponse | null (null in case of 404 response) + */ + public async forTaskRecord( + request: serviceRequests.GetTaskRecordRequest, + ...targetStates: models.TaskRecord.LifecycleState[] + ): Promise { + return genericTerminalConditionWaiter( + this.config, + () => this.client.getTaskRecord(request), + response => targetStates.includes(response.taskRecord.lifecycleState!), + targetStates.includes(models.TaskRecord.LifecycleState.Deleted) + ); + } +} diff --git a/lib/fleetappsmanagement/lib/model/action-group-details.ts b/lib/fleetappsmanagement/lib/model/action-group-details.ts new file mode 100644 index 0000000000..9b306f14a1 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/action-group-details.ts @@ -0,0 +1,86 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Action Group. + */ +export interface ActionGroupDetails { + /** + * The ID of the ActionGroup resource . + * Ex:fleetId. + * + */ + "resourceId": string; + /** + * Name of the ActionGroup. + */ + "name"?: string; + /** + * Type of the ActionGroup + */ + "type"?: model.LifeCycleActionGroupType; + /** + * Application Type associated. + * Only applicable if actionGroup type is ENVIRONMENT. + * + */ + "applicationType"?: string; + /** + * Product associated. + * Only applicable if actionGroup type is PRODUCT. + * + */ + "product"?: string; + /** + * LifeCycle Operation + */ + "lifecycleOperation"?: string; + /** + * Unique producer Id at Action Group Level + */ + "activityId"?: string; + /** + * Status of the Job at Action Group Level + */ + "status"?: model.JobStatus; + /** + * The time the the Scheduler Job started. An RFC3339 formatted datetime string + */ + "timeStarted"?: Date; + /** + * The time the Scheduler Job ended. An RFC3339 formatted datetime string + */ + "timeEnded"?: Date; + /** + * ID of the runbook + */ + "runbookId": string; +} + +export namespace ActionGroupDetails { + export function getJsonObj(obj: ActionGroupDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ActionGroupDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/action-group.ts b/lib/fleetappsmanagement/lib/model/action-group.ts new file mode 100644 index 0000000000..8d1978e061 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/action-group.ts @@ -0,0 +1,72 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Action Group. + */ +export interface ActionGroup { + /** + * Provide the ID of the resource; Ex- fleetId. + */ + "resourceId": string; + /** + * ActionGroup Type associated. + */ + "type"?: model.LifeCycleActionGroupType; + /** + * Application Type associated. + * Only applicable if type is ENVIRONMENT. + * + */ + "applicationType"?: string; + /** + * Product associated. + * Only applicable if type is PRODUCT. + * + */ + "product"?: string; + /** + * LifeCycle Operation + */ + "lifecycleOperation"?: string; + /** + * ID of the runbook + */ + "runbookId": string; + /** + * Provide the target if schedule is created against the target + */ + "targetId"?: string; + /** + * Provide subjects that need to be considered for the schedule. + */ + "subjects"?: Array; +} + +export namespace ActionGroup { + export function getJsonObj(obj: ActionGroup): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ActionGroup): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/action-type.ts b/lib/fleetappsmanagement/lib/model/action-type.ts new file mode 100644 index 0000000000..639d2230ac --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/action-type.ts @@ -0,0 +1,44 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible types of actions. + **/ +export enum ActionType { + Created = "CREATED", + Updated = "UPDATED", + Deleted = "DELETED", + InProgress = "IN_PROGRESS", + Related = "RELATED", + Failed = "FAILED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace ActionType { + export function getJsonObj(obj: ActionType): ActionType { + return obj; + } + export function getDeserializedJsonObj(obj: ActionType): ActionType { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/activity-resource-target.ts b/lib/fleetappsmanagement/lib/model/activity-resource-target.ts new file mode 100644 index 0000000000..ede4678c2f --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/activity-resource-target.ts @@ -0,0 +1,44 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Activity Resource Target. + */ +export interface ActivityResourceTarget { + /** + * Target Name. + */ + "targetName": string; + /** + * Status of the Job at Resource Target Level. + */ + "status"?: model.JobStatus; +} + +export namespace ActivityResourceTarget { + export function getJsonObj(obj: ActivityResourceTarget): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ActivityResourceTarget): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/announcement-collection.ts b/lib/fleetappsmanagement/lib/model/announcement-collection.ts new file mode 100644 index 0000000000..90e67f4eec --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/announcement-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of list announcements . Contains AnnouncementSummary items + */ +export interface AnnouncementCollection { + /** + * List of AnnouncementSummary items + */ + "items": Array; +} + +export namespace AnnouncementCollection { + export function getJsonObj(obj: AnnouncementCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.AnnouncementSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: AnnouncementCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.AnnouncementSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/announcement-sort-by.ts b/lib/fleetappsmanagement/lib/model/announcement-sort-by.ts new file mode 100644 index 0000000000..26cf03243a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/announcement-sort-by.ts @@ -0,0 +1,35 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The field to sort AnnouncementSummary. + * + **/ +export enum AnnouncementSortBy { + TimeReleased = "timeReleased", + Summary = "summary" +} + +export namespace AnnouncementSortBy { + export function getJsonObj(obj: AnnouncementSortBy): AnnouncementSortBy { + return obj; + } + export function getDeserializedJsonObj(obj: AnnouncementSortBy): AnnouncementSortBy { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/announcement-summary.ts b/lib/fleetappsmanagement/lib/model/announcement-summary.ts new file mode 100644 index 0000000000..98996a2f35 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/announcement-summary.ts @@ -0,0 +1,128 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * An summary of announcements for Fleet Application Management Service + */ +export interface AnnouncementSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated"?: Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Type of announcement + */ + "type": string; + /** + * Summary of the announcement + */ + "summary": string; + /** + * Details of the announcement + */ + "details"?: string; + /** + * URL to the announcement + */ + "url"?: string; + /** + * Date to start displaying announcement to user + */ + "announcementStart": Date; + /** + * Date to end displaying annonucement to user + */ + "announcementEnd": Date; + /** + * The lifecycle state of the announcement. + */ + "lifecycleState"?: AnnouncementSummary.LifecycleState; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace AnnouncementSummary { + export enum LifecycleState { + Active = "ACTIVE", + Inactive = "INACTIVE", + Deleted = "DELETED", + Failed = "FAILED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: AnnouncementSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: AnnouncementSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/api-based-execution-details.ts b/lib/fleetappsmanagement/lib/model/api-based-execution-details.ts new file mode 100644 index 0000000000..a9e2dbb726 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/api-based-execution-details.ts @@ -0,0 +1,56 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for API based execution + */ +export interface ApiBasedExecutionDetails extends model.ExecutionDetails { + /** + * Endpoint to be invoked. + */ + "endpoint": string; + + "executionType": string; +} + +export namespace ApiBasedExecutionDetails { + export function getJsonObj(obj: ApiBasedExecutionDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExecutionDetails.getJsonObj(obj) as ApiBasedExecutionDetails)), + ...{} + }; + + return jsonObj; + } + export const executionType = "API"; + export function getDeserializedJsonObj( + obj: ApiBasedExecutionDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExecutionDetails.getDeserializedJsonObj(obj) as ApiBasedExecutionDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/associated-fleet-credential-details.ts b/lib/fleetappsmanagement/lib/model/associated-fleet-credential-details.ts new file mode 100644 index 0000000000..e1c51b24b9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/associated-fleet-credential-details.ts @@ -0,0 +1,77 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new FleetCredential. + */ +export interface AssociatedFleetCredentialDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + "entitySpecifics": model.TargetCredentialEntitySpecificDetails; + "user": + | model.PlainTextCredentialDetails + | model.KeyEncryptionCredentialDetails + | model.VaultSecretCredentialDetails; + "password": + | model.PlainTextCredentialDetails + | model.KeyEncryptionCredentialDetails + | model.VaultSecretCredentialDetails; +} + +export namespace AssociatedFleetCredentialDetails { + export function getJsonObj(obj: AssociatedFleetCredentialDetails): object { + const jsonObj = { + ...obj, + ...{ + "entitySpecifics": obj.entitySpecifics + ? model.CredentialEntitySpecificDetails.getJsonObj(obj.entitySpecifics) + : undefined, + "user": obj.user ? model.CredentialDetails.getJsonObj(obj.user) : undefined, + "password": obj.password ? model.CredentialDetails.getJsonObj(obj.password) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: AssociatedFleetCredentialDetails): object { + const jsonObj = { + ...obj, + ...{ + "entitySpecifics": obj.entitySpecifics + ? model.CredentialEntitySpecificDetails.getDeserializedJsonObj(obj.entitySpecifics) + : undefined, + "user": obj.user ? model.CredentialDetails.getDeserializedJsonObj(obj.user) : undefined, + "password": obj.password + ? model.CredentialDetails.getDeserializedJsonObj(obj.password) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/associated-fleet-property-details.ts b/lib/fleetappsmanagement/lib/model/associated-fleet-property-details.ts new file mode 100644 index 0000000000..bd76a1a583 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/associated-fleet-property-details.ts @@ -0,0 +1,70 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new FleetProperty. + */ +export interface AssociatedFleetPropertyDetails { + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * Type of the FleetProperty. + */ + "fleetPropertyType": AssociatedFleetPropertyDetails.FleetPropertyType; + /** + * Value of the Property + */ + "value"?: string; + /** + * Property is required or not + */ + "isRequired"?: boolean; +} + +export namespace AssociatedFleetPropertyDetails { + export enum FleetPropertyType { + String = "STRING", + Number = "NUMBER", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: AssociatedFleetPropertyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: AssociatedFleetPropertyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/associated-fleet-resource-details.ts b/lib/fleetappsmanagement/lib/model/associated-fleet-resource-details.ts new file mode 100644 index 0000000000..b9c2b053b6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/associated-fleet-resource-details.ts @@ -0,0 +1,52 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about associated FleetResource. + */ +export interface AssociatedFleetResourceDetails { + /** + * OCID of the reosurce. + */ + "resourceId": string; + /** + * Type of the FleetResource. + */ + "fleetResourceType"?: string; + /** + * Compartment Identifier. + */ + "compartmentId": string; + /** + * Tenancy Identifier. + */ + "tenancyId": string; +} + +export namespace AssociatedFleetResourceDetails { + export function getJsonObj(obj: AssociatedFleetResourceDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: AssociatedFleetResourceDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/associated-local-task-details.ts b/lib/fleetappsmanagement/lib/model/associated-local-task-details.ts new file mode 100644 index 0000000000..336fa2e9cb --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/associated-local-task-details.ts @@ -0,0 +1,88 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details of the task. + */ +export interface AssociatedLocalTaskDetails extends model.AssociatedTaskDetails { + "executionDetails": model.ScriptBasedExecutionDetails | model.ApiBasedExecutionDetails; + /** + * The description of the task. + */ + "description"?: string; + /** + * The platform of the runbook. + */ + "platform"?: string; + /** + * Make a copy of this task in Library + */ + "isCopyToLibraryEnabled"?: boolean; + /** + * The OS for the task. + */ + "osType": model.OsType; + "properties"?: model.Properties; + /** + * The name of the task + */ + "name"?: string; + + "scope": string; +} + +export namespace AssociatedLocalTaskDetails { + export function getJsonObj(obj: AssociatedLocalTaskDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AssociatedTaskDetails.getJsonObj(obj) as AssociatedLocalTaskDetails)), + ...{ + "executionDetails": obj.executionDetails + ? model.ExecutionDetails.getJsonObj(obj.executionDetails) + : undefined, + + "properties": obj.properties ? model.Properties.getJsonObj(obj.properties) : undefined + } + }; + + return jsonObj; + } + export const scope = "LOCAL"; + export function getDeserializedJsonObj( + obj: AssociatedLocalTaskDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AssociatedTaskDetails.getDeserializedJsonObj(obj) as AssociatedLocalTaskDetails)), + ...{ + "executionDetails": obj.executionDetails + ? model.ExecutionDetails.getDeserializedJsonObj(obj.executionDetails) + : undefined, + + "properties": obj.properties + ? model.Properties.getDeserializedJsonObj(obj.properties) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/associated-scheduler-definition.ts b/lib/fleetappsmanagement/lib/model/associated-scheduler-definition.ts new file mode 100644 index 0000000000..8dee050c7e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/associated-scheduler-definition.ts @@ -0,0 +1,56 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Associated SchedulerDefinition with the job. + */ +export interface AssociatedSchedulerDefinition { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * OCID of the tenancy to which the resource belongs to. + */ + "tenancyId": string; + /** + * Is this recurring schedule? + */ + "isRecurring": boolean; +} + +export namespace AssociatedSchedulerDefinition { + export function getJsonObj(obj: AssociatedSchedulerDefinition): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: AssociatedSchedulerDefinition): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/associated-shared-task-details.ts b/lib/fleetappsmanagement/lib/model/associated-shared-task-details.ts new file mode 100644 index 0000000000..c24a5ae939 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/associated-shared-task-details.ts @@ -0,0 +1,56 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details of the task. + */ +export interface AssociatedSharedTaskDetails extends model.AssociatedTaskDetails { + /** + * The ID of taskRecord. + */ + "taskRecordId": string; + + "scope": string; +} + +export namespace AssociatedSharedTaskDetails { + export function getJsonObj(obj: AssociatedSharedTaskDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AssociatedTaskDetails.getJsonObj(obj) as AssociatedSharedTaskDetails)), + ...{} + }; + + return jsonObj; + } + export const scope = "SHARED"; + export function getDeserializedJsonObj( + obj: AssociatedSharedTaskDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.AssociatedTaskDetails.getDeserializedJsonObj(obj) as AssociatedSharedTaskDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/associated-task-details.ts b/lib/fleetappsmanagement/lib/model/associated-task-details.ts new file mode 100644 index 0000000000..7c07820204 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/associated-task-details.ts @@ -0,0 +1,69 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details of the task. + */ +export interface AssociatedTaskDetails { + "scope": string; +} + +export namespace AssociatedTaskDetails { + export function getJsonObj(obj: AssociatedTaskDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "scope" in obj && obj.scope) { + switch (obj.scope) { + case "LOCAL": + return model.AssociatedLocalTaskDetails.getJsonObj( + (jsonObj), + true + ); + case "SHARED": + return model.AssociatedSharedTaskDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.scope}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: AssociatedTaskDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "scope" in obj && obj.scope) { + switch (obj.scope) { + case "LOCAL": + return model.AssociatedLocalTaskDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "SHARED": + return model.AssociatedSharedTaskDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.scope}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/associations.ts b/lib/fleetappsmanagement/lib/model/associations.ts new file mode 100644 index 0000000000..97459668f9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/associations.ts @@ -0,0 +1,83 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * JSON content with required associations + */ +export interface Associations { + /** + * A set of tasks to execute in the runbook + */ + "tasks": Array; + /** + * The groups of the runbook + */ + "groups": Array; + "executionWorkflowDetails": model.ExecutionWorkflowDetails; + /** + * The version of the runbook. + */ + "version"?: string; +} + +export namespace Associations { + export function getJsonObj(obj: Associations): object { + const jsonObj = { + ...obj, + ...{ + "tasks": obj.tasks + ? obj.tasks.map(item => { + return model.Task.getJsonObj(item); + }) + : undefined, + "groups": obj.groups + ? obj.groups.map(item => { + return model.Group.getJsonObj(item); + }) + : undefined, + "executionWorkflowDetails": obj.executionWorkflowDetails + ? model.ExecutionWorkflowDetails.getJsonObj(obj.executionWorkflowDetails) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Associations): object { + const jsonObj = { + ...obj, + ...{ + "tasks": obj.tasks + ? obj.tasks.map(item => { + return model.Task.getDeserializedJsonObj(item); + }) + : undefined, + "groups": obj.groups + ? obj.groups.map(item => { + return model.Group.getDeserializedJsonObj(item); + }) + : undefined, + "executionWorkflowDetails": obj.executionWorkflowDetails + ? model.ExecutionWorkflowDetails.getDeserializedJsonObj(obj.executionWorkflowDetails) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/check-resource-tagging-details.ts b/lib/fleetappsmanagement/lib/model/check-resource-tagging-details.ts new file mode 100644 index 0000000000..90ecb65437 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/check-resource-tagging-details.ts @@ -0,0 +1,48 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Request to check resource tagging + */ +export interface CheckResourceTaggingDetails { + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Fleet Name + */ + "fleetDisplayName"?: string; + /** + * Resource OCIDS that need to be verified if tag can be enabled + */ + "resourceIds": Array; +} + +export namespace CheckResourceTaggingDetails { + export function getJsonObj(obj: CheckResourceTaggingDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CheckResourceTaggingDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-report-patch-detail.ts b/lib/fleetappsmanagement/lib/model/compliance-report-patch-detail.ts new file mode 100644 index 0000000000..f3b6b406ae --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-report-patch-detail.ts @@ -0,0 +1,56 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the Patch + */ +export interface ComplianceReportPatchDetail { + /** + * The OCID to identify this analysis results. + */ + "patchName": string; + /** + * The OCID of the work request to start the analysis. + */ + "patchDescription"?: string; + /** + * Time the patch was applied + */ + "timeApplied"?: Date; + /** + * Date on which patch was released. + */ + "timeReleased"?: Date; + /** + * Type of patch. + */ + "patchType": string; +} + +export namespace ComplianceReportPatchDetail { + export function getJsonObj(obj: ComplianceReportPatchDetail): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceReportPatchDetail): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-report-product.ts b/lib/fleetappsmanagement/lib/model/compliance-report-product.ts new file mode 100644 index 0000000000..99a1f07893 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-report-product.ts @@ -0,0 +1,62 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the Product + */ +export interface ComplianceReportProduct { + /** + * Product Name + */ + "productName": string; + /** + * Managed Targets associated with the Product. + */ + "targets"?: Array; +} + +export namespace ComplianceReportProduct { + export function getJsonObj(obj: ComplianceReportProduct): object { + const jsonObj = { + ...obj, + ...{ + "targets": obj.targets + ? obj.targets.map(item => { + return model.ComplianceReportTarget.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceReportProduct): object { + const jsonObj = { + ...obj, + ...{ + "targets": obj.targets + ? obj.targets.map(item => { + return model.ComplianceReportTarget.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-report-resource.ts b/lib/fleetappsmanagement/lib/model/compliance-report-resource.ts new file mode 100644 index 0000000000..dd7cbf8f1e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-report-resource.ts @@ -0,0 +1,90 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the Resource + */ +export interface ComplianceReportResource { + /** + * The OCID to identify the resource. + */ + "resourceId": string; + /** + * Display name of the resource. + */ + "resourceName": string; + /** + * Type of the resource. + */ + "resourceType": string; + /** + * TenancyId of the resource. + */ + "tenancyId"?: string; + /** + * Tenancy the resource belongs to. + */ + "tenancyName"?: string; + /** + * Compartment the resource belongs to. + */ + "compartment"?: string; + /** + * Region the resource belongs to. + */ + "resourceRegion"?: string; + /** + * Last known compliance state of fleet. + */ + "complianceState": model.ComplianceState; + /** + * Products assocaited with the Fleet.Only products belonging to managed targets will be shown. + */ + "products"?: Array; +} + +export namespace ComplianceReportResource { + export function getJsonObj(obj: ComplianceReportResource): object { + const jsonObj = { + ...obj, + ...{ + "products": obj.products + ? obj.products.map(item => { + return model.ComplianceReportProduct.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceReportResource): object { + const jsonObj = { + ...obj, + ...{ + "products": obj.products + ? obj.products.map(item => { + return model.ComplianceReportProduct.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-report-target.ts b/lib/fleetappsmanagement/lib/model/compliance-report-target.ts new file mode 100644 index 0000000000..1f72501847 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-report-target.ts @@ -0,0 +1,88 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the Patch. + */ +export interface ComplianceReportTarget { + /** + * Target Identifier. + */ + "targetId": string; + /** + * Target Name. + */ + "targetName": string; + /** + * Current version. + */ + "version"?: string; + /** + * Last known compliance state of target. + */ + "complianceState": model.ComplianceState; + /** + * Installed Patches for the Target. + */ + "installedPatches"?: Array; + /** + * Recommended Patches for the Target. + */ + "recommendedPatches"?: Array; +} + +export namespace ComplianceReportTarget { + export function getJsonObj(obj: ComplianceReportTarget): object { + const jsonObj = { + ...obj, + ...{ + "installedPatches": obj.installedPatches + ? obj.installedPatches.map(item => { + return model.ComplianceReportPatchDetail.getJsonObj(item); + }) + : undefined, + "recommendedPatches": obj.recommendedPatches + ? obj.recommendedPatches.map(item => { + return model.ComplianceReportPatchDetail.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceReportTarget): object { + const jsonObj = { + ...obj, + ...{ + "installedPatches": obj.installedPatches + ? obj.installedPatches.map(item => { + return model.ComplianceReportPatchDetail.getDeserializedJsonObj(item); + }) + : undefined, + "recommendedPatches": obj.recommendedPatches + ? obj.recommendedPatches.map(item => { + return model.ComplianceReportPatchDetail.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-report.ts b/lib/fleetappsmanagement/lib/model/compliance-report.ts new file mode 100644 index 0000000000..7741342114 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-report.ts @@ -0,0 +1,70 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of a compliance report. + */ +export interface ComplianceReport { + /** + * Compliance Report Identifier + */ + "id": string; + /** + * The fleet OCID. + */ + "fleetId": string; + /** + * Last known compliance state of fleet. + */ + "complianceState": model.ComplianceState; + /** + * Resources assocaited with the Fleet. + */ + "resources"?: Array; +} + +export namespace ComplianceReport { + export function getJsonObj(obj: ComplianceReport): object { + const jsonObj = { + ...obj, + ...{ + "resources": obj.resources + ? obj.resources.map(item => { + return model.ComplianceReportResource.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComplianceReport): object { + const jsonObj = { + ...obj, + ...{ + "resources": obj.resources + ? obj.resources.map(item => { + return model.ComplianceReportResource.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/compliance-state.ts b/lib/fleetappsmanagement/lib/model/compliance-state.ts new file mode 100644 index 0000000000..c03c1fad88 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/compliance-state.ts @@ -0,0 +1,42 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible values for compliance state. + **/ +export enum ComplianceState { + Unknown = "UNKNOWN", + Compliant = "COMPLIANT", + NonCompliant = "NON_COMPLIANT", + Warning = "WARNING", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace ComplianceState { + export function getJsonObj(obj: ComplianceState): ComplianceState { + return obj; + } + export function getDeserializedJsonObj(obj: ComplianceState): ComplianceState { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/component-properties.ts b/lib/fleetappsmanagement/lib/model/component-properties.ts new file mode 100644 index 0000000000..5f3eca83be --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/component-properties.ts @@ -0,0 +1,59 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The properties of the task. + */ +export interface ComponentProperties { + /** + * The hosts to execute on. + */ + "runOn"?: string; + /** + * The condition in which the task is to be executed. + */ + "condition"?: string; + /** + * The action to be taken in case of task failure. + */ + "actionOnFailure": ComponentProperties.ActionOnFailure; +} + +export namespace ComponentProperties { + export enum ActionOnFailure { + Abort = "ABORT", + Continue = "CONTINUE", + Rollback = "ROLLBACK", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: ComponentProperties): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ComponentProperties): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/condition.ts b/lib/fleetappsmanagement/lib/model/condition.ts new file mode 100644 index 0000000000..ff2d43bd1e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/condition.ts @@ -0,0 +1,48 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Rule condition + */ +export interface Condition { + /** + * Attribute Group. + */ + "attrGroup": string; + /** + * Attribute Key. + */ + "attrKey": string; + /** + * Attribute Value. + */ + "attrValue": string; +} + +export namespace Condition { + export function getJsonObj(obj: Condition): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Condition): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/confirm-targets-details.ts b/lib/fleetappsmanagement/lib/model/confirm-targets-details.ts new file mode 100644 index 0000000000..3ca8028c72 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/confirm-targets-details.ts @@ -0,0 +1,59 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of the targets that needs to be confirmed for FAMS management + * + */ +export interface ConfirmTargetsDetails { + /** + * The targets to confirm. + */ + "targets": Array; +} + +export namespace ConfirmTargetsDetails { + export function getJsonObj(obj: ConfirmTargetsDetails): object { + const jsonObj = { + ...obj, + ...{ + "targets": obj.targets + ? obj.targets.map(item => { + return model.DiscoveredTarget.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ConfirmTargetsDetails): object { + const jsonObj = { + ...obj, + ...{ + "targets": obj.targets + ? obj.targets.map(item => { + return model.DiscoveredTarget.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/content-details.ts b/lib/fleetappsmanagement/lib/model/content-details.ts new file mode 100644 index 0000000000..4fc93676f3 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/content-details.ts @@ -0,0 +1,59 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Content Source Details. + */ +export interface ContentDetails { + "sourceType": string; +} + +export namespace ContentDetails { + export function getJsonObj(obj: ContentDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "sourceType" in obj && obj.sourceType) { + switch (obj.sourceType) { + case "OBJECT_STORAGE_BUCKET": + return model.ObjectStorageBucketContentDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.sourceType}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: ContentDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "sourceType" in obj && obj.sourceType) { + switch (obj.sourceType) { + case "OBJECT_STORAGE_BUCKET": + return model.ObjectStorageBucketContentDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.sourceType}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-fleet-credential-details.ts b/lib/fleetappsmanagement/lib/model/create-fleet-credential-details.ts new file mode 100644 index 0000000000..fd700aebd1 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-fleet-credential-details.ts @@ -0,0 +1,77 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new FleetCredential. + */ +export interface CreateFleetCredentialDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + "entitySpecifics": model.TargetCredentialEntitySpecificDetails; + "user": + | model.PlainTextCredentialDetails + | model.KeyEncryptionCredentialDetails + | model.VaultSecretCredentialDetails; + "password": + | model.PlainTextCredentialDetails + | model.KeyEncryptionCredentialDetails + | model.VaultSecretCredentialDetails; +} + +export namespace CreateFleetCredentialDetails { + export function getJsonObj(obj: CreateFleetCredentialDetails): object { + const jsonObj = { + ...obj, + ...{ + "entitySpecifics": obj.entitySpecifics + ? model.CredentialEntitySpecificDetails.getJsonObj(obj.entitySpecifics) + : undefined, + "user": obj.user ? model.CredentialDetails.getJsonObj(obj.user) : undefined, + "password": obj.password ? model.CredentialDetails.getJsonObj(obj.password) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreateFleetCredentialDetails): object { + const jsonObj = { + ...obj, + ...{ + "entitySpecifics": obj.entitySpecifics + ? model.CredentialEntitySpecificDetails.getDeserializedJsonObj(obj.entitySpecifics) + : undefined, + "user": obj.user ? model.CredentialDetails.getDeserializedJsonObj(obj.user) : undefined, + "password": obj.password + ? model.CredentialDetails.getDeserializedJsonObj(obj.password) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-fleet-details.ts b/lib/fleetappsmanagement/lib/model/create-fleet-details.ts new file mode 100644 index 0000000000..e310e96e7c --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-fleet-details.ts @@ -0,0 +1,130 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new Fleet. + */ +export interface CreateFleetDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Type of the Fleet + */ + "fleetType": string; + /** + * Products associated with the Fleet + */ + "products"?: Array; + /** + * Application Type associated with the Fleet.Applicable for Environment fleet types. + */ + "applicationType"?: string; + /** + * Environment Type associated with the Fleet.Applicable for Environment fleet types. + */ + "environmentType"?: string; + /** + * Group Type associated with Group Fleet.Applicable for Group fleet types. + */ + "groupType"?: string; + /** + * Type of resource selection in a fleet + */ + "resourceSelectionType"?: string; + "ruleSelectionCriteria"?: model.SelectionCriteria; + "notificationPreferences"?: model.NotificationPreferences; + /** + * Resources to be added during fleet creation when Resource selection type is Manual. + */ + "resources"?: Array; + /** + * A value which represents if auto confirming of the targets can be enabled + */ + "isTargetAutoConfirm"?: boolean; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CreateFleetDetails { + export function getJsonObj(obj: CreateFleetDetails): object { + const jsonObj = { + ...obj, + ...{ + "ruleSelectionCriteria": obj.ruleSelectionCriteria + ? model.SelectionCriteria.getJsonObj(obj.ruleSelectionCriteria) + : undefined, + "notificationPreferences": obj.notificationPreferences + ? model.NotificationPreferences.getJsonObj(obj.notificationPreferences) + : undefined, + "resources": obj.resources + ? obj.resources.map(item => { + return model.AssociatedFleetResourceDetails.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreateFleetDetails): object { + const jsonObj = { + ...obj, + ...{ + "ruleSelectionCriteria": obj.ruleSelectionCriteria + ? model.SelectionCriteria.getDeserializedJsonObj(obj.ruleSelectionCriteria) + : undefined, + "notificationPreferences": obj.notificationPreferences + ? model.NotificationPreferences.getDeserializedJsonObj(obj.notificationPreferences) + : undefined, + "resources": obj.resources + ? obj.resources.map(item => { + return model.AssociatedFleetResourceDetails.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-fleet-property-details.ts b/lib/fleetappsmanagement/lib/model/create-fleet-property-details.ts new file mode 100644 index 0000000000..deb9dbc578 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-fleet-property-details.ts @@ -0,0 +1,48 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new FleetProperty. + */ +export interface CreateFleetPropertyDetails { + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Value of the Property + */ + "value": string; + /** + * Property Id. + */ + "propertyId": string; +} + +export namespace CreateFleetPropertyDetails { + export function getJsonObj(obj: CreateFleetPropertyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreateFleetPropertyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-fleet-resource-details.ts b/lib/fleetappsmanagement/lib/model/create-fleet-resource-details.ts new file mode 100644 index 0000000000..1e1546180a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-fleet-resource-details.ts @@ -0,0 +1,56 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new FleetResource. + */ +export interface CreateFleetResourceDetails { + /** + * The OCID of the resource. + */ + "resourceId": string; + /** + * OCID of the tenancy to which the resource belongs to. + */ + "tenancyId": string; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * Type of the Resource. + */ + "resourceType"?: string; +} + +export namespace CreateFleetResourceDetails { + export function getJsonObj(obj: CreateFleetResourceDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreateFleetResourceDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-maintenance-window-details.ts b/lib/fleetappsmanagement/lib/model/create-maintenance-window-details.ts new file mode 100644 index 0000000000..657604a21e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-maintenance-window-details.ts @@ -0,0 +1,94 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new MaintenanceWindow. + */ +export interface CreateMaintenanceWindowDetails { + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Does the maintenenace window cause outage? + */ + "isOutage"?: boolean; + /** + * Type of maintenenace window + */ + "maintenanceWindowType"?: model.MaintenanceWindowType; + /** + * Start time of schedule + */ + "timeScheduleStart"?: Date; + /** + * Duration if schedule type is Custom + */ + "duration": string; + /** + * Is this is a recurring maintenance window + */ + "isRecurring"?: boolean; + /** + * Recurrence rule specification if recurring + */ + "recurrences"?: string; + /** + * Task initiation cutoff Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "taskInitiationCutoff"?: number; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CreateMaintenanceWindowDetails { + export function getJsonObj(obj: CreateMaintenanceWindowDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreateMaintenanceWindowDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-onboarding-details.ts b/lib/fleetappsmanagement/lib/model/create-onboarding-details.ts new file mode 100644 index 0000000000..c2108db9f2 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-onboarding-details.ts @@ -0,0 +1,48 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about enabling onboarding. + */ +export interface CreateOnboardingDetails { + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * A value determining FAMS tag is enabled or not + */ + "isFamsTagEnabled"?: boolean; + /** + * A value determining if cost tracking tag is enabled or not + */ + "isCostTrackingTagEnabled"?: boolean; +} + +export namespace CreateOnboardingDetails { + export function getJsonObj(obj: CreateOnboardingDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreateOnboardingDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-property-details.ts b/lib/fleetappsmanagement/lib/model/create-property-details.ts new file mode 100644 index 0000000000..fadb7fc4ad --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-property-details.ts @@ -0,0 +1,60 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new Property. + */ +export interface CreatePropertyDetails { + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * Text selection of the category + */ + "selection": model.Selection; + /** + * Format of the value + */ + "valueType": model.ValueType; + /** + * Values of the property (must be a single value if selection = 'single choice') + */ + "values"?: Array; +} + +export namespace CreatePropertyDetails { + export function getJsonObj(obj: CreatePropertyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreatePropertyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/create-scheduler-definition-details.ts b/lib/fleetappsmanagement/lib/model/create-scheduler-definition-details.ts new file mode 100644 index 0000000000..1e8cec0f96 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/create-scheduler-definition-details.ts @@ -0,0 +1,109 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information about new SchedulerDefinition. + */ +export interface CreateSchedulerDefinitionDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Activity Initiation Cut Off Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "activityInitiationCutOff"?: number; + "schedule": model.Schedule; + /** + * Action Groups associated with the Schedule. + */ + "actionGroups": Array; + /** + * Runbooks. + */ + "runBooks"?: Array; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace CreateSchedulerDefinitionDetails { + export function getJsonObj(obj: CreateSchedulerDefinitionDetails): object { + const jsonObj = { + ...obj, + ...{ + "schedule": obj.schedule ? model.Schedule.getJsonObj(obj.schedule) : undefined, + "actionGroups": obj.actionGroups + ? obj.actionGroups.map(item => { + return model.ActionGroup.getJsonObj(item); + }) + : undefined, + "runBooks": obj.runBooks + ? obj.runBooks.map(item => { + return model.OperationRunbook.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: CreateSchedulerDefinitionDetails): object { + const jsonObj = { + ...obj, + ...{ + "schedule": obj.schedule ? model.Schedule.getDeserializedJsonObj(obj.schedule) : undefined, + "actionGroups": obj.actionGroups + ? obj.actionGroups.map(item => { + return model.ActionGroup.getDeserializedJsonObj(item); + }) + : undefined, + "runBooks": obj.runBooks + ? obj.runBooks.map(item => { + return model.OperationRunbook.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/credential-details.ts b/lib/fleetappsmanagement/lib/model/credential-details.ts new file mode 100644 index 0000000000..866148a322 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/credential-details.ts @@ -0,0 +1,79 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Credential Details + */ +export interface CredentialDetails { + "credentialType": string; +} + +export namespace CredentialDetails { + export function getJsonObj(obj: CredentialDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "credentialType" in obj && obj.credentialType) { + switch (obj.credentialType) { + case "PLAIN_TEXT": + return model.PlainTextCredentialDetails.getJsonObj( + (jsonObj), + true + ); + case "KEY_ENCRYPTION": + return model.KeyEncryptionCredentialDetails.getJsonObj( + (jsonObj), + true + ); + case "VAULT_SECRET": + return model.VaultSecretCredentialDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.credentialType}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: CredentialDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "credentialType" in obj && obj.credentialType) { + switch (obj.credentialType) { + case "PLAIN_TEXT": + return model.PlainTextCredentialDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "KEY_ENCRYPTION": + return model.KeyEncryptionCredentialDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "VAULT_SECRET": + return model.VaultSecretCredentialDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.credentialType}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/credential-entity-specific-details.ts b/lib/fleetappsmanagement/lib/model/credential-entity-specific-details.ts new file mode 100644 index 0000000000..a76608e532 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/credential-entity-specific-details.ts @@ -0,0 +1,61 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Credential Details + */ +export interface CredentialEntitySpecificDetails { + "credentialLevel": string; +} + +export namespace CredentialEntitySpecificDetails { + export function getJsonObj(obj: CredentialEntitySpecificDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "credentialLevel" in obj && obj.credentialLevel) { + switch (obj.credentialLevel) { + case "TARGET": + return model.TargetCredentialEntitySpecificDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) + common.LOG.logger.info(`Unknown value for: ${obj.credentialLevel}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: CredentialEntitySpecificDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "credentialLevel" in obj && obj.credentialLevel) { + switch (obj.credentialLevel) { + case "TARGET": + return model.TargetCredentialEntitySpecificDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) + common.LOG.logger.info(`Unknown value for: ${obj.credentialLevel}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/details.ts b/lib/fleetappsmanagement/lib/model/details.ts new file mode 100644 index 0000000000..52fa7ecc22 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/details.ts @@ -0,0 +1,70 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details of the task. + */ +export interface Details { + "executionDetails"?: model.ScriptBasedExecutionDetails | model.ApiBasedExecutionDetails; + /** + * The platform of the runbook. + */ + "platform"?: string; + /** + * The OS for the task + */ + "osType": model.OsType; + /** + * The scope of the task + */ + "scope": model.TaskScope; + "properties"?: model.Properties; +} + +export namespace Details { + export function getJsonObj(obj: Details): object { + const jsonObj = { + ...obj, + ...{ + "executionDetails": obj.executionDetails + ? model.ExecutionDetails.getJsonObj(obj.executionDetails) + : undefined, + + "properties": obj.properties ? model.Properties.getJsonObj(obj.properties) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Details): object { + const jsonObj = { + ...obj, + ...{ + "executionDetails": obj.executionDetails + ? model.ExecutionDetails.getDeserializedJsonObj(obj.executionDetails) + : undefined, + + "properties": obj.properties + ? model.Properties.getDeserializedJsonObj(obj.properties) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/discovered-target.ts b/lib/fleetappsmanagement/lib/model/discovered-target.ts new file mode 100644 index 0000000000..ed0e32bf3e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/discovered-target.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * A target that is discovered by the Software discovery process. + * + */ +export interface DiscoveredTarget { + /** + * OCID of the Target. + */ + "targetId": string; + /** + * Target Name. + */ + "targetName": string; + /** + * Product that the target belongs to. + */ + "product": string; + /** + * Unique key that identify the resource that target belongs to. + */ + "resourceId": string; + /** + * Current version of Target + */ + "version"?: string; +} + +export namespace DiscoveredTarget { + export function getJsonObj(obj: DiscoveredTarget): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: DiscoveredTarget): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/entity-execution-details.ts b/lib/fleetappsmanagement/lib/model/entity-execution-details.ts new file mode 100644 index 0000000000..a7daf9f169 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/entity-execution-details.ts @@ -0,0 +1,86 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Activity Resource and execution details including outcome. + */ +export interface EntityExecutionDetails { + /** + * Resource Identifier associated with the Work Request + */ + "resourceId": string; + /** + * Resource Display Name + */ + "resourceDisplayName"?: string; + /** + * Description of the Work Request + */ + "description"?: string; + /** + * The sequence of the Resource + */ + "sequence"?: string; + /** + * Targets associated. + */ + "targets"?: Array; + /** + * Status of the Job at Resource Level + */ + "status": model.JobStatus; + /** + * The time the task started for the resource. An RFC3339 formatted datetime string + */ + "timeStarted"?: Date; + /** + * The time the task ended for the resource. An RFC3339 formatted datetime string + */ + "timeEnded"?: Date; +} + +export namespace EntityExecutionDetails { + export function getJsonObj(obj: EntityExecutionDetails): object { + const jsonObj = { + ...obj, + ...{ + "targets": obj.targets + ? obj.targets.map(item => { + return model.ActivityResourceTarget.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: EntityExecutionDetails): object { + const jsonObj = { + ...obj, + ...{ + "targets": obj.targets + ? obj.targets.map(item => { + return model.ActivityResourceTarget.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/execution-collection.ts b/lib/fleetappsmanagement/lib/model/execution-collection.ts new file mode 100644 index 0000000000..dfaf915bb4 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/execution-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a + */ +export interface ExecutionCollection { + /** + * List of Resource Level Executions. + */ + "items": Array; +} + +export namespace ExecutionCollection { + export function getJsonObj(obj: ExecutionCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ExecutionSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ExecutionCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ExecutionSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/execution-details.ts b/lib/fleetappsmanagement/lib/model/execution-details.ts new file mode 100644 index 0000000000..58e89e8186 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/execution-details.ts @@ -0,0 +1,69 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Content Source Details + */ +export interface ExecutionDetails { + "executionType": string; +} + +export namespace ExecutionDetails { + export function getJsonObj(obj: ExecutionDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "executionType" in obj && obj.executionType) { + switch (obj.executionType) { + case "SCRIPT": + return model.ScriptBasedExecutionDetails.getJsonObj( + (jsonObj), + true + ); + case "API": + return model.ApiBasedExecutionDetails.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.executionType}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: ExecutionDetails): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "executionType" in obj && obj.executionType) { + switch (obj.executionType) { + case "SCRIPT": + return model.ScriptBasedExecutionDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + case "API": + return model.ApiBasedExecutionDetails.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.executionType}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/execution-summary.ts b/lib/fleetappsmanagement/lib/model/execution-summary.ts new file mode 100644 index 0000000000..4a764f501c --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/execution-summary.ts @@ -0,0 +1,78 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Task associated with the Job. + */ +export interface ExecutionSummary { + /** + * Unique Id assocaited with the Task Execution + */ + "id": string; + /** + * The OCID of taskRecord + */ + "taskRecordId"?: string; + /** + * Name of the Step + */ + "stepName"?: string; + /** + * Unique process reference identifier returned by the execution client + */ + "processReferenceId"?: string; + /** + * The sequence of the task + */ + "sequence"?: string; + /** + * Status of the Task + */ + "status": model.JobStatus; + /** + * Target associated with the execution + */ + "targetId"?: string; + /** + * The time the task started. An RFC3339 formatted datetime string + */ + "timeStarted"?: Date; + /** + * The time the task ended. An RFC3339 formatted datetime string + */ + "timeEnded"?: Date; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace ExecutionSummary { + export function getJsonObj(obj: ExecutionSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ExecutionSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/execution-workflow-details.ts b/lib/fleetappsmanagement/lib/model/execution-workflow-details.ts new file mode 100644 index 0000000000..3a4b31468c --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/execution-workflow-details.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Execution Workflow. + */ +export interface ExecutionWorkflowDetails { + /** + * Execution Workflow for the runbook. + */ + "workflow": Array; +} + +export namespace ExecutionWorkflowDetails { + export function getJsonObj(obj: ExecutionWorkflowDetails): object { + const jsonObj = { + ...obj, + ...{ + "workflow": obj.workflow + ? obj.workflow.map(item => { + return model.WorkflowGroup.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ExecutionWorkflowDetails): object { + const jsonObj = { + ...obj, + ...{ + "workflow": obj.workflow + ? obj.workflow.map(item => { + return model.WorkflowGroup.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/execution.ts b/lib/fleetappsmanagement/lib/model/execution.ts new file mode 100644 index 0000000000..33ac93d5f5 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/execution.ts @@ -0,0 +1,93 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Task Execution associated with the Job. + */ +export interface Execution { + /** + * Unique Id assocaited with the Task Execution + */ + "id": string; + /** + * The OCID of taskRecord + */ + "taskRecordId"?: string; + /** + * Name of the step + */ + "stepName"?: string; + /** + * Unique process reference identifier returned by the execution client + */ + "processReferenceId"?: string; + /** + * The sequence of the task + */ + "sequence"?: string; + /** + * Subjects which are tied to the task + */ + "subjects"?: Array; + /** + * Status of the Task + */ + "status": model.JobStatus; + "outcome"?: model.Outcome; + /** + * Target associated with the execution + */ + "targetId"?: string; + /** + * The time the task started. An RFC3339 formatted datetime string + */ + "timeStarted"?: Date; + /** + * The time the task ended. An RFC3339 formatted datetime string + */ + "timeEnded"?: Date; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace Execution { + export function getJsonObj(obj: Execution): object { + const jsonObj = { + ...obj, + ...{ + "outcome": obj.outcome ? model.Outcome.getJsonObj(obj.outcome) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Execution): object { + const jsonObj = { + ...obj, + ...{ + "outcome": obj.outcome ? model.Outcome.getDeserializedJsonObj(obj.outcome) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-collection.ts new file mode 100644 index 0000000000..df3ac3475e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a fleet search. Contains both FleetSummary items and other information, such as metadata. + */ +export interface FleetCollection { + /** + * List of fleets. + */ + "items": Array; +} + +export namespace FleetCollection { + export function getJsonObj(obj: FleetCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-credential-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-credential-collection.ts new file mode 100644 index 0000000000..10116cf421 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-credential-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a fleetCredential search. Contains boh FleetCredentialSummary items and other information, such as metadata. + */ +export interface FleetCredentialCollection { + /** + * List of fleetCredentials. + */ + "items": Array; +} + +export namespace FleetCredentialCollection { + export function getJsonObj(obj: FleetCredentialCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetCredentialSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetCredentialCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetCredentialSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-credential-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-credential-summary.ts new file mode 100644 index 0000000000..375aa467a4 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-credential-summary.ts @@ -0,0 +1,103 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the FleetCredential. + */ +export interface FleetCredentialSummary { + /** + * The unique id of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Tenancy OCID + */ + "compartmentId"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + "entitySpecifics": model.TargetCredentialEntitySpecificDetails; + "user"?: + | model.PlainTextCredentialDetails + | model.KeyEncryptionCredentialDetails + | model.VaultSecretCredentialDetails; + "password"?: + | model.PlainTextCredentialDetails + | model.KeyEncryptionCredentialDetails + | model.VaultSecretCredentialDetails; + /** + * The current state of the FleetCredential. + */ + "lifecycleState": string; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace FleetCredentialSummary { + export function getJsonObj(obj: FleetCredentialSummary): object { + const jsonObj = { + ...obj, + ...{ + "entitySpecifics": obj.entitySpecifics + ? model.CredentialEntitySpecificDetails.getJsonObj(obj.entitySpecifics) + : undefined, + "user": obj.user ? model.CredentialDetails.getJsonObj(obj.user) : undefined, + "password": obj.password ? model.CredentialDetails.getJsonObj(obj.password) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetCredentialSummary): object { + const jsonObj = { + ...obj, + ...{ + "entitySpecifics": obj.entitySpecifics + ? model.CredentialEntitySpecificDetails.getDeserializedJsonObj(obj.entitySpecifics) + : undefined, + "user": obj.user ? model.CredentialDetails.getDeserializedJsonObj(obj.user) : undefined, + "password": obj.password + ? model.CredentialDetails.getDeserializedJsonObj(obj.password) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-credential.ts b/lib/fleetappsmanagement/lib/model/fleet-credential.ts new file mode 100644 index 0000000000..7e1e97828e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-credential.ts @@ -0,0 +1,114 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Description of FleetCredential. + */ +export interface FleetCredential { + /** + * The unique id of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + "entitySpecifics": model.TargetCredentialEntitySpecificDetails; + "user"?: + | model.PlainTextCredentialDetails + | model.KeyEncryptionCredentialDetails + | model.VaultSecretCredentialDetails; + "password"?: + | model.PlainTextCredentialDetails + | model.KeyEncryptionCredentialDetails + | model.VaultSecretCredentialDetails; + /** + * The current state of the FleetCredential. + */ + "lifecycleState": FleetCredential.LifecycleState; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace FleetCredential { + export enum LifecycleState { + Active = "ACTIVE", + Deleted = "DELETED", + Failed = "FAILED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: FleetCredential): object { + const jsonObj = { + ...obj, + ...{ + "entitySpecifics": obj.entitySpecifics + ? model.CredentialEntitySpecificDetails.getJsonObj(obj.entitySpecifics) + : undefined, + "user": obj.user ? model.CredentialDetails.getJsonObj(obj.user) : undefined, + "password": obj.password ? model.CredentialDetails.getJsonObj(obj.password) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetCredential): object { + const jsonObj = { + ...obj, + ...{ + "entitySpecifics": obj.entitySpecifics + ? model.CredentialEntitySpecificDetails.getDeserializedJsonObj(obj.entitySpecifics) + : undefined, + "user": obj.user ? model.CredentialDetails.getDeserializedJsonObj(obj.user) : undefined, + "password": obj.password + ? model.CredentialDetails.getDeserializedJsonObj(obj.password) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-product-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-product-collection.ts new file mode 100644 index 0000000000..93dcbe951e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-product-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a fleetProduct search. Contains boh FleetProductSummary items and other information, such as metadata. + */ +export interface FleetProductCollection { + /** + * List of fleetProducts. + */ + "items": Array; +} + +export namespace FleetProductCollection { + export function getJsonObj(obj: FleetProductCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetProductSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetProductCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetProductSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-product-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-product-summary.ts new file mode 100644 index 0000000000..6541b89c16 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-product-summary.ts @@ -0,0 +1,71 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the FleetProduct. + */ +export interface FleetProductSummary { + /** + * Root Compartment Id. + */ + "compartmentId"?: string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Count of targets associated with the Product Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "targetCount"?: number; + "resource": model.TargetResource; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace FleetProductSummary { + export function getJsonObj(obj: FleetProductSummary): object { + const jsonObj = { + ...obj, + ...{ + "resource": obj.resource ? model.TargetResource.getJsonObj(obj.resource) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetProductSummary): object { + const jsonObj = { + ...obj, + ...{ + "resource": obj.resource + ? model.TargetResource.getDeserializedJsonObj(obj.resource) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-property-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-property-collection.ts new file mode 100644 index 0000000000..d300288fb9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-property-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a fleetProperty search. Contains boh FleetPropertySummary items and other information, such as metadata. + */ +export interface FleetPropertyCollection { + /** + * List of fleetPropertys. + */ + "items": Array; +} + +export namespace FleetPropertyCollection { + export function getJsonObj(obj: FleetPropertyCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetPropertySummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetPropertyCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetPropertySummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-property-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-property-summary.ts new file mode 100644 index 0000000000..ae0ed50799 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-property-summary.ts @@ -0,0 +1,82 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the FleetProperty. + */ +export interface FleetPropertySummary { + /** + * The unique id of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Property Id. + */ + "propertyId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Value of the Property + */ + "value"?: string; + /** + * Type of the FleetProperty. + */ + "valueType": model.ValueType; + /** + * The current state of the FleetProperty. + */ + "lifecycleState": string; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace FleetPropertySummary { + export function getJsonObj(obj: FleetPropertySummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetPropertySummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-property.ts b/lib/fleetappsmanagement/lib/model/fleet-property.ts new file mode 100644 index 0000000000..c8eb2eeb70 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-property.ts @@ -0,0 +1,101 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Property associated with a Fleet. + */ +export interface FleetProperty { + /** + * The unique id of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Value of the Property + */ + "value"?: string; + /** + * Property Id Ocid. + */ + "propertyId"?: string; + /** + * Text selection of the category + */ + "selectionType": model.Selection; + /** + * Format of the value + */ + "valueType": model.ValueType; + /** + * Values of the category (must be a single value if selection = 'single choice') + */ + "allowedValues"?: Array; + /** + * The current state of the FleetProperty. + */ + "lifecycleState": FleetProperty.LifecycleState; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace FleetProperty { + export enum LifecycleState { + Active = "ACTIVE", + Deleted = "DELETED", + Failed = "FAILED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: FleetProperty): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetProperty): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-resource-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-resource-collection.ts new file mode 100644 index 0000000000..b809b55960 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-resource-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a fleetResource search. Contains boh FleetResourceSummary items and other information, such as metadata. + */ +export interface FleetResourceCollection { + /** + * List of fleetResources. + */ + "items": Array; +} + +export namespace FleetResourceCollection { + export function getJsonObj(obj: FleetResourceCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetResourceSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetResourceCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetResourceSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-resource-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-resource-summary.ts new file mode 100644 index 0000000000..d0faf6b1fa --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-resource-summary.ts @@ -0,0 +1,124 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the FleetResource. + */ +export interface FleetResourceSummary { + /** + * The unique id of the resource. + */ + "id": string; + /** + * OCID of the tenancy to which the resource belongs to. + */ + "tenancyId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * The OCID of the resource. + */ + "resourceId": string; + /** + * Compliance State of the Resource + */ + "complianceState"?: model.ComplianceState; + /** + * Resource Tenancy Name + */ + "tenancyName"?: string; + /** + * Resource Compartment + */ + "compartment"?: string; + /** + * Type of the Resource. + */ + "resourceType": string; + /** + * Count of products within the resource. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "productCount"?: number; + /** + * Count of targets within the resource. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "targetCount"?: number; + /** + * Product associated with the resource when resource type is fleet.Will only be returned for PRODUCT fleets that are part of a GROUP Fleet + */ + "product"?: string; + /** + * Application Type associated with the resource when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + */ + "applicationType"?: string; + /** + * Environment Type associated with the Fleet when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + */ + "environmentType"?: string; + /** + * The current state of the FleetResource. + */ + "lifecycleState": string; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace FleetResourceSummary { + export function getJsonObj(obj: FleetResourceSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetResourceSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-resource.ts b/lib/fleetappsmanagement/lib/model/fleet-resource.ts new file mode 100644 index 0000000000..7645078bd6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-resource.ts @@ -0,0 +1,136 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Resource added to a Fleet. + */ +export interface FleetResource { + /** + * The unique id of the resource. + */ + "id": string; + /** + * OCID of the tenancy to which the resource belongs to. + */ + "tenancyId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * The OCID of the resource. + */ + "resourceId": string; + /** + * Resource Compartment + */ + "compartment"?: string; + /** + * Compliance State of the Resource + */ + "complianceState"?: model.ComplianceState; + /** + * Resource Tenancy Name + */ + "tenancyName"?: string; + /** + * Type of the Resource. + */ + "resourceType": string; + /** + * Count of products within the resource. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "productCount"?: number; + /** + * Count of targets within the resource. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "targetCount"?: number; + /** + * Product associated with the resource when resource type is fleet.Will only be returned for PRODUCT fleets that are part of a GROUP Fleet + */ + "product"?: string; + /** + * Application Type associated with the resource when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + */ + "applicationType"?: string; + /** + * Environment Type associated with the Fleet when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet. + * + */ + "environmentType"?: string; + /** + * The current state of the FleetResource. + */ + "lifecycleState": FleetResource.LifecycleState; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace FleetResource { + export enum LifecycleState { + Active = "ACTIVE", + Deleted = "DELETED", + Failed = "FAILED", + NeedsAttention = "NEEDS_ATTENTION", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: FleetResource): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetResource): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-summary.ts new file mode 100644 index 0000000000..e42cf59f86 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-summary.ts @@ -0,0 +1,98 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the Fleet. + */ +export interface FleetSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Type of the Fleet. + */ + "fleetType": string; + /** + * Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + */ + "environmentType"?: string; + /** + * The current state of the Fleet. + */ + "lifecycleState": string; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace FleetSummary { + export function getJsonObj(obj: FleetSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-target-collection.ts b/lib/fleetappsmanagement/lib/model/fleet-target-collection.ts new file mode 100644 index 0000000000..fcc691e179 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-target-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a fleetTarget search. Contains both FleetTargetSummary items and other information, such as metadata. + */ +export interface FleetTargetCollection { + /** + * List of fleetTargets. + */ + "items": Array; +} + +export namespace FleetTargetCollection { + export function getJsonObj(obj: FleetTargetCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetTargetSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetTargetCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.FleetTargetSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-target-summary.ts b/lib/fleetappsmanagement/lib/model/fleet-target-summary.ts new file mode 100644 index 0000000000..2ecbc25c4f --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-target-summary.ts @@ -0,0 +1,87 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the FleetTarget. + */ +export interface FleetTargetSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId"?: string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Current version of Target + */ + "version"?: string; + /** + * Product to which the target belongs to. + */ + "product"?: string; + "resource"?: model.TargetResource; + /** + * Last known compliance state of Target. + */ + "complianceState"?: model.ComplianceState; + /** + * The current state of the FleetTarget. + */ + "lifecycleState"?: string; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace FleetTargetSummary { + export function getJsonObj(obj: FleetTargetSummary): object { + const jsonObj = { + ...obj, + ...{ + "resource": obj.resource ? model.TargetResource.getJsonObj(obj.resource) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetTargetSummary): object { + const jsonObj = { + ...obj, + ...{ + "resource": obj.resource + ? model.TargetResource.getDeserializedJsonObj(obj.resource) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet-target.ts b/lib/fleetappsmanagement/lib/model/fleet-target.ts new file mode 100644 index 0000000000..d75e0e78df --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet-target.ts @@ -0,0 +1,97 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Description of FleetTarget. + */ +export interface FleetTarget { + /** + * The OCID of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId"?: string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated"?: Date; + /** + * Current version of Target + */ + "version"?: string; + /** + * Product to which the target belongs to. + */ + "product"?: string; + "resource"?: model.TargetResource; + /** + * Last known compliance state of Target. + */ + "complianceState"?: model.ComplianceState; + /** + * The current state of the FleetTarget. + */ + "lifecycleState"?: FleetTarget.LifecycleState; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace FleetTarget { + export enum LifecycleState { + Active = "ACTIVE", + Deleted = "DELETED", + Failed = "FAILED" + } + + export function getJsonObj(obj: FleetTarget): object { + const jsonObj = { + ...obj, + ...{ + "resource": obj.resource ? model.TargetResource.getJsonObj(obj.resource) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: FleetTarget): object { + const jsonObj = { + ...obj, + ...{ + "resource": obj.resource + ? model.TargetResource.getDeserializedJsonObj(obj.resource) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/fleet.ts b/lib/fleetappsmanagement/lib/model/fleet.ts new file mode 100644 index 0000000000..1015d8ac1f --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/fleet.ts @@ -0,0 +1,236 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Description of Fleet. + */ +export interface Fleet { + /** + * The OCID of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Type of the Fleet. + */ + "fleetType": Fleet.FleetType; + /** + * Products associated with the Fleet + */ + "products"?: Array; + /** + * Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + */ + "applicationType"?: string; + /** + * Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types. + */ + "environmentType"?: string; + /** + * Group Type associated with Group Fleet.Applicable for GROUP fleet types. + */ + "groupType"?: Fleet.GroupType; + /** + * Type of resource selection in a fleet. + */ + "resourceSelectionType"?: Fleet.ResourceSelectionType; + "ruleSelectionCriteria"?: model.SelectionCriteria; + "notificationPreferences"?: model.NotificationPreferences; + /** + * Resources to be added during fleet creation when Resource selection type is Manual. + */ + "resources"?: Array; + /** + * Properties to be added during fleet creation. + */ + "properties"?: Array; + /** + * Credentials to be added during fleet creation. + */ + "credentials"?: Array; + /** + * A value which represents if auto confirming of the targets can be enabled + */ + "isTargetAutoConfirm"?: boolean; + /** + * The lifecycle state of the Fleet. + */ + "lifecycleState": Fleet.LifecycleState; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags": { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags": { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace Fleet { + export enum FleetType { + Product = "PRODUCT", + Environment = "ENVIRONMENT", + Generic = "GENERIC", + Group = "GROUP", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum GroupType { + Environment = "ENVIRONMENT", + Product = "PRODUCT", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum ResourceSelectionType { + Dynamic = "DYNAMIC", + Manual = "MANUAL", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum LifecycleState { + Active = "ACTIVE", + Inactive = "INACTIVE", + Creating = "CREATING", + Deleted = "DELETED", + Deleting = "DELETING", + Failed = "FAILED", + Updating = "UPDATING", + NeedsAttention = "NEEDS_ATTENTION", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Fleet): object { + const jsonObj = { + ...obj, + ...{ + "ruleSelectionCriteria": obj.ruleSelectionCriteria + ? model.SelectionCriteria.getJsonObj(obj.ruleSelectionCriteria) + : undefined, + "notificationPreferences": obj.notificationPreferences + ? model.NotificationPreferences.getJsonObj(obj.notificationPreferences) + : undefined, + "resources": obj.resources + ? obj.resources.map(item => { + return model.AssociatedFleetResourceDetails.getJsonObj(item); + }) + : undefined, + "properties": obj.properties + ? obj.properties.map(item => { + return model.AssociatedFleetPropertyDetails.getJsonObj(item); + }) + : undefined, + "credentials": obj.credentials + ? obj.credentials.map(item => { + return model.AssociatedFleetCredentialDetails.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Fleet): object { + const jsonObj = { + ...obj, + ...{ + "ruleSelectionCriteria": obj.ruleSelectionCriteria + ? model.SelectionCriteria.getDeserializedJsonObj(obj.ruleSelectionCriteria) + : undefined, + "notificationPreferences": obj.notificationPreferences + ? model.NotificationPreferences.getDeserializedJsonObj(obj.notificationPreferences) + : undefined, + "resources": obj.resources + ? obj.resources.map(item => { + return model.AssociatedFleetResourceDetails.getDeserializedJsonObj(item); + }) + : undefined, + "properties": obj.properties + ? obj.properties.map(item => { + return model.AssociatedFleetPropertyDetails.getDeserializedJsonObj(item); + }) + : undefined, + "credentials": obj.credentials + ? obj.credentials.map(item => { + return model.AssociatedFleetCredentialDetails.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/generate-compliance-report-details.ts b/lib/fleetappsmanagement/lib/model/generate-compliance-report-details.ts new file mode 100644 index 0000000000..e4d439d6aa --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/generate-compliance-report-details.ts @@ -0,0 +1,41 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Request to generate compliance report fort the fleet + * + */ +export interface GenerateComplianceReportDetails { + /** + * Are compliance details required at target level also + */ + "areDetailsRequired"?: string; +} + +export namespace GenerateComplianceReportDetails { + export function getJsonObj(obj: GenerateComplianceReportDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: GenerateComplianceReportDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/group.ts b/lib/fleetappsmanagement/lib/model/group.ts new file mode 100644 index 0000000000..c0f559da60 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/group.ts @@ -0,0 +1,70 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The group of the runbook + */ +export interface Group { + /** + * The type of the group + */ + "type": Group.Type; + /** + * The name of the group + */ + "name": string; + "properties"?: model.ComponentProperties; +} + +export namespace Group { + export enum Type { + ParallelTaskGroup = "PARALLEL_TASK_GROUP", + ParallelResourceGroup = "PARALLEL_RESOURCE_GROUP", + RollingResourceGroup = "ROLLING_RESOURCE_GROUP", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Group): object { + const jsonObj = { + ...obj, + ...{ + "properties": obj.properties + ? model.ComponentProperties.getJsonObj(obj.properties) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Group): object { + const jsonObj = { + ...obj, + ...{ + "properties": obj.properties + ? model.ComponentProperties.getDeserializedJsonObj(obj.properties) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/index.ts b/lib/fleetappsmanagement/lib/model/index.ts new file mode 100644 index 0000000000..dfebcc3acc --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/index.ts @@ -0,0 +1,322 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as ActionGroup from "./action-group"; +export import ActionGroup = ActionGroup.ActionGroup; +import * as ActionGroupDetails from "./action-group-details"; +export import ActionGroupDetails = ActionGroupDetails.ActionGroupDetails; +import * as ActionType from "./action-type"; +export import ActionType = ActionType.ActionType; +import * as ActivityResourceTarget from "./activity-resource-target"; +export import ActivityResourceTarget = ActivityResourceTarget.ActivityResourceTarget; +import * as AnnouncementCollection from "./announcement-collection"; +export import AnnouncementCollection = AnnouncementCollection.AnnouncementCollection; +import * as AnnouncementSortBy from "./announcement-sort-by"; +export import AnnouncementSortBy = AnnouncementSortBy.AnnouncementSortBy; +import * as AnnouncementSummary from "./announcement-summary"; +export import AnnouncementSummary = AnnouncementSummary.AnnouncementSummary; +import * as AssociatedFleetCredentialDetails from "./associated-fleet-credential-details"; +export import AssociatedFleetCredentialDetails = AssociatedFleetCredentialDetails.AssociatedFleetCredentialDetails; +import * as AssociatedFleetPropertyDetails from "./associated-fleet-property-details"; +export import AssociatedFleetPropertyDetails = AssociatedFleetPropertyDetails.AssociatedFleetPropertyDetails; +import * as AssociatedFleetResourceDetails from "./associated-fleet-resource-details"; +export import AssociatedFleetResourceDetails = AssociatedFleetResourceDetails.AssociatedFleetResourceDetails; +import * as AssociatedSchedulerDefinition from "./associated-scheduler-definition"; +export import AssociatedSchedulerDefinition = AssociatedSchedulerDefinition.AssociatedSchedulerDefinition; +import * as AssociatedTaskDetails from "./associated-task-details"; +export import AssociatedTaskDetails = AssociatedTaskDetails.AssociatedTaskDetails; +import * as Associations from "./associations"; +export import Associations = Associations.Associations; +import * as CheckResourceTaggingDetails from "./check-resource-tagging-details"; +export import CheckResourceTaggingDetails = CheckResourceTaggingDetails.CheckResourceTaggingDetails; +import * as ComplianceReport from "./compliance-report"; +export import ComplianceReport = ComplianceReport.ComplianceReport; +import * as ComplianceReportPatchDetail from "./compliance-report-patch-detail"; +export import ComplianceReportPatchDetail = ComplianceReportPatchDetail.ComplianceReportPatchDetail; +import * as ComplianceReportProduct from "./compliance-report-product"; +export import ComplianceReportProduct = ComplianceReportProduct.ComplianceReportProduct; +import * as ComplianceReportResource from "./compliance-report-resource"; +export import ComplianceReportResource = ComplianceReportResource.ComplianceReportResource; +import * as ComplianceReportTarget from "./compliance-report-target"; +export import ComplianceReportTarget = ComplianceReportTarget.ComplianceReportTarget; +import * as ComplianceState from "./compliance-state"; +export import ComplianceState = ComplianceState.ComplianceState; +import * as ComponentProperties from "./component-properties"; +export import ComponentProperties = ComponentProperties.ComponentProperties; +import * as Condition from "./condition"; +export import Condition = Condition.Condition; +import * as ConfirmTargetsDetails from "./confirm-targets-details"; +export import ConfirmTargetsDetails = ConfirmTargetsDetails.ConfirmTargetsDetails; +import * as ContentDetails from "./content-details"; +export import ContentDetails = ContentDetails.ContentDetails; +import * as CreateFleetCredentialDetails from "./create-fleet-credential-details"; +export import CreateFleetCredentialDetails = CreateFleetCredentialDetails.CreateFleetCredentialDetails; +import * as CreateFleetDetails from "./create-fleet-details"; +export import CreateFleetDetails = CreateFleetDetails.CreateFleetDetails; +import * as CreateFleetPropertyDetails from "./create-fleet-property-details"; +export import CreateFleetPropertyDetails = CreateFleetPropertyDetails.CreateFleetPropertyDetails; +import * as CreateFleetResourceDetails from "./create-fleet-resource-details"; +export import CreateFleetResourceDetails = CreateFleetResourceDetails.CreateFleetResourceDetails; +import * as CreateMaintenanceWindowDetails from "./create-maintenance-window-details"; +export import CreateMaintenanceWindowDetails = CreateMaintenanceWindowDetails.CreateMaintenanceWindowDetails; +import * as CreateOnboardingDetails from "./create-onboarding-details"; +export import CreateOnboardingDetails = CreateOnboardingDetails.CreateOnboardingDetails; +import * as CreatePropertyDetails from "./create-property-details"; +export import CreatePropertyDetails = CreatePropertyDetails.CreatePropertyDetails; +import * as CreateSchedulerDefinitionDetails from "./create-scheduler-definition-details"; +export import CreateSchedulerDefinitionDetails = CreateSchedulerDefinitionDetails.CreateSchedulerDefinitionDetails; +import * as CredentialDetails from "./credential-details"; +export import CredentialDetails = CredentialDetails.CredentialDetails; +import * as CredentialEntitySpecificDetails from "./credential-entity-specific-details"; +export import CredentialEntitySpecificDetails = CredentialEntitySpecificDetails.CredentialEntitySpecificDetails; +import * as Details from "./details"; +export import Details = Details.Details; +import * as DiscoveredTarget from "./discovered-target"; +export import DiscoveredTarget = DiscoveredTarget.DiscoveredTarget; +import * as EntityExecutionDetails from "./entity-execution-details"; +export import EntityExecutionDetails = EntityExecutionDetails.EntityExecutionDetails; +import * as Execution from "./execution"; +export import Execution = Execution.Execution; +import * as ExecutionCollection from "./execution-collection"; +export import ExecutionCollection = ExecutionCollection.ExecutionCollection; +import * as ExecutionDetails from "./execution-details"; +export import ExecutionDetails = ExecutionDetails.ExecutionDetails; +import * as ExecutionSummary from "./execution-summary"; +export import ExecutionSummary = ExecutionSummary.ExecutionSummary; +import * as ExecutionWorkflowDetails from "./execution-workflow-details"; +export import ExecutionWorkflowDetails = ExecutionWorkflowDetails.ExecutionWorkflowDetails; +import * as Fleet from "./fleet"; +export import Fleet = Fleet.Fleet; +import * as FleetCollection from "./fleet-collection"; +export import FleetCollection = FleetCollection.FleetCollection; +import * as FleetCredential from "./fleet-credential"; +export import FleetCredential = FleetCredential.FleetCredential; +import * as FleetCredentialCollection from "./fleet-credential-collection"; +export import FleetCredentialCollection = FleetCredentialCollection.FleetCredentialCollection; +import * as FleetCredentialSummary from "./fleet-credential-summary"; +export import FleetCredentialSummary = FleetCredentialSummary.FleetCredentialSummary; +import * as FleetProductCollection from "./fleet-product-collection"; +export import FleetProductCollection = FleetProductCollection.FleetProductCollection; +import * as FleetProductSummary from "./fleet-product-summary"; +export import FleetProductSummary = FleetProductSummary.FleetProductSummary; +import * as FleetProperty from "./fleet-property"; +export import FleetProperty = FleetProperty.FleetProperty; +import * as FleetPropertyCollection from "./fleet-property-collection"; +export import FleetPropertyCollection = FleetPropertyCollection.FleetPropertyCollection; +import * as FleetPropertySummary from "./fleet-property-summary"; +export import FleetPropertySummary = FleetPropertySummary.FleetPropertySummary; +import * as FleetResource from "./fleet-resource"; +export import FleetResource = FleetResource.FleetResource; +import * as FleetResourceCollection from "./fleet-resource-collection"; +export import FleetResourceCollection = FleetResourceCollection.FleetResourceCollection; +import * as FleetResourceSummary from "./fleet-resource-summary"; +export import FleetResourceSummary = FleetResourceSummary.FleetResourceSummary; +import * as FleetSummary from "./fleet-summary"; +export import FleetSummary = FleetSummary.FleetSummary; +import * as FleetTarget from "./fleet-target"; +export import FleetTarget = FleetTarget.FleetTarget; +import * as FleetTargetCollection from "./fleet-target-collection"; +export import FleetTargetCollection = FleetTargetCollection.FleetTargetCollection; +import * as FleetTargetSummary from "./fleet-target-summary"; +export import FleetTargetSummary = FleetTargetSummary.FleetTargetSummary; +import * as GenerateComplianceReportDetails from "./generate-compliance-report-details"; +export import GenerateComplianceReportDetails = GenerateComplianceReportDetails.GenerateComplianceReportDetails; +import * as Group from "./group"; +export import Group = Group.Group; +import * as InputArgument from "./input-argument"; +export import InputArgument = InputArgument.InputArgument; +import * as InputParameter from "./input-parameter"; +export import InputParameter = InputParameter.InputParameter; +import * as InventoryResourceCollection from "./inventory-resource-collection"; +export import InventoryResourceCollection = InventoryResourceCollection.InventoryResourceCollection; +import * as InventoryResourceSummary from "./inventory-resource-summary"; +export import InventoryResourceSummary = InventoryResourceSummary.InventoryResourceSummary; +import * as JobActivity from "./job-activity"; +export import JobActivity = JobActivity.JobActivity; +import * as JobStatus from "./job-status"; +export import JobStatus = JobStatus.JobStatus; +import * as LifeCycleActionGroupType from "./life-cycle-action-group-type"; +export import LifeCycleActionGroupType = LifeCycleActionGroupType.LifeCycleActionGroupType; +import * as MaintenanceWindow from "./maintenance-window"; +export import MaintenanceWindow = MaintenanceWindow.MaintenanceWindow; +import * as MaintenanceWindowCollection from "./maintenance-window-collection"; +export import MaintenanceWindowCollection = MaintenanceWindowCollection.MaintenanceWindowCollection; +import * as MaintenanceWindowSummary from "./maintenance-window-summary"; +export import MaintenanceWindowSummary = MaintenanceWindowSummary.MaintenanceWindowSummary; +import * as MaintenanceWindowType from "./maintenance-window-type"; +export import MaintenanceWindowType = MaintenanceWindowType.MaintenanceWindowType; +import * as NotificationPreferences from "./notification-preferences"; +export import NotificationPreferences = NotificationPreferences.NotificationPreferences; +import * as Onboarding from "./onboarding"; +export import Onboarding = Onboarding.Onboarding; +import * as OnboardingCollection from "./onboarding-collection"; +export import OnboardingCollection = OnboardingCollection.OnboardingCollection; +import * as OnboardingPolicyCollection from "./onboarding-policy-collection"; +export import OnboardingPolicyCollection = OnboardingPolicyCollection.OnboardingPolicyCollection; +import * as OnboardingPolicySummary from "./onboarding-policy-summary"; +export import OnboardingPolicySummary = OnboardingPolicySummary.OnboardingPolicySummary; +import * as OnboardingSummary from "./onboarding-summary"; +export import OnboardingSummary = OnboardingSummary.OnboardingSummary; +import * as OperationRunbook from "./operation-runbook"; +export import OperationRunbook = OperationRunbook.OperationRunbook; +import * as OperationStatus from "./operation-status"; +export import OperationStatus = OperationStatus.OperationStatus; +import * as OperationType from "./operation-type"; +export import OperationType = OperationType.OperationType; +import * as OsType from "./os-type"; +export import OsType = OsType.OsType; +import * as Outcome from "./outcome"; +export import Outcome = Outcome.Outcome; +import * as OutputVariableDetails from "./output-variable-details"; +export import OutputVariableDetails = OutputVariableDetails.OutputVariableDetails; +import * as OutputVariableMapping from "./output-variable-mapping"; +export import OutputVariableMapping = OutputVariableMapping.OutputVariableMapping; +import * as Preferences from "./preferences"; +export import Preferences = Preferences.Preferences; +import * as Properties from "./properties"; +export import Properties = Properties.Properties; +import * as Property from "./property"; +export import Property = Property.Property; +import * as PropertyCollection from "./property-collection"; +export import PropertyCollection = PropertyCollection.PropertyCollection; +import * as PropertySummary from "./property-summary"; +export import PropertySummary = PropertySummary.PropertySummary; +import * as RequestResourceValidationDetails from "./request-resource-validation-details"; +export import RequestResourceValidationDetails = RequestResourceValidationDetails.RequestResourceValidationDetails; +import * as RequestTargetDiscoveryDetails from "./request-target-discovery-details"; +export import RequestTargetDiscoveryDetails = RequestTargetDiscoveryDetails.RequestTargetDiscoveryDetails; +import * as ResourceTagCheckDetails from "./resource-tag-check-details"; +export import ResourceTagCheckDetails = ResourceTagCheckDetails.ResourceTagCheckDetails; +import * as ResourceTagEnablementInfo from "./resource-tag-enablement-info"; +export import ResourceTagEnablementInfo = ResourceTagEnablementInfo.ResourceTagEnablementInfo; +import * as Rule from "./rule"; +export import Rule = Rule.Rule; +import * as Runbook from "./runbook"; +export import Runbook = Runbook.Runbook; +import * as RunbookCollection from "./runbook-collection"; +export import RunbookCollection = RunbookCollection.RunbookCollection; +import * as RunbookSummary from "./runbook-summary"; +export import RunbookSummary = RunbookSummary.RunbookSummary; +import * as Schedule from "./schedule"; +export import Schedule = Schedule.Schedule; +import * as ScheduledFleetCollection from "./scheduled-fleet-collection"; +export import ScheduledFleetCollection = ScheduledFleetCollection.ScheduledFleetCollection; +import * as ScheduledFleetSummary from "./scheduled-fleet-summary"; +export import ScheduledFleetSummary = ScheduledFleetSummary.ScheduledFleetSummary; +import * as SchedulerDefinition from "./scheduler-definition"; +export import SchedulerDefinition = SchedulerDefinition.SchedulerDefinition; +import * as SchedulerDefinitionCollection from "./scheduler-definition-collection"; +export import SchedulerDefinitionCollection = SchedulerDefinitionCollection.SchedulerDefinitionCollection; +import * as SchedulerDefinitionSummary from "./scheduler-definition-summary"; +export import SchedulerDefinitionSummary = SchedulerDefinitionSummary.SchedulerDefinitionSummary; +import * as SchedulerJob from "./scheduler-job"; +export import SchedulerJob = SchedulerJob.SchedulerJob; +import * as SchedulerJobCollection from "./scheduler-job-collection"; +export import SchedulerJobCollection = SchedulerJobCollection.SchedulerJobCollection; +import * as SchedulerJobSummary from "./scheduler-job-summary"; +export import SchedulerJobSummary = SchedulerJobSummary.SchedulerJobSummary; +import * as Scope from "./scope"; +export import Scope = Scope.Scope; +import * as Selection from "./selection"; +export import Selection = Selection.Selection; +import * as SelectionCriteria from "./selection-criteria"; +export import SelectionCriteria = SelectionCriteria.SelectionCriteria; +import * as SortOrder from "./sort-order"; +export import SortOrder = SortOrder.SortOrder; +import * as TargetResource from "./target-resource"; +export import TargetResource = TargetResource.TargetResource; +import * as Task from "./task"; +export import Task = Task.Task; +import * as TaskArgument from "./task-argument"; +export import TaskArgument = TaskArgument.TaskArgument; +import * as TaskExecutionType from "./task-execution-type"; +export import TaskExecutionType = TaskExecutionType.TaskExecutionType; +import * as TaskRecord from "./task-record"; +export import TaskRecord = TaskRecord.TaskRecord; +import * as TaskRecordCollection from "./task-record-collection"; +export import TaskRecordCollection = TaskRecordCollection.TaskRecordCollection; +import * as TaskRecordSummary from "./task-record-summary"; +export import TaskRecordSummary = TaskRecordSummary.TaskRecordSummary; +import * as TaskScope from "./task-scope"; +export import TaskScope = TaskScope.TaskScope; +import * as TaskVariable from "./task-variable"; +export import TaskVariable = TaskVariable.TaskVariable; +import * as UpdateFleetCredentialDetails from "./update-fleet-credential-details"; +export import UpdateFleetCredentialDetails = UpdateFleetCredentialDetails.UpdateFleetCredentialDetails; +import * as UpdateFleetDetails from "./update-fleet-details"; +export import UpdateFleetDetails = UpdateFleetDetails.UpdateFleetDetails; +import * as UpdateFleetPropertyDetails from "./update-fleet-property-details"; +export import UpdateFleetPropertyDetails = UpdateFleetPropertyDetails.UpdateFleetPropertyDetails; +import * as UpdateFleetResourceDetails from "./update-fleet-resource-details"; +export import UpdateFleetResourceDetails = UpdateFleetResourceDetails.UpdateFleetResourceDetails; +import * as UpdateMaintenanceWindowDetails from "./update-maintenance-window-details"; +export import UpdateMaintenanceWindowDetails = UpdateMaintenanceWindowDetails.UpdateMaintenanceWindowDetails; +import * as UpdatePropertyDetails from "./update-property-details"; +export import UpdatePropertyDetails = UpdatePropertyDetails.UpdatePropertyDetails; +import * as UpdateSchedulerDefinitionDetails from "./update-scheduler-definition-details"; +export import UpdateSchedulerDefinitionDetails = UpdateSchedulerDefinitionDetails.UpdateSchedulerDefinitionDetails; +import * as UpdateSchedulerJobDetails from "./update-scheduler-job-details"; +export import UpdateSchedulerJobDetails = UpdateSchedulerJobDetails.UpdateSchedulerJobDetails; +import * as ValueType from "./value-type"; +export import ValueType = ValueType.ValueType; +import * as WorkRequest from "./work-request"; +export import WorkRequest = WorkRequest.WorkRequest; +import * as WorkRequestError from "./work-request-error"; +export import WorkRequestError = WorkRequestError.WorkRequestError; +import * as WorkRequestErrorCollection from "./work-request-error-collection"; +export import WorkRequestErrorCollection = WorkRequestErrorCollection.WorkRequestErrorCollection; +import * as WorkRequestLogEntry from "./work-request-log-entry"; +export import WorkRequestLogEntry = WorkRequestLogEntry.WorkRequestLogEntry; +import * as WorkRequestLogEntryCollection from "./work-request-log-entry-collection"; +export import WorkRequestLogEntryCollection = WorkRequestLogEntryCollection.WorkRequestLogEntryCollection; +import * as WorkRequestResource from "./work-request-resource"; +export import WorkRequestResource = WorkRequestResource.WorkRequestResource; +import * as WorkRequestResourceMetadataKey from "./work-request-resource-metadata-key"; +export import WorkRequestResourceMetadataKey = WorkRequestResourceMetadataKey.WorkRequestResourceMetadataKey; +import * as WorkRequestSummary from "./work-request-summary"; +export import WorkRequestSummary = WorkRequestSummary.WorkRequestSummary; +import * as WorkRequestSummaryCollection from "./work-request-summary-collection"; +export import WorkRequestSummaryCollection = WorkRequestSummaryCollection.WorkRequestSummaryCollection; +import * as WorkflowComponent from "./workflow-component"; +export import WorkflowComponent = WorkflowComponent.WorkflowComponent; +import * as WorkflowGroup from "./workflow-group"; +export import WorkflowGroup = WorkflowGroup.WorkflowGroup; + +import * as ApiBasedExecutionDetails from "./api-based-execution-details"; +export import ApiBasedExecutionDetails = ApiBasedExecutionDetails.ApiBasedExecutionDetails; +import * as AssociatedLocalTaskDetails from "./associated-local-task-details"; +export import AssociatedLocalTaskDetails = AssociatedLocalTaskDetails.AssociatedLocalTaskDetails; +import * as AssociatedSharedTaskDetails from "./associated-shared-task-details"; +export import AssociatedSharedTaskDetails = AssociatedSharedTaskDetails.AssociatedSharedTaskDetails; +import * as KeyEncryptionCredentialDetails from "./key-encryption-credential-details"; +export import KeyEncryptionCredentialDetails = KeyEncryptionCredentialDetails.KeyEncryptionCredentialDetails; +import * as ObjectStorageBucketContentDetails from "./object-storage-bucket-content-details"; +export import ObjectStorageBucketContentDetails = ObjectStorageBucketContentDetails.ObjectStorageBucketContentDetails; +import * as OutputVariableInputArgument from "./output-variable-input-argument"; +export import OutputVariableInputArgument = OutputVariableInputArgument.OutputVariableInputArgument; +import * as PlainTextCredentialDetails from "./plain-text-credential-details"; +export import PlainTextCredentialDetails = PlainTextCredentialDetails.PlainTextCredentialDetails; +import * as ScriptBasedExecutionDetails from "./script-based-execution-details"; +export import ScriptBasedExecutionDetails = ScriptBasedExecutionDetails.ScriptBasedExecutionDetails; +import * as StringInputArgument from "./string-input-argument"; +export import StringInputArgument = StringInputArgument.StringInputArgument; +import * as TargetCredentialEntitySpecificDetails from "./target-credential-entity-specific-details"; +export import TargetCredentialEntitySpecificDetails = TargetCredentialEntitySpecificDetails.TargetCredentialEntitySpecificDetails; +import * as VaultSecretCredentialDetails from "./vault-secret-credential-details"; +export import VaultSecretCredentialDetails = VaultSecretCredentialDetails.VaultSecretCredentialDetails; +import * as WorkflowGroupComponent from "./workflow-group-component"; +export import WorkflowGroupComponent = WorkflowGroupComponent.WorkflowGroupComponent; +import * as WorkflowTaskComponent from "./workflow-task-component"; +export import WorkflowTaskComponent = WorkflowTaskComponent.WorkflowTaskComponent; diff --git a/lib/fleetappsmanagement/lib/model/input-argument.ts b/lib/fleetappsmanagement/lib/model/input-argument.ts new file mode 100644 index 0000000000..b0a3ab5740 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/input-argument.ts @@ -0,0 +1,78 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details of the Input argument. + */ +export interface InputArgument { + /** + * The name of the argument + */ + "name": string; + /** + * The description of the argument. + */ + "description"?: string; + + "type": string; +} + +export namespace InputArgument { + export function getJsonObj(obj: InputArgument): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "type" in obj && obj.type) { + switch (obj.type) { + case "OUTPUT_VARIABLE": + return model.OutputVariableInputArgument.getJsonObj( + (jsonObj), + true + ); + case "STRING": + return model.StringInputArgument.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: InputArgument): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "type" in obj && obj.type) { + switch (obj.type) { + case "OUTPUT_VARIABLE": + return model.OutputVariableInputArgument.getDeserializedJsonObj( + (jsonObj), + true + ); + case "STRING": + return model.StringInputArgument.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/input-parameter.ts b/lib/fleetappsmanagement/lib/model/input-parameter.ts new file mode 100644 index 0000000000..b583c59634 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/input-parameter.ts @@ -0,0 +1,62 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Input Parameters for the Task + */ +export interface InputParameter { + /** + * stepName for which the input parameters are provided + */ + "stepName": string; + /** + * Arguments for the Task + */ + "arguments"?: Array; +} + +export namespace InputParameter { + export function getJsonObj(obj: InputParameter): object { + const jsonObj = { + ...obj, + ...{ + "arguments": obj.arguments + ? obj.arguments.map(item => { + return model.TaskArgument.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: InputParameter): object { + const jsonObj = { + ...obj, + ...{ + "arguments": obj.arguments + ? obj.arguments.map(item => { + return model.TaskArgument.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/inventory-resource-collection.ts b/lib/fleetappsmanagement/lib/model/inventory-resource-collection.ts new file mode 100644 index 0000000000..2a8e1464f3 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/inventory-resource-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a inventoryResource search. Contains both InventoryResourceSummary items and other information, such as metadata. + */ +export interface InventoryResourceCollection { + /** + * List of InventoryResources. + */ + "items": Array; +} + +export namespace InventoryResourceCollection { + export function getJsonObj(obj: InventoryResourceCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.InventoryResourceSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: InventoryResourceCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.InventoryResourceSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/inventory-resource-summary.ts b/lib/fleetappsmanagement/lib/model/inventory-resource-summary.ts new file mode 100644 index 0000000000..7dd5d3abf8 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/inventory-resource-summary.ts @@ -0,0 +1,94 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * InventoryResource Search Summary. + */ +export interface InventoryResourceSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Type of the Resource. + */ + "type": string; + /** + * Compartment Id of the resource + */ + "resourceCompartmentId"?: string; + /** + * Availability Domain of the resource + */ + "availabilityDomain"?: string; + /** + * Region the resource belongs to + */ + "resourceRegion"?: string; + /** + * The current state of the Resource. + */ + "lifecycleState": string; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags": { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags": { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace InventoryResourceSummary { + export function getJsonObj(obj: InventoryResourceSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: InventoryResourceSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/job-activity.ts b/lib/fleetappsmanagement/lib/model/job-activity.ts new file mode 100644 index 0000000000..2e4bd0ff25 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/job-activity.ts @@ -0,0 +1,82 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Description of JobActivity. + */ +export interface JobActivity { + /** + * Unique activity id at action group level + */ + "id": string; + /** + * Status of the Job at Action Group Level + */ + "status": model.JobStatus; + /** + * The time the the Scheduler Job started. An RFC3339 formatted datetime string + */ + "timeStarted"?: Date; + /** + * The time the Scheduler Job ended. An RFC3339 formatted datetime string + */ + "timeEnded"?: Date; + /** + * ID of the runbook + */ + "runbookId"?: string; + /** + * Name of the runbook + */ + "runbookName"?: string; + /** + * Resources execution details and outcomes associated with the Task. + */ + "resourceLevelExecutions"?: Array; +} + +export namespace JobActivity { + export function getJsonObj(obj: JobActivity): object { + const jsonObj = { + ...obj, + ...{ + "resourceLevelExecutions": obj.resourceLevelExecutions + ? obj.resourceLevelExecutions.map(item => { + return model.EntityExecutionDetails.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: JobActivity): object { + const jsonObj = { + ...obj, + ...{ + "resourceLevelExecutions": obj.resourceLevelExecutions + ? obj.resourceLevelExecutions.map(item => { + return model.EntityExecutionDetails.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/job-status.ts b/lib/fleetappsmanagement/lib/model/job-status.ts new file mode 100644 index 0000000000..a4cc12b0bf --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/job-status.ts @@ -0,0 +1,49 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible Job status. + **/ +export enum JobStatus { + Accepted = "ACCEPTED", + Waiting = "WAITING", + InProgress = "IN_PROGRESS", + Failed = "FAILED", + Succeeded = "SUCCEEDED", + Canceled = "CANCELED", + Skipped = "SKIPPED", + Ignored = "IGNORED", + NotApplicable = "NOT_APPLICABLE", + Aborted = "ABORTED", + TimedOut = "TIMED_OUT", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace JobStatus { + export function getJsonObj(obj: JobStatus): JobStatus { + return obj; + } + export function getDeserializedJsonObj(obj: JobStatus): JobStatus { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/key-encryption-credential-details.ts b/lib/fleetappsmanagement/lib/model/key-encryption-credential-details.ts new file mode 100644 index 0000000000..25df474d8e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/key-encryption-credential-details.ts @@ -0,0 +1,71 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for Credentials using key encryption. + */ +export interface KeyEncryptionCredentialDetails extends model.CredentialDetails { + /** + * The value corresponding to the credential + */ + "value": string; + /** + * OCID for the Vault Key that will be used to encrypt/decrypt the value given. + */ + "keyId": string; + /** + * The Vault Key version. + */ + "keyVersion"?: string; + /** + * OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given. + */ + "vaultId": string; + + "credentialType": string; +} + +export namespace KeyEncryptionCredentialDetails { + export function getJsonObj( + obj: KeyEncryptionCredentialDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialDetails.getJsonObj(obj) as KeyEncryptionCredentialDetails)), + ...{} + }; + + return jsonObj; + } + export const credentialType = "KEY_ENCRYPTION"; + export function getDeserializedJsonObj( + obj: KeyEncryptionCredentialDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialDetails.getDeserializedJsonObj(obj) as KeyEncryptionCredentialDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/life-cycle-action-group-type.ts b/lib/fleetappsmanagement/lib/model/life-cycle-action-group-type.ts new file mode 100644 index 0000000000..8bee02a468 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/life-cycle-action-group-type.ts @@ -0,0 +1,40 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible Action Group types. + **/ +export enum LifeCycleActionGroupType { + Product = "PRODUCT", + Environment = "ENVIRONMENT", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace LifeCycleActionGroupType { + export function getJsonObj(obj: LifeCycleActionGroupType): LifeCycleActionGroupType { + return obj; + } + export function getDeserializedJsonObj(obj: LifeCycleActionGroupType): LifeCycleActionGroupType { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/maintenance-window-collection.ts b/lib/fleetappsmanagement/lib/model/maintenance-window-collection.ts new file mode 100644 index 0000000000..83c98e094e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/maintenance-window-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a maintenanceWindow search. Contains boh MaintenanceWindowSummary items and other information, such as metadata. + */ +export interface MaintenanceWindowCollection { + /** + * List of maintenanceWindows. + */ + "items": Array; +} + +export namespace MaintenanceWindowCollection { + export function getJsonObj(obj: MaintenanceWindowCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.MaintenanceWindowSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: MaintenanceWindowCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.MaintenanceWindowSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/maintenance-window-summary.ts b/lib/fleetappsmanagement/lib/model/maintenance-window-summary.ts new file mode 100644 index 0000000000..1cda28810c --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/maintenance-window-summary.ts @@ -0,0 +1,124 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the MaintenanceWindow. + */ +export interface MaintenanceWindowSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Type of the MaintenanceWindow. + */ + "maintenanceWindowType"?: model.MaintenanceWindowType; + /** + * Does the maintenenace window cause outage? + */ + "isOutage": boolean; + /** + * Start time of schedule + */ + "timeScheduleStart"?: Date; + /** + * Duration if schedule type is Custom + */ + "duration": string; + /** + * Is this is a recurring maintenance window + */ + "isRecurring": boolean; + /** + * Recurrence rule specification if recurring + */ + "recurrences"?: string; + /** + * Task initiation cutoff Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "taskInitiationCutoff": number; + /** + * The current state of the MaintenanceWindow. + */ + "lifecycleState": string; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags": { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags": { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace MaintenanceWindowSummary { + export function getJsonObj(obj: MaintenanceWindowSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: MaintenanceWindowSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/maintenance-window-type.ts b/lib/fleetappsmanagement/lib/model/maintenance-window-type.ts new file mode 100644 index 0000000000..49a2600a0b --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/maintenance-window-type.ts @@ -0,0 +1,39 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible maintenance window types + **/ +export enum MaintenanceWindowType { + OpenEnded = "OPEN_ENDED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace MaintenanceWindowType { + export function getJsonObj(obj: MaintenanceWindowType): MaintenanceWindowType { + return obj; + } + export function getDeserializedJsonObj(obj: MaintenanceWindowType): MaintenanceWindowType { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/maintenance-window.ts b/lib/fleetappsmanagement/lib/model/maintenance-window.ts new file mode 100644 index 0000000000..49544641c5 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/maintenance-window.ts @@ -0,0 +1,138 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details of Maintenance Window. + */ +export interface MaintenanceWindow { + /** + * The OCID of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Type of the MaintenanceWindow. + */ + "maintenanceWindowType"?: model.MaintenanceWindowType; + /** + * Does the maintenenace window cause outage? + */ + "isOutage": boolean; + /** + * Start time of schedule + */ + "timeScheduleStart"?: Date; + /** + * Duration if schedule type is Custom + */ + "duration": string; + /** + * Is this is a recurring maintenance window + */ + "isRecurring": boolean; + /** + * Recurrence rule specification if recurring + */ + "recurrences"?: string; + /** + * Task initiation cutoff Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "taskInitiationCutoff": number; + /** + * The current state of the MaintenanceWindow. + */ + "lifecycleState": MaintenanceWindow.LifecycleState; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags": { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags": { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace MaintenanceWindow { + export enum LifecycleState { + Active = "ACTIVE", + Deleted = "DELETED", + Failed = "FAILED", + Deleting = "DELETING", + Updating = "UPDATING", + NeedsAttention = "NEEDS_ATTENTION", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: MaintenanceWindow): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: MaintenanceWindow): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/notification-preferences.ts b/lib/fleetappsmanagement/lib/model/notification-preferences.ts new file mode 100644 index 0000000000..3c50cc319d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/notification-preferences.ts @@ -0,0 +1,57 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Conditions when met to send notifications on the fleet activities + */ +export interface NotificationPreferences { + /** + * Topic Id where the notifications will be directed + */ + "topicId": string; + /** + * Copartment Id of the topic where the notifications will be directed + */ + "compartmentId": string; + "preferences"?: model.Preferences; +} + +export namespace NotificationPreferences { + export function getJsonObj(obj: NotificationPreferences): object { + const jsonObj = { + ...obj, + ...{ + "preferences": obj.preferences ? model.Preferences.getJsonObj(obj.preferences) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: NotificationPreferences): object { + const jsonObj = { + ...obj, + ...{ + "preferences": obj.preferences + ? model.Preferences.getDeserializedJsonObj(obj.preferences) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/object-storage-bucket-content-details.ts b/lib/fleetappsmanagement/lib/model/object-storage-bucket-content-details.ts new file mode 100644 index 0000000000..a2ff693943 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/object-storage-bucket-content-details.ts @@ -0,0 +1,73 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details about Object Storage Bucket source. + * Restricted to the region this is called + * + */ +export interface ObjectStorageBucketContentDetails extends model.ContentDetails { + /** + * Namespace. + */ + "namespaceName": string; + /** + * Bucket Name. + */ + "bucketName": string; + /** + * Object Name. + */ + "objectName": string; + /** + * SHA256 checksum of the artifact. + */ + "checksum": string; + + "sourceType": string; +} + +export namespace ObjectStorageBucketContentDetails { + export function getJsonObj( + obj: ObjectStorageBucketContentDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ContentDetails.getJsonObj(obj) as ObjectStorageBucketContentDetails)), + ...{} + }; + + return jsonObj; + } + export const sourceType = "OBJECT_STORAGE_BUCKET"; + export function getDeserializedJsonObj( + obj: ObjectStorageBucketContentDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ContentDetails.getDeserializedJsonObj(obj) as ObjectStorageBucketContentDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/onboarding-collection.ts b/lib/fleetappsmanagement/lib/model/onboarding-collection.ts new file mode 100644 index 0000000000..f5d08c6ddb --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/onboarding-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * List of FleetAppManagementService Onboardings. + */ +export interface OnboardingCollection { + /** + * List of FleetAppManagementService Onboardings. + */ + "items": Array; +} + +export namespace OnboardingCollection { + export function getJsonObj(obj: OnboardingCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.OnboardingSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: OnboardingCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.OnboardingSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/onboarding-policy-collection.ts b/lib/fleetappsmanagement/lib/model/onboarding-policy-collection.ts new file mode 100644 index 0000000000..171b04c5f0 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/onboarding-policy-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * List of FleetAppManagementService Onboard policies. + */ +export interface OnboardingPolicyCollection { + /** + * List of FleetAppManagementService Onboard policies. + */ + "items": Array; +} + +export namespace OnboardingPolicyCollection { + export function getJsonObj(obj: OnboardingPolicyCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.OnboardingPolicySummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: OnboardingPolicyCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.OnboardingPolicySummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/onboarding-policy-summary.ts b/lib/fleetappsmanagement/lib/model/onboarding-policy-summary.ts new file mode 100644 index 0000000000..a11354d297 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/onboarding-policy-summary.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the FleetAppManagementService Onboard Policy. + */ +export interface OnboardingPolicySummary { + /** + * The unique id of the resource. + */ + "id": string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated"?: Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Policy statements. + */ + "statements"?: Array; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace OnboardingPolicySummary { + export function getJsonObj(obj: OnboardingPolicySummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: OnboardingPolicySummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/onboarding-summary.ts b/lib/fleetappsmanagement/lib/model/onboarding-summary.ts new file mode 100644 index 0000000000..f372aae658 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/onboarding-summary.ts @@ -0,0 +1,78 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the FleetAppManagementService Onboarding. + */ +export interface OnboardingSummary { + /** + * The unique id of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated"?: Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * A value determining FAMS tag is enabled or not + */ + "isFamsTagEnabled"?: boolean; + /** + * Version of FAMS the tenant is onboarded to. + */ + "version"?: string; + /** + * A value determining if cost tracking tag is enabled or not + */ + "isCostTrackingTagEnabled"?: boolean; + /** + * The current state of the Onboarding. + */ + "lifecycleState": string; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace OnboardingSummary { + export function getJsonObj(obj: OnboardingSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: OnboardingSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/onboarding.ts b/lib/fleetappsmanagement/lib/model/onboarding.ts new file mode 100644 index 0000000000..4918f32e6b --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/onboarding.ts @@ -0,0 +1,94 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * FleetAppManagementService onboarding resource. + */ +export interface Onboarding { + /** + * The unique id of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated"?: Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * A value determining FAMS tag is enabled or not + */ + "isFamsTagEnabled"?: boolean; + /** + * Version of FAMS the tenant is onboarded to. + */ + "version"?: string; + /** + * A value determining if cost tracking tag is enabled or not + */ + "isCostTrackingTagEnabled"?: boolean; + /** + * The current state of the Onboarding. + */ + "lifecycleState": Onboarding.LifecycleState; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace Onboarding { + export enum LifecycleState { + Active = "ACTIVE", + Inactive = "INACTIVE", + Creating = "CREATING", + Deleted = "DELETED", + Deleting = "DELETING", + Failed = "FAILED", + Updating = "UPDATING", + NeedsAttention = "NEEDS_ATTENTION", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Onboarding): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Onboarding): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/operation-runbook.ts b/lib/fleetappsmanagement/lib/model/operation-runbook.ts new file mode 100644 index 0000000000..b69c54464b --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/operation-runbook.ts @@ -0,0 +1,62 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Runbook + */ +export interface OperationRunbook { + /** + * The ID of the Runbook + */ + "id": string; + /** + * Input Parameters for the Task + */ + "inputParameters"?: Array; +} + +export namespace OperationRunbook { + export function getJsonObj(obj: OperationRunbook): object { + const jsonObj = { + ...obj, + ...{ + "inputParameters": obj.inputParameters + ? obj.inputParameters.map(item => { + return model.InputParameter.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: OperationRunbook): object { + const jsonObj = { + ...obj, + ...{ + "inputParameters": obj.inputParameters + ? obj.inputParameters.map(item => { + return model.InputParameter.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/operation-status.ts b/lib/fleetappsmanagement/lib/model/operation-status.ts new file mode 100644 index 0000000000..8c82da7556 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/operation-status.ts @@ -0,0 +1,46 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible operation status. + **/ +export enum OperationStatus { + Accepted = "ACCEPTED", + InProgress = "IN_PROGRESS", + Waiting = "WAITING", + NeedsAttention = "NEEDS_ATTENTION", + Failed = "FAILED", + Succeeded = "SUCCEEDED", + Canceling = "CANCELING", + Canceled = "CANCELED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace OperationStatus { + export function getJsonObj(obj: OperationStatus): OperationStatus { + return obj; + } + export function getDeserializedJsonObj(obj: OperationStatus): OperationStatus { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/operation-type.ts b/lib/fleetappsmanagement/lib/model/operation-type.ts new file mode 100644 index 0000000000..123f9bd22d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/operation-type.ts @@ -0,0 +1,56 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible operation types. + **/ +export enum OperationType { + CreateFleet = "CREATE_FLEET", + UpdateFleet = "UPDATE_FLEET", + DeleteFleet = "DELETE_FLEET", + ConfirmTarget = "CONFIRM_TARGET", + GenerateCompliance = "GENERATE_COMPLIANCE", + RequestTargetDiscovery = "REQUEST_TARGET_DISCOVERY", + ValidateResource = "VALIDATE_RESOURCE", + CreateCredential = "CREATE_CREDENTIAL", + UpdateCredential = "UPDATE_CREDENTIAL", + DeleteCredential = "DELETE_CREDENTIAL", + CreateSchedule = "CREATE_SCHEDULE", + UpdateSchedule = "UPDATE_SCHEDULE", + UpdateMaintenanceWindow = "UPDATE_MAINTENANCE_WINDOW", + DeleteMaintenanceWindow = "DELETE_MAINTENANCE_WINDOW", + CreateFleetResource = "CREATE_FLEET_RESOURCE", + UpdateFleetResource = "UPDATE_FLEET_RESOURCE", + DeleteFleetResource = "DELETE_FLEET_RESOURCE", + CreateFamsOnboarding = "CREATE_FAMS_ONBOARDING", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace OperationType { + export function getJsonObj(obj: OperationType): OperationType { + return obj; + } + export function getDeserializedJsonObj(obj: OperationType): OperationType { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/os-type.ts b/lib/fleetappsmanagement/lib/model/os-type.ts new file mode 100644 index 0000000000..8cb2816c16 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/os-type.ts @@ -0,0 +1,41 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible OS type values. + **/ +export enum OsType { + Windows = "WINDOWS", + Linux = "LINUX", + Generic = "GENERIC", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace OsType { + export function getJsonObj(obj: OsType): OsType { + return obj; + } + export function getDeserializedJsonObj(obj: OsType): OsType { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/outcome.ts b/lib/fleetappsmanagement/lib/model/outcome.ts new file mode 100644 index 0000000000..12943bd25a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/outcome.ts @@ -0,0 +1,48 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Execution Outcome + */ +export interface Outcome { + /** + * A shortened version of Execution Output + */ + "output": string; + /** + * Errors if any associated with the execution + */ + "error"?: string; + /** + * Exit Code + */ + "exitCode"?: string; +} + +export namespace Outcome { + export function getJsonObj(obj: Outcome): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Outcome): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/output-variable-details.ts b/lib/fleetappsmanagement/lib/model/output-variable-details.ts new file mode 100644 index 0000000000..ac1d84657f --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/output-variable-details.ts @@ -0,0 +1,44 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details of the output variable that will be used for mapping. + */ +export interface OutputVariableDetails { + /** + * The name of the task step the output variable belongs to. + */ + "stepName": string; + /** + * The name of the output variable whose value that has to be mapped. + */ + "outputVariableName": string; +} + +export namespace OutputVariableDetails { + export function getJsonObj(obj: OutputVariableDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: OutputVariableDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/output-variable-input-argument.ts b/lib/fleetappsmanagement/lib/model/output-variable-input-argument.ts new file mode 100644 index 0000000000..c84a415a24 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/output-variable-input-argument.ts @@ -0,0 +1,51 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details of the output variable that will be used as Input argument. + */ +export interface OutputVariableInputArgument extends model.InputArgument { + "type": string; +} + +export namespace OutputVariableInputArgument { + export function getJsonObj(obj: OutputVariableInputArgument, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.InputArgument.getJsonObj(obj) as OutputVariableInputArgument)), + ...{} + }; + + return jsonObj; + } + export const type = "OUTPUT_VARIABLE"; + export function getDeserializedJsonObj( + obj: OutputVariableInputArgument, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.InputArgument.getDeserializedJsonObj(obj) as OutputVariableInputArgument)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/output-variable-mapping.ts b/lib/fleetappsmanagement/lib/model/output-variable-mapping.ts new file mode 100644 index 0000000000..51019f0a0e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/output-variable-mapping.ts @@ -0,0 +1,55 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details of the output variable that will be used as Input argument. + */ +export interface OutputVariableMapping { + /** + * The name of the input variable + */ + "name": string; + "outputVariableDetails": model.OutputVariableDetails; +} + +export namespace OutputVariableMapping { + export function getJsonObj(obj: OutputVariableMapping): object { + const jsonObj = { + ...obj, + ...{ + "outputVariableDetails": obj.outputVariableDetails + ? model.OutputVariableDetails.getJsonObj(obj.outputVariableDetails) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: OutputVariableMapping): object { + const jsonObj = { + ...obj, + ...{ + "outputVariableDetails": obj.outputVariableDetails + ? model.OutputVariableDetails.getDeserializedJsonObj(obj.outputVariableDetails) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/plain-text-credential-details.ts b/lib/fleetappsmanagement/lib/model/plain-text-credential-details.ts new file mode 100644 index 0000000000..2836a7f6ac --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/plain-text-credential-details.ts @@ -0,0 +1,56 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for plain text credentials. + */ +export interface PlainTextCredentialDetails extends model.CredentialDetails { + /** + * The value corresponding to the credential + */ + "value": string; + + "credentialType": string; +} + +export namespace PlainTextCredentialDetails { + export function getJsonObj(obj: PlainTextCredentialDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialDetails.getJsonObj(obj) as PlainTextCredentialDetails)), + ...{} + }; + + return jsonObj; + } + export const credentialType = "PLAIN_TEXT"; + export function getDeserializedJsonObj( + obj: PlainTextCredentialDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialDetails.getDeserializedJsonObj(obj) as PlainTextCredentialDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/preferences.ts b/lib/fleetappsmanagement/lib/model/preferences.ts new file mode 100644 index 0000000000..edcc5e67f8 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/preferences.ts @@ -0,0 +1,48 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Preferences to send notifications on the fleet activities + */ +export interface Preferences { + /** + * Enables notification on upcoming schedule. + */ + "onUpcomingSchedule"?: boolean; + /** + * Enables or disables notification on Job Failures.' + */ + "onJobFailure"?: boolean; + /** + * Enables or disables notification on Environment Fleet Topology Modification. + */ + "onTopologyModification"?: boolean; +} + +export namespace Preferences { + export function getJsonObj(obj: Preferences): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Preferences): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/properties.ts b/lib/fleetappsmanagement/lib/model/properties.ts new file mode 100644 index 0000000000..41b471f922 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/properties.ts @@ -0,0 +1,44 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The properties of the task. + */ +export interface Properties { + /** + * The number of retries allowed. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "numRetries": number; + /** + * The timeout in seconds for the task. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "timeoutInSeconds": number; +} + +export namespace Properties { + export function getJsonObj(obj: Properties): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Properties): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/property-collection.ts b/lib/fleetappsmanagement/lib/model/property-collection.ts new file mode 100644 index 0000000000..3eef0ef35f --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/property-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a property search. Contains boh PropertySummary items and other information, such as metadata. + */ +export interface PropertyCollection { + /** + * List of propertys. + */ + "items": Array; +} + +export namespace PropertyCollection { + export function getJsonObj(obj: PropertyCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.PropertySummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: PropertyCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.PropertySummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/property-summary.ts b/lib/fleetappsmanagement/lib/model/property-summary.ts new file mode 100644 index 0000000000..691215608a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/property-summary.ts @@ -0,0 +1,110 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the Property. + */ +export interface PropertySummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Associated region + */ + "resourceRegion": string; + /** + * The current state of the Property. + */ + "lifecycleState": string; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Text selection of the category + */ + "selection"?: model.Selection; + /** + * Format of the value + */ + "valueType"?: model.ValueType; + /** + * Values of the property (must be a single value if selection = 'single choice') + */ + "values"?: Array; + /** + * The scope of the property + */ + "scope"?: model.Scope; + /** + * The type of the property. + */ + "type"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace PropertySummary { + export function getJsonObj(obj: PropertySummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: PropertySummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/property.ts b/lib/fleetappsmanagement/lib/model/property.ts new file mode 100644 index 0000000000..3dcd8d563a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/property.ts @@ -0,0 +1,132 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Taxonomy metadata aka Property . + */ +export interface Property { + /** + * The OCID of the resource. + */ + "id": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Associated region + */ + "resourceRegion": string; + /** + * The current state of the Property. + */ + "lifecycleState": Property.LifecycleState; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Text selection of the category + */ + "selection"?: model.Selection; + /** + * Format of the value + */ + "valueType"?: model.ValueType; + /** + * Values of the property (must be a single value if selection = 'single choice') + */ + "values"?: Array; + /** + * The scope of the property + */ + "scope"?: model.Scope; + /** + * The type of the property. + */ + "type"?: Property.Type; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace Property { + export enum LifecycleState { + Active = "ACTIVE", + Deleted = "DELETED", + Failed = "FAILED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum Type { + UserDefined = "USER_DEFINED", + OracleDefined = "ORACLE_DEFINED", + SystemDefined = "SYSTEM_DEFINED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Property): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Property): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/request-resource-validation-details.ts b/lib/fleetappsmanagement/lib/model/request-resource-validation-details.ts new file mode 100644 index 0000000000..d171c04aed --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/request-resource-validation-details.ts @@ -0,0 +1,45 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Request to initiate resource validation + * + */ +export interface RequestResourceValidationDetails { + /** + * A boolean flag which decides if all resources within the fleet should be part of vaidation. + */ + "isApplicableToAllResources"?: boolean; + /** + * Resource OCIDS that need to be included for validation. + */ + "resourceIds"?: Array; +} + +export namespace RequestResourceValidationDetails { + export function getJsonObj(obj: RequestResourceValidationDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: RequestResourceValidationDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/request-target-discovery-details.ts b/lib/fleetappsmanagement/lib/model/request-target-discovery-details.ts new file mode 100644 index 0000000000..e27257682d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/request-target-discovery-details.ts @@ -0,0 +1,45 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Request to initiate target discovery + * + */ +export interface RequestTargetDiscoveryDetails { + /** + * A boolean flag which decides if all resources within the fleet should be part of discovery. + */ + "isApplicableToAllResources"?: boolean; + /** + * Resource OCIDS that need to be included for discovery. + */ + "resourceIds"?: Array; +} + +export namespace RequestTargetDiscoveryDetails { + export function getJsonObj(obj: RequestTargetDiscoveryDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: RequestTargetDiscoveryDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/resource-tag-check-details.ts b/lib/fleetappsmanagement/lib/model/resource-tag-check-details.ts new file mode 100644 index 0000000000..3129234034 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/resource-tag-check-details.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Request to check resource tagging + */ +export interface ResourceTagCheckDetails { + /** + * Tag enablement Information for resources. + */ + "tagEnablementInfo": Array; +} + +export namespace ResourceTagCheckDetails { + export function getJsonObj(obj: ResourceTagCheckDetails): object { + const jsonObj = { + ...obj, + ...{ + "tagEnablementInfo": obj.tagEnablementInfo + ? obj.tagEnablementInfo.map(item => { + return model.ResourceTagEnablementInfo.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ResourceTagCheckDetails): object { + const jsonObj = { + ...obj, + ...{ + "tagEnablementInfo": obj.tagEnablementInfo + ? obj.tagEnablementInfo.map(item => { + return model.ResourceTagEnablementInfo.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/resource-tag-enablement-info.ts b/lib/fleetappsmanagement/lib/model/resource-tag-enablement-info.ts new file mode 100644 index 0000000000..4f05b1e25b --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/resource-tag-enablement-info.ts @@ -0,0 +1,44 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Resource tag enablement Information + */ +export interface ResourceTagEnablementInfo { + /** + * The OCID of the resource. + */ + "resourceId": string; + /** + * A value which represents if resource can be tagged with Fleet name + */ + "isTaggingPossible": boolean; +} + +export namespace ResourceTagEnablementInfo { + export function getJsonObj(obj: ResourceTagEnablementInfo): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ResourceTagEnablementInfo): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/rule.ts b/lib/fleetappsmanagement/lib/model/rule.ts new file mode 100644 index 0000000000..5940d3b484 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/rule.ts @@ -0,0 +1,70 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Rule Selection Criteria + */ +export interface Rule { + /** + * Rule to be be applied on. + */ + "basis"?: string; + /** + * Please provide the root compartmentId (TenancyId). + */ + "compartmentId": string; + /** + * Resource Compartment Id.Provide the compartmentId the resource belongs to. + */ + "resourceCompartmentId": string; + /** + * Rule Conditions + */ + "conditions": Array; +} + +export namespace Rule { + export function getJsonObj(obj: Rule): object { + const jsonObj = { + ...obj, + ...{ + "conditions": obj.conditions + ? obj.conditions.map(item => { + return model.Condition.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Rule): object { + const jsonObj = { + ...obj, + ...{ + "conditions": obj.conditions + ? obj.conditions.map(item => { + return model.Condition.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/runbook-collection.ts b/lib/fleetappsmanagement/lib/model/runbook-collection.ts new file mode 100644 index 0000000000..f2c1d2f68d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/runbook-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a runbook search. Contains boh RunbookSummary items and other information, such as metadata. + */ +export interface RunbookCollection { + /** + * List of runbooks. + */ + "items": Array; +} + +export namespace RunbookCollection { + export function getJsonObj(obj: RunbookCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.RunbookSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: RunbookCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.RunbookSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/runbook-summary.ts b/lib/fleetappsmanagement/lib/model/runbook-summary.ts new file mode 100644 index 0000000000..8771cc945c --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/runbook-summary.ts @@ -0,0 +1,124 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the Runbook. + */ +export interface RunbookSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * The type of the runbook. + */ + "type": string; + /** + * Type of runbook structure. + */ + "runbookRelevance": string; + /** + * The lifecycle operation performed by the task. + */ + "operation": string; + /** + * The OS type for the runbook. + */ + "osType": model.OsType; + /** + * The platform of the runbook. + */ + "platform": string; + /** + * Is the runbook default? + */ + "isDefault": boolean; + /** + * Estimated time to successfully complete the runbook execution + */ + "estimatedTime"?: string; + /** + * The current state of the Runbook. + */ + "lifecycleState": string; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated": Date; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace RunbookSummary { + export function getJsonObj(obj: RunbookSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: RunbookSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/runbook.ts b/lib/fleetappsmanagement/lib/model/runbook.ts new file mode 100644 index 0000000000..3026921eb9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/runbook.ts @@ -0,0 +1,171 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Runbook definition. + */ +export interface Runbook { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * The type of the runbook. + */ + "type": Runbook.Type; + /** + * Type of runbook structure. + */ + "runbookRelevance": Runbook.RunbookRelevance; + /** + * The lifecycle operation performed by the task. + */ + "operation": string; + /** + * The OS type for the runbook. + */ + "osType": model.OsType; + /** + * The platform of the runbook. + */ + "platform": string; + /** + * Is the runbook default? + */ + "isDefault": boolean; + /** + * Estimated time to successfully complete the runbook execution + */ + "estimatedTime"?: string; + /** + * The current state of the Runbook. + */ + "lifecycleState": Runbook.LifecycleState; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated": Date; + "associations"?: model.Associations; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace Runbook { + export enum Type { + UserDefined = "USER_DEFINED", + OracleDefined = "ORACLE_DEFINED", + SystemDefined = "SYSTEM_DEFINED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum RunbookRelevance { + ProductGroup = "PRODUCT_GROUP", + Product = "PRODUCT", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum LifecycleState { + Active = "ACTIVE", + Deleted = "DELETED", + Failed = "FAILED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Runbook): object { + const jsonObj = { + ...obj, + ...{ + "associations": obj.associations + ? model.Associations.getJsonObj(obj.associations) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Runbook): object { + const jsonObj = { + ...obj, + ...{ + "associations": obj.associations + ? model.Associations.getDeserializedJsonObj(obj.associations) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/schedule.ts b/lib/fleetappsmanagement/lib/model/schedule.ts new file mode 100644 index 0000000000..f2bb8c1099 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/schedule.ts @@ -0,0 +1,66 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Schedule Information. + */ +export interface Schedule { + /** + * Schedule Type + */ + "type": Schedule.Type; + /** + * Start Date for the schedule. An RFC3339 formatted datetime string + */ + "executionStartdate": Date; + /** + * Provide MaintenanceWindowId if Schedule Type is Maintenance Window + */ + "maintenanceWindowId"?: string; + /** + * Recurrence rule specification if Schedule Type is Custom and Recurring + */ + "recurrences"?: string; + /** + * Duration if schedule type is Custom + */ + "duration"?: string; +} + +export namespace Schedule { + export enum Type { + Custom = "CUSTOM", + MaintenanceWindow = "MAINTENANCE_WINDOW", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Schedule): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Schedule): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scheduled-fleet-collection.ts b/lib/fleetappsmanagement/lib/model/scheduled-fleet-collection.ts new file mode 100644 index 0000000000..a37e025a5a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scheduled-fleet-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a Scheduled ActionGroup search. + */ +export interface ScheduledFleetCollection { + /** + * List of ScheduledFleets. + */ + "items": Array; +} + +export namespace ScheduledFleetCollection { + export function getJsonObj(obj: ScheduledFleetCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ScheduledFleetSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ScheduledFleetCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.ScheduledFleetSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scheduled-fleet-summary.ts b/lib/fleetappsmanagement/lib/model/scheduled-fleet-summary.ts new file mode 100644 index 0000000000..b5d48bfdec --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scheduled-fleet-summary.ts @@ -0,0 +1,84 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of Fleet part of the Schedule. + */ +export interface ScheduledFleetSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * OCID of the tenancy to which the resource belongs to. + */ + "tenancyId"?: string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Count of Resources affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedResources"?: number; + /** + * Count of Targets affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedTargets"?: number; + /** + * All ActionGroup Types part of the schedule. + */ + "actionGroupTypes"?: Array; + /** + * All application types part of the schedule. + */ + "applicationTypes"?: Array; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace ScheduledFleetSummary { + export enum ActionGroupTypes { + Product = "PRODUCT", + Environment = "ENVIRONMENT", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: ScheduledFleetSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ScheduledFleetSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scheduler-definition-collection.ts b/lib/fleetappsmanagement/lib/model/scheduler-definition-collection.ts new file mode 100644 index 0000000000..518b232142 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scheduler-definition-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a schedulerDefinition search. Contains boh SchedulerDefinitionSummary items and other information, such as metadata. + */ +export interface SchedulerDefinitionCollection { + /** + * List of schedulerDefinitions. + */ + "items": Array; +} + +export namespace SchedulerDefinitionCollection { + export function getJsonObj(obj: SchedulerDefinitionCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.SchedulerDefinitionSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SchedulerDefinitionCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.SchedulerDefinitionSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scheduler-definition-summary.ts b/lib/fleetappsmanagement/lib/model/scheduler-definition-summary.ts new file mode 100644 index 0000000000..522b3de388 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scheduler-definition-summary.ts @@ -0,0 +1,149 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the SchedulerDefinition. + */ +export interface SchedulerDefinitionSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Scheduled date for the next run of the Job. + */ + "timeOfNextRun"?: Date; + "schedule"?: model.Schedule; + /** + * Count of Action Groups affected by the Schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedActionGroups"?: number; + /** + * Count of Resources affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedResources"?: number; + /** + * Count of Targets affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedTargets"?: number; + /** + * All ActionGroup Types part of the schedule. + */ + "actionGroupTypes"?: Array; + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + */ + "applicationTypes"?: Array; + /** + * All products part of the schedule for PRODUCT ActionGroup Type. + */ + "products"?: Array; + /** + * All LifeCycle Operations part of the schedule + */ + "lifecycleOperations"?: Array; + /** + * The current state of the SchedulerDefinition. + */ + "lifecycleState"?: string; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace SchedulerDefinitionSummary { + export enum ActionGroupTypes { + Product = "PRODUCT", + Environment = "ENVIRONMENT", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: SchedulerDefinitionSummary): object { + const jsonObj = { + ...obj, + ...{ + "schedule": obj.schedule ? model.Schedule.getJsonObj(obj.schedule) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SchedulerDefinitionSummary): object { + const jsonObj = { + ...obj, + ...{ + "schedule": obj.schedule ? model.Schedule.getDeserializedJsonObj(obj.schedule) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scheduler-definition.ts b/lib/fleetappsmanagement/lib/model/scheduler-definition.ts new file mode 100644 index 0000000000..20c7e69e5d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scheduler-definition.ts @@ -0,0 +1,199 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Definition of a Schedule. + */ +export interface SchedulerDefinition { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Scheduled date for the next run of the Job. + */ + "timeOfNextRun"?: Date; + /** + * Activity Initiation Cut Off Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "activityInitiationCutOff"?: number; + "schedule"?: model.Schedule; + /** + * Count of Action Groups affected by the Schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedActionGroups"?: number; + /** + * Count of Resources affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedResources"?: number; + /** + * Count of Targets affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedTargets"?: number; + /** + * All ActionGroup Types part of the schedule. + */ + "actionGroupTypes"?: Array; + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + * + */ + "applicationTypes"?: Array; + /** + * All products part of the schedule for PRODUCT ActionGroup Type. + */ + "products"?: Array; + /** + * All LifeCycle Operations part of the schedule + */ + "lifecycleOperations"?: Array; + /** + * Action Groups associated with the Schedule. + */ + "actionGroups"?: Array; + /** + * Runbooks. + */ + "runBooks"?: Array; + /** + * The current state of the SchedulerDefinition. + */ + "lifecycleState": SchedulerDefinition.LifecycleState; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace SchedulerDefinition { + export enum ActionGroupTypes { + Product = "PRODUCT", + Environment = "ENVIRONMENT", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum LifecycleState { + Creating = "CREATING", + Updating = "UPDATING", + Active = "ACTIVE", + Deleting = "DELETING", + Deleted = "DELETED", + Failed = "FAILED", + Inactive = "INACTIVE", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: SchedulerDefinition): object { + const jsonObj = { + ...obj, + ...{ + "schedule": obj.schedule ? model.Schedule.getJsonObj(obj.schedule) : undefined, + + "actionGroups": obj.actionGroups + ? obj.actionGroups.map(item => { + return model.ActionGroup.getJsonObj(item); + }) + : undefined, + "runBooks": obj.runBooks + ? obj.runBooks.map(item => { + return model.OperationRunbook.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SchedulerDefinition): object { + const jsonObj = { + ...obj, + ...{ + "schedule": obj.schedule ? model.Schedule.getDeserializedJsonObj(obj.schedule) : undefined, + + "actionGroups": obj.actionGroups + ? obj.actionGroups.map(item => { + return model.ActionGroup.getDeserializedJsonObj(item); + }) + : undefined, + "runBooks": obj.runBooks + ? obj.runBooks.map(item => { + return model.OperationRunbook.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scheduler-job-collection.ts b/lib/fleetappsmanagement/lib/model/scheduler-job-collection.ts new file mode 100644 index 0000000000..31613d7eed --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scheduler-job-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a schedulerJob search. Contains boh SchedulerJobSummary items and other information, such as metadata. + */ +export interface SchedulerJobCollection { + /** + * List of schedulerJobs. + */ + "items": Array; +} + +export namespace SchedulerJobCollection { + export function getJsonObj(obj: SchedulerJobCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.SchedulerJobSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SchedulerJobCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.SchedulerJobSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scheduler-job-summary.ts b/lib/fleetappsmanagement/lib/model/scheduler-job-summary.ts new file mode 100644 index 0000000000..89720a2310 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scheduler-job-summary.ts @@ -0,0 +1,159 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the SchedulerJob. + */ +export interface SchedulerJobSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Scheduled date for the Job.Provide only the date + */ + "timeScheduled"?: Date; + /** + * Count of ActionGroups affected by the Schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedActionGroups"?: number; + /** + * Count of Resources affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedResources"?: number; + /** + * Count of Targets affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedTargets"?: number; + /** + * All ActionGroup Types part of the schedule. + */ + "actionGroupTypes"?: Array; + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + */ + "applicationTypes"?: Array; + /** + * All products part of the schedule for PRODUCT ActionGroup Type. + */ + "products"?: Array; + /** + * All LifeCycle Operations part of the schedule + */ + "lifecycleOperations"?: Array; + /** + * Action Groups associated with the Schedule. + */ + "actionGroups"?: Array; + "associatedScheduleDefinition"?: model.AssociatedSchedulerDefinition; + /** + * The current state of the SchedulerJob. + */ + "lifecycleState": string; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags": { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags": { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace SchedulerJobSummary { + export enum ActionGroupTypes { + Product = "PRODUCT", + Environment = "ENVIRONMENT", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: SchedulerJobSummary): object { + const jsonObj = { + ...obj, + ...{ + "actionGroups": obj.actionGroups + ? obj.actionGroups.map(item => { + return model.ActionGroupDetails.getJsonObj(item); + }) + : undefined, + "associatedScheduleDefinition": obj.associatedScheduleDefinition + ? model.AssociatedSchedulerDefinition.getJsonObj(obj.associatedScheduleDefinition) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SchedulerJobSummary): object { + const jsonObj = { + ...obj, + ...{ + "actionGroups": obj.actionGroups + ? obj.actionGroups.map(item => { + return model.ActionGroupDetails.getDeserializedJsonObj(item); + }) + : undefined, + "associatedScheduleDefinition": obj.associatedScheduleDefinition + ? model.AssociatedSchedulerDefinition.getDeserializedJsonObj( + obj.associatedScheduleDefinition + ) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scheduler-job.ts b/lib/fleetappsmanagement/lib/model/scheduler-job.ts new file mode 100644 index 0000000000..61d3579bc9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scheduler-job.ts @@ -0,0 +1,178 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * A SchedulerJob resource. + */ +export interface SchedulerJob { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * Tenancy OCID + */ + "compartmentId": string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated"?: Date; + /** + * Scheduled date for the Job. + */ + "timeScheduled"?: Date; + /** + * Actual Start time for the Job + */ + "timeStarted"?: Date; + /** + * Actual End time for the Job + */ + "timeEnded"?: Date; + /** + * Count of ActionGroups affected by the Schedule. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedActionGroups"?: number; + /** + * Count of Resources affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedResources"?: number; + /** + * Count of Targets affected by the Schedule Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "countOfAffectedTargets"?: number; + /** + * All ActionGroup Types part of the schedule. + */ + "actionGroupTypes"?: Array; + /** + * All application types part of the schedule for ENVIRONMENT ActionGroup Type. + */ + "applicationTypes"?: Array; + /** + * All products part of the schedule for PRODUCT AcionGroup Type. + */ + "products"?: Array; + /** + * All LifeCycle Operations part of the schedule + */ + "lifecycleOperations"?: Array; + /** + * Action Groups associated with the Schedule. + */ + "actionGroups"?: Array; + "associatedScheduleDefinition"?: model.AssociatedSchedulerDefinition; + /** + * The current state of the SchedulerJob. + */ + "lifecycleState": SchedulerJob.LifecycleState; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags": { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags": { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace SchedulerJob { + export enum ActionGroupTypes { + Product = "PRODUCT", + Environment = "ENVIRONMENT", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum LifecycleState { + Active = "ACTIVE", + Deleted = "DELETED", + Failed = "FAILED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: SchedulerJob): object { + const jsonObj = { + ...obj, + ...{ + "actionGroups": obj.actionGroups + ? obj.actionGroups.map(item => { + return model.ActionGroupDetails.getJsonObj(item); + }) + : undefined, + "associatedScheduleDefinition": obj.associatedScheduleDefinition + ? model.AssociatedSchedulerDefinition.getJsonObj(obj.associatedScheduleDefinition) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SchedulerJob): object { + const jsonObj = { + ...obj, + ...{ + "actionGroups": obj.actionGroups + ? obj.actionGroups.map(item => { + return model.ActionGroupDetails.getDeserializedJsonObj(item); + }) + : undefined, + "associatedScheduleDefinition": obj.associatedScheduleDefinition + ? model.AssociatedSchedulerDefinition.getDeserializedJsonObj( + obj.associatedScheduleDefinition + ) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/scope.ts b/lib/fleetappsmanagement/lib/model/scope.ts new file mode 100644 index 0000000000..bfe6cbf59f --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/scope.ts @@ -0,0 +1,40 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible scopes for Category + **/ +export enum Scope { + Taxonomy = "TAXONOMY", + PlatformConfig = "PLATFORM_CONFIG", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace Scope { + export function getJsonObj(obj: Scope): Scope { + return obj; + } + export function getDeserializedJsonObj(obj: Scope): Scope { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/script-based-execution-details.ts b/lib/fleetappsmanagement/lib/model/script-based-execution-details.ts new file mode 100644 index 0000000000..4aded1126e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/script-based-execution-details.ts @@ -0,0 +1,68 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for script based execution + */ +export interface ScriptBasedExecutionDetails extends model.ExecutionDetails { + "variables"?: model.TaskVariable; + "content"?: model.ObjectStorageBucketContentDetails; + /** + * Optional Command to execute the content. + */ + "command"?: string; + + "executionType": string; +} + +export namespace ScriptBasedExecutionDetails { + export function getJsonObj(obj: ScriptBasedExecutionDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExecutionDetails.getJsonObj(obj) as ScriptBasedExecutionDetails)), + ...{ + "variables": obj.variables ? model.TaskVariable.getJsonObj(obj.variables) : undefined, + "content": obj.content ? model.ContentDetails.getJsonObj(obj.content) : undefined + } + }; + + return jsonObj; + } + export const executionType = "SCRIPT"; + export function getDeserializedJsonObj( + obj: ScriptBasedExecutionDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.ExecutionDetails.getDeserializedJsonObj(obj) as ScriptBasedExecutionDetails)), + ...{ + "variables": obj.variables + ? model.TaskVariable.getDeserializedJsonObj(obj.variables) + : undefined, + "content": obj.content + ? model.ContentDetails.getDeserializedJsonObj(obj.content) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/selection-criteria.ts b/lib/fleetappsmanagement/lib/model/selection-criteria.ts new file mode 100644 index 0000000000..ac488434d5 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/selection-criteria.ts @@ -0,0 +1,72 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Rule Selection Criteria + */ +export interface SelectionCriteria { + /** + * Rule selection match condition. + */ + "matchCondition": SelectionCriteria.MatchCondition; + /** + * Rules. + */ + "rules": Array; +} + +export namespace SelectionCriteria { + export enum MatchCondition { + MatchAll = "MATCH_ALL", + Any = "ANY", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: SelectionCriteria): object { + const jsonObj = { + ...obj, + ...{ + "rules": obj.rules + ? obj.rules.map(item => { + return model.Rule.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: SelectionCriteria): object { + const jsonObj = { + ...obj, + ...{ + "rules": obj.rules + ? obj.rules.map(item => { + return model.Rule.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/selection.ts b/lib/fleetappsmanagement/lib/model/selection.ts new file mode 100644 index 0000000000..708e662b50 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/selection.ts @@ -0,0 +1,41 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Text selection of the category. + **/ +export enum Selection { + SingleChoice = "SINGLE_CHOICE", + MultiChoice = "MULTI_CHOICE", + DefaultText = "DEFAULT_TEXT", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace Selection { + export function getJsonObj(obj: Selection): Selection { + return obj; + } + export function getDeserializedJsonObj(obj: Selection): Selection { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/sort-order.ts b/lib/fleetappsmanagement/lib/model/sort-order.ts new file mode 100644 index 0000000000..a0a7fd396e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/sort-order.ts @@ -0,0 +1,40 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Sort orders. + **/ +export enum SortOrder { + Asc = "ASC", + Desc = "DESC", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace SortOrder { + export function getJsonObj(obj: SortOrder): SortOrder { + return obj; + } + export function getDeserializedJsonObj(obj: SortOrder): SortOrder { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/string-input-argument.ts b/lib/fleetappsmanagement/lib/model/string-input-argument.ts new file mode 100644 index 0000000000..3f7d3a306f --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/string-input-argument.ts @@ -0,0 +1,49 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details of the String Input argument. + */ +export interface StringInputArgument extends model.InputArgument { + "type": string; +} + +export namespace StringInputArgument { + export function getJsonObj(obj: StringInputArgument, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj ? obj : (model.InputArgument.getJsonObj(obj) as StringInputArgument)), + ...{} + }; + + return jsonObj; + } + export const type = "STRING"; + export function getDeserializedJsonObj( + obj: StringInputArgument, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.InputArgument.getDeserializedJsonObj(obj) as StringInputArgument)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/target-credential-entity-specific-details.ts b/lib/fleetappsmanagement/lib/model/target-credential-entity-specific-details.ts new file mode 100644 index 0000000000..9d740d4c3b --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/target-credential-entity-specific-details.ts @@ -0,0 +1,68 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Fleet Credential Specific Details. + */ +export interface TargetCredentialEntitySpecificDetails + extends model.CredentialEntitySpecificDetails { + /** + * OCID of the resource associated with the target for which credential is created + */ + "resourceId": string; + /** + * Target associated with the Credential + */ + "target": string; + + "credentialLevel": string; +} + +export namespace TargetCredentialEntitySpecificDetails { + export function getJsonObj( + obj: TargetCredentialEntitySpecificDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialEntitySpecificDetails.getJsonObj( + obj + ) as TargetCredentialEntitySpecificDetails)), + ...{} + }; + + return jsonObj; + } + export const credentialLevel = "TARGET"; + export function getDeserializedJsonObj( + obj: TargetCredentialEntitySpecificDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialEntitySpecificDetails.getDeserializedJsonObj( + obj + ) as TargetCredentialEntitySpecificDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/target-resource.ts b/lib/fleetappsmanagement/lib/model/target-resource.ts new file mode 100644 index 0000000000..2a7ed22f18 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/target-resource.ts @@ -0,0 +1,48 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Resource Information for the Target + */ +export interface TargetResource { + /** + * The OCID of the resource. + */ + "resourceId"?: string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "resourceDisplayName"?: string; +} + +export namespace TargetResource { + export function getJsonObj(obj: TargetResource): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: TargetResource): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/task-argument.ts b/lib/fleetappsmanagement/lib/model/task-argument.ts new file mode 100644 index 0000000000..a726e722b8 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/task-argument.ts @@ -0,0 +1,44 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * A variable that holds a value + */ +export interface TaskArgument { + /** + * Name of the output variable + */ + "name": string; + /** + * The task output + */ + "value"?: string; +} + +export namespace TaskArgument { + export function getJsonObj(obj: TaskArgument): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: TaskArgument): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/task-execution-type.ts b/lib/fleetappsmanagement/lib/model/task-execution-type.ts new file mode 100644 index 0000000000..4d73237be3 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/task-execution-type.ts @@ -0,0 +1,40 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The action type of the task. + **/ +export enum TaskExecutionType { + Script = "SCRIPT", + Api = "API", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace TaskExecutionType { + export function getJsonObj(obj: TaskExecutionType): TaskExecutionType { + return obj; + } + export function getDeserializedJsonObj(obj: TaskExecutionType): TaskExecutionType { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/task-record-collection.ts b/lib/fleetappsmanagement/lib/model/task-record-collection.ts new file mode 100644 index 0000000000..9894343444 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/task-record-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a taskRecord search. Contains boh TaskRecordSummary items and other information, such as metadata. + */ +export interface TaskRecordCollection { + /** + * List of taskRecords. + */ + "items": Array; +} + +export namespace TaskRecordCollection { + export function getJsonObj(obj: TaskRecordCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.TaskRecordSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: TaskRecordCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.TaskRecordSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/task-record-summary.ts b/lib/fleetappsmanagement/lib/model/task-record-summary.ts new file mode 100644 index 0000000000..7cfdb452fa --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/task-record-summary.ts @@ -0,0 +1,115 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Summary of the TaskRecord. + */ +export interface TaskRecordSummary { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Task type. + */ + "type": string; + /** + * The current state of the TaskRecord. + */ + "lifecycleState": string; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated": Date; + "details": model.Details; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * The version of the task + */ + "version"?: string; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace TaskRecordSummary { + export function getJsonObj(obj: TaskRecordSummary): object { + const jsonObj = { + ...obj, + ...{ + "details": obj.details ? model.Details.getJsonObj(obj.details) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: TaskRecordSummary): object { + const jsonObj = { + ...obj, + ...{ + "details": obj.details ? model.Details.getDeserializedJsonObj(obj.details) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/task-record.ts b/lib/fleetappsmanagement/lib/model/task-record.ts new file mode 100644 index 0000000000..488e531285 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/task-record.ts @@ -0,0 +1,140 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Description of TaskRecord. + */ +export interface TaskRecord { + /** + * The OCID of the resource. + */ + "id": string; + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName": string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Task type. + */ + "type": TaskRecord.Type; + /** + * The current state of the TaskRecord. + */ + "lifecycleState": TaskRecord.LifecycleState; + /** + * The time this resource was created. An RFC3339 formatted datetime string. + */ + "timeCreated": Date; + /** + * The time this resource was last updated. An RFC3339 formatted datetime string. + */ + "timeUpdated": Date; + "details": model.Details; + /** + * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. + */ + "lifecycleDetails"?: string; + /** + * The version of the task + */ + "version"?: string; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId": string; + /** + * Associated region + */ + "resourceRegion"?: string; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; + /** + * System tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}} + * + */ + "systemTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace TaskRecord { + export enum Type { + UserDefined = "USER_DEFINED", + OracleDefined = "ORACLE_DEFINED", + SystemDefined = "SYSTEM_DEFINED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export enum LifecycleState { + Active = "ACTIVE", + Inactive = "INACTIVE", + Deleted = "DELETED", + Deleting = "DELETING", + Failed = "FAILED", + Updating = "UPDATING", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: TaskRecord): object { + const jsonObj = { + ...obj, + ...{ + "details": obj.details ? model.Details.getJsonObj(obj.details) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: TaskRecord): object { + const jsonObj = { + ...obj, + ...{ + "details": obj.details ? model.Details.getDeserializedJsonObj(obj.details) : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/task-scope.ts b/lib/fleetappsmanagement/lib/model/task-scope.ts new file mode 100644 index 0000000000..b4300a0e0e --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/task-scope.ts @@ -0,0 +1,40 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The scope of the task. + **/ +export enum TaskScope { + Local = "LOCAL", + Shared = "SHARED", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace TaskScope { + export function getJsonObj(obj: TaskScope): TaskScope { + return obj; + } + export function getDeserializedJsonObj(obj: TaskScope): TaskScope { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/task-variable.ts b/lib/fleetappsmanagement/lib/model/task-variable.ts new file mode 100644 index 0000000000..305e398ff2 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/task-variable.ts @@ -0,0 +1,62 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The variable of the task.Atleast one of dynamicArguments or output needs to be provided. + */ +export interface TaskVariable { + /** + * The input variables for the task. + */ + "inputVariables"?: Array; + /** + * The list of output variables. + */ + "outputVariables"?: Array; +} + +export namespace TaskVariable { + export function getJsonObj(obj: TaskVariable): object { + const jsonObj = { + ...obj, + ...{ + "inputVariables": obj.inputVariables + ? obj.inputVariables.map(item => { + return model.InputArgument.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: TaskVariable): object { + const jsonObj = { + ...obj, + ...{ + "inputVariables": obj.inputVariables + ? obj.inputVariables.map(item => { + return model.InputArgument.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/task.ts b/lib/fleetappsmanagement/lib/model/task.ts new file mode 100644 index 0000000000..e1fe6a04b1 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/task.ts @@ -0,0 +1,89 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details of the task + */ +export interface Task { + /** + * The name of the task step. + */ + "stepName": string; + /** + * The association type of the task + */ + "associationType": Task.AssociationType; + "taskRecordDetails": model.AssociatedLocalTaskDetails | model.AssociatedSharedTaskDetails; + "stepProperties"?: model.ComponentProperties; + /** + * Mapping output variables of previous tasks to the input variables of the current task. + */ + "outputVariableMappings"?: Array; +} + +export namespace Task { + export enum AssociationType { + Task = "TASK", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: Task): object { + const jsonObj = { + ...obj, + ...{ + "taskRecordDetails": obj.taskRecordDetails + ? model.AssociatedTaskDetails.getJsonObj(obj.taskRecordDetails) + : undefined, + "stepProperties": obj.stepProperties + ? model.ComponentProperties.getJsonObj(obj.stepProperties) + : undefined, + "outputVariableMappings": obj.outputVariableMappings + ? obj.outputVariableMappings.map(item => { + return model.OutputVariableMapping.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: Task): object { + const jsonObj = { + ...obj, + ...{ + "taskRecordDetails": obj.taskRecordDetails + ? model.AssociatedTaskDetails.getDeserializedJsonObj(obj.taskRecordDetails) + : undefined, + "stepProperties": obj.stepProperties + ? model.ComponentProperties.getDeserializedJsonObj(obj.stepProperties) + : undefined, + "outputVariableMappings": obj.outputVariableMappings + ? obj.outputVariableMappings.map(item => { + return model.OutputVariableMapping.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-fleet-credential-details.ts b/lib/fleetappsmanagement/lib/model/update-fleet-credential-details.ts new file mode 100644 index 0000000000..9edb69610c --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-fleet-credential-details.ts @@ -0,0 +1,73 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface UpdateFleetCredentialDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + "entitySpecifics"?: model.TargetCredentialEntitySpecificDetails; + "user"?: + | model.PlainTextCredentialDetails + | model.KeyEncryptionCredentialDetails + | model.VaultSecretCredentialDetails; + "password"?: + | model.PlainTextCredentialDetails + | model.KeyEncryptionCredentialDetails + | model.VaultSecretCredentialDetails; +} + +export namespace UpdateFleetCredentialDetails { + export function getJsonObj(obj: UpdateFleetCredentialDetails): object { + const jsonObj = { + ...obj, + ...{ + "entitySpecifics": obj.entitySpecifics + ? model.CredentialEntitySpecificDetails.getJsonObj(obj.entitySpecifics) + : undefined, + "user": obj.user ? model.CredentialDetails.getJsonObj(obj.user) : undefined, + "password": obj.password ? model.CredentialDetails.getJsonObj(obj.password) : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdateFleetCredentialDetails): object { + const jsonObj = { + ...obj, + ...{ + "entitySpecifics": obj.entitySpecifics + ? model.CredentialEntitySpecificDetails.getDeserializedJsonObj(obj.entitySpecifics) + : undefined, + "user": obj.user ? model.CredentialDetails.getDeserializedJsonObj(obj.user) : undefined, + "password": obj.password + ? model.CredentialDetails.getDeserializedJsonObj(obj.password) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-fleet-details.ts b/lib/fleetappsmanagement/lib/model/update-fleet-details.ts new file mode 100644 index 0000000000..566f743a91 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-fleet-details.ts @@ -0,0 +1,88 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface UpdateFleetDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + "notificationPreferences"?: model.NotificationPreferences; + "ruleSelectionCriteria"?: model.SelectionCriteria; + /** + * A value which represents if auto confirming of the targets can be enabled + */ + "isTargetAutoConfirm"?: boolean; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace UpdateFleetDetails { + export function getJsonObj(obj: UpdateFleetDetails): object { + const jsonObj = { + ...obj, + ...{ + "notificationPreferences": obj.notificationPreferences + ? model.NotificationPreferences.getJsonObj(obj.notificationPreferences) + : undefined, + "ruleSelectionCriteria": obj.ruleSelectionCriteria + ? model.SelectionCriteria.getJsonObj(obj.ruleSelectionCriteria) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdateFleetDetails): object { + const jsonObj = { + ...obj, + ...{ + "notificationPreferences": obj.notificationPreferences + ? model.NotificationPreferences.getDeserializedJsonObj(obj.notificationPreferences) + : undefined, + "ruleSelectionCriteria": obj.ruleSelectionCriteria + ? model.SelectionCriteria.getDeserializedJsonObj(obj.ruleSelectionCriteria) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-fleet-property-details.ts b/lib/fleetappsmanagement/lib/model/update-fleet-property-details.ts new file mode 100644 index 0000000000..50567ce5f1 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-fleet-property-details.ts @@ -0,0 +1,40 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface UpdateFleetPropertyDetails { + /** + * Value of the Property + */ + "value"?: string; +} + +export namespace UpdateFleetPropertyDetails { + export function getJsonObj(obj: UpdateFleetPropertyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdateFleetPropertyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-fleet-resource-details.ts b/lib/fleetappsmanagement/lib/model/update-fleet-resource-details.ts new file mode 100644 index 0000000000..c282c997a0 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-fleet-resource-details.ts @@ -0,0 +1,44 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface UpdateFleetResourceDetails { + /** + * OCID of the tenancy to which the resource belongs to. + */ + "tenancyId"?: string; + /** + * OCID of the compartment to which the resource belongs to. + */ + "compartmentId"?: string; +} + +export namespace UpdateFleetResourceDetails { + export function getJsonObj(obj: UpdateFleetResourceDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdateFleetResourceDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-maintenance-window-details.ts b/lib/fleetappsmanagement/lib/model/update-maintenance-window-details.ts new file mode 100644 index 0000000000..68d8fec2f2 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-maintenance-window-details.ts @@ -0,0 +1,90 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Maintenance Window information to be updated. + */ +export interface UpdateMaintenanceWindowDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * MaintenanceWindow Identifier + */ + "maintenanceWindowType"?: model.MaintenanceWindowType; + /** + * Does the maintenenace window cause outage? + */ + "isOutage"?: boolean; + /** + * Start time of schedule + */ + "timeScheduleStart"?: Date; + /** + * Duration if schedule type is Custom + */ + "duration"?: string; + /** + * Is this is a recurring maintenance window + */ + "isRecurring"?: boolean; + /** + * Recurrence rule specification if recurring + */ + "recurrences"?: string; + /** + * Task initiation cutoff Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "taskInitiationCutoff"?: number; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace UpdateMaintenanceWindowDetails { + export function getJsonObj(obj: UpdateMaintenanceWindowDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdateMaintenanceWindowDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-property-details.ts b/lib/fleetappsmanagement/lib/model/update-property-details.ts new file mode 100644 index 0000000000..169c4453ed --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-property-details.ts @@ -0,0 +1,56 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface UpdatePropertyDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * Text selection of the category + */ + "selection"?: model.Selection; + /** + * Format of the value + */ + "valueType"?: model.ValueType; + /** + * Values of the property (must be a single value if selection = 'single choice') + */ + "values"?: Array; +} + +export namespace UpdatePropertyDetails { + export function getJsonObj(obj: UpdatePropertyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdatePropertyDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-scheduler-definition-details.ts b/lib/fleetappsmanagement/lib/model/update-scheduler-definition-details.ts new file mode 100644 index 0000000000..c347fbb7b9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-scheduler-definition-details.ts @@ -0,0 +1,105 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface UpdateSchedulerDefinitionDetails { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. +* Avoid entering confidential information. +*

+Example: {@code My new resource} +* + */ + "displayName"?: string; + /** + * A user-friendly description. To provide some insight about the resource. + * Avoid entering confidential information. + * + */ + "description"?: string; + /** + * Activity Initiation Cut Off Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "activityInitiationCutOff"?: number; + "schedule"?: model.Schedule; + /** + * Action Groups associated with the Schedule. + */ + "actionGroups"?: Array; + /** + * Runbooks. + */ + "runBooks"?: Array; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace UpdateSchedulerDefinitionDetails { + export function getJsonObj(obj: UpdateSchedulerDefinitionDetails): object { + const jsonObj = { + ...obj, + ...{ + "schedule": obj.schedule ? model.Schedule.getJsonObj(obj.schedule) : undefined, + "actionGroups": obj.actionGroups + ? obj.actionGroups.map(item => { + return model.ActionGroup.getJsonObj(item); + }) + : undefined, + "runBooks": obj.runBooks + ? obj.runBooks.map(item => { + return model.OperationRunbook.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdateSchedulerDefinitionDetails): object { + const jsonObj = { + ...obj, + ...{ + "schedule": obj.schedule ? model.Schedule.getDeserializedJsonObj(obj.schedule) : undefined, + "actionGroups": obj.actionGroups + ? obj.actionGroups.map(item => { + return model.ActionGroup.getDeserializedJsonObj(item); + }) + : undefined, + "runBooks": obj.runBooks + ? obj.runBooks.map(item => { + return model.OperationRunbook.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/update-scheduler-job-details.ts b/lib/fleetappsmanagement/lib/model/update-scheduler-job-details.ts new file mode 100644 index 0000000000..e88d9dbcb6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/update-scheduler-job-details.ts @@ -0,0 +1,52 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The information to be updated. + */ +export interface UpdateSchedulerJobDetails { + /** + * Scheduled date for the Job.Provide only the date + */ + "timeScheduled"?: Date; + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {\"bar-key\": \"value\"}} + * + */ + "freeformTags"?: { [key: string]: string }; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {\"foo-namespace\": {\"bar-key\": \"value\"}}} + * + */ + "definedTags"?: { [key: string]: { [key: string]: any } }; +} + +export namespace UpdateSchedulerJobDetails { + export function getJsonObj(obj: UpdateSchedulerJobDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: UpdateSchedulerJobDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/value-type.ts b/lib/fleetappsmanagement/lib/model/value-type.ts new file mode 100644 index 0000000000..9ef2016789 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/value-type.ts @@ -0,0 +1,40 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible value types. + **/ +export enum ValueType { + String = "STRING", + Numeric = "NUMERIC", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace ValueType { + export function getJsonObj(obj: ValueType): ValueType { + return obj; + } + export function getDeserializedJsonObj(obj: ValueType): ValueType { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/vault-secret-credential-details.ts b/lib/fleetappsmanagement/lib/model/vault-secret-credential-details.ts new file mode 100644 index 0000000000..c49423994a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/vault-secret-credential-details.ts @@ -0,0 +1,60 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Secret details. + */ +export interface VaultSecretCredentialDetails extends model.CredentialDetails { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the secret. + */ + "secretId": string; + /** + * The secret version. + */ + "secretVersion"?: string; + + "credentialType": string; +} + +export namespace VaultSecretCredentialDetails { + export function getJsonObj(obj: VaultSecretCredentialDetails, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialDetails.getJsonObj(obj) as VaultSecretCredentialDetails)), + ...{} + }; + + return jsonObj; + } + export const credentialType = "VAULT_SECRET"; + export function getDeserializedJsonObj( + obj: VaultSecretCredentialDetails, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.CredentialDetails.getDeserializedJsonObj(obj) as VaultSecretCredentialDetails)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/work-request-error-collection.ts b/lib/fleetappsmanagement/lib/model/work-request-error-collection.ts new file mode 100644 index 0000000000..f3dd2b6134 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/work-request-error-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a workRequestError search. Contains both WorkRequestError items and other information, such as metadata. + */ +export interface WorkRequestErrorCollection { + /** + * List of workRequestError objects. + */ + "items": Array; +} + +export namespace WorkRequestErrorCollection { + export function getJsonObj(obj: WorkRequestErrorCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.WorkRequestError.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: WorkRequestErrorCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.WorkRequestError.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/work-request-error.ts b/lib/fleetappsmanagement/lib/model/work-request-error.ts new file mode 100644 index 0000000000..3c5aa0680a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/work-request-error.ts @@ -0,0 +1,50 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * An error encountered while executing a work request. + */ +export interface WorkRequestError { + /** + * A machine-usable code for the error that occured. Error codes are listed on + * (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + * + */ + "code": string; + /** + * A human readable description of the issue encountered. + */ + "message": string; + /** + * The time the error occured. An RFC3339 formatted datetime string. + */ + "timestamp": Date; +} + +export namespace WorkRequestError { + export function getJsonObj(obj: WorkRequestError): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: WorkRequestError): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/work-request-log-entry-collection.ts b/lib/fleetappsmanagement/lib/model/work-request-log-entry-collection.ts new file mode 100644 index 0000000000..9e38f871e3 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/work-request-log-entry-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a workRequestLog search. Contains both workRequestLog items and other information, such as metadata. + */ +export interface WorkRequestLogEntryCollection { + /** + * List of workRequestLogEntries. + */ + "items": Array; +} + +export namespace WorkRequestLogEntryCollection { + export function getJsonObj(obj: WorkRequestLogEntryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.WorkRequestLogEntry.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: WorkRequestLogEntryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.WorkRequestLogEntry.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/work-request-log-entry.ts b/lib/fleetappsmanagement/lib/model/work-request-log-entry.ts new file mode 100644 index 0000000000..20f8f3dc57 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/work-request-log-entry.ts @@ -0,0 +1,44 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * A log message from the execution of a work request. + */ +export interface WorkRequestLogEntry { + /** + * Human-readable log message. + */ + "message": string; + /** + * The time the log message was written. An RFC3339 formatted datetime string + */ + "timestamp": Date; +} + +export namespace WorkRequestLogEntry { + export function getJsonObj(obj: WorkRequestLogEntry): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: WorkRequestLogEntry): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/work-request-resource-metadata-key.ts b/lib/fleetappsmanagement/lib/model/work-request-resource-metadata-key.ts new file mode 100644 index 0000000000..7a7a64e51d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/work-request-resource-metadata-key.ts @@ -0,0 +1,41 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Possible Metadata keys for workRequest resource metadata + **/ +export enum WorkRequestResourceMetadataKey { + IsDryRun = "IS_DRY_RUN", + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" +} + +export namespace WorkRequestResourceMetadataKey { + export function getJsonObj(obj: WorkRequestResourceMetadataKey): WorkRequestResourceMetadataKey { + return obj; + } + export function getDeserializedJsonObj( + obj: WorkRequestResourceMetadataKey + ): WorkRequestResourceMetadataKey { + return obj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/work-request-resource.ts b/lib/fleetappsmanagement/lib/model/work-request-resource.ts new file mode 100644 index 0000000000..31dcd69e84 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/work-request-resource.ts @@ -0,0 +1,60 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * A resource created or operated on by a work request. + */ +export interface WorkRequestResource { + /** + * The resource type the work request affects. + */ + "entityType": string; + /** + * The way in which this resource is affected by the work tracked in the work request. + * A resource being created, updated, or deleted will remain in the IN_PROGRESS state until + * work is complete for that resource at which point it will transition to CREATED, UPDATED, + * or DELETED, respectively. + * + */ + "actionType": model.ActionType; + /** + * The identifier of the resource the work request affects. + */ + "identifier": string; + /** + * The URI path that the user can do a GET on to access the resource metadata + */ + "entityUri"?: string; + /** + * Additional information that helps to explain the resource. + */ + "metadata"?: { [key: string]: string }; +} + +export namespace WorkRequestResource { + export function getJsonObj(obj: WorkRequestResource): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: WorkRequestResource): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/work-request-summary-collection.ts b/lib/fleetappsmanagement/lib/model/work-request-summary-collection.ts new file mode 100644 index 0000000000..13887e08d6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/work-request-summary-collection.ts @@ -0,0 +1,58 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Results of a workRequest search. Contains both WorkRequest items and other information, such as metadata. + */ +export interface WorkRequestSummaryCollection { + /** + * List of workRequestSummary objects. + */ + "items": Array; +} + +export namespace WorkRequestSummaryCollection { + export function getJsonObj(obj: WorkRequestSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.WorkRequestSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: WorkRequestSummaryCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.WorkRequestSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/work-request-summary.ts b/lib/fleetappsmanagement/lib/model/work-request-summary.ts new file mode 100644 index 0000000000..6015cc92ab --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/work-request-summary.ts @@ -0,0 +1,104 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * A summary of the status of a work request. + */ +export interface WorkRequestSummary { + /** + * Type of the work request + */ + "operationType": model.OperationType; + /** + * Status of current work request. + */ + "status": model.OperationStatus; + /** + * The id of the work request. + */ + "id": string; + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects multiple resources, + * and those resources are not in the same compartment, it is up to the service team to pick the primary + * resource whose compartment should be used + * + */ + "compartmentId": string; + /** + * The resources affected by this work request. + */ + "resources": Array; + /** + * Percentage of the request completed. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "percentComplete": number; + /** + * The date and time the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + */ + "timeAccepted": Date; + /** + * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + */ + "timeStarted"?: Date; + /** + * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + */ + "timeFinished"?: Date; + /** + * The date and time the object was updated, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + */ + "timeUpdated"?: Date; +} + +export namespace WorkRequestSummary { + export function getJsonObj(obj: WorkRequestSummary): object { + const jsonObj = { + ...obj, + ...{ + "resources": obj.resources + ? obj.resources.map(item => { + return model.WorkRequestResource.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: WorkRequestSummary): object { + const jsonObj = { + ...obj, + ...{ + "resources": obj.resources + ? obj.resources.map(item => { + return model.WorkRequestResource.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/work-request.ts b/lib/fleetappsmanagement/lib/model/work-request.ts new file mode 100644 index 0000000000..a6ab5d781a --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/work-request.ts @@ -0,0 +1,104 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * A description of workrequest status + */ +export interface WorkRequest { + /** + * Type of the work request + */ + "operationType": model.OperationType; + /** + * Status of current work request. + */ + "status": model.OperationStatus; + /** + * The id of the work request. + */ + "id": string; + /** + * The OCID of the compartment that contains the work request. Work requests should be scoped to + * the same compartment as the resource the work request affects. If the work request affects multiple resources, + * and those resources are not in the same compartment, it is up to the service team to pick the primary + * resource whose compartment should be used + * + */ + "compartmentId": string; + /** + * The resources affected by this work request. + */ + "resources": Array; + /** + * Percentage of the request completed. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "percentComplete": number; + /** + * The date and time the request was created, as described in + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + * + */ + "timeAccepted": Date; + /** + * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + * section 14.29. + * + */ + "timeStarted"?: Date; + /** + * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + */ + "timeFinished"?: Date; + /** + * The date and time the object was updated, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + */ + "timeUpdated"?: Date; +} + +export namespace WorkRequest { + export function getJsonObj(obj: WorkRequest): object { + const jsonObj = { + ...obj, + ...{ + "resources": obj.resources + ? obj.resources.map(item => { + return model.WorkRequestResource.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: WorkRequest): object { + const jsonObj = { + ...obj, + ...{ + "resources": obj.resources + ? obj.resources.map(item => { + return model.WorkRequestResource.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/workflow-component.ts b/lib/fleetappsmanagement/lib/model/workflow-component.ts new file mode 100644 index 0000000000..908cb27687 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/workflow-component.ts @@ -0,0 +1,69 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Workflow Component Details. + */ +export interface WorkflowComponent { + "type": string; +} + +export namespace WorkflowComponent { + export function getJsonObj(obj: WorkflowComponent): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "type" in obj && obj.type) { + switch (obj.type) { + case "PARALLEL_TASK_GROUP": + return model.WorkflowGroupComponent.getJsonObj( + (jsonObj), + true + ); + case "TASK": + return model.WorkflowTaskComponent.getJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); + } + } + return jsonObj; + } + export function getDeserializedJsonObj(obj: WorkflowComponent): object { + const jsonObj = { ...obj, ...{} }; + + if (obj && "type" in obj && obj.type) { + switch (obj.type) { + case "PARALLEL_TASK_GROUP": + return model.WorkflowGroupComponent.getDeserializedJsonObj( + (jsonObj), + true + ); + case "TASK": + return model.WorkflowTaskComponent.getDeserializedJsonObj( + (jsonObj), + true + ); + default: + if (common.LOG.logger) common.LOG.logger.info(`Unknown value for: ${obj.type}`); + } + } + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/workflow-group-component.ts b/lib/fleetappsmanagement/lib/model/workflow-group-component.ts new file mode 100644 index 0000000000..2fbed98603 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/workflow-group-component.ts @@ -0,0 +1,62 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Workflow Group Component Details. + */ +export interface WorkflowGroupComponent extends model.WorkflowComponent { + /** + * Provide the name of the group. + */ + "groupName": string; + /** + * Tasks within the Group. + * Provide the stepName for all tasks that are applicable + * + */ + "steps"?: Array; + + "type": string; +} + +export namespace WorkflowGroupComponent { + export function getJsonObj(obj: WorkflowGroupComponent, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.WorkflowComponent.getJsonObj(obj) as WorkflowGroupComponent)), + ...{} + }; + + return jsonObj; + } + export const type = "PARALLEL_TASK_GROUP"; + export function getDeserializedJsonObj( + obj: WorkflowGroupComponent, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.WorkflowComponent.getDeserializedJsonObj(obj) as WorkflowGroupComponent)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/workflow-group.ts b/lib/fleetappsmanagement/lib/model/workflow-group.ts new file mode 100644 index 0000000000..24db4e4d16 --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/workflow-group.ts @@ -0,0 +1,77 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Workflow Group Layout. + */ +export interface WorkflowGroup { + /** + * Provide the name of the group. + */ + "groupName": string; + /** + * Workflow Group Details. + * + */ + "type": WorkflowGroup.Type; + /** + * Steps within the Group. + */ + "steps": Array; +} + +export namespace WorkflowGroup { + export enum Type { + ParallelResourceGroup = "PARALLEL_RESOURCE_GROUP", + RollingResourceGroup = "ROLLING_RESOURCE_GROUP", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + + export function getJsonObj(obj: WorkflowGroup): object { + const jsonObj = { + ...obj, + ...{ + "steps": obj.steps + ? obj.steps.map(item => { + return model.WorkflowComponent.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: WorkflowGroup): object { + const jsonObj = { + ...obj, + ...{ + "steps": obj.steps + ? obj.steps.map(item => { + return model.WorkflowComponent.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/model/workflow-task-component.ts b/lib/fleetappsmanagement/lib/model/workflow-task-component.ts new file mode 100644 index 0000000000..0b178e973d --- /dev/null +++ b/lib/fleetappsmanagement/lib/model/workflow-task-component.ts @@ -0,0 +1,56 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Workflow Task Component Details. + */ +export interface WorkflowTaskComponent extends model.WorkflowComponent { + /** + * Provide StepName for the Task. + */ + "stepName": string; + + "type": string; +} + +export namespace WorkflowTaskComponent { + export function getJsonObj(obj: WorkflowTaskComponent, isParentJsonObj?: boolean): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.WorkflowComponent.getJsonObj(obj) as WorkflowTaskComponent)), + ...{} + }; + + return jsonObj; + } + export const type = "TASK"; + export function getDeserializedJsonObj( + obj: WorkflowTaskComponent, + isParentJsonObj?: boolean + ): object { + const jsonObj = { + ...(isParentJsonObj + ? obj + : (model.WorkflowComponent.getDeserializedJsonObj(obj) as WorkflowTaskComponent)), + ...{} + }; + + return jsonObj; + } +} diff --git a/lib/fleetappsmanagement/lib/request/check-resource-tagging-request.ts b/lib/fleetappsmanagement/lib/request/check-resource-tagging-request.ts new file mode 100644 index 0000000000..12a76bb5ee --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/check-resource-tagging-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CheckResourceTagging.ts.html |here} to see how to use CheckResourceTaggingRequest. + */ +export interface CheckResourceTaggingRequest extends common.BaseRequest { + /** + * Details for Checking if FAMS tags can be added for the resources + */ + "checkResourceTaggingDetails": model.CheckResourceTaggingDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/confirm-targets-request.ts b/lib/fleetappsmanagement/lib/request/confirm-targets-request.ts new file mode 100644 index 0000000000..de0d45e823 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/confirm-targets-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ConfirmTargets.ts.html |here} to see how to use ConfirmTargetsRequest. + */ +export interface ConfirmTargetsRequest extends common.BaseRequest { + /** + * Details for confirming Targets. + */ + "confirmTargetsDetails": model.ConfirmTargetsDetails; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-fleet-credential-request.ts b/lib/fleetappsmanagement/lib/request/create-fleet-credential-request.ts new file mode 100644 index 0000000000..2843dff0e9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-fleet-credential-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateFleetCredential.ts.html |here} to see how to use CreateFleetCredentialRequest. + */ +export interface CreateFleetCredentialRequest extends common.BaseRequest { + /** + * Details for the new FleetCredential. + */ + "createFleetCredentialDetails": model.CreateFleetCredentialDetails; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-fleet-property-request.ts b/lib/fleetappsmanagement/lib/request/create-fleet-property-request.ts new file mode 100644 index 0000000000..f154db7616 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-fleet-property-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateFleetProperty.ts.html |here} to see how to use CreateFleetPropertyRequest. + */ +export interface CreateFleetPropertyRequest extends common.BaseRequest { + /** + * Details for the new FleetProperty. + */ + "createFleetPropertyDetails": model.CreateFleetPropertyDetails; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-fleet-request.ts b/lib/fleetappsmanagement/lib/request/create-fleet-request.ts new file mode 100644 index 0000000000..6f38e72cd1 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-fleet-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateFleet.ts.html |here} to see how to use CreateFleetRequest. + */ +export interface CreateFleetRequest extends common.BaseRequest { + /** + * Details for the new Fleet. + */ + "createFleetDetails": model.CreateFleetDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-fleet-resource-request.ts b/lib/fleetappsmanagement/lib/request/create-fleet-resource-request.ts new file mode 100644 index 0000000000..cbcab8287c --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-fleet-resource-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateFleetResource.ts.html |here} to see how to use CreateFleetResourceRequest. + */ +export interface CreateFleetResourceRequest extends common.BaseRequest { + /** + * Details for the new FleetResource. + */ + "createFleetResourceDetails": model.CreateFleetResourceDetails; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-maintenance-window-request.ts b/lib/fleetappsmanagement/lib/request/create-maintenance-window-request.ts new file mode 100644 index 0000000000..4279e31e55 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-maintenance-window-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateMaintenanceWindow.ts.html |here} to see how to use CreateMaintenanceWindowRequest. + */ +export interface CreateMaintenanceWindowRequest extends common.BaseRequest { + /** + * Details for the new MaintenanceWindow. + */ + "createMaintenanceWindowDetails": model.CreateMaintenanceWindowDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-onboarding-request.ts b/lib/fleetappsmanagement/lib/request/create-onboarding-request.ts new file mode 100644 index 0000000000..fa8998750e --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-onboarding-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateOnboarding.ts.html |here} to see how to use CreateOnboardingRequest. + */ +export interface CreateOnboardingRequest extends common.BaseRequest { + /** + * Details for onboarding FAMS. + */ + "createOnboardingDetails": model.CreateOnboardingDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-property-request.ts b/lib/fleetappsmanagement/lib/request/create-property-request.ts new file mode 100644 index 0000000000..84a8368b0e --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-property-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateProperty.ts.html |here} to see how to use CreatePropertyRequest. + */ +export interface CreatePropertyRequest extends common.BaseRequest { + /** + * Details for the new Property. + */ + "createPropertyDetails": model.CreatePropertyDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/create-scheduler-definition-request.ts b/lib/fleetappsmanagement/lib/request/create-scheduler-definition-request.ts new file mode 100644 index 0000000000..15e8837048 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/create-scheduler-definition-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/CreateSchedulerDefinition.ts.html |here} to see how to use CreateSchedulerDefinitionRequest. + */ +export interface CreateSchedulerDefinitionRequest extends common.BaseRequest { + /** + * Details for the new SchedulerDefinition. + */ + "createSchedulerDefinitionDetails": model.CreateSchedulerDefinitionDetails; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-fleet-credential-request.ts b/lib/fleetappsmanagement/lib/request/delete-fleet-credential-request.ts new file mode 100644 index 0000000000..206035d9e1 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-fleet-credential-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteFleetCredential.ts.html |here} to see how to use DeleteFleetCredentialRequest. + */ +export interface DeleteFleetCredentialRequest extends common.BaseRequest { + /** + * unique FleetCredential identifier + */ + "fleetCredentialId": string; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-fleet-property-request.ts b/lib/fleetappsmanagement/lib/request/delete-fleet-property-request.ts new file mode 100644 index 0000000000..dd29a9319f --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-fleet-property-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteFleetProperty.ts.html |here} to see how to use DeleteFleetPropertyRequest. + */ +export interface DeleteFleetPropertyRequest extends common.BaseRequest { + /** + * unique FleetProperty identifier + */ + "fleetPropertyId": string; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-fleet-request.ts b/lib/fleetappsmanagement/lib/request/delete-fleet-request.ts new file mode 100644 index 0000000000..2eadd2c7b3 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-fleet-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteFleet.ts.html |here} to see how to use DeleteFleetRequest. + */ +export interface DeleteFleetRequest extends common.BaseRequest { + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-fleet-resource-request.ts b/lib/fleetappsmanagement/lib/request/delete-fleet-resource-request.ts new file mode 100644 index 0000000000..c8ad02905d --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-fleet-resource-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteFleetResource.ts.html |here} to see how to use DeleteFleetResourceRequest. + */ +export interface DeleteFleetResourceRequest extends common.BaseRequest { + /** + * unique FleetResource identifier + */ + "fleetResourceId": string; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-maintenance-window-request.ts b/lib/fleetappsmanagement/lib/request/delete-maintenance-window-request.ts new file mode 100644 index 0000000000..f9ea36dbef --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-maintenance-window-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteMaintenanceWindow.ts.html |here} to see how to use DeleteMaintenanceWindowRequest. + */ +export interface DeleteMaintenanceWindowRequest extends common.BaseRequest { + /** + * unique MaintenanceWindow identifier + */ + "maintenanceWindowId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-property-request.ts b/lib/fleetappsmanagement/lib/request/delete-property-request.ts new file mode 100644 index 0000000000..925a49fa13 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-property-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteProperty.ts.html |here} to see how to use DeletePropertyRequest. + */ +export interface DeletePropertyRequest extends common.BaseRequest { + /** + * unique Property identifier + */ + "propertyId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-scheduler-definition-request.ts b/lib/fleetappsmanagement/lib/request/delete-scheduler-definition-request.ts new file mode 100644 index 0000000000..800c945564 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-scheduler-definition-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteSchedulerDefinition.ts.html |here} to see how to use DeleteSchedulerDefinitionRequest. + */ +export interface DeleteSchedulerDefinitionRequest extends common.BaseRequest { + /** + * unique SchedulerDefinition identifier + */ + "schedulerDefinitionId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/delete-scheduler-job-request.ts b/lib/fleetappsmanagement/lib/request/delete-scheduler-job-request.ts new file mode 100644 index 0000000000..ab6dda5601 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/delete-scheduler-job-request.ts @@ -0,0 +1,38 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/DeleteSchedulerJob.ts.html |here} to see how to use DeleteSchedulerJobRequest. + */ +export interface DeleteSchedulerJobRequest extends common.BaseRequest { + /** + * unique SchedulerJob identifier + */ + "schedulerJobId": string; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/generate-compliance-report-request.ts b/lib/fleetappsmanagement/lib/request/generate-compliance-report-request.ts new file mode 100644 index 0000000000..2095d29630 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/generate-compliance-report-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GenerateComplianceReport.ts.html |here} to see how to use GenerateComplianceReportRequest. + */ +export interface GenerateComplianceReportRequest extends common.BaseRequest { + /** + * Details for generating Compliance Report fort the Fleet. + */ + "generateComplianceReportDetails": model.GenerateComplianceReportDetails; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-compliance-report-request.ts b/lib/fleetappsmanagement/lib/request/get-compliance-report-request.ts new file mode 100644 index 0000000000..23a26e6922 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-compliance-report-request.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetComplianceReport.ts.html |here} to see how to use GetComplianceReportRequest. + */ +export interface GetComplianceReportRequest extends common.BaseRequest { + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * compliance report identifier + */ + "complianceReportId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-execution-request.ts b/lib/fleetappsmanagement/lib/request/get-execution-request.ts new file mode 100644 index 0000000000..35941bf893 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-execution-request.ts @@ -0,0 +1,41 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetExecution.ts.html |here} to see how to use GetExecutionRequest. + */ +export interface GetExecutionRequest extends common.BaseRequest { + /** + * unique SchedulerJob identifier + */ + "schedulerJobId": string; + /** + * unique jobActivity identifier + */ + "jobActivityId": string; + /** + * unique Resource identifier + */ + "resourceId": string; + /** + * Execution Id + */ + "executionId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-fleet-credential-request.ts b/lib/fleetappsmanagement/lib/request/get-fleet-credential-request.ts new file mode 100644 index 0000000000..c6aa9cd47b --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-fleet-credential-request.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetFleetCredential.ts.html |here} to see how to use GetFleetCredentialRequest. + */ +export interface GetFleetCredentialRequest extends common.BaseRequest { + /** + * unique FleetCredential identifier + */ + "fleetCredentialId": string; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-fleet-property-request.ts b/lib/fleetappsmanagement/lib/request/get-fleet-property-request.ts new file mode 100644 index 0000000000..c3045288bf --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-fleet-property-request.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetFleetProperty.ts.html |here} to see how to use GetFleetPropertyRequest. + */ +export interface GetFleetPropertyRequest extends common.BaseRequest { + /** + * unique FleetProperty identifier + */ + "fleetPropertyId": string; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-fleet-request.ts b/lib/fleetappsmanagement/lib/request/get-fleet-request.ts new file mode 100644 index 0000000000..8c6806e1a6 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-fleet-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetFleet.ts.html |here} to see how to use GetFleetRequest. + */ +export interface GetFleetRequest extends common.BaseRequest { + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-fleet-resource-request.ts b/lib/fleetappsmanagement/lib/request/get-fleet-resource-request.ts new file mode 100644 index 0000000000..41f9c9e3ad --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-fleet-resource-request.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetFleetResource.ts.html |here} to see how to use GetFleetResourceRequest. + */ +export interface GetFleetResourceRequest extends common.BaseRequest { + /** + * unique FleetResource identifier + */ + "fleetResourceId": string; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-job-activity-request.ts b/lib/fleetappsmanagement/lib/request/get-job-activity-request.ts new file mode 100644 index 0000000000..bb7aec42af --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-job-activity-request.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetJobActivity.ts.html |here} to see how to use GetJobActivityRequest. + */ +export interface GetJobActivityRequest extends common.BaseRequest { + /** + * unique SchedulerJob identifier + */ + "schedulerJobId": string; + /** + * unique jobActivity identifier + */ + "jobActivityId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-maintenance-window-request.ts b/lib/fleetappsmanagement/lib/request/get-maintenance-window-request.ts new file mode 100644 index 0000000000..c849b6d67e --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-maintenance-window-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetMaintenanceWindow.ts.html |here} to see how to use GetMaintenanceWindowRequest. + */ +export interface GetMaintenanceWindowRequest extends common.BaseRequest { + /** + * unique MaintenanceWindow identifier + */ + "maintenanceWindowId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-property-request.ts b/lib/fleetappsmanagement/lib/request/get-property-request.ts new file mode 100644 index 0000000000..870881b1c5 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-property-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetProperty.ts.html |here} to see how to use GetPropertyRequest. + */ +export interface GetPropertyRequest extends common.BaseRequest { + /** + * unique Property identifier + */ + "propertyId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-runbook-request.ts b/lib/fleetappsmanagement/lib/request/get-runbook-request.ts new file mode 100644 index 0000000000..13592ca43f --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-runbook-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetRunbook.ts.html |here} to see how to use GetRunbookRequest. + */ +export interface GetRunbookRequest extends common.BaseRequest { + /** + * Unique Runbook identifier + */ + "runbookId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-scheduler-definition-request.ts b/lib/fleetappsmanagement/lib/request/get-scheduler-definition-request.ts new file mode 100644 index 0000000000..bc1f7b21e3 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-scheduler-definition-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetSchedulerDefinition.ts.html |here} to see how to use GetSchedulerDefinitionRequest. + */ +export interface GetSchedulerDefinitionRequest extends common.BaseRequest { + /** + * unique SchedulerDefinition identifier + */ + "schedulerDefinitionId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-scheduler-job-request.ts b/lib/fleetappsmanagement/lib/request/get-scheduler-job-request.ts new file mode 100644 index 0000000000..211f1183a4 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-scheduler-job-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetSchedulerJob.ts.html |here} to see how to use GetSchedulerJobRequest. + */ +export interface GetSchedulerJobRequest extends common.BaseRequest { + /** + * unique SchedulerJob identifier + */ + "schedulerJobId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-task-record-request.ts b/lib/fleetappsmanagement/lib/request/get-task-record-request.ts new file mode 100644 index 0000000000..679a388edb --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-task-record-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetTaskRecord.ts.html |here} to see how to use GetTaskRecordRequest. + */ +export interface GetTaskRecordRequest extends common.BaseRequest { + /** + * unique TaskDetail identifier + */ + "taskRecordId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/get-work-request-request.ts b/lib/fleetappsmanagement/lib/request/get-work-request-request.ts new file mode 100644 index 0000000000..17f1994a11 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/get-work-request-request.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/GetWorkRequest.ts.html |here} to see how to use GetWorkRequestRequest. + */ +export interface GetWorkRequestRequest extends common.BaseRequest { + /** + * The ID of the asynchronous request. + */ + "workRequestId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/index.ts b/lib/fleetappsmanagement/lib/request/index.ts new file mode 100644 index 0000000000..16f70efdf0 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/index.ts @@ -0,0 +1,145 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as CheckResourceTaggingRequest from "./check-resource-tagging-request"; +export import CheckResourceTaggingRequest = CheckResourceTaggingRequest.CheckResourceTaggingRequest; +import * as ConfirmTargetsRequest from "./confirm-targets-request"; +export import ConfirmTargetsRequest = ConfirmTargetsRequest.ConfirmTargetsRequest; +import * as CreateFleetRequest from "./create-fleet-request"; +export import CreateFleetRequest = CreateFleetRequest.CreateFleetRequest; +import * as CreateFleetCredentialRequest from "./create-fleet-credential-request"; +export import CreateFleetCredentialRequest = CreateFleetCredentialRequest.CreateFleetCredentialRequest; +import * as CreateFleetPropertyRequest from "./create-fleet-property-request"; +export import CreateFleetPropertyRequest = CreateFleetPropertyRequest.CreateFleetPropertyRequest; +import * as CreateFleetResourceRequest from "./create-fleet-resource-request"; +export import CreateFleetResourceRequest = CreateFleetResourceRequest.CreateFleetResourceRequest; +import * as DeleteFleetRequest from "./delete-fleet-request"; +export import DeleteFleetRequest = DeleteFleetRequest.DeleteFleetRequest; +import * as DeleteFleetCredentialRequest from "./delete-fleet-credential-request"; +export import DeleteFleetCredentialRequest = DeleteFleetCredentialRequest.DeleteFleetCredentialRequest; +import * as DeleteFleetPropertyRequest from "./delete-fleet-property-request"; +export import DeleteFleetPropertyRequest = DeleteFleetPropertyRequest.DeleteFleetPropertyRequest; +import * as DeleteFleetResourceRequest from "./delete-fleet-resource-request"; +export import DeleteFleetResourceRequest = DeleteFleetResourceRequest.DeleteFleetResourceRequest; +import * as GenerateComplianceReportRequest from "./generate-compliance-report-request"; +export import GenerateComplianceReportRequest = GenerateComplianceReportRequest.GenerateComplianceReportRequest; +import * as GetComplianceReportRequest from "./get-compliance-report-request"; +export import GetComplianceReportRequest = GetComplianceReportRequest.GetComplianceReportRequest; +import * as GetFleetRequest from "./get-fleet-request"; +export import GetFleetRequest = GetFleetRequest.GetFleetRequest; +import * as GetFleetCredentialRequest from "./get-fleet-credential-request"; +export import GetFleetCredentialRequest = GetFleetCredentialRequest.GetFleetCredentialRequest; +import * as GetFleetPropertyRequest from "./get-fleet-property-request"; +export import GetFleetPropertyRequest = GetFleetPropertyRequest.GetFleetPropertyRequest; +import * as GetFleetResourceRequest from "./get-fleet-resource-request"; +export import GetFleetResourceRequest = GetFleetResourceRequest.GetFleetResourceRequest; +import * as GetWorkRequestRequest from "./get-work-request-request"; +export import GetWorkRequestRequest = GetWorkRequestRequest.GetWorkRequestRequest; +import * as ListAnnouncementsRequest from "./list-announcements-request"; +export import ListAnnouncementsRequest = ListAnnouncementsRequest.ListAnnouncementsRequest; +import * as ListFleetCredentialsRequest from "./list-fleet-credentials-request"; +export import ListFleetCredentialsRequest = ListFleetCredentialsRequest.ListFleetCredentialsRequest; +import * as ListFleetProductsRequest from "./list-fleet-products-request"; +export import ListFleetProductsRequest = ListFleetProductsRequest.ListFleetProductsRequest; +import * as ListFleetPropertiesRequest from "./list-fleet-properties-request"; +export import ListFleetPropertiesRequest = ListFleetPropertiesRequest.ListFleetPropertiesRequest; +import * as ListFleetResourcesRequest from "./list-fleet-resources-request"; +export import ListFleetResourcesRequest = ListFleetResourcesRequest.ListFleetResourcesRequest; +import * as ListFleetTargetsRequest from "./list-fleet-targets-request"; +export import ListFleetTargetsRequest = ListFleetTargetsRequest.ListFleetTargetsRequest; +import * as ListFleetsRequest from "./list-fleets-request"; +export import ListFleetsRequest = ListFleetsRequest.ListFleetsRequest; +import * as ListInventoryResourcesRequest from "./list-inventory-resources-request"; +export import ListInventoryResourcesRequest = ListInventoryResourcesRequest.ListInventoryResourcesRequest; +import * as ListTargetsRequest from "./list-targets-request"; +export import ListTargetsRequest = ListTargetsRequest.ListTargetsRequest; +import * as ListWorkRequestErrorsRequest from "./list-work-request-errors-request"; +export import ListWorkRequestErrorsRequest = ListWorkRequestErrorsRequest.ListWorkRequestErrorsRequest; +import * as ListWorkRequestLogsRequest from "./list-work-request-logs-request"; +export import ListWorkRequestLogsRequest = ListWorkRequestLogsRequest.ListWorkRequestLogsRequest; +import * as ListWorkRequestsRequest from "./list-work-requests-request"; +export import ListWorkRequestsRequest = ListWorkRequestsRequest.ListWorkRequestsRequest; +import * as RequestResourceValidationRequest from "./request-resource-validation-request"; +export import RequestResourceValidationRequest = RequestResourceValidationRequest.RequestResourceValidationRequest; +import * as RequestTargetDiscoveryRequest from "./request-target-discovery-request"; +export import RequestTargetDiscoveryRequest = RequestTargetDiscoveryRequest.RequestTargetDiscoveryRequest; +import * as UpdateFleetRequest from "./update-fleet-request"; +export import UpdateFleetRequest = UpdateFleetRequest.UpdateFleetRequest; +import * as UpdateFleetCredentialRequest from "./update-fleet-credential-request"; +export import UpdateFleetCredentialRequest = UpdateFleetCredentialRequest.UpdateFleetCredentialRequest; +import * as UpdateFleetPropertyRequest from "./update-fleet-property-request"; +export import UpdateFleetPropertyRequest = UpdateFleetPropertyRequest.UpdateFleetPropertyRequest; +import * as UpdateFleetResourceRequest from "./update-fleet-resource-request"; +export import UpdateFleetResourceRequest = UpdateFleetResourceRequest.UpdateFleetResourceRequest; +import * as CreateOnboardingRequest from "./create-onboarding-request"; +export import CreateOnboardingRequest = CreateOnboardingRequest.CreateOnboardingRequest; +import * as CreatePropertyRequest from "./create-property-request"; +export import CreatePropertyRequest = CreatePropertyRequest.CreatePropertyRequest; +import * as DeletePropertyRequest from "./delete-property-request"; +export import DeletePropertyRequest = DeletePropertyRequest.DeletePropertyRequest; +import * as GetPropertyRequest from "./get-property-request"; +export import GetPropertyRequest = GetPropertyRequest.GetPropertyRequest; +import * as ListOnboardingPoliciesRequest from "./list-onboarding-policies-request"; +export import ListOnboardingPoliciesRequest = ListOnboardingPoliciesRequest.ListOnboardingPoliciesRequest; +import * as ListOnboardingsRequest from "./list-onboardings-request"; +export import ListOnboardingsRequest = ListOnboardingsRequest.ListOnboardingsRequest; +import * as ListPropertiesRequest from "./list-properties-request"; +export import ListPropertiesRequest = ListPropertiesRequest.ListPropertiesRequest; +import * as UpdatePropertyRequest from "./update-property-request"; +export import UpdatePropertyRequest = UpdatePropertyRequest.UpdatePropertyRequest; +import * as CreateMaintenanceWindowRequest from "./create-maintenance-window-request"; +export import CreateMaintenanceWindowRequest = CreateMaintenanceWindowRequest.CreateMaintenanceWindowRequest; +import * as DeleteMaintenanceWindowRequest from "./delete-maintenance-window-request"; +export import DeleteMaintenanceWindowRequest = DeleteMaintenanceWindowRequest.DeleteMaintenanceWindowRequest; +import * as GetMaintenanceWindowRequest from "./get-maintenance-window-request"; +export import GetMaintenanceWindowRequest = GetMaintenanceWindowRequest.GetMaintenanceWindowRequest; +import * as ListMaintenanceWindowsRequest from "./list-maintenance-windows-request"; +export import ListMaintenanceWindowsRequest = ListMaintenanceWindowsRequest.ListMaintenanceWindowsRequest; +import * as UpdateMaintenanceWindowRequest from "./update-maintenance-window-request"; +export import UpdateMaintenanceWindowRequest = UpdateMaintenanceWindowRequest.UpdateMaintenanceWindowRequest; +import * as CreateSchedulerDefinitionRequest from "./create-scheduler-definition-request"; +export import CreateSchedulerDefinitionRequest = CreateSchedulerDefinitionRequest.CreateSchedulerDefinitionRequest; +import * as DeleteSchedulerDefinitionRequest from "./delete-scheduler-definition-request"; +export import DeleteSchedulerDefinitionRequest = DeleteSchedulerDefinitionRequest.DeleteSchedulerDefinitionRequest; +import * as DeleteSchedulerJobRequest from "./delete-scheduler-job-request"; +export import DeleteSchedulerJobRequest = DeleteSchedulerJobRequest.DeleteSchedulerJobRequest; +import * as GetExecutionRequest from "./get-execution-request"; +export import GetExecutionRequest = GetExecutionRequest.GetExecutionRequest; +import * as GetJobActivityRequest from "./get-job-activity-request"; +export import GetJobActivityRequest = GetJobActivityRequest.GetJobActivityRequest; +import * as GetSchedulerDefinitionRequest from "./get-scheduler-definition-request"; +export import GetSchedulerDefinitionRequest = GetSchedulerDefinitionRequest.GetSchedulerDefinitionRequest; +import * as GetSchedulerJobRequest from "./get-scheduler-job-request"; +export import GetSchedulerJobRequest = GetSchedulerJobRequest.GetSchedulerJobRequest; +import * as ListExecutionsRequest from "./list-executions-request"; +export import ListExecutionsRequest = ListExecutionsRequest.ListExecutionsRequest; +import * as ListScheduledFleetsRequest from "./list-scheduled-fleets-request"; +export import ListScheduledFleetsRequest = ListScheduledFleetsRequest.ListScheduledFleetsRequest; +import * as ListSchedulerDefinitionsRequest from "./list-scheduler-definitions-request"; +export import ListSchedulerDefinitionsRequest = ListSchedulerDefinitionsRequest.ListSchedulerDefinitionsRequest; +import * as ListSchedulerJobsRequest from "./list-scheduler-jobs-request"; +export import ListSchedulerJobsRequest = ListSchedulerJobsRequest.ListSchedulerJobsRequest; +import * as UpdateSchedulerDefinitionRequest from "./update-scheduler-definition-request"; +export import UpdateSchedulerDefinitionRequest = UpdateSchedulerDefinitionRequest.UpdateSchedulerDefinitionRequest; +import * as UpdateSchedulerJobRequest from "./update-scheduler-job-request"; +export import UpdateSchedulerJobRequest = UpdateSchedulerJobRequest.UpdateSchedulerJobRequest; +import * as GetRunbookRequest from "./get-runbook-request"; +export import GetRunbookRequest = GetRunbookRequest.GetRunbookRequest; +import * as GetTaskRecordRequest from "./get-task-record-request"; +export import GetTaskRecordRequest = GetTaskRecordRequest.GetTaskRecordRequest; +import * as ListRunbooksRequest from "./list-runbooks-request"; +export import ListRunbooksRequest = ListRunbooksRequest.ListRunbooksRequest; +import * as ListTaskRecordsRequest from "./list-task-records-request"; +export import ListTaskRecordsRequest = ListTaskRecordsRequest.ListTaskRecordsRequest; diff --git a/lib/fleetappsmanagement/lib/request/list-announcements-request.ts b/lib/fleetappsmanagement/lib/request/list-announcements-request.ts new file mode 100644 index 0000000000..62964b305d --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-announcements-request.ts @@ -0,0 +1,52 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListAnnouncements.ts.html |here} to see how to use ListAnnouncementsRequest. + */ +export interface ListAnnouncementsRequest extends common.BaseRequest { + /** + * Filter the list with summary contains the given value. + * + */ + "summaryContains"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort AnnouncementSummary by. Only one sort order may be provided. + * If no value is specified _timeReleased_ is default. + * + */ + "sortBy"?: model.AnnouncementSortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/list-executions-request.ts b/lib/fleetappsmanagement/lib/request/list-executions-request.ts new file mode 100644 index 0000000000..96cae0ce66 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-executions-request.ts @@ -0,0 +1,76 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListExecutions.ts.html |here} to see how to use ListExecutionsRequest. + */ +export interface ListExecutionsRequest extends common.BaseRequest { + /** + * unique SchedulerJob identifier + */ + "schedulerJobId": string; + /** + * unique jobActivity identifier + */ + "jobActivityId": string; + /** + * unique Resource identifier + */ + "resourceId": string; + /** + * Task Id + */ + "resourceTaskId"?: string; + /** + * Unique step name + */ + "stepName"?: string; + /** + * Unique target name + */ + "targetName"?: string; + /** + * Task Order Sequence + */ + "sequence"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeStarted is descending. + * + */ + "sortBy"?: ListExecutionsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListExecutionsRequest { + export enum SortBy { + TimeStarted = "timeStarted" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-fleet-credentials-request.ts b/lib/fleetappsmanagement/lib/request/list-fleet-credentials-request.ts new file mode 100644 index 0000000000..0a533ef7b4 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-fleet-credentials-request.ts @@ -0,0 +1,73 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleetCredentials.ts.html |here} to see how to use ListFleetCredentialsRequest. + */ +export interface ListFleetCredentialsRequest extends common.BaseRequest { + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * Credential Level. + */ + "credentialLevel"?: string; + /** + * unique FleetCredential identifier + */ + "id"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListFleetCredentialsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListFleetCredentialsRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-fleet-products-request.ts b/lib/fleetappsmanagement/lib/request/list-fleet-products-request.ts new file mode 100644 index 0000000000..cfb5a8a937 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-fleet-products-request.ts @@ -0,0 +1,69 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleetProducts.ts.html |here} to see how to use ListFleetProductsRequest. + */ +export interface ListFleetProductsRequest extends common.BaseRequest { + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * Resource Identifier + */ + "resourceId"?: string; + /** + * Resource Display Name + */ + "resourceDisplayName"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName and resourceDisplayName is ascending. + * + */ + "sortBy"?: ListFleetProductsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListFleetProductsRequest { + export enum SortBy { + DisplayName = "displayName", + ResourceDisplayName = "resourceDisplayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-fleet-properties-request.ts b/lib/fleetappsmanagement/lib/request/list-fleet-properties-request.ts new file mode 100644 index 0000000000..ca51c6757c --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-fleet-properties-request.ts @@ -0,0 +1,69 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleetProperties.ts.html |here} to see how to use ListFleetPropertiesRequest. + */ +export interface ListFleetPropertiesRequest extends common.BaseRequest { + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * unique FleetProperty identifier + */ + "id"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListFleetPropertiesRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListFleetPropertiesRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-fleet-resources-request.ts b/lib/fleetappsmanagement/lib/request/list-fleet-resources-request.ts new file mode 100644 index 0000000000..d77515424b --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-fleet-resources-request.ts @@ -0,0 +1,73 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleetResources.ts.html |here} to see how to use ListFleetResourcesRequest. + */ +export interface ListFleetResourcesRequest extends common.BaseRequest { + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * Resource Tenancy Id + */ + "tenancyId"?: string; + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * unique FleetResource identifier + */ + "id"?: string; + /** + * A filter to return resources that match the Type + */ + "fleetResourceType"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListFleetResourcesRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListFleetResourcesRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-fleet-targets-request.ts b/lib/fleetappsmanagement/lib/request/list-fleet-targets-request.ts new file mode 100644 index 0000000000..afe3ede47e --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-fleet-targets-request.ts @@ -0,0 +1,70 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleetTargets.ts.html |here} to see how to use ListFleetTargetsRequest. + */ +export interface ListFleetTargetsRequest extends common.BaseRequest { + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * Product Name + */ + "product"?: string; + /** + * Resource Identifier + */ + "resourceId"?: string; + /** + * Resource Display Name + */ + "resourceDisplayName"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName,product and resourceDisplayName is ascending. + * + */ + "sortBy"?: ListFleetTargetsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListFleetTargetsRequest { + export enum SortBy { + DisplayName = "displayName", + Product = "product", + ResourceDisplayName = "resourceDisplayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-fleets-request.ts b/lib/fleetappsmanagement/lib/request/list-fleets-request.ts new file mode 100644 index 0000000000..ee1d5621ea --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-fleets-request.ts @@ -0,0 +1,81 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListFleets.ts.html |here} to see how to use ListFleetsRequest. + */ +export interface ListFleetsRequest extends common.BaseRequest { + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources their fleetType matches the given fleetType. + */ + "fleetType"?: string; + /** + * A filter to return only resources that match the Application Type given. + */ + "applicationType"?: string; + /** + * A filter to return only resources that match the Product Type given. + */ + "product"?: string; + /** + * A filter to return only resources that match the Environment Type given. + */ + "environmentType"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * unique Fleet identifier + */ + "id"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListFleetsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListFleetsRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-inventory-resources-request.ts b/lib/fleetappsmanagement/lib/request/list-inventory-resources-request.ts new file mode 100644 index 0000000000..df83e7448e --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-inventory-resources-request.ts @@ -0,0 +1,94 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListInventoryResources.ts.html |here} to see how to use ListInventoryResourcesRequest. + */ +export interface ListInventoryResourcesRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId": string; + /** + * Resource Compartment ID + */ + "resourceCompartmentId": string; + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * Resource Region + */ + "resourceRegion"?: string; + /** + * A list of tag filters to apply. Only resources with a defined tag matching the value will be returned. + * Each item in the list has the format \"{namespace}.{tagName}={value}\". All inputs are case-insensitive. + * Multiple values for the same key (i.e. same namespace and tag name) are interpreted as \"OR\". + * Values for different keys (i.e. different namespaces, different tag names, or both) are interpreted as \"AND\". + * + */ + "definedTagEquals"?: Array; + /** + * A list of tag filters to apply. Only resources with a freeform tag matching the value will be returned. + * The key for each tag is \"{tagName}.{value}\". All inputs are case-insensitive. + * Multiple values for the same tag name are interpreted as \"OR\". Values for different tag names are interpreted as \"AND\". + * + */ + "freeformTagEquals"?: Array; + /** + * A list of inventory properties filters to apply. + * The key for each inventory property and value for each resource type is \"{resourceType}.{inventoryProperty}={value}\". + * + */ + "inventoryProperties"?: Array; + /** + * Fetch resources matching matching ANY or ALL criteria passed as params in \"tags\" and \"inventoryProperties\" + */ + "matchingCriteria"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListInventoryResourcesRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListInventoryResourcesRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-maintenance-windows-request.ts b/lib/fleetappsmanagement/lib/request/list-maintenance-windows-request.ts new file mode 100644 index 0000000000..6f545cb1d9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-maintenance-windows-request.ts @@ -0,0 +1,65 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListMaintenanceWindows.ts.html |here} to see how to use ListMaintenanceWindowsRequest. + */ +export interface ListMaintenanceWindowsRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * unique MaintenanceWindow identifier + */ + "id"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListMaintenanceWindowsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListMaintenanceWindowsRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-onboarding-policies-request.ts b/lib/fleetappsmanagement/lib/request/list-onboarding-policies-request.ts new file mode 100644 index 0000000000..d957e0168b --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-onboarding-policies-request.ts @@ -0,0 +1,48 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListOnboardingPolicies.ts.html |here} to see how to use ListOnboardingPoliciesRequest. + */ +export interface ListOnboardingPoliciesRequest extends common.BaseRequest { + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. + * + */ + "sortBy"?: ListOnboardingPoliciesRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListOnboardingPoliciesRequest { + export enum SortBy { + TimeCreated = "timeCreated" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-onboardings-request.ts b/lib/fleetappsmanagement/lib/request/list-onboardings-request.ts new file mode 100644 index 0000000000..7602d1dd21 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-onboardings-request.ts @@ -0,0 +1,61 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListOnboardings.ts.html |here} to see how to use ListOnboardingsRequest. + */ +export interface ListOnboardingsRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * unique onboarding identifier + */ + "id"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListOnboardingsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListOnboardingsRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-properties-request.ts b/lib/fleetappsmanagement/lib/request/list-properties-request.ts new file mode 100644 index 0000000000..ee0d524989 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-properties-request.ts @@ -0,0 +1,69 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListProperties.ts.html |here} to see how to use ListPropertiesRequest. + */ +export interface ListPropertiesRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * unique Property identifier + */ + "id"?: string; + /** + * A filter to return only resources their scope matches the given lifecycleState. + */ + "scope"?: model.Scope; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListPropertiesRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListPropertiesRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-runbooks-request.ts b/lib/fleetappsmanagement/lib/request/list-runbooks-request.ts new file mode 100644 index 0000000000..1dec178990 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-runbooks-request.ts @@ -0,0 +1,81 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListRunbooks.ts.html |here} to see how to use ListRunbooksRequest. + */ +export interface ListRunbooksRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * unique Runbook identifier + */ + "id"?: string; + /** + * The ID of the runbook type. + */ + "type"?: string; + /** + * The runbook relevance of product or full-stack. + */ + "runbookRelevance"?: string; + /** + * The ID of the runbook platform. + */ + "platform"?: string; + /** + * The runbook lifecycle. + */ + "operation"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListRunbooksRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListRunbooksRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-scheduled-fleets-request.ts b/lib/fleetappsmanagement/lib/request/list-scheduled-fleets-request.ts new file mode 100644 index 0000000000..4d39555a47 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-scheduled-fleets-request.ts @@ -0,0 +1,60 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListScheduledFleets.ts.html |here} to see how to use ListScheduledFleetsRequest. + */ +export interface ListScheduledFleetsRequest extends common.BaseRequest { + /** + * unique SchedulerDefinition identifier + */ + "schedulerDefinitionId": string; + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for displayName is ascending. + * + */ + "sortBy"?: ListScheduledFleetsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListScheduledFleetsRequest { + export enum SortBy { + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-scheduler-definitions-request.ts b/lib/fleetappsmanagement/lib/request/list-scheduler-definitions-request.ts new file mode 100644 index 0000000000..b62e46f4d9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-scheduler-definitions-request.ts @@ -0,0 +1,78 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListSchedulerDefinitions.ts.html |here} to see how to use ListSchedulerDefinitionsRequest. + */ +export interface ListSchedulerDefinitionsRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * A filter to return only Scheduler Definitions whose assocaited product matches the given product + */ + "product"?: string; + /** + * unique SchedulerDefinition identifier + */ + "id"?: string; + /** + * unique MaintenanceWindow identifier + */ + "maintenanceWindowId"?: string; + /** + * unique Fleet identifier + */ + "fleetId"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated and timeOfNextRun is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListSchedulerDefinitionsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListSchedulerDefinitionsRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName", + TimeOfNextRun = "timeOfNextRun" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-scheduler-jobs-request.ts b/lib/fleetappsmanagement/lib/request/list-scheduler-jobs-request.ts new file mode 100644 index 0000000000..813d96214f --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-scheduler-jobs-request.ts @@ -0,0 +1,86 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListSchedulerJobs.ts.html |here} to see how to use ListSchedulerJobsRequest. + */ +export interface ListSchedulerJobsRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * A filter to return only resources their lifecycleState matches the given lifecycleState. + */ + "lifecycleState"?: string; + /** + * unique Fleet identifier + */ + "fleetId"?: string; + /** + * Scheduled Time + */ + "timeScheduledGreaterThanOrEqualTo"?: Date; + /** + * Scheduled Time + */ + "timeScheduledLessThan"?: Date; + /** + * Fetch next remediation Job + */ + "isRemediationJobNeeded"?: boolean; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * unique SchedulerJob identifier + */ + "id"?: string; + /** + * SchedulerJob Definition identifier + */ + "defintionId"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated and timeScheduled is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListSchedulerJobsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListSchedulerJobsRequest { + export enum SortBy { + TimeCreated = "timeCreated", + TimeScheduled = "timeScheduled", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-targets-request.ts b/lib/fleetappsmanagement/lib/request/list-targets-request.ts new file mode 100644 index 0000000000..2c3b66c209 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-targets-request.ts @@ -0,0 +1,57 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListTargets.ts.html |here} to see how to use ListTargetsRequest. + */ +export interface ListTargetsRequest extends common.BaseRequest { + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListTargetsRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListTargetsRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-task-records-request.ts b/lib/fleetappsmanagement/lib/request/list-task-records-request.ts new file mode 100644 index 0000000000..8d681ec890 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-task-records-request.ts @@ -0,0 +1,73 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListTaskRecords.ts.html |here} to see how to use ListTaskRecordsRequest. + */ +export interface ListTaskRecordsRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * The platform for the Task. + */ + "platform"?: string; + /** + * The type of the Task. + */ + "type"?: string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * unique TaskDetail identifier + */ + "id"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The current state of the Task. + */ + "lifecycleState"?: string; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListTaskRecordsRequest.SortBy; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListTaskRecordsRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-work-request-errors-request.ts b/lib/fleetappsmanagement/lib/request/list-work-request-errors-request.ts new file mode 100644 index 0000000000..4969844e2e --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-work-request-errors-request.ts @@ -0,0 +1,52 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrorsRequest. + */ +export interface ListWorkRequestErrorsRequest extends common.BaseRequest { + /** + * The ID of the asynchronous request. + */ + "workRequestId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. + * + */ + "sortBy"?: ListWorkRequestErrorsRequest.SortBy; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; +} + +export namespace ListWorkRequestErrorsRequest { + export enum SortBy { + Timestamp = "timestamp" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-work-request-logs-request.ts b/lib/fleetappsmanagement/lib/request/list-work-request-logs-request.ts new file mode 100644 index 0000000000..165b11680c --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-work-request-logs-request.ts @@ -0,0 +1,52 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogsRequest. + */ +export interface ListWorkRequestLogsRequest extends common.BaseRequest { + /** + * The ID of the asynchronous request. + */ + "workRequestId": string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. + * + */ + "sortBy"?: ListWorkRequestLogsRequest.SortBy; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; +} + +export namespace ListWorkRequestLogsRequest { + export enum SortBy { + Timestamp = "timestamp" + } +} diff --git a/lib/fleetappsmanagement/lib/request/list-work-requests-request.ts b/lib/fleetappsmanagement/lib/request/list-work-requests-request.ts new file mode 100644 index 0000000000..80c6ac01e2 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/list-work-requests-request.ts @@ -0,0 +1,64 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/ListWorkRequests.ts.html |here} to see how to use ListWorkRequestsRequest. + */ +export interface ListWorkRequestsRequest extends common.BaseRequest { + /** + * The ID of the compartment in which to list resources. + */ + "compartmentId"?: string; + /** + * The ID of the asynchronous work request. + */ + "workRequestId"?: string; + /** + * A filter to return only resources their lifecycleState matches the given OperationStatus. + */ + "status"?: model.OperationStatus; + /** + * Resource Identifier + */ + "resourceId"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. + * + */ + "sortBy"?: ListWorkRequestsRequest.SortBy; +} + +export namespace ListWorkRequestsRequest { + export enum SortBy { + TimeAccepted = "timeAccepted" + } +} diff --git a/lib/fleetappsmanagement/lib/request/request-resource-validation-request.ts b/lib/fleetappsmanagement/lib/request/request-resource-validation-request.ts new file mode 100644 index 0000000000..8403f33102 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/request-resource-validation-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/RequestResourceValidation.ts.html |here} to see how to use RequestResourceValidationRequest. + */ +export interface RequestResourceValidationRequest extends common.BaseRequest { + /** + * Details for requesting resource validation + */ + "requestResourceValidationDetails": model.RequestResourceValidationDetails; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/request-target-discovery-request.ts b/lib/fleetappsmanagement/lib/request/request-target-discovery-request.ts new file mode 100644 index 0000000000..ca326201de --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/request-target-discovery-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/RequestTargetDiscovery.ts.html |here} to see how to use RequestTargetDiscoveryRequest. + */ +export interface RequestTargetDiscoveryRequest extends common.BaseRequest { + /** + * Details for requesting target discovery + */ + "requestTargetDiscoveryDetails": model.RequestTargetDiscoveryDetails; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + "opcRetryToken"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-fleet-credential-request.ts b/lib/fleetappsmanagement/lib/request/update-fleet-credential-request.ts new file mode 100644 index 0000000000..31da4ad221 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-fleet-credential-request.ts @@ -0,0 +1,46 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateFleetCredential.ts.html |here} to see how to use UpdateFleetCredentialRequest. + */ +export interface UpdateFleetCredentialRequest extends common.BaseRequest { + /** + * unique FleetCredential identifier + */ + "fleetCredentialId": string; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * The information to be updated. + */ + "updateFleetCredentialDetails": model.UpdateFleetCredentialDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-fleet-property-request.ts b/lib/fleetappsmanagement/lib/request/update-fleet-property-request.ts new file mode 100644 index 0000000000..46acf1a27e --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-fleet-property-request.ts @@ -0,0 +1,46 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateFleetProperty.ts.html |here} to see how to use UpdateFleetPropertyRequest. + */ +export interface UpdateFleetPropertyRequest extends common.BaseRequest { + /** + * unique FleetProperty identifier + */ + "fleetPropertyId": string; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * The information to be updated. + */ + "updateFleetPropertyDetails": model.UpdateFleetPropertyDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-fleet-request.ts b/lib/fleetappsmanagement/lib/request/update-fleet-request.ts new file mode 100644 index 0000000000..14231f5dda --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-fleet-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateFleet.ts.html |here} to see how to use UpdateFleetRequest. + */ +export interface UpdateFleetRequest extends common.BaseRequest { + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * The information to be updated. + */ + "updateFleetDetails": model.UpdateFleetDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-fleet-resource-request.ts b/lib/fleetappsmanagement/lib/request/update-fleet-resource-request.ts new file mode 100644 index 0000000000..1f4195a19c --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-fleet-resource-request.ts @@ -0,0 +1,46 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateFleetResource.ts.html |here} to see how to use UpdateFleetResourceRequest. + */ +export interface UpdateFleetResourceRequest extends common.BaseRequest { + /** + * unique FleetResource identifier + */ + "fleetResourceId": string; + /** + * unique Fleet identifier + */ + "fleetId": string; + /** + * The information to be updated. + */ + "updateFleetResourceDetails": model.UpdateFleetResourceDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-maintenance-window-request.ts b/lib/fleetappsmanagement/lib/request/update-maintenance-window-request.ts new file mode 100644 index 0000000000..08361451af --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-maintenance-window-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateMaintenanceWindow.ts.html |here} to see how to use UpdateMaintenanceWindowRequest. + */ +export interface UpdateMaintenanceWindowRequest extends common.BaseRequest { + /** + * unique MaintenanceWindow identifier + */ + "maintenanceWindowId": string; + /** + * The information to be updated. + */ + "updateMaintenanceWindowDetails": model.UpdateMaintenanceWindowDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-property-request.ts b/lib/fleetappsmanagement/lib/request/update-property-request.ts new file mode 100644 index 0000000000..9afa5285db --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-property-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateProperty.ts.html |here} to see how to use UpdatePropertyRequest. + */ +export interface UpdatePropertyRequest extends common.BaseRequest { + /** + * unique Property identifier + */ + "propertyId": string; + /** + * The information to be updated. + */ + "updatePropertyDetails": model.UpdatePropertyDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-scheduler-definition-request.ts b/lib/fleetappsmanagement/lib/request/update-scheduler-definition-request.ts new file mode 100644 index 0000000000..ccce7e8a11 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-scheduler-definition-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateSchedulerDefinition.ts.html |here} to see how to use UpdateSchedulerDefinitionRequest. + */ +export interface UpdateSchedulerDefinitionRequest extends common.BaseRequest { + /** + * unique SchedulerDefinition identifier + */ + "schedulerDefinitionId": string; + /** + * The information to be updated. + */ + "updateSchedulerDefinitionDetails": model.UpdateSchedulerDefinitionDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/request/update-scheduler-job-request.ts b/lib/fleetappsmanagement/lib/request/update-scheduler-job-request.ts new file mode 100644 index 0000000000..e683db2a82 --- /dev/null +++ b/lib/fleetappsmanagement/lib/request/update-scheduler-job-request.ts @@ -0,0 +1,42 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/fleetappsmanagement/UpdateSchedulerJob.ts.html |here} to see how to use UpdateSchedulerJobRequest. + */ +export interface UpdateSchedulerJobRequest extends common.BaseRequest { + /** + * unique SchedulerJob identifier + */ + "schedulerJobId": string; + /** + * The information to be updated. + */ + "updateSchedulerJobDetails": model.UpdateSchedulerJobDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} diff --git a/lib/fleetappsmanagement/lib/response/check-resource-tagging-response.ts b/lib/fleetappsmanagement/lib/response/check-resource-tagging-response.ts new file mode 100644 index 0000000000..23950b8821 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/check-resource-tagging-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CheckResourceTaggingResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.ResourceTagCheckDetails instance. + */ + "resourceTagCheckDetails": model.ResourceTagCheckDetails; +} diff --git a/lib/fleetappsmanagement/lib/response/confirm-targets-response.ts b/lib/fleetappsmanagement/lib/response/confirm-targets-response.ts new file mode 100644 index 0000000000..1a2c8d3b34 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/confirm-targets-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ConfirmTargetsResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/create-fleet-credential-response.ts b/lib/fleetappsmanagement/lib/response/create-fleet-credential-response.ts new file mode 100644 index 0000000000..7edfb4dcd7 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-fleet-credential-response.ts @@ -0,0 +1,46 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreateFleetCredentialResponse { + /** + * URL for the created fleetCredential, the fleetCredential id will be generated after this request is sent. + */ + "location": string; + /** + * Same as location + */ + "contentLocation": string; + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.FleetCredential instance. + */ + "fleetCredential": model.FleetCredential; +} diff --git a/lib/fleetappsmanagement/lib/response/create-fleet-property-response.ts b/lib/fleetappsmanagement/lib/response/create-fleet-property-response.ts new file mode 100644 index 0000000000..285a9ba121 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-fleet-property-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreateFleetPropertyResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.FleetProperty instance. + */ + "fleetProperty": model.FleetProperty; +} diff --git a/lib/fleetappsmanagement/lib/response/create-fleet-resource-response.ts b/lib/fleetappsmanagement/lib/response/create-fleet-resource-response.ts new file mode 100644 index 0000000000..7cbac9a65a --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-fleet-resource-response.ts @@ -0,0 +1,46 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreateFleetResourceResponse { + /** + * URL for the created fleetResource, the fleetResource id will be generated after this request is sent. + */ + "location": string; + /** + * Same as location + */ + "contentLocation": string; + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.FleetResource instance. + */ + "fleetResource": model.FleetResource; +} diff --git a/lib/fleetappsmanagement/lib/response/create-fleet-response.ts b/lib/fleetappsmanagement/lib/response/create-fleet-response.ts new file mode 100644 index 0000000000..65d6cd56a9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-fleet-response.ts @@ -0,0 +1,46 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreateFleetResponse { + /** + * URL for the created fleet, the fleet id will be generated after this request is sent. + */ + "location": string; + /** + * Same as location + */ + "contentLocation": string; + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Fleet instance. + */ + "fleet": model.Fleet; +} diff --git a/lib/fleetappsmanagement/lib/response/create-maintenance-window-response.ts b/lib/fleetappsmanagement/lib/response/create-maintenance-window-response.ts new file mode 100644 index 0000000000..87c47998a9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-maintenance-window-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreateMaintenanceWindowResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.MaintenanceWindow instance. + */ + "maintenanceWindow": model.MaintenanceWindow; +} diff --git a/lib/fleetappsmanagement/lib/response/create-onboarding-response.ts b/lib/fleetappsmanagement/lib/response/create-onboarding-response.ts new file mode 100644 index 0000000000..e89f9dbdd3 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-onboarding-response.ts @@ -0,0 +1,46 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreateOnboardingResponse { + /** + * URL for the created Onboarding, the Onboarding id will be generated after this request is sent. + */ + "location": string; + /** + * Same as location + */ + "contentLocation": string; + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Onboarding instance. + */ + "onboarding": model.Onboarding; +} diff --git a/lib/fleetappsmanagement/lib/response/create-property-response.ts b/lib/fleetappsmanagement/lib/response/create-property-response.ts new file mode 100644 index 0000000000..75ddb29087 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-property-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreatePropertyResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Property instance. + */ + "property": model.Property; +} diff --git a/lib/fleetappsmanagement/lib/response/create-scheduler-definition-response.ts b/lib/fleetappsmanagement/lib/response/create-scheduler-definition-response.ts new file mode 100644 index 0000000000..ea31665425 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/create-scheduler-definition-response.ts @@ -0,0 +1,46 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface CreateSchedulerDefinitionResponse { + /** + * URL for the created schedulerDefinition, the schedulerDefinition id will be generated after this request is sent. + */ + "location": string; + /** + * Same as location + */ + "contentLocation": string; + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.SchedulerDefinition instance. + */ + "schedulerDefinition": model.SchedulerDefinition; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-fleet-credential-response.ts b/lib/fleetappsmanagement/lib/response/delete-fleet-credential-response.ts new file mode 100644 index 0000000000..a30f4bf08d --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-fleet-credential-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeleteFleetCredentialResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-fleet-property-response.ts b/lib/fleetappsmanagement/lib/response/delete-fleet-property-response.ts new file mode 100644 index 0000000000..2e1b0cf85b --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-fleet-property-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeleteFleetPropertyResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-fleet-resource-response.ts b/lib/fleetappsmanagement/lib/response/delete-fleet-resource-response.ts new file mode 100644 index 0000000000..28fd34807a --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-fleet-resource-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeleteFleetResourceResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-fleet-response.ts b/lib/fleetappsmanagement/lib/response/delete-fleet-response.ts new file mode 100644 index 0000000000..b128c8bb0f --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-fleet-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeleteFleetResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-maintenance-window-response.ts b/lib/fleetappsmanagement/lib/response/delete-maintenance-window-response.ts new file mode 100644 index 0000000000..a0c7ddb6eb --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-maintenance-window-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeleteMaintenanceWindowResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-property-response.ts b/lib/fleetappsmanagement/lib/response/delete-property-response.ts new file mode 100644 index 0000000000..882883cbd9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-property-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeletePropertyResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-scheduler-definition-response.ts b/lib/fleetappsmanagement/lib/response/delete-scheduler-definition-response.ts new file mode 100644 index 0000000000..3fdb5b8de9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-scheduler-definition-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeleteSchedulerDefinitionResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/delete-scheduler-job-response.ts b/lib/fleetappsmanagement/lib/response/delete-scheduler-job-response.ts new file mode 100644 index 0000000000..26d3db6deb --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/delete-scheduler-job-response.ts @@ -0,0 +1,24 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface DeleteSchedulerJobResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/generate-compliance-report-response.ts b/lib/fleetappsmanagement/lib/response/generate-compliance-report-response.ts new file mode 100644 index 0000000000..c254bb6bc8 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/generate-compliance-report-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GenerateComplianceReportResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/get-compliance-report-response.ts b/lib/fleetappsmanagement/lib/response/get-compliance-report-response.ts new file mode 100644 index 0000000000..b309020753 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-compliance-report-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetComplianceReportResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.ComplianceReport instance. + */ + "complianceReport": model.ComplianceReport; +} diff --git a/lib/fleetappsmanagement/lib/response/get-execution-response.ts b/lib/fleetappsmanagement/lib/response/get-execution-response.ts new file mode 100644 index 0000000000..d3f64242b7 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-execution-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetExecutionResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Execution instance. + */ + "execution": model.Execution; +} diff --git a/lib/fleetappsmanagement/lib/response/get-fleet-credential-response.ts b/lib/fleetappsmanagement/lib/response/get-fleet-credential-response.ts new file mode 100644 index 0000000000..d1c440c6e8 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-fleet-credential-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetFleetCredentialResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.FleetCredential instance. + */ + "fleetCredential": model.FleetCredential; +} diff --git a/lib/fleetappsmanagement/lib/response/get-fleet-property-response.ts b/lib/fleetappsmanagement/lib/response/get-fleet-property-response.ts new file mode 100644 index 0000000000..3ad657be00 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-fleet-property-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetFleetPropertyResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.FleetProperty instance. + */ + "fleetProperty": model.FleetProperty; +} diff --git a/lib/fleetappsmanagement/lib/response/get-fleet-resource-response.ts b/lib/fleetappsmanagement/lib/response/get-fleet-resource-response.ts new file mode 100644 index 0000000000..0ee4ec57ad --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-fleet-resource-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetFleetResourceResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.FleetResource instance. + */ + "fleetResource": model.FleetResource; +} diff --git a/lib/fleetappsmanagement/lib/response/get-fleet-response.ts b/lib/fleetappsmanagement/lib/response/get-fleet-response.ts new file mode 100644 index 0000000000..5628fce886 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-fleet-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetFleetResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Fleet instance. + */ + "fleet": model.Fleet; +} diff --git a/lib/fleetappsmanagement/lib/response/get-job-activity-response.ts b/lib/fleetappsmanagement/lib/response/get-job-activity-response.ts new file mode 100644 index 0000000000..11e8e09e39 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-job-activity-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetJobActivityResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.JobActivity instance. + */ + "jobActivity": model.JobActivity; +} diff --git a/lib/fleetappsmanagement/lib/response/get-maintenance-window-response.ts b/lib/fleetappsmanagement/lib/response/get-maintenance-window-response.ts new file mode 100644 index 0000000000..636aa086de --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-maintenance-window-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetMaintenanceWindowResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.MaintenanceWindow instance. + */ + "maintenanceWindow": model.MaintenanceWindow; +} diff --git a/lib/fleetappsmanagement/lib/response/get-property-response.ts b/lib/fleetappsmanagement/lib/response/get-property-response.ts new file mode 100644 index 0000000000..0a7b084fdd --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-property-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetPropertyResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Property instance. + */ + "property": model.Property; +} diff --git a/lib/fleetappsmanagement/lib/response/get-runbook-response.ts b/lib/fleetappsmanagement/lib/response/get-runbook-response.ts new file mode 100644 index 0000000000..cff3267d98 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-runbook-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetRunbookResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Runbook instance. + */ + "runbook": model.Runbook; +} diff --git a/lib/fleetappsmanagement/lib/response/get-scheduler-definition-response.ts b/lib/fleetappsmanagement/lib/response/get-scheduler-definition-response.ts new file mode 100644 index 0000000000..0a993bd1f9 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-scheduler-definition-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetSchedulerDefinitionResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.SchedulerDefinition instance. + */ + "schedulerDefinition": model.SchedulerDefinition; +} diff --git a/lib/fleetappsmanagement/lib/response/get-scheduler-job-response.ts b/lib/fleetappsmanagement/lib/response/get-scheduler-job-response.ts new file mode 100644 index 0000000000..b3d5955d98 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-scheduler-job-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetSchedulerJobResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.SchedulerJob instance. + */ + "schedulerJob": model.SchedulerJob; +} diff --git a/lib/fleetappsmanagement/lib/response/get-task-record-response.ts b/lib/fleetappsmanagement/lib/response/get-task-record-response.ts new file mode 100644 index 0000000000..9390743b63 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-task-record-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetTaskRecordResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.TaskRecord instance. + */ + "taskRecord": model.TaskRecord; +} diff --git a/lib/fleetappsmanagement/lib/response/get-work-request-response.ts b/lib/fleetappsmanagement/lib/response/get-work-request-response.ts new file mode 100644 index 0000000000..0160d2f3cc --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/get-work-request-response.ts @@ -0,0 +1,37 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface GetWorkRequestResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + "retryAfter": number; + /** + * The returned model.WorkRequest instance. + */ + "workRequest": model.WorkRequest; +} diff --git a/lib/fleetappsmanagement/lib/response/index.ts b/lib/fleetappsmanagement/lib/response/index.ts new file mode 100644 index 0000000000..f4145c3ea0 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/index.ts @@ -0,0 +1,145 @@ +/** + * Fleet Application Management Service API + * Fleet Application Management Service API. Use this API to for all FAMS related activities. +To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities + + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as CheckResourceTaggingResponse from "./check-resource-tagging-response"; +export import CheckResourceTaggingResponse = CheckResourceTaggingResponse.CheckResourceTaggingResponse; +import * as ConfirmTargetsResponse from "./confirm-targets-response"; +export import ConfirmTargetsResponse = ConfirmTargetsResponse.ConfirmTargetsResponse; +import * as CreateFleetResponse from "./create-fleet-response"; +export import CreateFleetResponse = CreateFleetResponse.CreateFleetResponse; +import * as CreateFleetCredentialResponse from "./create-fleet-credential-response"; +export import CreateFleetCredentialResponse = CreateFleetCredentialResponse.CreateFleetCredentialResponse; +import * as CreateFleetPropertyResponse from "./create-fleet-property-response"; +export import CreateFleetPropertyResponse = CreateFleetPropertyResponse.CreateFleetPropertyResponse; +import * as CreateFleetResourceResponse from "./create-fleet-resource-response"; +export import CreateFleetResourceResponse = CreateFleetResourceResponse.CreateFleetResourceResponse; +import * as DeleteFleetResponse from "./delete-fleet-response"; +export import DeleteFleetResponse = DeleteFleetResponse.DeleteFleetResponse; +import * as DeleteFleetCredentialResponse from "./delete-fleet-credential-response"; +export import DeleteFleetCredentialResponse = DeleteFleetCredentialResponse.DeleteFleetCredentialResponse; +import * as DeleteFleetPropertyResponse from "./delete-fleet-property-response"; +export import DeleteFleetPropertyResponse = DeleteFleetPropertyResponse.DeleteFleetPropertyResponse; +import * as DeleteFleetResourceResponse from "./delete-fleet-resource-response"; +export import DeleteFleetResourceResponse = DeleteFleetResourceResponse.DeleteFleetResourceResponse; +import * as GenerateComplianceReportResponse from "./generate-compliance-report-response"; +export import GenerateComplianceReportResponse = GenerateComplianceReportResponse.GenerateComplianceReportResponse; +import * as GetComplianceReportResponse from "./get-compliance-report-response"; +export import GetComplianceReportResponse = GetComplianceReportResponse.GetComplianceReportResponse; +import * as GetFleetResponse from "./get-fleet-response"; +export import GetFleetResponse = GetFleetResponse.GetFleetResponse; +import * as GetFleetCredentialResponse from "./get-fleet-credential-response"; +export import GetFleetCredentialResponse = GetFleetCredentialResponse.GetFleetCredentialResponse; +import * as GetFleetPropertyResponse from "./get-fleet-property-response"; +export import GetFleetPropertyResponse = GetFleetPropertyResponse.GetFleetPropertyResponse; +import * as GetFleetResourceResponse from "./get-fleet-resource-response"; +export import GetFleetResourceResponse = GetFleetResourceResponse.GetFleetResourceResponse; +import * as GetWorkRequestResponse from "./get-work-request-response"; +export import GetWorkRequestResponse = GetWorkRequestResponse.GetWorkRequestResponse; +import * as ListAnnouncementsResponse from "./list-announcements-response"; +export import ListAnnouncementsResponse = ListAnnouncementsResponse.ListAnnouncementsResponse; +import * as ListFleetCredentialsResponse from "./list-fleet-credentials-response"; +export import ListFleetCredentialsResponse = ListFleetCredentialsResponse.ListFleetCredentialsResponse; +import * as ListFleetProductsResponse from "./list-fleet-products-response"; +export import ListFleetProductsResponse = ListFleetProductsResponse.ListFleetProductsResponse; +import * as ListFleetPropertiesResponse from "./list-fleet-properties-response"; +export import ListFleetPropertiesResponse = ListFleetPropertiesResponse.ListFleetPropertiesResponse; +import * as ListFleetResourcesResponse from "./list-fleet-resources-response"; +export import ListFleetResourcesResponse = ListFleetResourcesResponse.ListFleetResourcesResponse; +import * as ListFleetTargetsResponse from "./list-fleet-targets-response"; +export import ListFleetTargetsResponse = ListFleetTargetsResponse.ListFleetTargetsResponse; +import * as ListFleetsResponse from "./list-fleets-response"; +export import ListFleetsResponse = ListFleetsResponse.ListFleetsResponse; +import * as ListInventoryResourcesResponse from "./list-inventory-resources-response"; +export import ListInventoryResourcesResponse = ListInventoryResourcesResponse.ListInventoryResourcesResponse; +import * as ListTargetsResponse from "./list-targets-response"; +export import ListTargetsResponse = ListTargetsResponse.ListTargetsResponse; +import * as ListWorkRequestErrorsResponse from "./list-work-request-errors-response"; +export import ListWorkRequestErrorsResponse = ListWorkRequestErrorsResponse.ListWorkRequestErrorsResponse; +import * as ListWorkRequestLogsResponse from "./list-work-request-logs-response"; +export import ListWorkRequestLogsResponse = ListWorkRequestLogsResponse.ListWorkRequestLogsResponse; +import * as ListWorkRequestsResponse from "./list-work-requests-response"; +export import ListWorkRequestsResponse = ListWorkRequestsResponse.ListWorkRequestsResponse; +import * as RequestResourceValidationResponse from "./request-resource-validation-response"; +export import RequestResourceValidationResponse = RequestResourceValidationResponse.RequestResourceValidationResponse; +import * as RequestTargetDiscoveryResponse from "./request-target-discovery-response"; +export import RequestTargetDiscoveryResponse = RequestTargetDiscoveryResponse.RequestTargetDiscoveryResponse; +import * as UpdateFleetResponse from "./update-fleet-response"; +export import UpdateFleetResponse = UpdateFleetResponse.UpdateFleetResponse; +import * as UpdateFleetCredentialResponse from "./update-fleet-credential-response"; +export import UpdateFleetCredentialResponse = UpdateFleetCredentialResponse.UpdateFleetCredentialResponse; +import * as UpdateFleetPropertyResponse from "./update-fleet-property-response"; +export import UpdateFleetPropertyResponse = UpdateFleetPropertyResponse.UpdateFleetPropertyResponse; +import * as UpdateFleetResourceResponse from "./update-fleet-resource-response"; +export import UpdateFleetResourceResponse = UpdateFleetResourceResponse.UpdateFleetResourceResponse; +import * as CreateOnboardingResponse from "./create-onboarding-response"; +export import CreateOnboardingResponse = CreateOnboardingResponse.CreateOnboardingResponse; +import * as CreatePropertyResponse from "./create-property-response"; +export import CreatePropertyResponse = CreatePropertyResponse.CreatePropertyResponse; +import * as DeletePropertyResponse from "./delete-property-response"; +export import DeletePropertyResponse = DeletePropertyResponse.DeletePropertyResponse; +import * as GetPropertyResponse from "./get-property-response"; +export import GetPropertyResponse = GetPropertyResponse.GetPropertyResponse; +import * as ListOnboardingPoliciesResponse from "./list-onboarding-policies-response"; +export import ListOnboardingPoliciesResponse = ListOnboardingPoliciesResponse.ListOnboardingPoliciesResponse; +import * as ListOnboardingsResponse from "./list-onboardings-response"; +export import ListOnboardingsResponse = ListOnboardingsResponse.ListOnboardingsResponse; +import * as ListPropertiesResponse from "./list-properties-response"; +export import ListPropertiesResponse = ListPropertiesResponse.ListPropertiesResponse; +import * as UpdatePropertyResponse from "./update-property-response"; +export import UpdatePropertyResponse = UpdatePropertyResponse.UpdatePropertyResponse; +import * as CreateMaintenanceWindowResponse from "./create-maintenance-window-response"; +export import CreateMaintenanceWindowResponse = CreateMaintenanceWindowResponse.CreateMaintenanceWindowResponse; +import * as DeleteMaintenanceWindowResponse from "./delete-maintenance-window-response"; +export import DeleteMaintenanceWindowResponse = DeleteMaintenanceWindowResponse.DeleteMaintenanceWindowResponse; +import * as GetMaintenanceWindowResponse from "./get-maintenance-window-response"; +export import GetMaintenanceWindowResponse = GetMaintenanceWindowResponse.GetMaintenanceWindowResponse; +import * as ListMaintenanceWindowsResponse from "./list-maintenance-windows-response"; +export import ListMaintenanceWindowsResponse = ListMaintenanceWindowsResponse.ListMaintenanceWindowsResponse; +import * as UpdateMaintenanceWindowResponse from "./update-maintenance-window-response"; +export import UpdateMaintenanceWindowResponse = UpdateMaintenanceWindowResponse.UpdateMaintenanceWindowResponse; +import * as CreateSchedulerDefinitionResponse from "./create-scheduler-definition-response"; +export import CreateSchedulerDefinitionResponse = CreateSchedulerDefinitionResponse.CreateSchedulerDefinitionResponse; +import * as DeleteSchedulerDefinitionResponse from "./delete-scheduler-definition-response"; +export import DeleteSchedulerDefinitionResponse = DeleteSchedulerDefinitionResponse.DeleteSchedulerDefinitionResponse; +import * as DeleteSchedulerJobResponse from "./delete-scheduler-job-response"; +export import DeleteSchedulerJobResponse = DeleteSchedulerJobResponse.DeleteSchedulerJobResponse; +import * as GetExecutionResponse from "./get-execution-response"; +export import GetExecutionResponse = GetExecutionResponse.GetExecutionResponse; +import * as GetJobActivityResponse from "./get-job-activity-response"; +export import GetJobActivityResponse = GetJobActivityResponse.GetJobActivityResponse; +import * as GetSchedulerDefinitionResponse from "./get-scheduler-definition-response"; +export import GetSchedulerDefinitionResponse = GetSchedulerDefinitionResponse.GetSchedulerDefinitionResponse; +import * as GetSchedulerJobResponse from "./get-scheduler-job-response"; +export import GetSchedulerJobResponse = GetSchedulerJobResponse.GetSchedulerJobResponse; +import * as ListExecutionsResponse from "./list-executions-response"; +export import ListExecutionsResponse = ListExecutionsResponse.ListExecutionsResponse; +import * as ListScheduledFleetsResponse from "./list-scheduled-fleets-response"; +export import ListScheduledFleetsResponse = ListScheduledFleetsResponse.ListScheduledFleetsResponse; +import * as ListSchedulerDefinitionsResponse from "./list-scheduler-definitions-response"; +export import ListSchedulerDefinitionsResponse = ListSchedulerDefinitionsResponse.ListSchedulerDefinitionsResponse; +import * as ListSchedulerJobsResponse from "./list-scheduler-jobs-response"; +export import ListSchedulerJobsResponse = ListSchedulerJobsResponse.ListSchedulerJobsResponse; +import * as UpdateSchedulerDefinitionResponse from "./update-scheduler-definition-response"; +export import UpdateSchedulerDefinitionResponse = UpdateSchedulerDefinitionResponse.UpdateSchedulerDefinitionResponse; +import * as UpdateSchedulerJobResponse from "./update-scheduler-job-response"; +export import UpdateSchedulerJobResponse = UpdateSchedulerJobResponse.UpdateSchedulerJobResponse; +import * as GetRunbookResponse from "./get-runbook-response"; +export import GetRunbookResponse = GetRunbookResponse.GetRunbookResponse; +import * as GetTaskRecordResponse from "./get-task-record-response"; +export import GetTaskRecordResponse = GetTaskRecordResponse.GetTaskRecordResponse; +import * as ListRunbooksResponse from "./list-runbooks-response"; +export import ListRunbooksResponse = ListRunbooksResponse.ListRunbooksResponse; +import * as ListTaskRecordsResponse from "./list-task-records-response"; +export import ListTaskRecordsResponse = ListTaskRecordsResponse.ListTaskRecordsResponse; diff --git a/lib/fleetappsmanagement/lib/response/list-announcements-response.ts b/lib/fleetappsmanagement/lib/response/list-announcements-response.ts new file mode 100644 index 0000000000..9c1a815173 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-announcements-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListAnnouncementsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.AnnouncementCollection instance. + */ + "announcementCollection": model.AnnouncementCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-executions-response.ts b/lib/fleetappsmanagement/lib/response/list-executions-response.ts new file mode 100644 index 0000000000..86518a8a9c --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-executions-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListExecutionsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.ExecutionCollection instance. + */ + "executionCollection": model.ExecutionCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-fleet-credentials-response.ts b/lib/fleetappsmanagement/lib/response/list-fleet-credentials-response.ts new file mode 100644 index 0000000000..d39247555f --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-fleet-credentials-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListFleetCredentialsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.FleetCredentialCollection instance. + */ + "fleetCredentialCollection": model.FleetCredentialCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-fleet-products-response.ts b/lib/fleetappsmanagement/lib/response/list-fleet-products-response.ts new file mode 100644 index 0000000000..b21bdd6b2b --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-fleet-products-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListFleetProductsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.FleetProductCollection instance. + */ + "fleetProductCollection": model.FleetProductCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-fleet-properties-response.ts b/lib/fleetappsmanagement/lib/response/list-fleet-properties-response.ts new file mode 100644 index 0000000000..be1c234f1e --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-fleet-properties-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListFleetPropertiesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.FleetPropertyCollection instance. + */ + "fleetPropertyCollection": model.FleetPropertyCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-fleet-resources-response.ts b/lib/fleetappsmanagement/lib/response/list-fleet-resources-response.ts new file mode 100644 index 0000000000..2748023c89 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-fleet-resources-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListFleetResourcesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.FleetResourceCollection instance. + */ + "fleetResourceCollection": model.FleetResourceCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-fleet-targets-response.ts b/lib/fleetappsmanagement/lib/response/list-fleet-targets-response.ts new file mode 100644 index 0000000000..4268b56a3b --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-fleet-targets-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListFleetTargetsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.FleetTargetCollection instance. + */ + "fleetTargetCollection": model.FleetTargetCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-fleets-response.ts b/lib/fleetappsmanagement/lib/response/list-fleets-response.ts new file mode 100644 index 0000000000..964eac385f --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-fleets-response.ts @@ -0,0 +1,39 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListFleetsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * A number representing the the total number of results available. + */ + "opcTotalItems": number; + /** + * The returned model.FleetCollection instance. + */ + "fleetCollection": model.FleetCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-inventory-resources-response.ts b/lib/fleetappsmanagement/lib/response/list-inventory-resources-response.ts new file mode 100644 index 0000000000..42d793005d --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-inventory-resources-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListInventoryResourcesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.InventoryResourceCollection instance. + */ + "inventoryResourceCollection": model.InventoryResourceCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-maintenance-windows-response.ts b/lib/fleetappsmanagement/lib/response/list-maintenance-windows-response.ts new file mode 100644 index 0000000000..f4eb5d1dbd --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-maintenance-windows-response.ts @@ -0,0 +1,39 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListMaintenanceWindowsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * A number representing the the total number of results available. + */ + "opcTotalItems": number; + /** + * The returned model.MaintenanceWindowCollection instance. + */ + "maintenanceWindowCollection": model.MaintenanceWindowCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-onboarding-policies-response.ts b/lib/fleetappsmanagement/lib/response/list-onboarding-policies-response.ts new file mode 100644 index 0000000000..757baacd94 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-onboarding-policies-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListOnboardingPoliciesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.OnboardingPolicyCollection instance. + */ + "onboardingPolicyCollection": model.OnboardingPolicyCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-onboardings-response.ts b/lib/fleetappsmanagement/lib/response/list-onboardings-response.ts new file mode 100644 index 0000000000..2fc3a69672 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-onboardings-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListOnboardingsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.OnboardingCollection instance. + */ + "onboardingCollection": model.OnboardingCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-properties-response.ts b/lib/fleetappsmanagement/lib/response/list-properties-response.ts new file mode 100644 index 0000000000..c8a33aef0e --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-properties-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListPropertiesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.PropertyCollection instance. + */ + "propertyCollection": model.PropertyCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-runbooks-response.ts b/lib/fleetappsmanagement/lib/response/list-runbooks-response.ts new file mode 100644 index 0000000000..add2aac66b --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-runbooks-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListRunbooksResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.RunbookCollection instance. + */ + "runbookCollection": model.RunbookCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-scheduled-fleets-response.ts b/lib/fleetappsmanagement/lib/response/list-scheduled-fleets-response.ts new file mode 100644 index 0000000000..817dd0e3a4 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-scheduled-fleets-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListScheduledFleetsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.ScheduledFleetCollection instance. + */ + "scheduledFleetCollection": model.ScheduledFleetCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-scheduler-definitions-response.ts b/lib/fleetappsmanagement/lib/response/list-scheduler-definitions-response.ts new file mode 100644 index 0000000000..19c87c6660 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-scheduler-definitions-response.ts @@ -0,0 +1,39 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListSchedulerDefinitionsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * A number representing the the total number of results available. + */ + "opcTotalItems": number; + /** + * The returned model.SchedulerDefinitionCollection instance. + */ + "schedulerDefinitionCollection": model.SchedulerDefinitionCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-scheduler-jobs-response.ts b/lib/fleetappsmanagement/lib/response/list-scheduler-jobs-response.ts new file mode 100644 index 0000000000..a22a4b2939 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-scheduler-jobs-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListSchedulerJobsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.SchedulerJobCollection instance. + */ + "schedulerJobCollection": model.SchedulerJobCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-targets-response.ts b/lib/fleetappsmanagement/lib/response/list-targets-response.ts new file mode 100644 index 0000000000..a3261b6346 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-targets-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListTargetsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.FleetTargetCollection instance. + */ + "fleetTargetCollection": model.FleetTargetCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-task-records-response.ts b/lib/fleetappsmanagement/lib/response/list-task-records-response.ts new file mode 100644 index 0000000000..a37dcb94ca --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-task-records-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListTaskRecordsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.TaskRecordCollection instance. + */ + "taskRecordCollection": model.TaskRecordCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-work-request-errors-response.ts b/lib/fleetappsmanagement/lib/response/list-work-request-errors-response.ts new file mode 100644 index 0000000000..18e88bd7c5 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-work-request-errors-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListWorkRequestErrorsResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.WorkRequestErrorCollection instance. + */ + "workRequestErrorCollection": model.WorkRequestErrorCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-work-request-logs-response.ts b/lib/fleetappsmanagement/lib/response/list-work-request-logs-response.ts new file mode 100644 index 0000000000..b5cfd6916b --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-work-request-logs-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListWorkRequestLogsResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.WorkRequestLogEntryCollection instance. + */ + "workRequestLogEntryCollection": model.WorkRequestLogEntryCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/list-work-requests-response.ts b/lib/fleetappsmanagement/lib/response/list-work-requests-response.ts new file mode 100644 index 0000000000..cc9a1aa136 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/list-work-requests-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListWorkRequestsResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.WorkRequestSummaryCollection instance. + */ + "workRequestSummaryCollection": model.WorkRequestSummaryCollection; +} diff --git a/lib/fleetappsmanagement/lib/response/request-resource-validation-response.ts b/lib/fleetappsmanagement/lib/response/request-resource-validation-response.ts new file mode 100644 index 0000000000..9883cb23f5 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/request-resource-validation-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface RequestResourceValidationResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/request-target-discovery-response.ts b/lib/fleetappsmanagement/lib/response/request-target-discovery-response.ts new file mode 100644 index 0000000000..938544b67a --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/request-target-discovery-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface RequestTargetDiscoveryResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/update-fleet-credential-response.ts b/lib/fleetappsmanagement/lib/response/update-fleet-credential-response.ts new file mode 100644 index 0000000000..ea0d75eb35 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-fleet-credential-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdateFleetCredentialResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/update-fleet-property-response.ts b/lib/fleetappsmanagement/lib/response/update-fleet-property-response.ts new file mode 100644 index 0000000000..bc6692e655 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-fleet-property-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdateFleetPropertyResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.FleetProperty instance. + */ + "fleetProperty": model.FleetProperty; +} diff --git a/lib/fleetappsmanagement/lib/response/update-fleet-resource-response.ts b/lib/fleetappsmanagement/lib/response/update-fleet-resource-response.ts new file mode 100644 index 0000000000..e4e3d26e03 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-fleet-resource-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdateFleetResourceResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/update-fleet-response.ts b/lib/fleetappsmanagement/lib/response/update-fleet-response.ts new file mode 100644 index 0000000000..d3d8cd6d1e --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-fleet-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdateFleetResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Fleet instance. + */ + "fleet": model.Fleet; +} diff --git a/lib/fleetappsmanagement/lib/response/update-maintenance-window-response.ts b/lib/fleetappsmanagement/lib/response/update-maintenance-window-response.ts new file mode 100644 index 0000000000..d8788b3c66 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-maintenance-window-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdateMaintenanceWindowResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/update-property-response.ts b/lib/fleetappsmanagement/lib/response/update-property-response.ts new file mode 100644 index 0000000000..576f632501 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-property-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdatePropertyResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.Property instance. + */ + "property": model.Property; +} diff --git a/lib/fleetappsmanagement/lib/response/update-scheduler-definition-response.ts b/lib/fleetappsmanagement/lib/response/update-scheduler-definition-response.ts new file mode 100644 index 0000000000..1751eafaf5 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-scheduler-definition-response.ts @@ -0,0 +1,29 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdateSchedulerDefinitionResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/fleetappsmanagement/lib/response/update-scheduler-job-response.ts b/lib/fleetappsmanagement/lib/response/update-scheduler-job-response.ts new file mode 100644 index 0000000000..a6e3706af8 --- /dev/null +++ b/lib/fleetappsmanagement/lib/response/update-scheduler-job-response.ts @@ -0,0 +1,33 @@ +/** + * + * + * OpenAPI spec version: 20230831 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface UpdateSchedulerJobResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + "etag": string; + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * The returned model.SchedulerJob instance. + */ + "schedulerJob": model.SchedulerJob; +} diff --git a/lib/fleetappsmanagement/package.json b/lib/fleetappsmanagement/package.json new file mode 100644 index 0000000000..8fbcc75394 --- /dev/null +++ b/lib/fleetappsmanagement/package.json @@ -0,0 +1,28 @@ +{ + "name": "oci-fleetappsmanagement", + "version": "2.92.0", + "description": "OCI NodeJS client for Fleet Apps Management Service", + "repository": { + "type": "git", + "url": "https://github.com/oracle/oci-typescript-sdk" + }, + "main": "../../target/lib/fleetappsmanagement/index.js", + "typings": "../../target/lib/fleetappsmanagement/index.d.ts", + "scripts": {}, + "author": { + "name": "Oracle Cloud Infrastructure", + "email": "" + }, + "license": "(UPL-1.0 OR Apache-2.0)", + "dependencies": { + "oci-common": "../common" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org" + }, + "contributors": [ + "Jyoti Saini ", + "Joe Levy ", + "Walt Tran " + ] +} diff --git a/lib/fleetappsmanagement/tsconfig.json b/lib/fleetappsmanagement/tsconfig.json new file mode 100644 index 0000000000..bf9170b6ce --- /dev/null +++ b/lib/fleetappsmanagement/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "target": "es2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ + "declaration": true, /* Generates corresponding '.d.ts' file. */ + "sourceMap": true, /* Generates corresponding '.map' file. */ + "outDir": "target", /* Redirect output structure to the directory. */ + "strict": true, /* Enable all strict type-checking options. */ + "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + } +} \ No newline at end of file diff --git a/lib/fleetsoftwareupdate/package.json b/lib/fleetsoftwareupdate/package.json index 79971502b9..3237b0a6f7 100644 --- a/lib/fleetsoftwareupdate/package.json +++ b/lib/fleetsoftwareupdate/package.json @@ -1,6 +1,6 @@ { "name": "oci-fleetsoftwareupdate", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Fleet Software Update Service", "repository": { "type": "git", diff --git a/lib/functions/package.json b/lib/functions/package.json index c803db1bf4..ae7ab74b12 100644 --- a/lib/functions/package.json +++ b/lib/functions/package.json @@ -1,6 +1,6 @@ { "name": "oci-functions", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Functions", "repository": { "type": "git", diff --git a/lib/fusionapps/package.json b/lib/fusionapps/package.json index f3eb779a7e..951895310c 100644 --- a/lib/fusionapps/package.json +++ b/lib/fusionapps/package.json @@ -1,6 +1,6 @@ { "name": "oci-fusionapps", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Fusion Apps Service", "repository": { "type": "git", diff --git a/lib/generativeai/package.json b/lib/generativeai/package.json index 8d2c2d2665..3c0e0eb8bd 100644 --- a/lib/generativeai/package.json +++ b/lib/generativeai/package.json @@ -1,6 +1,6 @@ { "name": "oci-generativeai", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Generative Ai Service", "repository": { "type": "git", diff --git a/lib/generativeaiinference/package.json b/lib/generativeaiinference/package.json index 73906f0e53..1c76e4cf13 100644 --- a/lib/generativeaiinference/package.json +++ b/lib/generativeaiinference/package.json @@ -1,6 +1,6 @@ { "name": "oci-generativeaiinference", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Generative Ai Inference Service", "repository": { "type": "git", diff --git a/lib/genericartifactscontent/package.json b/lib/genericartifactscontent/package.json index 8984abbcbb..e45919fe98 100644 --- a/lib/genericartifactscontent/package.json +++ b/lib/genericartifactscontent/package.json @@ -1,6 +1,6 @@ { "name": "oci-genericartifactscontent", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Generic Artifacts Content Service", "repository": { "type": "git", diff --git a/lib/globallydistributeddatabase/package.json b/lib/globallydistributeddatabase/package.json index e9194f53a5..2cd9e59941 100644 --- a/lib/globallydistributeddatabase/package.json +++ b/lib/globallydistributeddatabase/package.json @@ -1,6 +1,6 @@ { "name": "oci-globallydistributeddatabase", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Globally Distributed Database Service", "repository": { "type": "git", diff --git a/lib/goldengate/package.json b/lib/goldengate/package.json index 66fd138eb3..fa7da11149 100644 --- a/lib/goldengate/package.json +++ b/lib/goldengate/package.json @@ -1,6 +1,6 @@ { "name": "oci-goldengate", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Golden Gate Service", "repository": { "type": "git", diff --git a/lib/governancerulescontrolplane/package.json b/lib/governancerulescontrolplane/package.json index aa9fdbb39d..e51017e7af 100644 --- a/lib/governancerulescontrolplane/package.json +++ b/lib/governancerulescontrolplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-governancerulescontrolplane", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Governance Rules Control Plane Service", "repository": { "type": "git", diff --git a/lib/healthchecks/package.json b/lib/healthchecks/package.json index 8f739e3de3..71ca5fb86e 100644 --- a/lib/healthchecks/package.json +++ b/lib/healthchecks/package.json @@ -1,6 +1,6 @@ { "name": "oci-healthchecks", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Healthchecks Service", "repository": { "type": "git", diff --git a/lib/identity/package.json b/lib/identity/package.json index fe5c2c4902..c3ebb47033 100644 --- a/lib/identity/package.json +++ b/lib/identity/package.json @@ -1,6 +1,6 @@ { "name": "oci-identity", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Identity", "repository": { "type": "git", diff --git a/lib/identitydataplane/package.json b/lib/identitydataplane/package.json index e7fdcb7ac3..1a7775b081 100644 --- a/lib/identitydataplane/package.json +++ b/lib/identitydataplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-identitydataplane", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Identity Data Plane Service", "repository": { "type": "git", diff --git a/lib/identitydomains/package.json b/lib/identitydomains/package.json index 62bbd447a6..ccf58d2485 100644 --- a/lib/identitydomains/package.json +++ b/lib/identitydomains/package.json @@ -1,6 +1,6 @@ { "name": "oci-identitydomains", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Identity Domains Service", "repository": { "type": "git", diff --git a/lib/integration/lib/client.ts b/lib/integration/lib/client.ts index 20ca68569c..eb2c6912bc 100644 --- a/lib/integration/lib/client.ts +++ b/lib/integration/lib/client.ts @@ -705,6 +705,87 @@ export class IntegrationInstanceClient { } } + /** + * Extend Data Retention period for given Integration Instance + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ExtendDataRetentionRequest + * @return ExtendDataRetentionResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/integration/ExtendDataRetention.ts.html |here} to see how to use ExtendDataRetention API. + */ + public async extendDataRetention( + extendDataRetentionRequest: requests.ExtendDataRetentionRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation IntegrationInstanceClient#extendDataRetention."); + const operationName = "extendDataRetention"; + const apiReferenceLink = + "https://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/ExtendDataRetention"; + const pathParams = { + "{integrationInstanceId}": extendDataRetentionRequest.integrationInstanceId + }; + + const queryParams = {}; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "if-match": extendDataRetentionRequest.ifMatch, + "opc-request-id": extendDataRetentionRequest.opcRequestId, + "opc-retry-token": extendDataRetentionRequest.opcRetryToken + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + extendDataRetentionRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/integrationInstances/{integrationInstanceId}/actions/extendDataRetention", + method: "POST", + bodyContent: common.ObjectSerializer.serialize( + extendDataRetentionRequest.extendDataRetentionDetails, + "ExtendDataRetentionDetails", + model.ExtendDataRetentionDetails.getJsonObj + ), + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + responseHeaders: [ + { + value: response.headers.get("opc-work-request-id"), + key: "opcWorkRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + /** * Gets a IntegrationInstance by identifier * This operation does not retry by default if the user has not defined a retry configuration. diff --git a/lib/integration/lib/model/change-integration-instance-network-endpoint-details.ts b/lib/integration/lib/model/change-integration-instance-network-endpoint-details.ts index e14668a81a..3a93453b37 100644 --- a/lib/integration/lib/model/change-integration-instance-network-endpoint-details.ts +++ b/lib/integration/lib/model/change-integration-instance-network-endpoint-details.ts @@ -17,8 +17,8 @@ import common = require("oci-common"); /** * Input payload to update an Integration instance endpoint details. An empty payload will clear out any existing configuration. *

-Some actions may not be applicable to specific integration types, -* see [Differences in Instance Management](https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/application-integration&id=INTOO-GUID-931B5E33-4FE6-4997-93E5-8748516F46AA__GUID-176E43D5-4116-4828-8120-B929DF2A6B5E) +Some actions may not be applicable to specific integration types, +* see [Differences in Instance Management](https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/application-integration&id=INTOO-GUID-931B5E33-4FE6-4997-93E5-8748516F46AA__GUID-176E43D5-4116-4828-8120-B929DF2A6B5E) * for details. * */ diff --git a/lib/integration/lib/model/change-private-endpoint-outbound-connection-details.ts b/lib/integration/lib/model/change-private-endpoint-outbound-connection-details.ts index be7ba023c0..a064e65922 100644 --- a/lib/integration/lib/model/change-private-endpoint-outbound-connection-details.ts +++ b/lib/integration/lib/model/change-private-endpoint-outbound-connection-details.ts @@ -17,8 +17,8 @@ import common = require("oci-common"); /** * Input payload to ADD/REMOVE Private Endpoint Outbound Connection for given IntegrationInstance. *

-Some actions may not be applicable to specific integration types, -* see [Differences in Instance Management](https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/application-integration&id=INTOO-GUID-931B5E33-4FE6-4997-93E5-8748516F46AA__GUID-176E43D5-4116-4828-8120-B929DF2A6B5E) +Some actions may not be applicable to specific integration types, +* see [Differences in Instance Management](https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/application-integration&id=INTOO-GUID-931B5E33-4FE6-4997-93E5-8748516F46AA__GUID-176E43D5-4116-4828-8120-B929DF2A6B5E) * for details. * */ diff --git a/lib/integration/lib/model/extend-data-retention-details.ts b/lib/integration/lib/model/extend-data-retention-details.ts new file mode 100644 index 0000000000..d12ee3e26a --- /dev/null +++ b/lib/integration/lib/model/extend-data-retention-details.ts @@ -0,0 +1,44 @@ +/** + * Oracle Integration API + * Oracle Integration API. + * OpenAPI spec version: 20190131 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Details for extending data retention for given integration instance + */ +export interface ExtendDataRetentionDetails { + /** + * Data retention period set for given integration instance + */ + "dataRetentionPeriod": ExtendDataRetentionDetails.DataRetentionPeriod; +} + +export namespace ExtendDataRetentionDetails { + export enum DataRetentionPeriod { + Months1 = "MONTHS_1", + Months3 = "MONTHS_3", + Months6 = "MONTHS_6" + } + + export function getJsonObj(obj: ExtendDataRetentionDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: ExtendDataRetentionDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/integration/lib/model/index.ts b/lib/integration/lib/model/index.ts index 00a980d50a..04c516f99c 100644 --- a/lib/integration/lib/model/index.ts +++ b/lib/integration/lib/model/index.ts @@ -25,6 +25,8 @@ import * as CreateIntegrationInstanceDetails from "./create-integration-instance export import CreateIntegrationInstanceDetails = CreateIntegrationInstanceDetails.CreateIntegrationInstanceDetails; import * as CustomEndpointDetails from "./custom-endpoint-details"; export import CustomEndpointDetails = CustomEndpointDetails.CustomEndpointDetails; +import * as ExtendDataRetentionDetails from "./extend-data-retention-details"; +export import ExtendDataRetentionDetails = ExtendDataRetentionDetails.ExtendDataRetentionDetails; import * as IdcsInfoDetails from "./idcs-info-details"; export import IdcsInfoDetails = IdcsInfoDetails.IdcsInfoDetails; import * as IntegrationInstance from "./integration-instance"; diff --git a/lib/integration/lib/model/integration-instance-summary.ts b/lib/integration/lib/model/integration-instance-summary.ts index 3eca0dcc91..736c68c8d4 100644 --- a/lib/integration/lib/model/integration-instance-summary.ts +++ b/lib/integration/lib/model/integration-instance-summary.ts @@ -111,6 +111,10 @@ export interface IntegrationInstanceSummary { "privateEndpointOutboundConnection"?: | model.PrivateEndpointOutboundConnection | model.NoneOutboundConnection; + /** + * Data retention period set for given integration instance + */ + "dataRetentionPeriod"?: IntegrationInstanceSummary.DataRetentionPeriod; } export namespace IntegrationInstanceSummary { @@ -135,6 +139,7 @@ export namespace IntegrationInstanceSummary { Deleting = "DELETING", Deleted = "DELETED", Failed = "FAILED", + Standby = "STANDBY", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. @@ -163,6 +168,17 @@ export namespace IntegrationInstanceSummary { UnknownValue = "UNKNOWN_VALUE" } + export enum DataRetentionPeriod { + Months1 = "MONTHS_1", + Months3 = "MONTHS_3", + Months6 = "MONTHS_6", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + export function getJsonObj(obj: IntegrationInstanceSummary): object { const jsonObj = { ...obj, diff --git a/lib/integration/lib/model/integration-instance.ts b/lib/integration/lib/model/integration-instance.ts index ad929c518c..5b497d5177 100644 --- a/lib/integration/lib/model/integration-instance.ts +++ b/lib/integration/lib/model/integration-instance.ts @@ -117,6 +117,10 @@ export interface IntegrationInstance { "privateEndpointOutboundConnection"?: | model.PrivateEndpointOutboundConnection | model.NoneOutboundConnection; + /** + * Data retention period set for given integration instance + */ + "dataRetentionPeriod"?: IntegrationInstance.DataRetentionPeriod; } export namespace IntegrationInstance { @@ -141,6 +145,7 @@ export namespace IntegrationInstance { Deleting = "DELETING", Deleted = "DELETED", Failed = "FAILED", + Standby = "STANDBY", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. @@ -169,6 +174,17 @@ export namespace IntegrationInstance { UnknownValue = "UNKNOWN_VALUE" } + export enum DataRetentionPeriod { + Months1 = "MONTHS_1", + Months3 = "MONTHS_3", + Months6 = "MONTHS_6", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + export function getJsonObj(obj: IntegrationInstance): object { const jsonObj = { ...obj, diff --git a/lib/integration/lib/model/update-integration-instance-details.ts b/lib/integration/lib/model/update-integration-instance-details.ts index 6e9e311bb0..96f53777ec 100644 --- a/lib/integration/lib/model/update-integration-instance-details.ts +++ b/lib/integration/lib/model/update-integration-instance-details.ts @@ -17,8 +17,8 @@ import common = require("oci-common"); /** * The information to be updated. *

-Some properties may not be applicable to specific integration types, -* see [Differences in Instance Management](https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/application-integration&id=INTOO-GUID-931B5E33-4FE6-4997-93E5-8748516F46AA__GUID-176E43D5-4116-4828-8120-B929DF2A6B5E) +Some properties may not be applicable to specific integration types, +* see [Differences in Instance Management](https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/application-integration&id=INTOO-GUID-931B5E33-4FE6-4997-93E5-8748516F46AA__GUID-176E43D5-4116-4828-8120-B929DF2A6B5E) * for details. * */ diff --git a/lib/integration/lib/model/work-request-summary.ts b/lib/integration/lib/model/work-request-summary.ts index b13795fc06..a395d33f25 100644 --- a/lib/integration/lib/model/work-request-summary.ts +++ b/lib/integration/lib/model/work-request-summary.ts @@ -78,6 +78,7 @@ export namespace WorkRequestSummary { DeleteIntegrationInstance = "DELETE_INTEGRATION_INSTANCE", ChangePrivateEndpointOutboundConnection = "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", EnableProcessAutomation = "ENABLE_PROCESS_AUTOMATION", + ExtendDataRetention = "EXTEND_DATA_RETENTION", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/integration/lib/model/work-request.ts b/lib/integration/lib/model/work-request.ts index 5c81372c10..05fb5db674 100644 --- a/lib/integration/lib/model/work-request.ts +++ b/lib/integration/lib/model/work-request.ts @@ -78,6 +78,7 @@ export namespace WorkRequest { DeleteIntegrationInstance = "DELETE_INTEGRATION_INSTANCE", ChangePrivateEndpointOutboundConnection = "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", EnableProcessAutomation = "ENABLE_PROCESS_AUTOMATION", + ExtendDataRetention = "EXTEND_DATA_RETENTION", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. diff --git a/lib/integration/lib/request/extend-data-retention-request.ts b/lib/integration/lib/request/extend-data-retention-request.ts new file mode 100644 index 0000000000..0d20d913da --- /dev/null +++ b/lib/integration/lib/request/extend-data-retention-request.ts @@ -0,0 +1,52 @@ +/** + * + * + * OpenAPI spec version: 20190131 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/integration/ExtendDataRetention.ts.html |here} to see how to use ExtendDataRetentionRequest. + */ +export interface ExtendDataRetentionRequest extends common.BaseRequest { + /** + * Unique Integration Instance identifier. + */ + "integrationInstanceId": string; + /** + * Extend Data Retention period for integration instance. + */ + "extendDataRetentionDetails": model.ExtendDataRetentionDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + "ifMatch"?: string; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations. For example, if a resource has been + * deleted and purged from the system, then a retry of the original creation + * request might be rejected. + * + */ + "opcRetryToken"?: string; +} diff --git a/lib/integration/lib/request/index.ts b/lib/integration/lib/request/index.ts index 45356c63d6..3d2cd560b2 100644 --- a/lib/integration/lib/request/index.ts +++ b/lib/integration/lib/request/index.ts @@ -23,6 +23,8 @@ import * as DeleteIntegrationInstanceRequest from "./delete-integration-instance export import DeleteIntegrationInstanceRequest = DeleteIntegrationInstanceRequest.DeleteIntegrationInstanceRequest; import * as EnableProcessAutomationRequest from "./enable-process-automation-request"; export import EnableProcessAutomationRequest = EnableProcessAutomationRequest.EnableProcessAutomationRequest; +import * as ExtendDataRetentionRequest from "./extend-data-retention-request"; +export import ExtendDataRetentionRequest = ExtendDataRetentionRequest.ExtendDataRetentionRequest; import * as GetIntegrationInstanceRequest from "./get-integration-instance-request"; export import GetIntegrationInstanceRequest = GetIntegrationInstanceRequest.GetIntegrationInstanceRequest; import * as GetWorkRequestRequest from "./get-work-request-request"; diff --git a/lib/integration/lib/request/list-integration-instances-request.ts b/lib/integration/lib/request/list-integration-instances-request.ts index 11f563e37c..d0b41a0fa5 100644 --- a/lib/integration/lib/request/list-integration-instances-request.ts +++ b/lib/integration/lib/request/list-integration-instances-request.ts @@ -66,7 +66,8 @@ export namespace ListIntegrationInstancesRequest { Inactive = "INACTIVE", Deleting = "DELETING", Deleted = "DELETED", - Failed = "FAILED" + Failed = "FAILED", + Standby = "STANDBY" } export enum SortOrder { diff --git a/lib/integration/lib/response/extend-data-retention-response.ts b/lib/integration/lib/response/extend-data-retention-response.ts new file mode 100644 index 0000000000..c114accb90 --- /dev/null +++ b/lib/integration/lib/response/extend-data-retention-response.ts @@ -0,0 +1,31 @@ +/** + * + * + * OpenAPI spec version: 20190131 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ExtendDataRetentionResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous request. + * You can use this to query status of the asynchronous operation. + * + */ + "opcWorkRequestId": string; + /** + * Unique Oracle-assigned identifier for the request. If + * you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + "opcRequestId": string; +} diff --git a/lib/integration/lib/response/index.ts b/lib/integration/lib/response/index.ts index c72c7409f5..f12eb36dda 100644 --- a/lib/integration/lib/response/index.ts +++ b/lib/integration/lib/response/index.ts @@ -23,6 +23,8 @@ import * as DeleteIntegrationInstanceResponse from "./delete-integration-instanc export import DeleteIntegrationInstanceResponse = DeleteIntegrationInstanceResponse.DeleteIntegrationInstanceResponse; import * as EnableProcessAutomationResponse from "./enable-process-automation-response"; export import EnableProcessAutomationResponse = EnableProcessAutomationResponse.EnableProcessAutomationResponse; +import * as ExtendDataRetentionResponse from "./extend-data-retention-response"; +export import ExtendDataRetentionResponse = ExtendDataRetentionResponse.ExtendDataRetentionResponse; import * as GetIntegrationInstanceResponse from "./get-integration-instance-response"; export import GetIntegrationInstanceResponse = GetIntegrationInstanceResponse.GetIntegrationInstanceResponse; import * as GetWorkRequestResponse from "./get-work-request-response"; diff --git a/lib/integration/package.json b/lib/integration/package.json index 10712a5e05..d79fe3b42d 100644 --- a/lib/integration/package.json +++ b/lib/integration/package.json @@ -1,6 +1,6 @@ { "name": "oci-integration", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Integration service", "repository": { "type": "git", diff --git a/lib/jms/package.json b/lib/jms/package.json index 154c7220ae..1a66f41869 100644 --- a/lib/jms/package.json +++ b/lib/jms/package.json @@ -1,6 +1,6 @@ { "name": "oci-jms", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Jms Service", "repository": { "type": "git", diff --git a/lib/jmsjavadownloads/package.json b/lib/jmsjavadownloads/package.json index d447818890..5a691bbcc3 100644 --- a/lib/jmsjavadownloads/package.json +++ b/lib/jmsjavadownloads/package.json @@ -1,6 +1,6 @@ { "name": "oci-jmsjavadownloads", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Jms Java Downloads Service", "repository": { "type": "git", diff --git a/lib/keymanagement/package.json b/lib/keymanagement/package.json index a49613964f..7fc8b772b5 100644 --- a/lib/keymanagement/package.json +++ b/lib/keymanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-keymanagement", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Key Management", "repository": { "type": "git", diff --git a/lib/licensemanager/package.json b/lib/licensemanager/package.json index a10d791f43..66ed495ca8 100644 --- a/lib/licensemanager/package.json +++ b/lib/licensemanager/package.json @@ -1,6 +1,6 @@ { "name": "oci-licensemanager", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for License Manager Service", "repository": { "type": "git", diff --git a/lib/limits/package.json b/lib/limits/package.json index e3523def97..500f764314 100644 --- a/lib/limits/package.json +++ b/lib/limits/package.json @@ -1,6 +1,6 @@ { "name": "oci-limits", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Limits Service", "repository": { "type": "git", diff --git a/lib/loadbalancer/package.json b/lib/loadbalancer/package.json index ced24c1290..86d64b33c6 100644 --- a/lib/loadbalancer/package.json +++ b/lib/loadbalancer/package.json @@ -1,6 +1,6 @@ { "name": "oci-loadbalancer", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Load Balancer", "repository": { "type": "git", diff --git a/lib/lockbox/package.json b/lib/lockbox/package.json index f9f5b0b1dd..86f41c13ae 100644 --- a/lib/lockbox/package.json +++ b/lib/lockbox/package.json @@ -1,6 +1,6 @@ { "name": "oci-lockbox", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Lockbox Service", "repository": { "type": "git", diff --git a/lib/loganalytics/package.json b/lib/loganalytics/package.json index 60d97acfad..55eea93166 100644 --- a/lib/loganalytics/package.json +++ b/lib/loganalytics/package.json @@ -1,6 +1,6 @@ { "name": "oci-loganalytics", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Log Analytics Service", "repository": { "type": "git", diff --git a/lib/logging/package.json b/lib/logging/package.json index bbd45b2872..98c7b2bcf5 100644 --- a/lib/logging/package.json +++ b/lib/logging/package.json @@ -1,6 +1,6 @@ { "name": "oci-logging", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Logging Service", "repository": { "type": "git", diff --git a/lib/loggingingestion/package.json b/lib/loggingingestion/package.json index d4c4e1a98f..4a011335f8 100644 --- a/lib/loggingingestion/package.json +++ b/lib/loggingingestion/package.json @@ -1,6 +1,6 @@ { "name": "oci-loggingingestion", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Loggingingestion Service", "repository": { "type": "git", diff --git a/lib/loggingsearch/package.json b/lib/loggingsearch/package.json index d49316285f..9035dcaf83 100644 --- a/lib/loggingsearch/package.json +++ b/lib/loggingsearch/package.json @@ -1,6 +1,6 @@ { "name": "oci-loggingsearch", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Loggingsearch Service", "repository": { "type": "git", diff --git a/lib/managementagent/package.json b/lib/managementagent/package.json index f3e44e7ab8..5c4c04111b 100644 --- a/lib/managementagent/package.json +++ b/lib/managementagent/package.json @@ -1,6 +1,6 @@ { "name": "oci-managementagent", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Management Agent Service", "repository": { "type": "git", diff --git a/lib/managementdashboard/package.json b/lib/managementdashboard/package.json index 8c85dfc406..3f2207188f 100644 --- a/lib/managementdashboard/package.json +++ b/lib/managementdashboard/package.json @@ -1,6 +1,6 @@ { "name": "oci-managementdashboard", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Management Dashboard Service", "repository": { "type": "git", diff --git a/lib/marketplace/package.json b/lib/marketplace/package.json index b53d132687..17c7001283 100644 --- a/lib/marketplace/package.json +++ b/lib/marketplace/package.json @@ -1,6 +1,6 @@ { "name": "oci-marketplace", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Marketplace Service", "repository": { "type": "git", diff --git a/lib/marketplaceprivateoffer/package.json b/lib/marketplaceprivateoffer/package.json index acd61d29c7..9ee0e1d4fc 100644 --- a/lib/marketplaceprivateoffer/package.json +++ b/lib/marketplaceprivateoffer/package.json @@ -1,6 +1,6 @@ { "name": "oci-marketplaceprivateoffer", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Marketplace Private Offer Service", "repository": { "type": "git", diff --git a/lib/marketplacepublisher/package.json b/lib/marketplacepublisher/package.json index 988f5e2310..9d926eb978 100644 --- a/lib/marketplacepublisher/package.json +++ b/lib/marketplacepublisher/package.json @@ -1,6 +1,6 @@ { "name": "oci-marketplacepublisher", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Marketplace Publisher Service", "repository": { "type": "git", diff --git a/lib/mediaservices/package.json b/lib/mediaservices/package.json index b72c33f9bd..b41505e03a 100644 --- a/lib/mediaservices/package.json +++ b/lib/mediaservices/package.json @@ -1,6 +1,6 @@ { "name": "oci-mediaservices", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Media Services Service", "repository": { "type": "git", diff --git a/lib/monitoring/package.json b/lib/monitoring/package.json index 9f45d42a1c..c07e0d6a23 100644 --- a/lib/monitoring/package.json +++ b/lib/monitoring/package.json @@ -1,6 +1,6 @@ { "name": "oci-monitoring", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Monitoring", "repository": { "type": "git", diff --git a/lib/mysql/lib/model/create-db-system-details.ts b/lib/mysql/lib/model/create-db-system-details.ts index 6a40338a57..a8c08576a4 100644 --- a/lib/mysql/lib/model/create-db-system-details.ts +++ b/lib/mysql/lib/model/create-db-system-details.ts @@ -104,6 +104,7 @@ For a standalone DB System, this defines the fault domain in which the DB System * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "dataStorageSizeInGBs"?: number; + "dataStorage"?: model.DataStorageDetails; /** * The hostname for the primary endpoint of the DB System. Used for DNS. *

@@ -171,6 +172,10 @@ export namespace CreateDbSystemDetails { const jsonObj = { ...obj, ...{ + "dataStorage": obj.dataStorage + ? model.DataStorageDetails.getJsonObj(obj.dataStorage) + : undefined, + "backupPolicy": obj.backupPolicy ? model.CreateBackupPolicyDetails.getJsonObj(obj.backupPolicy) : undefined, @@ -195,6 +200,10 @@ export namespace CreateDbSystemDetails { const jsonObj = { ...obj, ...{ + "dataStorage": obj.dataStorage + ? model.DataStorageDetails.getDeserializedJsonObj(obj.dataStorage) + : undefined, + "backupPolicy": obj.backupPolicy ? model.CreateBackupPolicyDetails.getDeserializedJsonObj(obj.backupPolicy) : undefined, diff --git a/lib/mysql/lib/model/data-storage-details.ts b/lib/mysql/lib/model/data-storage-details.ts new file mode 100644 index 0000000000..298b1c74d9 --- /dev/null +++ b/lib/mysql/lib/model/data-storage-details.ts @@ -0,0 +1,55 @@ +/** + * MySQL Database Service API + * The API for the MySQL Database Service + * OpenAPI spec version: 20190415 + * Contact: mysql-cloud-dev_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Data Storage configuration properties. + * + */ +export interface DataStorageDetails { + /** + * Enable/disable automatic storage expansion. When set to true, the DB System will automatically + * add storage incrementally up to the value specified in maxStorageSizeInGBs. + * + */ + "isAutoExpandStorageEnabled"?: boolean; + /** + * Maximum storage size this DB System can expand to. When isAutoExpandStorageEnabled +* is set to true, the DB System will add storage incrementally up to this value. +*

+DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. +* DB Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. +* DB Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. +* DB Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. +*

+It is not possible to decrease data storage size. You cannot set the maximum data storage size to less +* than either current DB System dataStorageSizeInGBs or allocatedStorageSizeInGBs. +* Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "maxStorageSizeInGBs"?: number; +} + +export namespace DataStorageDetails { + export function getJsonObj(obj: DataStorageDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: DataStorageDetails): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/mysql/lib/model/data-storage.ts b/lib/mysql/lib/model/data-storage.ts new file mode 100644 index 0000000000..e2b5404b7a --- /dev/null +++ b/lib/mysql/lib/model/data-storage.ts @@ -0,0 +1,78 @@ +/** + * MySQL Database Service API + * The API for the MySQL Database Service + * OpenAPI spec version: 20190415 + * Contact: mysql-cloud-dev_ww_grp@oracle.com + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * Data Storage information. + * + */ +export interface DataStorage { + /** + * The actual allocated storage size for the DB System. This may be higher than dataStorageSizeInGBs + * if an automatic storage expansion has occurred. + * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "allocatedStorageSizeInGBs"?: number; + /** + * User specified size of the data volume. May be less than current allocatedStorageSizeInGBs. + * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "dataStorageSizeInGBs"?: number; + /** + * The absolute limit the DB System's storage size may ever expand to, either manually or automatically. +* This limit is based based on the initial dataStorageSizeInGBs when the DB System was first created. +* Both dataStorageSizeInGBs and maxDataStorageSizeInGBs can not exceed this value. +*

+DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. +* DB Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. +* DB Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. +* DB Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. +* Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "dataStorageSizeLimitInGBs"?: number; + /** + * Enable/disable automatic storage expansion. When set to true, the DB System will automatically + * add storage incrementally up to the value specified in maxStorageSizeInGBs. + * + */ + "isAutoExpandStorageEnabled"?: boolean; + /** + * Maximum storage size this DB System can expand to. When isAutoExpandStorageEnabled +* is set to true, the DB System will add storage incrementally up to this value. +*

+DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. +* DB Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. +* DB Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. +* DB Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB. +*

+It is not possible to decrease data storage size. You cannot set the maximum data storage size to less +* than either current DB System dataStorageSizeInGBs or allocatedStorageSizeInGBs. +* Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "maxStorageSizeInGBs"?: number; +} + +export namespace DataStorage { + export function getJsonObj(obj: DataStorage): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: DataStorage): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/mysql/lib/model/db-system-snapshot.ts b/lib/mysql/lib/model/db-system-snapshot.ts index 600c5a4167..0ce7311d61 100644 --- a/lib/mysql/lib/model/db-system-snapshot.ts +++ b/lib/mysql/lib/model/db-system-snapshot.ts @@ -73,10 +73,12 @@ export interface DbSystemSnapshot { */ "configurationId"?: string; /** - * Initial size of the data volume in GiBs that will be created and attached. + * DEPRECATED: User specified size of the data volume. May be less than current allocatedStorageSizeInGBs. + * Replaced by dataStorage.dataStorageSizeInGBs. * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "dataStorageSizeInGBs": number; + "dataStorage"?: model.DataStorage; /** * The hostname for the primary endpoint of the DB System. Used for DNS. * The value is the hostname portion of the primary private IP's fully qualified domain name (FQDN) @@ -155,6 +157,8 @@ export namespace DbSystemSnapshot { ? model.BackupPolicy.getJsonObj(obj.backupPolicy) : undefined, + "dataStorage": obj.dataStorage ? model.DataStorage.getJsonObj(obj.dataStorage) : undefined, + "endpoints": obj.endpoints ? obj.endpoints.map(item => { return model.DbSystemEndpoint.getJsonObj(item); @@ -183,6 +187,10 @@ export namespace DbSystemSnapshot { ? model.BackupPolicy.getDeserializedJsonObj(obj.backupPolicy) : undefined, + "dataStorage": obj.dataStorage + ? model.DataStorage.getDeserializedJsonObj(obj.dataStorage) + : undefined, + "endpoints": obj.endpoints ? obj.endpoints.map(item => { return model.DbSystemEndpoint.getDeserializedJsonObj(item); diff --git a/lib/mysql/lib/model/db-system.ts b/lib/mysql/lib/model/db-system.ts index 3684723ec4..54eee0df20 100644 --- a/lib/mysql/lib/model/db-system.ts +++ b/lib/mysql/lib/model/db-system.ts @@ -98,10 +98,12 @@ For a standalone DB System, this defines the fault domain in which the DB System */ "configurationId"?: string; /** - * Initial size of the data volume in GiBs that will be created and attached. + * DEPRECATED: User specified size of the data volume. May be less than current allocatedStorageSizeInGBs. + * Replaced by dataStorage.dataStorageSizeInGBs. * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "dataStorageSizeInGBs": number; + "dataStorage": model.DataStorage; /** * The hostname for the primary endpoint of the DB System. Used for DNS. * The value is the hostname portion of the primary private IP's fully qualified domain name (FQDN) @@ -214,6 +216,8 @@ export namespace DbSystem { : undefined, "source": obj.source ? model.DbSystemSource.getJsonObj(obj.source) : undefined, + "dataStorage": obj.dataStorage ? model.DataStorage.getJsonObj(obj.dataStorage) : undefined, + "endpoints": obj.endpoints ? obj.endpoints.map(item => { return model.DbSystemEndpoint.getJsonObj(item); @@ -261,6 +265,10 @@ export namespace DbSystem { : undefined, "source": obj.source ? model.DbSystemSource.getDeserializedJsonObj(obj.source) : undefined, + "dataStorage": obj.dataStorage + ? model.DataStorage.getDeserializedJsonObj(obj.dataStorage) + : undefined, + "endpoints": obj.endpoints ? obj.endpoints.map(item => { return model.DbSystemEndpoint.getDeserializedJsonObj(item); diff --git a/lib/mysql/lib/model/index.ts b/lib/mysql/lib/model/index.ts index f10597acfc..1a40fca8a4 100644 --- a/lib/mysql/lib/model/index.ts +++ b/lib/mysql/lib/model/index.ts @@ -69,6 +69,10 @@ import * as CreateMaintenanceDetails from "./create-maintenance-details"; export import CreateMaintenanceDetails = CreateMaintenanceDetails.CreateMaintenanceDetails; import * as CreateReplicaDetails from "./create-replica-details"; export import CreateReplicaDetails = CreateReplicaDetails.CreateReplicaDetails; +import * as DataStorage from "./data-storage"; +export import DataStorage = DataStorage.DataStorage; +import * as DataStorageDetails from "./data-storage-details"; +export import DataStorageDetails = DataStorageDetails.DataStorageDetails; import * as DatabaseManagementStatus from "./database-management-status"; export import DatabaseManagementStatus = DatabaseManagementStatus.DatabaseManagementStatus; import * as DbSystem from "./db-system"; diff --git a/lib/mysql/lib/model/update-db-system-details.ts b/lib/mysql/lib/model/update-db-system-details.ts index 86b865b124..0d88f7811d 100644 --- a/lib/mysql/lib/model/update-db-system-details.ts +++ b/lib/mysql/lib/model/update-db-system-details.ts @@ -110,6 +110,7 @@ It is not possible to decrease data storage size. * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "dataStorageSizeInGBs"?: number; + "dataStorage"?: model.DataStorageDetails; /** * The hostname for the primary endpoint of the DB System. Used for DNS. * The value is the hostname portion of the primary private IP's fully qualified domain name (FQDN) @@ -169,6 +170,10 @@ export namespace UpdateDbSystemDetails { const jsonObj = { ...obj, ...{ + "dataStorage": obj.dataStorage + ? model.DataStorageDetails.getJsonObj(obj.dataStorage) + : undefined, + "backupPolicy": obj.backupPolicy ? model.UpdateBackupPolicyDetails.getJsonObj(obj.backupPolicy) : undefined, @@ -192,6 +197,10 @@ export namespace UpdateDbSystemDetails { const jsonObj = { ...obj, ...{ + "dataStorage": obj.dataStorage + ? model.DataStorageDetails.getDeserializedJsonObj(obj.dataStorage) + : undefined, + "backupPolicy": obj.backupPolicy ? model.UpdateBackupPolicyDetails.getDeserializedJsonObj(obj.backupPolicy) : undefined, diff --git a/lib/mysql/package.json b/lib/mysql/package.json index f9b563f722..a56f4d6521 100644 --- a/lib/mysql/package.json +++ b/lib/mysql/package.json @@ -1,6 +1,6 @@ { "name": "oci-mysql", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Mysql ", "repository": { "type": "git", diff --git a/lib/networkfirewall/package.json b/lib/networkfirewall/package.json index 3013f3f7da..7e5050c9ac 100644 --- a/lib/networkfirewall/package.json +++ b/lib/networkfirewall/package.json @@ -1,6 +1,6 @@ { "name": "oci-networkfirewall", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Network Firewall Service", "repository": { "type": "git", diff --git a/lib/networkloadbalancer/package.json b/lib/networkloadbalancer/package.json index 16b0d48768..d91dad4e9b 100644 --- a/lib/networkloadbalancer/package.json +++ b/lib/networkloadbalancer/package.json @@ -1,6 +1,6 @@ { "name": "oci-networkloadbalancer", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Network Load Balancer Service", "repository": { "type": "git", diff --git a/lib/nosql/package.json b/lib/nosql/package.json index 2508bd9c70..7fc79ed418 100644 --- a/lib/nosql/package.json +++ b/lib/nosql/package.json @@ -1,6 +1,6 @@ { "name": "oci-nosql", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Nosql Service", "repository": { "type": "git", diff --git a/lib/objectstorage/package.json b/lib/objectstorage/package.json index 2e2722e323..a8630085aa 100644 --- a/lib/objectstorage/package.json +++ b/lib/objectstorage/package.json @@ -1,6 +1,6 @@ { "name": "oci-objectstorage", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for ObjectStorage", "repository": { "type": "git", diff --git a/lib/oce/package.json b/lib/oce/package.json index 17bfd3857b..bf426a2c1f 100644 --- a/lib/oce/package.json +++ b/lib/oce/package.json @@ -1,6 +1,6 @@ { "name": "oci-oce", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for OCE Service", "repository": { "type": "git", diff --git a/lib/ocicontrolcenter/package.json b/lib/ocicontrolcenter/package.json index 4ed436e67e..42afe8fb2e 100644 --- a/lib/ocicontrolcenter/package.json +++ b/lib/ocicontrolcenter/package.json @@ -1,6 +1,6 @@ { "name": "oci-ocicontrolcenter", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Oci Control Center Service", "repository": { "type": "git", diff --git a/lib/ocvp/package.json b/lib/ocvp/package.json index 2577279d79..677e77a854 100644 --- a/lib/ocvp/package.json +++ b/lib/ocvp/package.json @@ -1,6 +1,6 @@ { "name": "oci-ocvp", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Ocvp Service", "repository": { "type": "git", diff --git a/lib/oda/package.json b/lib/oda/package.json index 9fa9c94692..7fbfa0a61b 100644 --- a/lib/oda/package.json +++ b/lib/oda/package.json @@ -1,6 +1,6 @@ { "name": "oci-oda", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Oda Service", "repository": { "type": "git", diff --git a/lib/onesubscription/package.json b/lib/onesubscription/package.json index 87ad8e0fea..a3b9510085 100644 --- a/lib/onesubscription/package.json +++ b/lib/onesubscription/package.json @@ -1,6 +1,6 @@ { "name": "oci-onesubscription", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Onesubscription Service", "repository": { "type": "git", diff --git a/lib/ons/package.json b/lib/ons/package.json index b1658bfd39..dbbea859fa 100644 --- a/lib/ons/package.json +++ b/lib/ons/package.json @@ -1,6 +1,6 @@ { "name": "oci-ons", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for ONS", "repository": { "type": "git", diff --git a/lib/opa/package.json b/lib/opa/package.json index c76d8d4a02..1bacc895df 100644 --- a/lib/opa/package.json +++ b/lib/opa/package.json @@ -1,6 +1,6 @@ { "name": "oci-opa", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Opa Service", "repository": { "type": "git", diff --git a/lib/opensearch/package.json b/lib/opensearch/package.json index 7ebf29f450..c0d68c20b6 100644 --- a/lib/opensearch/package.json +++ b/lib/opensearch/package.json @@ -1,6 +1,6 @@ { "name": "oci-opensearch", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Opensearch Service", "repository": { "type": "git", diff --git a/lib/operatoraccesscontrol/package.json b/lib/operatoraccesscontrol/package.json index ecfaacb459..c0d751f28d 100644 --- a/lib/operatoraccesscontrol/package.json +++ b/lib/operatoraccesscontrol/package.json @@ -1,6 +1,6 @@ { "name": "oci-operatoraccesscontrol", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Operator Access Control Service", "repository": { "type": "git", diff --git a/lib/opsi/package.json b/lib/opsi/package.json index 81bc3a7b71..c53b7ab468 100644 --- a/lib/opsi/package.json +++ b/lib/opsi/package.json @@ -1,6 +1,6 @@ { "name": "oci-opsi", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Opsi Service", "repository": { "type": "git", diff --git a/lib/optimizer/package.json b/lib/optimizer/package.json index 73252a9b2a..aa4d380fcc 100644 --- a/lib/optimizer/package.json +++ b/lib/optimizer/package.json @@ -1,6 +1,6 @@ { "name": "oci-optimizer", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Optimizer Service", "repository": { "type": "git", diff --git a/lib/osmanagement/package.json b/lib/osmanagement/package.json index 0b1e701851..71df664d87 100644 --- a/lib/osmanagement/package.json +++ b/lib/osmanagement/package.json @@ -1,6 +1,6 @@ { "name": "oci-osmanagement", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for OS Management", "repository": { "type": "git", diff --git a/lib/osmanagementhub/package.json b/lib/osmanagementhub/package.json index 3d21212523..eee908f1a9 100644 --- a/lib/osmanagementhub/package.json +++ b/lib/osmanagementhub/package.json @@ -1,6 +1,6 @@ { "name": "oci-osmanagementhub", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Os Management Hub Service", "repository": { "type": "git", diff --git a/lib/ospgateway/package.json b/lib/ospgateway/package.json index 8b8183bf3b..542f14a5c3 100644 --- a/lib/ospgateway/package.json +++ b/lib/ospgateway/package.json @@ -1,6 +1,6 @@ { "name": "oci-ospgateway", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Osp Gateway Service", "repository": { "type": "git", diff --git a/lib/osubbillingschedule/package.json b/lib/osubbillingschedule/package.json index 30398fd2fe..6c048ca80c 100644 --- a/lib/osubbillingschedule/package.json +++ b/lib/osubbillingschedule/package.json @@ -1,6 +1,6 @@ { "name": "oci-osubbillingschedule", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Osub Billing Schedule Service", "repository": { "type": "git", diff --git a/lib/osuborganizationsubscription/package.json b/lib/osuborganizationsubscription/package.json index f0a080504e..9582662a80 100644 --- a/lib/osuborganizationsubscription/package.json +++ b/lib/osuborganizationsubscription/package.json @@ -1,6 +1,6 @@ { "name": "oci-osuborganizationsubscription", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Osub Organization Subscription Service", "repository": { "type": "git", diff --git a/lib/osubsubscription/package.json b/lib/osubsubscription/package.json index 8a3fb25363..12eea72434 100644 --- a/lib/osubsubscription/package.json +++ b/lib/osubsubscription/package.json @@ -1,6 +1,6 @@ { "name": "oci-osubsubscription", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Osub Subscription Service", "repository": { "type": "git", diff --git a/lib/osubusage/package.json b/lib/osubusage/package.json index 11ce402c39..8afed9bbc9 100644 --- a/lib/osubusage/package.json +++ b/lib/osubusage/package.json @@ -1,6 +1,6 @@ { "name": "oci-osubusage", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Osub Usage Service", "repository": { "type": "git", diff --git a/lib/psql/package.json b/lib/psql/package.json index 6e6c8f72d2..1efe041f3e 100644 --- a/lib/psql/package.json +++ b/lib/psql/package.json @@ -1,6 +1,6 @@ { "name": "oci-psql", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Psql Service", "repository": { "type": "git", diff --git a/lib/queue/package.json b/lib/queue/package.json index 2d6e806b16..703fe19250 100644 --- a/lib/queue/package.json +++ b/lib/queue/package.json @@ -1,6 +1,6 @@ { "name": "oci-queue", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Queue Service", "repository": { "type": "git", diff --git a/lib/recovery/package.json b/lib/recovery/package.json index 54d1decac0..5cee7e1f83 100644 --- a/lib/recovery/package.json +++ b/lib/recovery/package.json @@ -1,6 +1,6 @@ { "name": "oci-recovery", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Recovery Service", "repository": { "type": "git", diff --git a/lib/redis/index.ts b/lib/redis/index.ts index 55f1b5f92b..3150c29ccc 100644 --- a/lib/redis/index.ts +++ b/lib/redis/index.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/client.ts b/lib/redis/lib/client.ts index 5f203c3c52..138dc0195f 100644 --- a/lib/redis/lib/client.ts +++ b/lib/redis/lib/client.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -289,7 +289,7 @@ export class RedisClusterClient { } /** - * Moves a Redis cluster into a different compartment within the same tenancy. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Moves an OCI Cache cluster into a different compartment within the same tenancy. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param ChangeRedisClusterCompartmentRequest * @return ChangeRedisClusterCompartmentResponse @@ -368,7 +368,7 @@ export class RedisClusterClient { } /** - * Creates a new Redis cluster. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Creates a new OCI Cache cluster. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param CreateRedisClusterRequest @@ -453,7 +453,7 @@ export class RedisClusterClient { } /** - * Deletes the specified Redis cluster. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Deletes the specified OCI Cache cluster. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param DeleteRedisClusterRequest * @return DeleteRedisClusterResponse @@ -525,7 +525,7 @@ export class RedisClusterClient { } /** - * Retrieves the specified Redis cluster. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Retrieves the specified OCI Cache cluster. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param GetRedisClusterRequest * @return GetRedisClusterResponse @@ -680,7 +680,90 @@ export class RedisClusterClient { } /** - * Lists the Redis clusters in the specified compartment. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Gets the list of all nodes in a cluster. + * + * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. + * @param ListRedisClusterNodesRequest + * @return ListRedisClusterNodesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/redis/ListRedisClusterNodes.ts.html |here} to see how to use ListRedisClusterNodes API. + */ + public async listRedisClusterNodes( + listRedisClusterNodesRequest: requests.ListRedisClusterNodesRequest + ): Promise { + if (this.logger) + this.logger.debug("Calling operation RedisClusterClient#listRedisClusterNodes."); + const operationName = "listRedisClusterNodes"; + const apiReferenceLink = ""; + const pathParams = { + "{redisClusterId}": listRedisClusterNodesRequest.redisClusterId + }; + + const queryParams = { + "displayName": listRedisClusterNodesRequest.displayName, + "limit": listRedisClusterNodesRequest.limit, + "page": listRedisClusterNodesRequest.page, + "sortOrder": listRedisClusterNodesRequest.sortOrder, + "sortBy": listRedisClusterNodesRequest.sortBy + }; + + let headerParams = { + "Content-Type": common.Constants.APPLICATION_JSON, + "opc-request-id": listRedisClusterNodesRequest.opcRequestId + }; + + const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration; + const retrier = GenericRetrier.createPreferredRetrier( + this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, + listRedisClusterNodesRequest.retryConfiguration, + specRetryConfiguration + ); + if (this.logger) retrier.logger = this.logger; + const request = await composeRequest({ + baseEndpoint: this._endpoint, + defaultHeaders: this._defaultHeaders, + path: "/redisClusters/{redisClusterId}/nodes", + method: "GET", + pathParams: pathParams, + headerParams: headerParams, + queryParams: queryParams + }); + try { + const response = await retrier.makeServiceCall( + this._httpClient, + request, + this.targetService, + operationName, + apiReferenceLink + ); + const sdkResponse = composeResponse({ + responseObject: {}, + body: await response.json(), + bodyKey: "redisNodeCollection", + bodyModel: model.RedisNodeCollection, + type: "model.RedisNodeCollection", + responseHeaders: [ + { + value: response.headers.get("opc-request-id"), + key: "opcRequestId", + dataType: "string" + }, + { + value: response.headers.get("opc-next-page"), + key: "opcNextPage", + dataType: "string" + } + ] + }); + + return sdkResponse; + } catch (err) { + throw err; + } + } + + /** + * Lists the OCI Cache clusters in the specified compartment. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param ListRedisClustersRequest @@ -1009,7 +1092,7 @@ export class RedisClusterClient { } /** - * Updates the specified Redis cluster. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Updates the specified OCI Cache cluster. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user. * @param UpdateRedisClusterRequest * @return UpdateRedisClusterResponse diff --git a/lib/redis/lib/model/action-type.ts b/lib/redis/lib/model/action-type.ts index 1ee544a278..515de0a3c6 100644 --- a/lib/redis/lib/model/action-type.ts +++ b/lib/redis/lib/model/action-type.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/model/change-redis-cluster-compartment-details.ts b/lib/redis/lib/model/change-redis-cluster-compartment-details.ts index 8adce9e72f..b439d5b54d 100644 --- a/lib/redis/lib/model/change-redis-cluster-compartment-details.ts +++ b/lib/redis/lib/model/change-redis-cluster-compartment-details.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -20,7 +20,7 @@ import common = require("oci-common"); export interface ChangeRedisClusterCompartmentDetails { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment - * into which the Redis cluster should be moved. + * into which the cluster should be moved. * */ "compartmentId": string; diff --git a/lib/redis/lib/model/create-redis-cluster-details.ts b/lib/redis/lib/model/create-redis-cluster-details.ts index 061ae20940..05e786ec2c 100644 --- a/lib/redis/lib/model/create-redis-cluster-details.ts +++ b/lib/redis/lib/model/create-redis-cluster-details.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -15,37 +15,45 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The configuration details for a new Redis cluster. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * The configuration details for a new OCI Cache cluster. An OCI Cache cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). */ export interface CreateRedisClusterDetails { + /** + * Specifies whether the cluster is sharded or non-sharded. + */ + "clusterMode"?: string; + /** + * The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "shardCount"?: number; /** * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ "displayName": string; /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the Redis cluster. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the cluster. */ "compartmentId": string; /** - * The number of nodes in the Redis cluster. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "nodeCount": number; /** - * The Redis version that the cluster is running. + * The OCI Cache engine version that the cluster is running. */ "softwareVersion": string; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * The amount of memory allocated to the cluster's nodes, in gigabytes. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "nodeMemoryInGBs": number; /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster's subnet. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster's subnet. */ "subnetId": string; /** * A list of Network Security Group (NSG) [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) * associated with this cluster. For more information, - * see [Using an NSG for Redis Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * see [Using an NSG for Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * */ "nsgIds"?: Array; diff --git a/lib/redis/lib/model/index.ts b/lib/redis/lib/model/index.ts index 855d7e6d99..b3a2726098 100644 --- a/lib/redis/lib/model/index.ts +++ b/lib/redis/lib/model/index.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -21,6 +21,8 @@ import * as Node from "./node"; export import Node = Node.Node; import * as NodeCollection from "./node-collection"; export import NodeCollection = NodeCollection.NodeCollection; +import * as NodeSummary from "./node-summary"; +export import NodeSummary = NodeSummary.NodeSummary; import * as OperationStatus from "./operation-status"; export import OperationStatus = OperationStatus.OperationStatus; import * as OperationType from "./operation-type"; @@ -31,6 +33,8 @@ import * as RedisClusterCollection from "./redis-cluster-collection"; export import RedisClusterCollection = RedisClusterCollection.RedisClusterCollection; import * as RedisClusterSummary from "./redis-cluster-summary"; export import RedisClusterSummary = RedisClusterSummary.RedisClusterSummary; +import * as RedisNodeCollection from "./redis-node-collection"; +export import RedisNodeCollection = RedisNodeCollection.RedisNodeCollection; import * as SortOrder from "./sort-order"; export import SortOrder = SortOrder.SortOrder; import * as UpdateRedisClusterDetails from "./update-redis-cluster-details"; diff --git a/lib/redis/lib/model/node-collection.ts b/lib/redis/lib/model/node-collection.ts index 1a8b150782..8b0e794757 100644 --- a/lib/redis/lib/model/node-collection.ts +++ b/lib/redis/lib/model/node-collection.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -15,7 +15,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The collection of Redis cluster nodes. + * The collection of cluster nodes. */ export interface NodeCollection { /** diff --git a/lib/redis/lib/model/node-summary.ts b/lib/redis/lib/model/node-summary.ts new file mode 100644 index 0000000000..1d361ff6a9 --- /dev/null +++ b/lib/redis/lib/model/node-summary.ts @@ -0,0 +1,54 @@ +/** + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). + * OpenAPI spec version: 20220315 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * The details of each node in the cluster. + */ +export interface NodeSummary { + /** + * The fully qualified domain name (FQDN) of the API endpoint to access a specific node. + */ + "privateEndpointFqdn": string; + /** + * The private IP address of the API endpoint to access a specific node. + */ + "privateEndpointIpAddress": string; + /** + * A user-friendly name of a cluster node. + */ + "displayName": string; + /** + * The OCID of the cluster + */ + "redisClusterId": string; + /** + * The shard number to which the node belongs to. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "shardNumber"?: number; +} + +export namespace NodeSummary { + export function getJsonObj(obj: NodeSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: NodeSummary): object { + const jsonObj = { ...obj, ...{} }; + + return jsonObj; + } +} diff --git a/lib/redis/lib/model/node.ts b/lib/redis/lib/model/node.ts index 14190f7124..965af4868e 100644 --- a/lib/redis/lib/model/node.ts +++ b/lib/redis/lib/model/node.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -15,7 +15,7 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The details of each node in the Redis cluster. + * The details of each node in the cluster. */ export interface Node { /** @@ -27,7 +27,7 @@ export interface Node { */ "privateEndpointIpAddress": string; /** - * A user-friendly name of a Redis cluster node. + * A user-friendly name of a cluster node. */ "displayName": string; } diff --git a/lib/redis/lib/model/operation-status.ts b/lib/redis/lib/model/operation-status.ts index 3e05a317ab..3bbf2e8741 100644 --- a/lib/redis/lib/model/operation-status.ts +++ b/lib/redis/lib/model/operation-status.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/model/operation-type.ts b/lib/redis/lib/model/operation-type.ts index 9725d61235..3a82377bfd 100644 --- a/lib/redis/lib/model/operation-type.ts +++ b/lib/redis/lib/model/operation-type.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/model/redis-cluster-collection.ts b/lib/redis/lib/model/redis-cluster-collection.ts index bd796f38c0..69c1804000 100644 --- a/lib/redis/lib/model/redis-cluster-collection.ts +++ b/lib/redis/lib/model/redis-cluster-collection.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -15,11 +15,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * A list of Redis clusters that match filter criteria, if any. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * A list of clusters that match filter criteria, if any. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). */ export interface RedisClusterCollection { /** - * The list of Redis clusters. + * The list of clusters. */ "items": Array; } diff --git a/lib/redis/lib/model/redis-cluster-summary.ts b/lib/redis/lib/model/redis-cluster-summary.ts index bfb4cd5f92..6dd15cfa7a 100644 --- a/lib/redis/lib/model/redis-cluster-summary.ts +++ b/lib/redis/lib/model/redis-cluster-summary.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -15,12 +15,12 @@ import * as model from "../model"; import common = require("oci-common"); /** - * Summary of information about a Redis cluster. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * Summary of information about a cluster. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). * */ export interface RedisClusterSummary { /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ "id": string; /** @@ -28,11 +28,11 @@ export interface RedisClusterSummary { */ "displayName": string; /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the Redis cluster. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the cluster. */ "compartmentId": string; /** - * The current state of the Redis cluster. + * The current state of the cluster. */ "lifecycleState"?: string; /** @@ -40,49 +40,57 @@ export interface RedisClusterSummary { */ "lifecycleDetails"?: string; /** - * The number of nodes in the Redis cluster. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "nodeCount": number; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * The amount of memory allocated to the cluster's nodes, in gigabytes. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "nodeMemoryInGBs": number; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node. */ "primaryFqdn": string; /** - * The private IP address of the API endpoint for the Redis cluster's primary node. + * The private IP address of the API endpoint for the cluster's primary node. */ "primaryEndpointIpAddress": string; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes. */ "replicasFqdn": string; /** - * The private IP address of the API endpoint for the Redis cluster's replica nodes. + * The private IP address of the API endpoint for the cluster's replica nodes. */ "replicasEndpointIpAddress": string; /** - * The Redis version that the cluster is running. + * The OCI Cache engine version that the cluster is running. */ "softwareVersion": string; /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster's subnet. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster's subnet. */ "subnetId": string; /** - * The date and time the Redis cluster was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + * The date and time the cluster was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ "timeCreated"?: Date; /** - * The date and time the Redis cluster was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + * The date and time the cluster was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ "timeUpdated"?: Date; + /** + * Specifies whether the cluster is sharded or non-sharded. + */ + "clusterMode"?: string; + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "shardCount"?: number; /** * A list of Network Security Group (NSG) [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) * associated with this cluster. For more information, - * see [Using an NSG for Redis Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * see [Using an NSG for Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * */ "nsgIds"?: Array; diff --git a/lib/redis/lib/model/redis-cluster.ts b/lib/redis/lib/model/redis-cluster.ts index 7a1e4b713f..04a0cc5edf 100644 --- a/lib/redis/lib/model/redis-cluster.ts +++ b/lib/redis/lib/model/redis-cluster.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -15,11 +15,11 @@ import * as model from "../model"; import common = require("oci-common"); /** - * A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](https://docs.cloud.oracle.com/iaas/Content/redis/home.htm). + * An OCI Cache cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.cloud.oracle.com/iaas/Content/ocicache/home.htm). */ export interface RedisCluster { /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ "id": string; /** @@ -27,11 +27,11 @@ export interface RedisCluster { */ "displayName": string; /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the Redis cluster. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the compartment that contains the cluster. */ "compartmentId": string; /** - * The current state of the Redis cluster. + * The current state of the cluster. */ "lifecycleState"?: RedisCluster.LifecycleState; /** @@ -39,50 +39,58 @@ export interface RedisCluster { */ "lifecycleDetails"?: string; /** - * The number of nodes in the Redis cluster. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "nodeCount": number; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * The amount of memory allocated to the cluster's nodes, in gigabytes. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "nodeMemoryInGBs": number; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's primary node. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's primary node. */ "primaryFqdn": string; /** - * The private IP address of the API endpoint for the Redis cluster's primary node. + * The private IP address of the API endpoint for the cluster's primary node. */ "primaryEndpointIpAddress": string; /** - * The fully qualified domain name (FQDN) of the API endpoint for the Redis cluster's replica nodes. + * The fully qualified domain name (FQDN) of the API endpoint for the cluster's replica nodes. */ "replicasFqdn": string; /** - * The private IP address of the API endpoint for the Redis cluster's replica nodes. + * The private IP address of the API endpoint for the cluster's replica nodes. */ "replicasEndpointIpAddress": string; /** - * The Redis version that the cluster is running. + * The OCI Cache engine version that the cluster is running. */ "softwareVersion": RedisCluster.SoftwareVersion; /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster's subnet. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster's subnet. */ "subnetId": string; /** - * The date and time the Redis cluster was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + * The date and time the cluster was created. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ "timeCreated"?: Date; /** - * The date and time the Redis cluster was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. + * The date and time the cluster was updated. An [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) formatted datetime string. */ "timeUpdated"?: Date; "nodeCollection": model.NodeCollection; + /** + * Specifies whether the cluster is sharded or non-sharded. + */ + "clusterMode"?: RedisCluster.ClusterMode; + /** + * The number of shards in a sharded cluster. Only applicable when clusterMode is SHARDED. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "shardCount"?: number; /** * A list of Network Security Group (NSG) [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) * associated with this cluster. For more information, - * see [Using an NSG for Redis Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * see [Using an NSG for Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * */ "nsgIds"?: Array; @@ -131,6 +139,16 @@ export namespace RedisCluster { UnknownValue = "UNKNOWN_VALUE" } + export enum ClusterMode { + Sharded = "SHARDED", + Nonsharded = "NONSHARDED", + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownValue = "UNKNOWN_VALUE" + } + export function getJsonObj(obj: RedisCluster): object { const jsonObj = { ...obj, diff --git a/lib/redis/lib/model/redis-node-collection.ts b/lib/redis/lib/model/redis-node-collection.ts new file mode 100644 index 0000000000..8d05d8e043 --- /dev/null +++ b/lib/redis/lib/model/redis-node-collection.ts @@ -0,0 +1,56 @@ +/** + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). + * OpenAPI spec version: 20220315 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * A list of nodes in a cluster that match filter criteria, if any. + */ +export interface RedisNodeCollection { + /** + * The list of nodes in a cluster. + */ + "items": Array; +} + +export namespace RedisNodeCollection { + export function getJsonObj(obj: RedisNodeCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.NodeSummary.getJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } + export function getDeserializedJsonObj(obj: RedisNodeCollection): object { + const jsonObj = { + ...obj, + ...{ + "items": obj.items + ? obj.items.map(item => { + return model.NodeSummary.getDeserializedJsonObj(item); + }) + : undefined + } + }; + + return jsonObj; + } +} diff --git a/lib/redis/lib/model/sort-order.ts b/lib/redis/lib/model/sort-order.ts index bb65ebe2c0..d828af2965 100644 --- a/lib/redis/lib/model/sort-order.ts +++ b/lib/redis/lib/model/sort-order.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/model/update-redis-cluster-details.ts b/lib/redis/lib/model/update-redis-cluster-details.ts index 8e1efd1538..d1b5f340a2 100644 --- a/lib/redis/lib/model/update-redis-cluster-details.ts +++ b/lib/redis/lib/model/update-redis-cluster-details.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -15,25 +15,29 @@ import * as model from "../model"; import common = require("oci-common"); /** - * The configuration to update for an existing Redis cluster. + * The configuration to update for an existing cluster. */ export interface UpdateRedisClusterDetails { + /** + * The number of shards in sharded cluster. Only applicable when clusterMode is SHARDED. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + */ + "shardCount"?: number; /** * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ "displayName"?: string; /** - * The number of nodes in the Redis cluster. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * The number of nodes per shard in the cluster when clusterMode is SHARDED. This is the total number of nodes when clusterMode is NONSHARDED. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "nodeCount"?: number; /** - * The amount of memory allocated to the Redis cluster's nodes, in gigabytes. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. + * The amount of memory allocated to the cluster's nodes, in gigabytes. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "nodeMemoryInGBs"?: number; /** * A list of Network Security Group (NSG) [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) * associated with this cluster. For more information, - * see [Using an NSG for Redis Clusters](https://docs.cloud.oracle.com/iaas/Content/redis/connecttorediscluster.htm#connecttorediscluster__networksecuritygroup). + * see [Using an NSG for Clusters](https://docs.cloud.oracle.com/iaas/Content/ocicache/connecttocluster.htm#connecttocluster__networksecuritygroup). * */ "nsgIds"?: Array; diff --git a/lib/redis/lib/model/work-request-error-collection.ts b/lib/redis/lib/model/work-request-error-collection.ts index d146101740..45fcc17ef7 100644 --- a/lib/redis/lib/model/work-request-error-collection.ts +++ b/lib/redis/lib/model/work-request-error-collection.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/model/work-request-error.ts b/lib/redis/lib/model/work-request-error.ts index 792039ac13..4ffa95c0d0 100644 --- a/lib/redis/lib/model/work-request-error.ts +++ b/lib/redis/lib/model/work-request-error.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/model/work-request-log-entry-collection.ts b/lib/redis/lib/model/work-request-log-entry-collection.ts index 19a9668c41..edba371bdd 100644 --- a/lib/redis/lib/model/work-request-log-entry-collection.ts +++ b/lib/redis/lib/model/work-request-log-entry-collection.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/model/work-request-log-entry.ts b/lib/redis/lib/model/work-request-log-entry.ts index a662a1ef29..98a894b33f 100644 --- a/lib/redis/lib/model/work-request-log-entry.ts +++ b/lib/redis/lib/model/work-request-log-entry.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/model/work-request-resource.ts b/lib/redis/lib/model/work-request-resource.ts index ed949e9130..d20814a971 100644 --- a/lib/redis/lib/model/work-request-resource.ts +++ b/lib/redis/lib/model/work-request-resource.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/model/work-request-summary-collection.ts b/lib/redis/lib/model/work-request-summary-collection.ts index fbfa57552f..fb8c0d3840 100644 --- a/lib/redis/lib/model/work-request-summary-collection.ts +++ b/lib/redis/lib/model/work-request-summary-collection.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/model/work-request-summary.ts b/lib/redis/lib/model/work-request-summary.ts index 2ad89b3503..7336205fd1 100644 --- a/lib/redis/lib/model/work-request-summary.ts +++ b/lib/redis/lib/model/work-request-summary.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/model/work-request.ts b/lib/redis/lib/model/work-request.ts index 21f3f7dafd..1e9b128393 100644 --- a/lib/redis/lib/model/work-request.ts +++ b/lib/redis/lib/model/work-request.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/rediscluster-waiter.ts b/lib/redis/lib/rediscluster-waiter.ts index dfe3eb76ec..9826afdc78 100644 --- a/lib/redis/lib/rediscluster-waiter.ts +++ b/lib/redis/lib/rediscluster-waiter.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * diff --git a/lib/redis/lib/request/change-redis-cluster-compartment-request.ts b/lib/redis/lib/request/change-redis-cluster-compartment-request.ts index e0c3c5961e..2ecf56c38b 100644 --- a/lib/redis/lib/request/change-redis-cluster-compartment-request.ts +++ b/lib/redis/lib/request/change-redis-cluster-compartment-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface ChangeRedisClusterCompartmentRequest extends common.BaseRequest { /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ "redisClusterId": string; /** diff --git a/lib/redis/lib/request/create-redis-cluster-request.ts b/lib/redis/lib/request/create-redis-cluster-request.ts index 8f887adc00..0c73f7c129 100644 --- a/lib/redis/lib/request/create-redis-cluster-request.ts +++ b/lib/redis/lib/request/create-redis-cluster-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface CreateRedisClusterRequest extends common.BaseRequest { /** - * Details for the new RedisCluster. + * Details for the new cluster. */ "createRedisClusterDetails": model.CreateRedisClusterDetails; /** diff --git a/lib/redis/lib/request/delete-redis-cluster-request.ts b/lib/redis/lib/request/delete-redis-cluster-request.ts index fe2b5cd2d7..983470d043 100644 --- a/lib/redis/lib/request/delete-redis-cluster-request.ts +++ b/lib/redis/lib/request/delete-redis-cluster-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface DeleteRedisClusterRequest extends common.BaseRequest { /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ "redisClusterId": string; /** diff --git a/lib/redis/lib/request/get-redis-cluster-request.ts b/lib/redis/lib/request/get-redis-cluster-request.ts index 8d8195e8b7..412d347a00 100644 --- a/lib/redis/lib/request/get-redis-cluster-request.ts +++ b/lib/redis/lib/request/get-redis-cluster-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface GetRedisClusterRequest extends common.BaseRequest { /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ "redisClusterId": string; /** diff --git a/lib/redis/lib/request/index.ts b/lib/redis/lib/request/index.ts index ce28cb70a4..c1cfd4128a 100644 --- a/lib/redis/lib/request/index.ts +++ b/lib/redis/lib/request/index.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -23,6 +23,8 @@ import * as GetRedisClusterRequest from "./get-redis-cluster-request"; export import GetRedisClusterRequest = GetRedisClusterRequest.GetRedisClusterRequest; import * as GetWorkRequestRequest from "./get-work-request-request"; export import GetWorkRequestRequest = GetWorkRequestRequest.GetWorkRequestRequest; +import * as ListRedisClusterNodesRequest from "./list-redis-cluster-nodes-request"; +export import ListRedisClusterNodesRequest = ListRedisClusterNodesRequest.ListRedisClusterNodesRequest; import * as ListRedisClustersRequest from "./list-redis-clusters-request"; export import ListRedisClustersRequest = ListRedisClustersRequest.ListRedisClustersRequest; import * as ListWorkRequestErrorsRequest from "./list-work-request-errors-request"; diff --git a/lib/redis/lib/request/list-redis-cluster-nodes-request.ts b/lib/redis/lib/request/list-redis-cluster-nodes-request.ts new file mode 100644 index 0000000000..56855150d6 --- /dev/null +++ b/lib/redis/lib/request/list-redis-cluster-nodes-request.ts @@ -0,0 +1,57 @@ +/** + * + * + * OpenAPI spec version: 20220315 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +/** + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/redis/ListRedisClusterNodes.ts.html |here} to see how to use ListRedisClusterNodesRequest. + */ +export interface ListRedisClusterNodesRequest extends common.BaseRequest { + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. + */ + "redisClusterId": string; + /** + * A filter to return only resources that match the entire display name given. + */ + "displayName"?: string; + /** + * The maximum number of items to return. + */ + "limit"?: number; + /** + * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. + */ + "page"?: string; + /** + * The sort order to use, either 'ASC' or 'DESC'. + */ + "sortOrder"?: model.SortOrder; + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + * + */ + "sortBy"?: ListRedisClusterNodesRequest.SortBy; + /** + * The client request ID for tracing. + */ + "opcRequestId"?: string; +} + +export namespace ListRedisClusterNodesRequest { + export enum SortBy { + TimeCreated = "timeCreated", + DisplayName = "displayName" + } +} diff --git a/lib/redis/lib/request/list-redis-clusters-request.ts b/lib/redis/lib/request/list-redis-clusters-request.ts index e9da3e2a33..512b209a2d 100644 --- a/lib/redis/lib/request/list-redis-clusters-request.ts +++ b/lib/redis/lib/request/list-redis-clusters-request.ts @@ -31,7 +31,7 @@ export interface ListRedisClustersRequest extends common.BaseRequest { */ "displayName"?: string; /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ "id"?: string; /** diff --git a/lib/redis/lib/request/update-redis-cluster-request.ts b/lib/redis/lib/request/update-redis-cluster-request.ts index b959183cd9..a7e254535f 100644 --- a/lib/redis/lib/request/update-redis-cluster-request.ts +++ b/lib/redis/lib/request/update-redis-cluster-request.ts @@ -19,7 +19,7 @@ import common = require("oci-common"); */ export interface UpdateRedisClusterRequest extends common.BaseRequest { /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the Redis cluster. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ "redisClusterId": string; /** diff --git a/lib/redis/lib/response/index.ts b/lib/redis/lib/response/index.ts index 1048e7d8da..5acdadbae1 100644 --- a/lib/redis/lib/response/index.ts +++ b/lib/redis/lib/response/index.ts @@ -1,6 +1,6 @@ /** - * Redis Service API - * Use the Redis Service API to create and manage Redis clusters. A Redis cluster is a memory-based storage solution. For more information, see [OCI Caching Service with Redis](/iaas/Content/redis/home.htm). + * OCI Cache API + * Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache](/iaas/Content/ocicache/home.htm). * OpenAPI spec version: 20220315 * * @@ -23,6 +23,8 @@ import * as GetRedisClusterResponse from "./get-redis-cluster-response"; export import GetRedisClusterResponse = GetRedisClusterResponse.GetRedisClusterResponse; import * as GetWorkRequestResponse from "./get-work-request-response"; export import GetWorkRequestResponse = GetWorkRequestResponse.GetWorkRequestResponse; +import * as ListRedisClusterNodesResponse from "./list-redis-cluster-nodes-response"; +export import ListRedisClusterNodesResponse = ListRedisClusterNodesResponse.ListRedisClusterNodesResponse; import * as ListRedisClustersResponse from "./list-redis-clusters-response"; export import ListRedisClustersResponse = ListRedisClustersResponse.ListRedisClustersResponse; import * as ListWorkRequestErrorsResponse from "./list-work-request-errors-response"; diff --git a/lib/redis/lib/response/list-redis-cluster-nodes-response.ts b/lib/redis/lib/response/list-redis-cluster-nodes-response.ts new file mode 100644 index 0000000000..8e32be54bc --- /dev/null +++ b/lib/redis/lib/response/list-redis-cluster-nodes-response.ts @@ -0,0 +1,35 @@ +/** + * + * + * OpenAPI spec version: 20220315 + * + * + * NOTE: This class is auto generated by OracleSDKGenerator. + * Do not edit the class manually. + * + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +import * as model from "../model"; +import common = require("oci-common"); + +export interface ListRedisClusterNodesResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + "opcRequestId": string; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + "opcNextPage": string; + /** + * The returned model.RedisNodeCollection instance. + */ + "redisNodeCollection": model.RedisNodeCollection; +} diff --git a/lib/redis/package.json b/lib/redis/package.json index bbb8f51e32..cdff1af1a1 100644 --- a/lib/redis/package.json +++ b/lib/redis/package.json @@ -1,6 +1,6 @@ { "name": "oci-redis", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Redis Service", "repository": { "type": "git", diff --git a/lib/resourcemanager/package.json b/lib/resourcemanager/package.json index 9605b72139..5f11ab7a0b 100644 --- a/lib/resourcemanager/package.json +++ b/lib/resourcemanager/package.json @@ -1,6 +1,6 @@ { "name": "oci-resourcemanager", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Resource manager Service", "repository": { "type": "git", diff --git a/lib/resourcescheduler/package.json b/lib/resourcescheduler/package.json index ac50ff40fb..745278c999 100644 --- a/lib/resourcescheduler/package.json +++ b/lib/resourcescheduler/package.json @@ -1,6 +1,6 @@ { "name": "oci-resourcescheduler", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Resource Scheduler Service", "repository": { "type": "git", diff --git a/lib/resourcesearch/package.json b/lib/resourcesearch/package.json index e418d1f036..cc857cc8ad 100644 --- a/lib/resourcesearch/package.json +++ b/lib/resourcesearch/package.json @@ -1,6 +1,6 @@ { "name": "oci-resourcesearch", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for resource research Service", "repository": { "type": "git", diff --git a/lib/rover/package.json b/lib/rover/package.json index e042e450d4..55373d7c79 100644 --- a/lib/rover/package.json +++ b/lib/rover/package.json @@ -1,6 +1,6 @@ { "name": "oci-rover", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Rover Service", "repository": { "type": "git", diff --git a/lib/sch/package.json b/lib/sch/package.json index c242334e08..ccef700f81 100644 --- a/lib/sch/package.json +++ b/lib/sch/package.json @@ -1,6 +1,6 @@ { "name": "oci-sch", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Sch Service", "repository": { "type": "git", diff --git a/lib/secrets/package.json b/lib/secrets/package.json index 8f7ef01460..f35de5948c 100644 --- a/lib/secrets/package.json +++ b/lib/secrets/package.json @@ -1,6 +1,6 @@ { "name": "oci-secrets", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Secrets Service", "repository": { "type": "git", diff --git a/lib/servicecatalog/package.json b/lib/servicecatalog/package.json index 178a07f1d9..cdbc2fc73b 100644 --- a/lib/servicecatalog/package.json +++ b/lib/servicecatalog/package.json @@ -1,6 +1,6 @@ { "name": "oci-servicecatalog", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Service Catalog Service", "repository": { "type": "git", diff --git a/lib/servicemanagerproxy/package.json b/lib/servicemanagerproxy/package.json index 49be8821f7..5636e146f2 100644 --- a/lib/servicemanagerproxy/package.json +++ b/lib/servicemanagerproxy/package.json @@ -1,6 +1,6 @@ { "name": "oci-servicemanagerproxy", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Service Manager Proxy Service", "repository": { "type": "git", diff --git a/lib/servicemesh/package.json b/lib/servicemesh/package.json index 55e7a48c69..ce49e5b03f 100644 --- a/lib/servicemesh/package.json +++ b/lib/servicemesh/package.json @@ -1,6 +1,6 @@ { "name": "oci-servicemesh", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Service Mesh Service", "repository": { "type": "git", diff --git a/lib/stackmonitoring/package.json b/lib/stackmonitoring/package.json index a0fbbfb1e8..0754483b53 100644 --- a/lib/stackmonitoring/package.json +++ b/lib/stackmonitoring/package.json @@ -1,6 +1,6 @@ { "name": "oci-stackmonitoring", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Stack Monitoring Service", "repository": { "type": "git", diff --git a/lib/streaming/package.json b/lib/streaming/package.json index d1c25774cc..7bb04bf921 100644 --- a/lib/streaming/package.json +++ b/lib/streaming/package.json @@ -1,6 +1,6 @@ { "name": "oci-streaming", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Streaming", "repository": { "type": "git", diff --git a/lib/tenantmanagercontrolplane/package.json b/lib/tenantmanagercontrolplane/package.json index 32ad0f64e9..8e79a2ccb5 100644 --- a/lib/tenantmanagercontrolplane/package.json +++ b/lib/tenantmanagercontrolplane/package.json @@ -1,6 +1,6 @@ { "name": "oci-tenantmanagercontrolplane", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Tenant Manager Control Plane Service", "repository": { "type": "git", diff --git a/lib/threatintelligence/package.json b/lib/threatintelligence/package.json index fd4589a4ee..b76aa44968 100644 --- a/lib/threatintelligence/package.json +++ b/lib/threatintelligence/package.json @@ -1,6 +1,6 @@ { "name": "oci-threatintelligence", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Threat Intelligence Service", "repository": { "type": "git", diff --git a/lib/usage/package.json b/lib/usage/package.json index 8a0d7b718a..d6e6839a95 100644 --- a/lib/usage/package.json +++ b/lib/usage/package.json @@ -1,6 +1,6 @@ { "name": "oci-usage", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Usage Service", "repository": { "type": "git", diff --git a/lib/usageapi/package.json b/lib/usageapi/package.json index fd276e2a24..4b488df63c 100644 --- a/lib/usageapi/package.json +++ b/lib/usageapi/package.json @@ -1,6 +1,6 @@ { "name": "oci-usageapi", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Usage Api Service", "repository": { "type": "git", diff --git a/lib/vault/package.json b/lib/vault/package.json index 224baa191f..7e5034a419 100644 --- a/lib/vault/package.json +++ b/lib/vault/package.json @@ -1,6 +1,6 @@ { "name": "oci-vault", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Vault Service", "repository": { "type": "git", diff --git a/lib/vbsinst/package.json b/lib/vbsinst/package.json index 2819f648ea..07d32c02c8 100644 --- a/lib/vbsinst/package.json +++ b/lib/vbsinst/package.json @@ -1,6 +1,6 @@ { "name": "oci-vbsinst", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Vbs Inst Service", "repository": { "type": "git", diff --git a/lib/visualbuilder/package.json b/lib/visualbuilder/package.json index 808a2e798d..9962595a60 100644 --- a/lib/visualbuilder/package.json +++ b/lib/visualbuilder/package.json @@ -1,6 +1,6 @@ { "name": "oci-visualbuilder", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Visual Builder Service", "repository": { "type": "git", diff --git a/lib/vnmonitoring/package.json b/lib/vnmonitoring/package.json index 307ee490f4..c9ff077947 100644 --- a/lib/vnmonitoring/package.json +++ b/lib/vnmonitoring/package.json @@ -1,6 +1,6 @@ { "name": "oci-vnmonitoring", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Vn Monitoring Service", "repository": { "type": "git", diff --git a/lib/vulnerabilityscanning/package.json b/lib/vulnerabilityscanning/package.json index 5466cde7b7..5174e701b6 100644 --- a/lib/vulnerabilityscanning/package.json +++ b/lib/vulnerabilityscanning/package.json @@ -1,6 +1,6 @@ { "name": "oci-vulnerabilityscanning", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Vulnerability Scanning Service", "repository": { "type": "git", diff --git a/lib/waa/package.json b/lib/waa/package.json index 3d380520c3..636a134b5a 100644 --- a/lib/waa/package.json +++ b/lib/waa/package.json @@ -1,6 +1,6 @@ { "name": "oci-waa", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Waa Service", "repository": { "type": "git", diff --git a/lib/waas/package.json b/lib/waas/package.json index dfab8e0d29..9daafef957 100644 --- a/lib/waas/package.json +++ b/lib/waas/package.json @@ -1,6 +1,6 @@ { "name": "oci-waas", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for WAAS", "repository": { "type": "git", diff --git a/lib/waf/package.json b/lib/waf/package.json index f76016d5bc..e1490b7bf3 100644 --- a/lib/waf/package.json +++ b/lib/waf/package.json @@ -1,6 +1,6 @@ { "name": "oci-waf", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for Waf Service", "repository": { "type": "git", diff --git a/lib/workrequests/package.json b/lib/workrequests/package.json index 25f0b4a79e..31ed55fc69 100644 --- a/lib/workrequests/package.json +++ b/lib/workrequests/package.json @@ -1,6 +1,6 @@ { "name": "oci-workrequests", - "version": "2.91.1", + "version": "2.92.0", "description": "OCI NodeJS client for WorkRequests", "repository": { "type": "git", diff --git a/package.json b/package.json index 863590a8ab..2b5316e379 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oci-sdk", - "version": "2.91.1", + "version": "2.92.0", "author": { "name": "Oracle Cloud Infrastructure", "email": "" @@ -163,7 +163,8 @@ "oci-clusterplacementgroups": "file:lib/clusterplacementgroups", "oci-marketplaceprivateoffer": "file:lib/marketplaceprivateoffer", "oci-resourcescheduler": "file:lib/resourcescheduler", - "oci-demandsignal": "file:lib/demandsignal" + "oci-demandsignal": "file:lib/demandsignal", + "oci-fleetappsmanagement": "file:lib/fleetappsmanagement" }, "publishConfig": { "registry": "https://registry.npmjs.org"