oci-audit 2.76.1 → 2.77.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +10 -4
- package/lib/client.js +12 -3
- package/lib/client.js.map +1 -1
- package/lib/model/audit-event.d.ts +10 -10
- package/lib/model/configuration.d.ts +1 -1
- package/lib/model/data.d.ts +5 -5
- package/lib/model/identity.d.ts +6 -6
- package/lib/model/request.d.ts +2 -2
- package/lib/model/response.d.ts +2 -2
- package/lib/model/state-change.d.ts +2 -2
- package/lib/model/update-configuration-details.d.ts +1 -1
- package/lib/request/get-configuration-request.d.ts +1 -1
- package/lib/request/list-events-request.d.ts +7 -7
- package/lib/request/update-configuration-request.d.ts +1 -1
- package/lib/response/list-events-response.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import common = require("oci-common");
|
|
|
18
18
|
import * as requests from "./request";
|
|
19
19
|
import * as model from "./model";
|
|
20
20
|
import * as responses from "./response";
|
|
21
|
+
declare const Breaker: any;
|
|
21
22
|
export declare enum AuditApiKeys {
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
@@ -30,7 +31,7 @@ export declare class AuditClient {
|
|
|
30
31
|
protected "_endpoint": string;
|
|
31
32
|
protected "_defaultHeaders": any;
|
|
32
33
|
protected "_clientConfiguration": common.ClientConfiguration;
|
|
33
|
-
protected _circuitBreaker: null;
|
|
34
|
+
protected _circuitBreaker: typeof Breaker | null;
|
|
34
35
|
protected _httpOptions: any;
|
|
35
36
|
protected _bodyDuplexMode: any;
|
|
36
37
|
targetService: string;
|
|
@@ -70,13 +71,17 @@ export declare class AuditClient {
|
|
|
70
71
|
* @param regionId The public region ID.
|
|
71
72
|
*/
|
|
72
73
|
set regionId(regionId: string);
|
|
74
|
+
/**
|
|
75
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
76
|
+
*/
|
|
77
|
+
shutdownCircuitBreaker(): void;
|
|
73
78
|
/**
|
|
74
79
|
* Get the configuration
|
|
75
80
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
76
81
|
* @param GetConfigurationRequest
|
|
77
82
|
* @return GetConfigurationResponse
|
|
78
83
|
* @throws OciError when an error occurs
|
|
79
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
84
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/audit/GetConfiguration.ts.html |here} to see how to use GetConfiguration API.
|
|
80
85
|
*/
|
|
81
86
|
getConfiguration(getConfigurationRequest: requests.GetConfigurationRequest): Promise<responses.GetConfigurationResponse>;
|
|
82
87
|
/**
|
|
@@ -87,7 +92,7 @@ export declare class AuditClient {
|
|
|
87
92
|
* @param ListEventsRequest
|
|
88
93
|
* @return ListEventsResponse
|
|
89
94
|
* @throws OciError when an error occurs
|
|
90
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
95
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/audit/ListEvents.ts.html |here} to see how to use ListEvents API.
|
|
91
96
|
*/
|
|
92
97
|
listEvents(listEventsRequest: requests.ListEventsRequest): Promise<responses.ListEventsResponse>;
|
|
93
98
|
/**
|
|
@@ -128,7 +133,8 @@ export declare class AuditClient {
|
|
|
128
133
|
* @param UpdateConfigurationRequest
|
|
129
134
|
* @return UpdateConfigurationResponse
|
|
130
135
|
* @throws OciError when an error occurs
|
|
131
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
136
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/audit/UpdateConfiguration.ts.html |here} to see how to use UpdateConfiguration API.
|
|
132
137
|
*/
|
|
133
138
|
updateConfiguration(updateConfigurationRequest: requests.UpdateConfigurationRequest): Promise<responses.UpdateConfigurationResponse>;
|
|
134
139
|
}
|
|
140
|
+
export {};
|
package/lib/client.js
CHANGED
|
@@ -49,6 +49,7 @@ const common = require("oci-common");
|
|
|
49
49
|
const model = __importStar(require("./model"));
|
|
50
50
|
const oci_common_1 = require("oci-common");
|
|
51
51
|
const oci_common_2 = require("oci-common");
|
|
52
|
+
const Breaker = require("opossum");
|
|
52
53
|
// ===============================================
|
|
53
54
|
// This file is autogenerated - Please do not edit
|
|
54
55
|
// ===============================================
|
|
@@ -164,13 +165,21 @@ class AuditClient {
|
|
|
164
165
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AuditClient.serviceEndpointTemplate, regionId, AuditClient.endpointServiceName);
|
|
165
166
|
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
166
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
170
|
+
*/
|
|
171
|
+
shutdownCircuitBreaker() {
|
|
172
|
+
if (this._circuitBreaker) {
|
|
173
|
+
this._circuitBreaker.shutdown();
|
|
174
|
+
}
|
|
175
|
+
}
|
|
167
176
|
/**
|
|
168
177
|
* Get the configuration
|
|
169
178
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
170
179
|
* @param GetConfigurationRequest
|
|
171
180
|
* @return GetConfigurationResponse
|
|
172
181
|
* @throws OciError when an error occurs
|
|
173
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
182
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/audit/GetConfiguration.ts.html |here} to see how to use GetConfiguration API.
|
|
174
183
|
*/
|
|
175
184
|
getConfiguration(getConfigurationRequest) {
|
|
176
185
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -223,7 +232,7 @@ class AuditClient {
|
|
|
223
232
|
* @param ListEventsRequest
|
|
224
233
|
* @return ListEventsResponse
|
|
225
234
|
* @throws OciError when an error occurs
|
|
226
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
235
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/audit/ListEvents.ts.html |here} to see how to use ListEvents API.
|
|
227
236
|
*/
|
|
228
237
|
listEvents(listEventsRequest) {
|
|
229
238
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -329,7 +338,7 @@ class AuditClient {
|
|
|
329
338
|
* @param UpdateConfigurationRequest
|
|
330
339
|
* @return UpdateConfigurationResponse
|
|
331
340
|
* @throws OciError when an error occurs
|
|
332
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
341
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/audit/UpdateConfiguration.ts.html |here} to see how to use UpdateConfiguration API.
|
|
333
342
|
*/
|
|
334
343
|
updateConfiguration(updateConfigurationRequest) {
|
|
335
344
|
return __awaiter(this, void 0, void 0, function* () {
|
package/lib/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../lib/audit/lib/client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qCAAsC;AAEtC,+CAAiC;AAEjC,2CAAgE;AAChE,2CAKoB;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../lib/audit/lib/client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qCAAsC;AAEtC,+CAAiC;AAEjC,2CAAgE;AAChE,2CAKoB;AACpB,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAEnC,kDAAkD;AAClD,kDAAk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AAM,GAAG,CAAC;aACX;QACH,CAAC;KAAA;;AA7aH,kCA8aC;AA7akB,mCAAuB,GAAG,4CAA4C,CAAC;AACvE,+BAAmB,GAAG,EAAE,CAAC"}
|
|
@@ -24,10 +24,10 @@ export interface AuditEvent {
|
|
|
24
24
|
* The type of event that happened.
|
|
25
25
|
* <p>
|
|
26
26
|
The service that produces the event can also add, remove, or change the meaning of a field.
|
|
27
|
-
* A service implementing these type changes would publish a new version of an
|
|
28
|
-
* revise the
|
|
27
|
+
* A service implementing these type changes would publish a new version of an {@code eventType} and
|
|
28
|
+
* revise the {@code eventTypeVersion} field.
|
|
29
29
|
* <p>
|
|
30
|
-
Example:
|
|
30
|
+
Example: {@code com.oraclecloud.ComputeApi.GetInstance}
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
"eventType": string;
|
|
@@ -38,22 +38,22 @@ export interface AuditEvent {
|
|
|
38
38
|
* <p>
|
|
39
39
|
Audit uses version 0.1 specification of the CloudEvents event envelope.
|
|
40
40
|
* <p>
|
|
41
|
-
Example:
|
|
41
|
+
Example: {@code 0.1}
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
44
|
"cloudEventsVersion": string;
|
|
45
45
|
/**
|
|
46
46
|
* The version of the event type. This version applies to the payload of the event, not the envelope.
|
|
47
|
-
* Use
|
|
47
|
+
* Use {@code cloudEventsVersion} to determine the version of the envelope.
|
|
48
48
|
* <p>
|
|
49
|
-
Example:
|
|
49
|
+
Example: {@code 2.0}
|
|
50
50
|
*
|
|
51
51
|
*/
|
|
52
52
|
"eventTypeVersion": string;
|
|
53
53
|
/**
|
|
54
54
|
* The source of the event.
|
|
55
55
|
* <p>
|
|
56
|
-
Example:
|
|
56
|
+
Example: {@code ComputeApi}
|
|
57
57
|
*
|
|
58
58
|
*/
|
|
59
59
|
"source": string;
|
|
@@ -65,14 +65,14 @@ export interface AuditEvent {
|
|
|
65
65
|
/**
|
|
66
66
|
* The time the event occurred, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
67
67
|
* <p>
|
|
68
|
-
Example:
|
|
68
|
+
Example: {@code 2019-09-18T00:10:59.252Z}
|
|
69
69
|
*
|
|
70
70
|
*/
|
|
71
71
|
"eventTime": Date;
|
|
72
72
|
/**
|
|
73
|
-
* The content type of the data contained in
|
|
73
|
+
* The content type of the data contained in {@code data}.
|
|
74
74
|
* <p>
|
|
75
|
-
Example:
|
|
75
|
+
Example: {@code application/json}
|
|
76
76
|
*
|
|
77
77
|
*/
|
|
78
78
|
"contentType": string;
|
|
@@ -23,7 +23,7 @@ export interface Configuration {
|
|
|
23
23
|
/**
|
|
24
24
|
* The retention period setting, specified in days. The minimum is 90, the maximum 365.
|
|
25
25
|
* <p>
|
|
26
|
-
Example:
|
|
26
|
+
Example: {@code 90}
|
|
27
27
|
* Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
28
28
|
*/
|
|
29
29
|
"retentionPeriodDays"?: number;
|
package/lib/model/data.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ For more information, see [Overview of Audit](/iaas/Content/Audit/Concepts/audit
|
|
|
16
16
|
*/
|
|
17
17
|
import * as model from "../model";
|
|
18
18
|
/**
|
|
19
|
-
* The payload of the event. Information within
|
|
19
|
+
* The payload of the event. Information within {@code data} comes from the resource emitting the event.
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
export interface Data {
|
|
@@ -30,7 +30,7 @@ export interface Data {
|
|
|
30
30
|
/**
|
|
31
31
|
* Name of the API operation that generated this event.
|
|
32
32
|
* <p>
|
|
33
|
-
Example:
|
|
33
|
+
Example: {@code GetInstance}
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
36
|
"eventName"?: string;
|
|
@@ -45,7 +45,7 @@ export interface Data {
|
|
|
45
45
|
* This value can change, but the service logs the value that appeared at the time of the audit
|
|
46
46
|
* event.
|
|
47
47
|
* <p>
|
|
48
|
-
Example:
|
|
48
|
+
Example: {@code CompartmentA}
|
|
49
49
|
*
|
|
50
50
|
*/
|
|
51
51
|
"compartmentName"?: string;
|
|
@@ -70,7 +70,7 @@ export interface Data {
|
|
|
70
70
|
* type, or namespace. Exists for cross-compatibility only. For more information,
|
|
71
71
|
* see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
|
|
72
72
|
* <p>
|
|
73
|
-
Example:
|
|
73
|
+
Example: {@code {\"Department\": \"Finance\"}}
|
|
74
74
|
*
|
|
75
75
|
*/
|
|
76
76
|
"freeformTags"?: {
|
|
@@ -80,7 +80,7 @@ export interface Data {
|
|
|
80
80
|
* Defined tags for this resource. Each key is predefined and scoped to a namespace. For more
|
|
81
81
|
* information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
|
|
82
82
|
* <p>
|
|
83
|
-
Example:
|
|
83
|
+
Example: {@code {\"Operations\": {\"CostCenter\": \"42\"}}}
|
|
84
84
|
*
|
|
85
85
|
*/
|
|
86
86
|
"definedTags"?: {
|
package/lib/model/identity.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ For more information, see [Overview of Audit](/iaas/Content/Audit/Concepts/audit
|
|
|
20
20
|
*/
|
|
21
21
|
export interface Identity {
|
|
22
22
|
/**
|
|
23
|
-
* The name of the user or service. This value is the friendly name associated with
|
|
23
|
+
* The name of the user or service. This value is the friendly name associated with {@code principalId}.
|
|
24
24
|
* <p>
|
|
25
|
-
Example:
|
|
25
|
+
Example: {@code ExampleName}
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
"principalName"?: string;
|
|
@@ -34,12 +34,12 @@ export interface Identity {
|
|
|
34
34
|
/**
|
|
35
35
|
* The type of authentication used.
|
|
36
36
|
* <p>
|
|
37
|
-
Example:
|
|
37
|
+
Example: {@code natv}
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
40
|
"authType"?: string;
|
|
41
41
|
/**
|
|
42
|
-
* The name of the user or service. This value is the friendly name associated with
|
|
42
|
+
* The name of the user or service. This value is the friendly name associated with {@code callerId}.
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
45
|
"callerName"?: string;
|
|
@@ -57,7 +57,7 @@ export interface Identity {
|
|
|
57
57
|
/**
|
|
58
58
|
* The IP address of the source of the request.
|
|
59
59
|
* <p>
|
|
60
|
-
Example:
|
|
60
|
+
Example: {@code 172.24.80.88}
|
|
61
61
|
*
|
|
62
62
|
*/
|
|
63
63
|
"ipAddress"?: string;
|
|
@@ -70,7 +70,7 @@ export interface Identity {
|
|
|
70
70
|
/**
|
|
71
71
|
* The user agent of the client that made the request.
|
|
72
72
|
* <p>
|
|
73
|
-
Example:
|
|
73
|
+
Example: {@code Jersey/2.23 (HttpUrlConnection 1.8.0_212)}
|
|
74
74
|
*
|
|
75
75
|
*/
|
|
76
76
|
"userAgent"?: string;
|
package/lib/model/request.d.ts
CHANGED
|
@@ -27,14 +27,14 @@ export interface Request {
|
|
|
27
27
|
/**
|
|
28
28
|
* The full path of the API request.
|
|
29
29
|
* <p>
|
|
30
|
-
Example:
|
|
30
|
+
Example: {@code /20160918/instances/ocid1.instance.oc1.phx.<unique_ID>}
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
"path"?: string;
|
|
34
34
|
/**
|
|
35
35
|
* The HTTP method of the request.
|
|
36
36
|
* <p>
|
|
37
|
-
Example:
|
|
37
|
+
Example: {@code GET}
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
40
|
"action"?: string;
|
package/lib/model/response.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface Response {
|
|
|
22
22
|
/**
|
|
23
23
|
* The status code of the response.
|
|
24
24
|
* <p>
|
|
25
|
-
Example:
|
|
25
|
+
Example: {@code 200}
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
"status"?: string;
|
|
@@ -30,7 +30,7 @@ export interface Response {
|
|
|
30
30
|
* The time of the response to the audited request, expressed in
|
|
31
31
|
* [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
32
32
|
* <p>
|
|
33
|
-
Example:
|
|
33
|
+
Example: {@code 2019-09-18T00:10:59.278Z}
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
36
|
"responseTime"?: Date;
|
|
@@ -22,7 +22,7 @@ export interface StateChange {
|
|
|
22
22
|
/**
|
|
23
23
|
* Provides the previous state of fields that may have changed during an operation. To determine
|
|
24
24
|
* how the current operation changed a resource, compare the information in this attribute to
|
|
25
|
-
*
|
|
25
|
+
* {@code current}.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
"previous"?: {
|
|
@@ -31,7 +31,7 @@ export interface StateChange {
|
|
|
31
31
|
/**
|
|
32
32
|
* Provides the current state of fields that may have changed during an operation. To determine
|
|
33
33
|
* how the current operation changed a resource, compare the information in this attribute to
|
|
34
|
-
*
|
|
34
|
+
* {@code previous}.
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
"current"?: {
|
|
@@ -23,7 +23,7 @@ export interface UpdateConfigurationDetails {
|
|
|
23
23
|
/**
|
|
24
24
|
* The retention period setting, specified in days. The minimum is 90, the maximum 365.
|
|
25
25
|
* <p>
|
|
26
|
-
Example:
|
|
26
|
+
Example: {@code 90}
|
|
27
27
|
* Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
28
28
|
*/
|
|
29
29
|
"retentionPeriodDays": number;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import common = require("oci-common");
|
|
14
14
|
/**
|
|
15
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/audit/GetConfiguration.ts.html |here} to see how to use GetConfigurationRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface GetConfigurationRequest extends common.BaseRequest {
|
|
18
18
|
/**
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import common = require("oci-common");
|
|
14
14
|
/**
|
|
15
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/audit/ListEvents.ts.html |here} to see how to use ListEventsRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface ListEventsRequest extends common.BaseRequest {
|
|
18
18
|
/**
|
|
@@ -23,10 +23,10 @@ export interface ListEventsRequest extends common.BaseRequest {
|
|
|
23
23
|
* Returns events that were processed at or after this start date and time, expressed in
|
|
24
24
|
* [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
25
25
|
* <p>
|
|
26
|
-
For example, a start value of
|
|
26
|
+
For example, a start value of {@code 2017-01-15T11:30:00Z} will retrieve a list of all events processed
|
|
27
27
|
* since 30 minutes after the 11th hour of January 15, 2017, in Coordinated Universal Time (UTC).
|
|
28
28
|
* You can specify a value with granularity to the minute. Seconds (and milliseconds, if included) must
|
|
29
|
-
* be set to
|
|
29
|
+
* be set to {@code 0}.
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
32
32
|
"startTime": Date;
|
|
@@ -34,16 +34,16 @@ export interface ListEventsRequest extends common.BaseRequest {
|
|
|
34
34
|
* Returns events that were processed before this end date and time, expressed in
|
|
35
35
|
* [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
36
36
|
* <p>
|
|
37
|
-
For example, a start value of
|
|
37
|
+
For example, a start value of {@code 2017-01-01T00:00:00Z} and an end value of {@code 2017-01-02T00:00:00Z}
|
|
38
38
|
* will retrieve a list of all events processed on January 1, 2017. Similarly, a start value of
|
|
39
|
-
*
|
|
39
|
+
* {@code 2017-01-01T00:00:00Z} and an end value of {@code 2017-02-01T00:00:00Z} will result in a list of all
|
|
40
40
|
* events processed between January 1, 2017 and January 31, 2017. You can specify a value with
|
|
41
|
-
* granularity to the minute. Seconds (and milliseconds, if included) must be set to
|
|
41
|
+
* granularity to the minute. Seconds (and milliseconds, if included) must be set to {@code 0}.
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
44
|
"endTime": Date;
|
|
45
45
|
/**
|
|
46
|
-
* For list pagination. The value of the
|
|
46
|
+
* For list pagination. The value of the {@code opc-next-page} response header from the previous \"List\" call.
|
|
47
47
|
* For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import * as model from "../model";
|
|
14
14
|
import common = require("oci-common");
|
|
15
15
|
/**
|
|
16
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/audit/UpdateConfiguration.ts.html |here} to see how to use UpdateConfigurationRequest.
|
|
17
17
|
*/
|
|
18
18
|
export interface UpdateConfigurationRequest extends common.BaseRequest {
|
|
19
19
|
/**
|
|
@@ -14,7 +14,7 @@ import * as model from "../model";
|
|
|
14
14
|
export interface ListEventsResponse {
|
|
15
15
|
/**
|
|
16
16
|
* For pagination of a list of audit events. When this header appears in the response,
|
|
17
|
-
* it means you received a partial list and there are more results. Include this value as the
|
|
17
|
+
* it means you received a partial list and there are more results. Include this value as the {@code page}
|
|
18
18
|
* parameter for the subsequent ListEvents request to get the next batch of events. For important
|
|
19
19
|
* details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
20
20
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oci-audit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.77.1",
|
|
4
4
|
"description": "OCI NodeJS client for Audit Service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "(UPL-1.0 OR Apache-2.0)",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"oci-common": "2.
|
|
19
|
-
"oci-workrequests": "2.
|
|
18
|
+
"oci-common": "2.77.1",
|
|
19
|
+
"oci-workrequests": "2.77.1"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"registry": "https://registry.npmjs.org"
|