// This is an automatically generated code sample. 
// To make this code sample work in your Oracle Cloud tenancy, 
// please replace the values for any parameters whose current values do not fit
// your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and 
// boolean, number, and enum parameters with values not fitting your use case).

import * as osmanagementhub from "oci-osmanagementhub";
import common = require("oci-common");

// Create a default authentication provider that uses the DEFAULT
// profile in the configuration file.
// Refer to <see href="https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File>the public documentation</see> on how to prepare a configuration file.

const provider: common.ConfigFileAuthenticationDetailsProvider = new common.ConfigFileAuthenticationDetailsProvider();

(async () => {
    try {
     // Create a service client
     const client = new osmanagementhub.ScheduledJobClient({ authenticationDetailsProvider: provider });

     // Create a request and dependent object(s).
	const listScheduledJobsRequest: osmanagementhub.requests.ListScheduledJobsRequest = { 
	compartmentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
	displayName: "EXAMPLE-displayName-Value",
	displayNameContains: "EXAMPLE-displayNameContains-Value",
	lifecycleState: osmanagementhub.models.ScheduledJob.LifecycleState.Deleting,
	managedInstanceId: "ocid1.test.oc1..<unique_ID>EXAMPLE-managedInstanceId-Value",
	managedInstanceGroupId: "ocid1.test.oc1..<unique_ID>EXAMPLE-managedInstanceGroupId-Value",
	managedCompartmentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-managedCompartmentId-Value",
	lifecycleStageId: "ocid1.test.oc1..<unique_ID>EXAMPLE-lifecycleStageId-Value",
	operationType: osmanagementhub.models.OperationTypes.InstallSecurityWindowsUpdates,
	scheduleType: osmanagementhub.models.ScheduleTypes.Recurring,
	timeStart: new Date("Mon Nov 01 00:03:13 UTC 2027"),
	timeEnd: new Date("Sat Aug 05 13:33:41 UTC 2034"),
	limit: 3,
	page: "EXAMPLE-page-Value",
	sortOrder: osmanagementhub.models.SortOrder.Asc,
	sortBy: osmanagementhub.requests.ListScheduledJobsRequest.SortBy.TimeCreated,
	opcRequestId: "HGZDJ9HTVK1ACCB1Q7MZ<unique_ID>",
	isRestricted: true,
	id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
	compartmentIdInSubtree: true,
	location: [osmanagementhub.models.ManagedInstanceLocation.Azure			],
	locationNotEqualTo: [osmanagementhub.models.ManagedInstanceLocation.OciCompute			],
	isManagedByAutonomousLinux: true,

		}; 


     // Send request to the Client.
     const listScheduledJobsResponse = await client.listScheduledJobs(listScheduledJobsRequest);
     }
     catch (error) {
         console.log("listScheduledJobs Failed with error  " + error);
     }
})();