You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
*/
5
+
6
+
/*
7
+
* This is an example shows how to integrate a logger with the SDK
8
+
*/
9
+
10
+
varidentity=require("oci-identity");
11
+
varcommon=require("oci-common");
12
+
varbunyan=require("bunyan");
13
+
14
+
// Integrate bunyan logger with the SDK. Make sure bunyan logger in installed.
15
+
// You can integrate with log4js, winston or any other logger as well.
Copy file name to clipboardExpand all lines: examples/typescript/audit.ts
+6-5
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
-
/*
2
-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3
-
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
-
coding: utf-8
5
-
This script retrieves all audit logs across an Oracle Cloud Infrastructure Tenancy.
1
+
/**
2
+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
*/
5
+
6
+
/* This script retrieves all audit logs across an Oracle Cloud Infrastructure Tenancy.
6
7
for a timespan defined by startTime and endTime.
7
8
This sample script retrieves Audit events for last 5 days.
Copy file name to clipboardExpand all lines: examples/typescript/database.ts
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
/**
2
2
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3
3
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
*/
4
5
5
-
@param args Arguments to provide to the example. The following arguments are expected:
6
+
/**
7
+
* @param args Arguments to provide to the example. The following arguments are expected:
6
8
* <ul>
7
9
* <li>The first argument is the OCID of the tenancy.</li>
8
10
* <li>The second argument is the OCID of the compartment.</li>
Copy file name to clipboardExpand all lines: examples/typescript/identity.ts
+5-3
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
1
/**
2
2
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3
3
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
-
5
-
This is an example where we will create a new user, a new group and assign that user to the group
6
-
We will then remove the user from the group, delete the group, delete the user.
4
+
*/
5
+
6
+
/**
7
+
* This is an example where we will create a new user, a new group and assign that user to the group
8
+
* We will then remove the user from the group, delete the group, delete the user.
Copy file name to clipboardExpand all lines: examples/typescript/launch_instance.ts
+2-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,8 @@
3
3
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
4
*/
5
5
6
-
/* @param args Arguments to provide to the example. The following arguments are expected:
6
+
/**
7
+
* @param args Arguments to provide to the example. The following arguments are expected:
7
8
* <ul>
8
9
* <li>The first argument is the OCID of the tenancy.</li>
9
10
* <li>The second argument is the OCID of the compartment.</li>
Copy file name to clipboardExpand all lines: examples/typescript/logging.ts
+4-2
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
/**
2
2
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3
3
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
-
5
-
This is an example shows how to integrate a logger with the SDK
4
+
*/
5
+
6
+
/**
7
+
* This is an example shows how to integrate a logger with the SDK
Copy file name to clipboardExpand all lines: examples/typescript/move-compartment.ts
+7-7
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@
3
3
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
4
*/
5
5
6
-
/*
7
-
This script provides an example on how to move a compartment to a different compartment
8
-
This script will:
9
-
* create cp_source_TSSDK under tenancy
10
-
* create cp_target_TSSDK under tenancy
11
-
* move cp_source_TSSDK under cp_target_TSSDK
12
-
*/
6
+
/**
7
+
* This script provides an example on how to move a compartment to a different compartment
Copy file name to clipboardExpand all lines: examples/typescript/objectstorage.ts
+2-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,8 @@
3
3
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
4
*/
5
5
6
-
/* @param args Arguments to provide to the example. The following arguments are expected:
6
+
/**
7
+
* @param args Arguments to provide to the example. The following arguments are expected:
7
8
* <ul>
8
9
* <li>The first argument is the OCID of the compartment.</li>
9
10
* <li>The second is the name of bucket to create and later fetch</li>
Copy file name to clipboardExpand all lines: examples/typescript/tagging.ts
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,11 @@
1
1
/**
2
2
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3
3
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
*/
4
5
5
-
This script provides an example on how to use tagging in the SDK for TypeScript to manage tags and tag namespaces,
6
+
/**
7
+
*
8
+
* This script provides an example on how to use tagging in the SDK for TypeScript to manage tags and tag namespaces,
6
9
as well as how to apply freeform and defined tags to a resource.
* NOTE: This class is auto generated by OracleSDKGenerator.
9
+
* Do not edit the class manually.
10
+
*
11
+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
12
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+
*/
14
+
15
+
import*asmodelfrom"../model";
16
+
importcommon= require("oci-common");
17
+
18
+
/**
19
+
* Input payload to update an Analytics instance endpoint details.
0 commit comments