oci-objectstorage 2.91.1 → 2.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/lib/client.d.ts +94 -2
  2. package/lib/client.js +411 -2
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/access-target-details.d.ts +39 -0
  5. package/lib/model/access-target-details.js +32 -0
  6. package/lib/model/access-target-details.js.map +1 -0
  7. package/lib/model/create-private-endpoint-details.d.ts +96 -0
  8. package/lib/model/create-private-endpoint-details.js +64 -0
  9. package/lib/model/create-private-endpoint-details.js.map +1 -0
  10. package/lib/model/fqdns.d.ts +34 -0
  11. package/lib/model/fqdns.js +65 -0
  12. package/lib/model/fqdns.js.map +1 -0
  13. package/lib/model/index.d.ts +14 -0
  14. package/lib/model/index.js +16 -1
  15. package/lib/model/index.js.map +1 -1
  16. package/lib/model/prefix-fqdns.d.ts +40 -0
  17. package/lib/model/prefix-fqdns.js +32 -0
  18. package/lib/model/prefix-fqdns.js.map +1 -0
  19. package/lib/model/private-endpoint-summary.d.ts +70 -0
  20. package/lib/model/private-endpoint-summary.js +56 -0
  21. package/lib/model/private-endpoint-summary.js.map +1 -0
  22. package/lib/model/private-endpoint.d.ts +140 -0
  23. package/lib/model/private-endpoint.js +81 -0
  24. package/lib/model/private-endpoint.js.map +1 -0
  25. package/lib/model/update-private-endpoint-details.d.ts +62 -0
  26. package/lib/model/update-private-endpoint-details.js +64 -0
  27. package/lib/model/update-private-endpoint-details.js.map +1 -0
  28. package/lib/model/work-request-resource-metadata-key.d.ts +2 -1
  29. package/lib/model/work-request-resource-metadata-key.js +1 -0
  30. package/lib/model/work-request-resource-metadata-key.js.map +1 -1
  31. package/lib/model/work-request-summary.d.ts +3 -0
  32. package/lib/model/work-request-summary.js +3 -0
  33. package/lib/model/work-request-summary.js.map +1 -1
  34. package/lib/model/work-request.d.ts +3 -0
  35. package/lib/model/work-request.js +3 -0
  36. package/lib/model/work-request.js.map +1 -1
  37. package/lib/objectstorage-waiter.d.ts +9 -0
  38. package/lib/objectstorage-waiter.js +32 -0
  39. package/lib/objectstorage-waiter.js.map +1 -1
  40. package/lib/request/create-private-endpoint-request.d.ts +31 -0
  41. package/lib/request/create-private-endpoint-request.js +15 -0
  42. package/lib/request/create-private-endpoint-request.js.map +1 -0
  43. package/lib/request/delete-private-endpoint-request.d.ts +39 -0
  44. package/lib/request/delete-private-endpoint-request.js +15 -0
  45. package/lib/request/delete-private-endpoint-request.js.map +1 -0
  46. package/lib/request/get-private-endpoint-request.d.ts +46 -0
  47. package/lib/request/get-private-endpoint-request.js +15 -0
  48. package/lib/request/get-private-endpoint-request.js.map +1 -0
  49. package/lib/request/index.d.ts +10 -0
  50. package/lib/request/index.js +3 -1
  51. package/lib/request/index.js.map +1 -1
  52. package/lib/request/list-object-versions-request.d.ts +3 -3
  53. package/lib/request/list-objects-request.d.ts +3 -3
  54. package/lib/request/list-private-endpoints-request.d.ts +60 -0
  55. package/lib/request/list-private-endpoints-request.js +23 -0
  56. package/lib/request/list-private-endpoints-request.js.map +1 -0
  57. package/lib/request/list-work-requests-request.d.ts +4 -0
  58. package/lib/request/put-object-request.d.ts +1 -1
  59. package/lib/request/restore-objects-request.d.ts +1 -1
  60. package/lib/request/update-private-endpoint-request.d.ts +44 -0
  61. package/lib/request/update-private-endpoint-request.js +15 -0
  62. package/lib/request/update-private-endpoint-request.js.map +1 -0
  63. package/lib/request/upload-part-request.d.ts +1 -1
  64. package/lib/response/commit-multipart-upload-response.d.ts +1 -1
  65. package/lib/response/create-private-endpoint-response.d.ts +30 -0
  66. package/lib/response/create-private-endpoint-response.js +15 -0
  67. package/lib/response/create-private-endpoint-response.js.map +1 -0
  68. package/lib/response/delete-private-endpoint-response.d.ts +30 -0
  69. package/lib/response/delete-private-endpoint-response.js +15 -0
  70. package/lib/response/delete-private-endpoint-response.js.map +1 -0
  71. package/lib/response/get-private-endpoint-response.d.ts +40 -0
  72. package/lib/response/get-private-endpoint-response.js +15 -0
  73. package/lib/response/get-private-endpoint-response.js.map +1 -0
  74. package/lib/response/index.d.ts +10 -0
  75. package/lib/response/list-private-endpoints-response.d.ts +40 -0
  76. package/lib/response/list-private-endpoints-response.js +15 -0
  77. package/lib/response/list-private-endpoints-response.js.map +1 -0
  78. package/lib/response/put-object-response.d.ts +1 -1
  79. package/lib/response/update-private-endpoint-response.d.ts +30 -0
  80. package/lib/response/update-private-endpoint-response.js +15 -0
  81. package/lib/response/update-private-endpoint-response.js.map +1 -0
  82. package/package.json +3 -3
@@ -0,0 +1,140 @@
1
+ /**
2
+ * Object Storage Service API
3
+ * Use Object Storage and Archive Storage APIs to manage buckets, objects, and related resources.
4
+ For more information, see [Overview of Object Storage](/Content/Object/Concepts/objectstorageoverview.htm) and
5
+ [Overview of Archive Storage](/Content/Archive/Concepts/archivestorageoverview.htm).
6
+
7
+ * OpenAPI spec version: 20160918
8
+ * Contact: opc_casper_users_us_grp@oracle.com
9
+ *
10
+ * NOTE: This class is auto generated by OracleSDKGenerator.
11
+ * Do not edit the class manually.
12
+ *
13
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
14
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
15
+ */
16
+ import * as model from "../model";
17
+ /**
18
+ * A private endpoint makes your service accessible through a private IP in the customer's private network. A private endpoint has a name and is associated with a namespace and a single compartment.
19
+ *
20
+ */
21
+ export interface PrivateEndpoint {
22
+ /**
23
+ * This name associated with the endpoint. Valid characters are uppercase or lowercase letters, numbers, hyphens,
24
+ * underscores, and periods.
25
+ * Example: my-new-private-endpoint1
26
+ *
27
+ */
28
+ "name": string;
29
+ /**
30
+ * The Object Storage namespace associated with the private enpoint.
31
+ */
32
+ "namespace": string;
33
+ /**
34
+ * The compartment which is associated with the Private Endpoint.
35
+ */
36
+ "compartmentId": string;
37
+ /**
38
+ * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the user who created the Private Endpoint.
39
+ */
40
+ "createdBy": string;
41
+ /**
42
+ * The date and time the Private Endpoint was created, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29).
43
+ */
44
+ "timeCreated": Date;
45
+ /**
46
+ * The date and time the Private Endpoint was updated, as described in [RFC 2616](https://tools.ietf.org/html/rfc2616#section-14.29).
47
+ */
48
+ "timeModified": Date;
49
+ /**
50
+ * The OCID of the customer's subnet where the private endpoint VNIC will reside.
51
+ *
52
+ */
53
+ "subnetId": string;
54
+ /**
55
+ * The private IP address to assign to this private endpoint. If you provide a value,
56
+ * it must be an available IP address in the customer's subnet. If it's not available, an error
57
+ * is returned.
58
+ * <p>
59
+ If you do not provide a value, an available IP address in the subnet is automatically chosen.
60
+ *
61
+ */
62
+ "privateEndpointIp": string;
63
+ /**
64
+ * A prefix to use for the private endpoint. The customer VCN's DNS records are
65
+ * updated with this prefix. The prefix input from the customer will be the first sub-domain in the endpointFqdn.
66
+ * Example: If the prefix chosen is \"abc\", then the endpointFqdn will be 'abc.private.objectstorage.<region>.oraclecloud.com'
67
+ *
68
+ */
69
+ "prefix": string;
70
+ /**
71
+ * A list of additional prefix that you can provide along with any other prefix. These resulting endpointFqdn's are added to the
72
+ * customer VCN's DNS record.
73
+ *
74
+ */
75
+ "additionalPrefixes"?: Array<string>;
76
+ /**
77
+ * A list of the OCIDs of the network security groups (NSGs) to add the private endpoint's VNIC to.
78
+ * For more information about NSGs, see
79
+ * {@link NetworkSecurityGroup}.
80
+ *
81
+ */
82
+ "nsgIds"?: Array<string>;
83
+ "fqdns": model.Fqdns;
84
+ /**
85
+ * The entity tag (ETag) for the Private Endpoint.
86
+ */
87
+ "etag": string;
88
+ /**
89
+ * The Private Endpoint's lifecycle state.
90
+ */
91
+ "lifecycleState"?: PrivateEndpoint.LifecycleState;
92
+ /**
93
+ * A list of targets that can be accessed by the private endpoint. At least one or more access targets is required for a private endpoint.
94
+ *
95
+ */
96
+ "accessTargets": Array<model.AccessTargetDetails>;
97
+ /**
98
+ * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
99
+ * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
100
+ * Example: {@code {\"Department\": \"Finance\"}}
101
+ *
102
+ */
103
+ "freeformTags"?: {
104
+ [key: string]: string;
105
+ };
106
+ /**
107
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace.
108
+ * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
109
+ * Example: {@code {\"Operations\": {\"CostCenter\": \"42\"}}}
110
+ *
111
+ */
112
+ "definedTags"?: {
113
+ [key: string]: {
114
+ [key: string]: any;
115
+ };
116
+ };
117
+ /**
118
+ * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the PrivateEndpoint.
119
+ *
120
+ */
121
+ "id"?: string;
122
+ }
123
+ export declare namespace PrivateEndpoint {
124
+ enum LifecycleState {
125
+ Creating = "CREATING",
126
+ Active = "ACTIVE",
127
+ Inactive = "INACTIVE",
128
+ Updating = "UPDATING",
129
+ Deleting = "DELETING",
130
+ Deleted = "DELETED",
131
+ Failed = "FAILED",
132
+ /**
133
+ * This value is used if a service returns a value for this enum that is not recognized by this
134
+ * version of the SDK.
135
+ */
136
+ UnknownValue = "UNKNOWN_VALUE"
137
+ }
138
+ function getJsonObj(obj: PrivateEndpoint): object;
139
+ function getDeserializedJsonObj(obj: PrivateEndpoint): object;
140
+ }
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ /**
3
+ * Object Storage Service API
4
+ * Use Object Storage and Archive Storage APIs to manage buckets, objects, and related resources.
5
+ For more information, see [Overview of Object Storage](/Content/Object/Concepts/objectstorageoverview.htm) and
6
+ [Overview of Archive Storage](/Content/Archive/Concepts/archivestorageoverview.htm).
7
+
8
+ * OpenAPI spec version: 20160918
9
+ * Contact: opc_casper_users_us_grp@oracle.com
10
+ *
11
+ * NOTE: This class is auto generated by OracleSDKGenerator.
12
+ * Do not edit the class manually.
13
+ *
14
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
15
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
16
+ */
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.PrivateEndpoint = void 0;
38
+ const model = __importStar(require("../model"));
39
+ var PrivateEndpoint;
40
+ (function (PrivateEndpoint) {
41
+ let LifecycleState;
42
+ (function (LifecycleState) {
43
+ LifecycleState["Creating"] = "CREATING";
44
+ LifecycleState["Active"] = "ACTIVE";
45
+ LifecycleState["Inactive"] = "INACTIVE";
46
+ LifecycleState["Updating"] = "UPDATING";
47
+ LifecycleState["Deleting"] = "DELETING";
48
+ LifecycleState["Deleted"] = "DELETED";
49
+ LifecycleState["Failed"] = "FAILED";
50
+ /**
51
+ * This value is used if a service returns a value for this enum that is not recognized by this
52
+ * version of the SDK.
53
+ */
54
+ LifecycleState["UnknownValue"] = "UNKNOWN_VALUE";
55
+ })(LifecycleState = PrivateEndpoint.LifecycleState || (PrivateEndpoint.LifecycleState = {}));
56
+ function getJsonObj(obj) {
57
+ const jsonObj = Object.assign(Object.assign({}, obj), {
58
+ "fqdns": obj.fqdns ? model.Fqdns.getJsonObj(obj.fqdns) : undefined,
59
+ "accessTargets": obj.accessTargets
60
+ ? obj.accessTargets.map(item => {
61
+ return model.AccessTargetDetails.getJsonObj(item);
62
+ })
63
+ : undefined
64
+ });
65
+ return jsonObj;
66
+ }
67
+ PrivateEndpoint.getJsonObj = getJsonObj;
68
+ function getDeserializedJsonObj(obj) {
69
+ const jsonObj = Object.assign(Object.assign({}, obj), {
70
+ "fqdns": obj.fqdns ? model.Fqdns.getDeserializedJsonObj(obj.fqdns) : undefined,
71
+ "accessTargets": obj.accessTargets
72
+ ? obj.accessTargets.map(item => {
73
+ return model.AccessTargetDetails.getDeserializedJsonObj(item);
74
+ })
75
+ : undefined
76
+ });
77
+ return jsonObj;
78
+ }
79
+ PrivateEndpoint.getDeserializedJsonObj = getDeserializedJsonObj;
80
+ })(PrivateEndpoint = exports.PrivateEndpoint || (exports.PrivateEndpoint = {}));
81
+ //# sourceMappingURL=private-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private-endpoint.js","sourceRoot":"","sources":["../../../../../lib/objectstorage/lib/model/private-endpoint.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAwGlC,IAAiB,eAAe,CAgD/B;AAhDD,WAAiB,eAAe;IAC9B,IAAY,cAaX;IAbD,WAAY,cAAc;QACxB,uCAAqB,CAAA;QACrB,mCAAiB,CAAA;QACjB,uCAAqB,CAAA;QACrB,uCAAqB,CAAA;QACrB,uCAAqB,CAAA;QACrB,qCAAmB,CAAA;QACnB,mCAAiB,CAAA;QACjB;;;WAGG;QACH,gDAA8B,CAAA;IAChC,CAAC,EAbW,cAAc,GAAd,8BAAc,KAAd,8BAAc,QAazB;IAED,SAAgB,UAAU,CAAC,GAAoB;QAC7C,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;YAElE,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC3B,OAAO,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACpD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,0BAAU,aAezB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAoB;QACzD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,sBAAsB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;YAE9E,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC3B,OAAO,KAAK,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAChE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,sCAAsB,yBAerC,CAAA;AACH,CAAC,EAhDgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAgD/B"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Object Storage Service API
3
+ * Use Object Storage and Archive Storage APIs to manage buckets, objects, and related resources.
4
+ For more information, see [Overview of Object Storage](/Content/Object/Concepts/objectstorageoverview.htm) and
5
+ [Overview of Archive Storage](/Content/Archive/Concepts/archivestorageoverview.htm).
6
+
7
+ * OpenAPI spec version: 20160918
8
+ * Contact: opc_casper_users_us_grp@oracle.com
9
+ *
10
+ * NOTE: This class is auto generated by OracleSDKGenerator.
11
+ * Do not edit the class manually.
12
+ *
13
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
14
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
15
+ */
16
+ import * as model from "../model";
17
+ /**
18
+ * Information that can be updated for a private endpoint.
19
+ *
20
+ */
21
+ export interface UpdatePrivateEndpointDetails {
22
+ /**
23
+ * This name associated with the endpoint. Valid characters are uppercase or lowercase letters, numbers, hyphens,
24
+ * underscores, and periods.
25
+ * Example: my-new-private-endpoint1
26
+ *
27
+ */
28
+ "name"?: string;
29
+ /**
30
+ * The Object Storage namespace which will associated with the private endpoint.
31
+ */
32
+ "namespace"?: string;
33
+ /**
34
+ * A list of targets that can be accessed by the private endpoint.
35
+ *
36
+ */
37
+ "accessTargets"?: Array<model.AccessTargetDetails>;
38
+ /**
39
+ * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
40
+ * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
41
+ * Example: {@code {\"Department\": \"Finance\"}}
42
+ *
43
+ */
44
+ "freeformTags"?: {
45
+ [key: string]: string;
46
+ };
47
+ /**
48
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace.
49
+ * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
50
+ * Example: {@code {\"Operations\": {\"CostCenter\": \"42\"}}}
51
+ *
52
+ */
53
+ "definedTags"?: {
54
+ [key: string]: {
55
+ [key: string]: any;
56
+ };
57
+ };
58
+ }
59
+ export declare namespace UpdatePrivateEndpointDetails {
60
+ function getJsonObj(obj: UpdatePrivateEndpointDetails): object;
61
+ function getDeserializedJsonObj(obj: UpdatePrivateEndpointDetails): object;
62
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /**
3
+ * Object Storage Service API
4
+ * Use Object Storage and Archive Storage APIs to manage buckets, objects, and related resources.
5
+ For more information, see [Overview of Object Storage](/Content/Object/Concepts/objectstorageoverview.htm) and
6
+ [Overview of Archive Storage](/Content/Archive/Concepts/archivestorageoverview.htm).
7
+
8
+ * OpenAPI spec version: 20160918
9
+ * Contact: opc_casper_users_us_grp@oracle.com
10
+ *
11
+ * NOTE: This class is auto generated by OracleSDKGenerator.
12
+ * Do not edit the class manually.
13
+ *
14
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
15
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
16
+ */
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.UpdatePrivateEndpointDetails = void 0;
38
+ const model = __importStar(require("../model"));
39
+ var UpdatePrivateEndpointDetails;
40
+ (function (UpdatePrivateEndpointDetails) {
41
+ function getJsonObj(obj) {
42
+ const jsonObj = Object.assign(Object.assign({}, obj), {
43
+ "accessTargets": obj.accessTargets
44
+ ? obj.accessTargets.map(item => {
45
+ return model.AccessTargetDetails.getJsonObj(item);
46
+ })
47
+ : undefined
48
+ });
49
+ return jsonObj;
50
+ }
51
+ UpdatePrivateEndpointDetails.getJsonObj = getJsonObj;
52
+ function getDeserializedJsonObj(obj) {
53
+ const jsonObj = Object.assign(Object.assign({}, obj), {
54
+ "accessTargets": obj.accessTargets
55
+ ? obj.accessTargets.map(item => {
56
+ return model.AccessTargetDetails.getDeserializedJsonObj(item);
57
+ })
58
+ : undefined
59
+ });
60
+ return jsonObj;
61
+ }
62
+ UpdatePrivateEndpointDetails.getDeserializedJsonObj = getDeserializedJsonObj;
63
+ })(UpdatePrivateEndpointDetails = exports.UpdatePrivateEndpointDetails || (exports.UpdatePrivateEndpointDetails = {}));
64
+ //# sourceMappingURL=update-private-endpoint-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-private-endpoint-details.js","sourceRoot":"","sources":["../../../../../lib/objectstorage/lib/model/update-private-endpoint-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAwClC,IAAiB,4BAA4B,CA6B5C;AA7BD,WAAiB,4BAA4B;IAC3C,SAAgB,UAAU,CAAC,GAAiC;QAC1D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC3B,OAAO,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACpD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,uCAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAiC;QACtE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBAC3B,OAAO,KAAK,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAChE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,mDAAsB,yBAarC,CAAA;AACH,CAAC,EA7BgB,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QA6B5C"}
@@ -20,7 +20,8 @@ export declare enum WorkRequestResourceMetadataKey {
20
20
  Region = "REGION",
21
21
  Namespace = "NAMESPACE",
22
22
  Bucket = "BUCKET",
23
- Object = "OBJECT"
23
+ Object = "OBJECT",
24
+ PrivateEndpointName = "PRIVATE_ENDPOINT_NAME"
24
25
  }
25
26
  export declare namespace WorkRequestResourceMetadataKey {
26
27
  function getJsonObj(obj: WorkRequestResourceMetadataKey): WorkRequestResourceMetadataKey;
@@ -25,6 +25,7 @@ var WorkRequestResourceMetadataKey;
25
25
  WorkRequestResourceMetadataKey["Namespace"] = "NAMESPACE";
26
26
  WorkRequestResourceMetadataKey["Bucket"] = "BUCKET";
27
27
  WorkRequestResourceMetadataKey["Object"] = "OBJECT";
28
+ WorkRequestResourceMetadataKey["PrivateEndpointName"] = "PRIVATE_ENDPOINT_NAME";
28
29
  })(WorkRequestResourceMetadataKey = exports.WorkRequestResourceMetadataKey || (exports.WorkRequestResourceMetadataKey = {}));
29
30
  (function (WorkRequestResourceMetadataKey) {
30
31
  function getJsonObj(obj) {
@@ -1 +1 @@
1
- {"version":3,"file":"work-request-resource-metadata-key.js","sourceRoot":"","sources":["../../../../../lib/objectstorage/lib/model/work-request-resource-metadata-key.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAKH;;IAEI;AACJ,IAAY,8BAKX;AALD,WAAY,8BAA8B;IACxC,mDAAiB,CAAA;IACjB,yDAAuB,CAAA;IACvB,mDAAiB,CAAA;IACjB,mDAAiB,CAAA;AACnB,CAAC,EALW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAKzC;AAED,WAAiB,8BAA8B;IAC7C,SAAgB,UAAU,CAAC,GAAmC;QAC5D,OAAO,GAAG,CAAC;IACb,CAAC;IAFe,yCAAU,aAEzB,CAAA;IACD,SAAgB,sBAAsB,CACpC,GAAmC;QAEnC,OAAO,GAAG,CAAC;IACb,CAAC;IAJe,qDAAsB,yBAIrC,CAAA;AACH,CAAC,EATgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAS9C"}
1
+ {"version":3,"file":"work-request-resource-metadata-key.js","sourceRoot":"","sources":["../../../../../lib/objectstorage/lib/model/work-request-resource-metadata-key.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAKH;;IAEI;AACJ,IAAY,8BAMX;AAND,WAAY,8BAA8B;IACxC,mDAAiB,CAAA;IACjB,yDAAuB,CAAA;IACvB,mDAAiB,CAAA;IACjB,mDAAiB,CAAA;IACjB,+EAA6C,CAAA;AAC/C,CAAC,EANW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAMzC;AAED,WAAiB,8BAA8B;IAC7C,SAAgB,UAAU,CAAC,GAAmC;QAC5D,OAAO,GAAG,CAAC;IACb,CAAC;IAFe,yCAAU,aAEzB,CAAA;IACD,SAAgB,sBAAsB,CACpC,GAAmC;QAEnC,OAAO,GAAG,CAAC;IACb,CAAC;IAJe,qDAAsB,yBAIrC,CAAA;AACH,CAAC,EATgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAS9C"}
@@ -68,6 +68,9 @@ export declare namespace WorkRequestSummary {
68
68
  enum OperationType {
69
69
  CopyObject = "COPY_OBJECT",
70
70
  Reencrypt = "REENCRYPT",
71
+ PrivateEndpointCreate = "PRIVATE_ENDPOINT_CREATE",
72
+ PrivateEndpointUpdate = "PRIVATE_ENDPOINT_UPDATE",
73
+ PrivateEndpointDelete = "PRIVATE_ENDPOINT_DELETE",
71
74
  /**
72
75
  * This value is used if a service returns a value for this enum that is not recognized by this
73
76
  * version of the SDK.
@@ -42,6 +42,9 @@ var WorkRequestSummary;
42
42
  (function (OperationType) {
43
43
  OperationType["CopyObject"] = "COPY_OBJECT";
44
44
  OperationType["Reencrypt"] = "REENCRYPT";
45
+ OperationType["PrivateEndpointCreate"] = "PRIVATE_ENDPOINT_CREATE";
46
+ OperationType["PrivateEndpointUpdate"] = "PRIVATE_ENDPOINT_UPDATE";
47
+ OperationType["PrivateEndpointDelete"] = "PRIVATE_ENDPOINT_DELETE";
45
48
  /**
46
49
  * This value is used if a service returns a value for this enum that is not recognized by this
47
50
  * version of the SDK.
@@ -1 +1 @@
1
- {"version":3,"file":"work-request-summary.js","sourceRoot":"","sources":["../../../../../lib/objectstorage/lib/model/work-request-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAsDlC,IAAiB,kBAAkB,CAqDlC;AArDD,WAAiB,kBAAkB;IACjC,IAAY,aAQX;IARD,WAAY,aAAa;QACvB,2CAA0B,CAAA;QAC1B,wCAAuB,CAAA;QACvB;;;WAGG;QACH,+CAA8B,CAAA;IAChC,CAAC,EARW,aAAa,GAAb,gCAAa,KAAb,gCAAa,QAQxB;IAED,IAAY,MAYX;IAZD,WAAY,MAAM;QAChB,+BAAqB,CAAA;QACrB,oCAA0B,CAAA;QAC1B,2BAAiB,CAAA;QACjB,iCAAuB,CAAA;QACvB,iCAAuB,CAAA;QACvB,+BAAqB,CAAA;QACrB;;;WAGG;QACH,wCAA8B,CAAA;IAChC,CAAC,EAZW,MAAM,GAAN,yBAAM,KAAN,yBAAM,QAYjB;IAED,SAAgB,UAAU,CAAC,GAAuB;QAChD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACpD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,6BAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAuB;QAC5D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAChE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,yCAAsB,yBAarC,CAAA;AACH,CAAC,EArDgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAqDlC"}
1
+ {"version":3,"file":"work-request-summary.js","sourceRoot":"","sources":["../../../../../lib/objectstorage/lib/model/work-request-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAsDlC,IAAiB,kBAAkB,CAwDlC;AAxDD,WAAiB,kBAAkB;IACjC,IAAY,aAWX;IAXD,WAAY,aAAa;QACvB,2CAA0B,CAAA;QAC1B,wCAAuB,CAAA;QACvB,kEAAiD,CAAA;QACjD,kEAAiD,CAAA;QACjD,kEAAiD,CAAA;QACjD;;;WAGG;QACH,+CAA8B,CAAA;IAChC,CAAC,EAXW,aAAa,GAAb,gCAAa,KAAb,gCAAa,QAWxB;IAED,IAAY,MAYX;IAZD,WAAY,MAAM;QAChB,+BAAqB,CAAA;QACrB,oCAA0B,CAAA;QAC1B,2BAAiB,CAAA;QACjB,iCAAuB,CAAA;QACvB,iCAAuB,CAAA;QACvB,+BAAqB,CAAA;QACrB;;;WAGG;QACH,wCAA8B,CAAA;IAChC,CAAC,EAZW,MAAM,GAAN,yBAAM,KAAN,yBAAM,QAYjB;IAED,SAAgB,UAAU,CAAC,GAAuB;QAChD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACpD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,6BAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAuB;QAC5D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAChE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,yCAAsB,yBAarC,CAAA;AACH,CAAC,EAxDgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAwDlC"}
@@ -68,6 +68,9 @@ export declare namespace WorkRequest {
68
68
  enum OperationType {
69
69
  CopyObject = "COPY_OBJECT",
70
70
  Reencrypt = "REENCRYPT",
71
+ PrivateEndpointCreate = "PRIVATE_ENDPOINT_CREATE",
72
+ PrivateEndpointUpdate = "PRIVATE_ENDPOINT_UPDATE",
73
+ PrivateEndpointDelete = "PRIVATE_ENDPOINT_DELETE",
71
74
  /**
72
75
  * This value is used if a service returns a value for this enum that is not recognized by this
73
76
  * version of the SDK.
@@ -42,6 +42,9 @@ var WorkRequest;
42
42
  (function (OperationType) {
43
43
  OperationType["CopyObject"] = "COPY_OBJECT";
44
44
  OperationType["Reencrypt"] = "REENCRYPT";
45
+ OperationType["PrivateEndpointCreate"] = "PRIVATE_ENDPOINT_CREATE";
46
+ OperationType["PrivateEndpointUpdate"] = "PRIVATE_ENDPOINT_UPDATE";
47
+ OperationType["PrivateEndpointDelete"] = "PRIVATE_ENDPOINT_DELETE";
45
48
  /**
46
49
  * This value is used if a service returns a value for this enum that is not recognized by this
47
50
  * version of the SDK.
@@ -1 +1 @@
1
- {"version":3,"file":"work-request.js","sourceRoot":"","sources":["../../../../../lib/objectstorage/lib/model/work-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAsDlC,IAAiB,WAAW,CAqD3B;AArDD,WAAiB,WAAW;IAC1B,IAAY,aAQX;IARD,WAAY,aAAa;QACvB,2CAA0B,CAAA;QAC1B,wCAAuB,CAAA;QACvB;;;WAGG;QACH,+CAA8B,CAAA;IAChC,CAAC,EARW,aAAa,GAAb,yBAAa,KAAb,yBAAa,QAQxB;IAED,IAAY,MAYX;IAZD,WAAY,MAAM;QAChB,+BAAqB,CAAA;QACrB,oCAA0B,CAAA;QAC1B,2BAAiB,CAAA;QACjB,iCAAuB,CAAA;QACvB,iCAAuB,CAAA;QACvB,+BAAqB,CAAA;QACrB;;;WAGG;QACH,wCAA8B,CAAA;IAChC,CAAC,EAZW,MAAM,GAAN,kBAAM,KAAN,kBAAM,QAYjB;IAED,SAAgB,UAAU,CAAC,GAAgB;QACzC,MAAM,OAAO,mCACR,GAAG,GACH;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACpD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,sBAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAgB;QACrD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAChE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,kCAAsB,yBAarC,CAAA;AACH,CAAC,EArDgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAqD3B"}
1
+ {"version":3,"file":"work-request.js","sourceRoot":"","sources":["../../../../../lib/objectstorage/lib/model/work-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAsDlC,IAAiB,WAAW,CAwD3B;AAxDD,WAAiB,WAAW;IAC1B,IAAY,aAWX;IAXD,WAAY,aAAa;QACvB,2CAA0B,CAAA;QAC1B,wCAAuB,CAAA;QACvB,kEAAiD,CAAA;QACjD,kEAAiD,CAAA;QACjD,kEAAiD,CAAA;QACjD;;;WAGG;QACH,+CAA8B,CAAA;IAChC,CAAC,EAXW,aAAa,GAAb,yBAAa,KAAb,yBAAa,QAWxB;IAED,IAAY,MAYX;IAZD,WAAY,MAAM;QAChB,+BAAqB,CAAA;QACrB,oCAA0B,CAAA;QAC1B,2BAAiB,CAAA;QACjB,iCAAuB,CAAA;QACvB,iCAAuB,CAAA;QACvB,+BAAqB,CAAA;QACrB;;;WAGG;QACH,wCAA8B,CAAA;IAChC,CAAC,EAZW,MAAM,GAAN,kBAAM,KAAN,kBAAM,QAYjB;IAED,SAAgB,UAAU,CAAC,GAAgB;QACzC,MAAM,OAAO,mCACR,GAAG,GACH;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACpD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,sBAAU,aAazB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAgB;QACrD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACvB,OAAO,KAAK,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBAChE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAbe,kCAAsB,yBAarC,CAAA;AACH,CAAC,EAxDgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAwD3B"}
@@ -15,11 +15,20 @@ For more information, see [Overview of Object Storage](/Content/Object/Concepts/
15
15
  */
16
16
  import * as serviceRequests from "./request";
17
17
  import * as serviceResponses from "./response";
18
+ import * as models from "./model";
18
19
  import { ObjectStorageClient } from "./client";
19
20
  export declare class ObjectStorageWaiter {
20
21
  private client;
21
22
  private readonly config?;
22
23
  constructor(client: ObjectStorageClient, config?: Partial<import("oci-common/lib/waiter").WaiterConfigurationDetails> | undefined);
24
+ /**
25
+ * Waits forPrivateEndpoint till it reaches any of the provided states
26
+ *
27
+ * @param request the request to send
28
+ * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
29
+ * @return response returns GetPrivateEndpointResponse | null (null in case of 404 response)
30
+ */
31
+ forPrivateEndpoint(request: serviceRequests.GetPrivateEndpointRequest, ...targetStates: models.PrivateEndpoint.LifecycleState[]): Promise<serviceResponses.GetPrivateEndpointResponse | null>;
23
32
  /**
24
33
  * Waits forWorkRequest
25
34
  *
@@ -14,6 +14,25 @@ For more information, see [Overview of Object Storage](/Content/Object/Concepts/
14
14
  * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
15
15
  * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
16
16
  */
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
17
36
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
37
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
38
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -25,12 +44,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
25
44
  };
26
45
  Object.defineProperty(exports, "__esModule", { value: true });
27
46
  exports.ObjectStorageWaiter = void 0;
47
+ const models = __importStar(require("./model"));
28
48
  const oci_common_1 = require("oci-common");
29
49
  class ObjectStorageWaiter {
30
50
  constructor(client, config) {
31
51
  this.client = client;
32
52
  this.config = config;
33
53
  }
54
+ /**
55
+ * Waits forPrivateEndpoint till it reaches any of the provided states
56
+ *
57
+ * @param request the request to send
58
+ * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
59
+ * @return response returns GetPrivateEndpointResponse | null (null in case of 404 response)
60
+ */
61
+ forPrivateEndpoint(request, ...targetStates) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ return oci_common_1.genericTerminalConditionWaiter(this.config, () => this.client.getPrivateEndpoint(request), response => targetStates.includes(response.privateEndpoint.lifecycleState), targetStates.includes(models.PrivateEndpoint.LifecycleState.Deleted));
64
+ });
65
+ }
34
66
  /**
35
67
  * Waits forWorkRequest
36
68
  *
@@ -1 +1 @@
1
- {"version":3,"file":"objectstorage-waiter.js","sourceRoot":"","sources":["../../../../lib/objectstorage/lib/objectstorage-waiter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;AAMH,2CAAgG;AAEhG,MAAa,mBAAmB;IAC9B,YACU,MAA2B,EAClB,MAA4B;QADrC,WAAM,GAAN,MAAM,CAAqB;QAClB,WAAM,GAAN,MAAM,CAAsB;IAC5C,CAAC;IAEJ;;;;;OAKG;IACU,cAAc,CACzB,OAA8C;;YAE9C,OAAO,0BAAa,CAClB,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,EACzC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAC/D,CAAC;QACJ,CAAC;KAAA;CACF;AArBD,kDAqBC"}
1
+ {"version":3,"file":"objectstorage-waiter.js","sourceRoot":"","sources":["../../../../lib/objectstorage/lib/objectstorage-waiter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,gDAAkC;AAElC,2CAAgG;AAEhG,MAAa,mBAAmB;IAC9B,YACU,MAA2B,EAClB,MAA4B;QADrC,WAAM,GAAN,MAAM,CAAqB;QAClB,WAAM,GAAN,MAAM,CAAsB;IAC5C,CAAC;IAEJ;;;;;;OAMG;IACU,kBAAkB,CAC7B,OAAkD,EAClD,GAAG,YAAqD;;YAExD,OAAO,2CAA8B,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAC7C,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC,cAAe,CAAC,EAC3E,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,CACrE,CAAC;QACJ,CAAC;KAAA;IAED;;;;;OAKG;IACU,cAAc,CACzB,OAA8C;;YAE9C,OAAO,0BAAa,CAClB,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,EACzC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAC/D,CAAC;QACJ,CAAC;KAAA;CACF;AAxCD,kDAwCC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ *
3
+ *
4
+ * OpenAPI spec version: 20160918
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
11
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
12
+ */
13
+ import * as model from "../model";
14
+ import common = require("oci-common");
15
+ /**
16
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/CreatePrivateEndpoint.ts.html |here} to see how to use CreatePrivateEndpointRequest.
17
+ */
18
+ export interface CreatePrivateEndpointRequest extends common.BaseRequest {
19
+ /**
20
+ * The Object Storage namespace used for the request.
21
+ */
22
+ "namespaceName": string;
23
+ /**
24
+ * Details to create a private endpoint.
25
+ */
26
+ "createPrivateEndpointDetails": model.CreatePrivateEndpointDetails;
27
+ /**
28
+ * The client request ID for tracing.
29
+ */
30
+ "opcClientRequestId"?: string;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
5
+ * OpenAPI spec version: 20160918
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2024, 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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=create-private-endpoint-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-private-endpoint-request.js","sourceRoot":"","sources":["../../../../../lib/objectstorage/lib/request/create-private-endpoint-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ *
3
+ *
4
+ * OpenAPI spec version: 20160918
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OracleSDKGenerator.
8
+ * Do not edit the class manually.
9
+ *
10
+ * Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
11
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
12
+ */
13
+ import common = require("oci-common");
14
+ /**
15
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/DeletePrivateEndpoint.ts.html |here} to see how to use DeletePrivateEndpointRequest.
16
+ */
17
+ export interface DeletePrivateEndpointRequest extends common.BaseRequest {
18
+ /**
19
+ * The Object Storage namespace used for the request.
20
+ */
21
+ "namespaceName": string;
22
+ /**
23
+ * The name of the private endpoint. Avoid entering confidential information.
24
+ * Example: {@code my-new-pe-1}
25
+ *
26
+ */
27
+ "peName": string;
28
+ /**
29
+ * The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of
30
+ * the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload
31
+ * the resource.
32
+ *
33
+ */
34
+ "ifMatch"?: string;
35
+ /**
36
+ * The client request ID for tracing.
37
+ */
38
+ "opcClientRequestId"?: string;
39
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
5
+ * OpenAPI spec version: 20160918
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2024, 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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=delete-private-endpoint-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-private-endpoint-request.js","sourceRoot":"","sources":["../../../../../lib/objectstorage/lib/request/delete-private-endpoint-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}