@google-cloud/containeranalysis 5.3.0 → 5.4.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.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/@google-cloud/containeranalysis?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [5.4.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v5.3.0...containeranalysis-v5.4.0) (2024-03-29)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* [Many APIs] add several fields to manage state of database encryption update ([#5192](https://github.com/googleapis/google-cloud-node/issues/5192)) ([b926f13](https://github.com/googleapis/google-cloud-node/commit/b926f1326ea4df73c411dbeb7e529f8d9ccc3642))
|
|
13
|
+
|
|
7
14
|
## [5.3.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v5.2.0...containeranalysis-v5.3.0) (2024-03-23)
|
|
8
15
|
|
|
9
16
|
|
|
@@ -85,7 +85,7 @@ class ContainerAnalysisClient {
|
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
87
|
constructor(opts, gaxInstance) {
|
|
88
|
-
var _a, _b, _c, _d;
|
|
88
|
+
var _a, _b, _c, _d, _e;
|
|
89
89
|
this._terminated = false;
|
|
90
90
|
this.descriptors = {
|
|
91
91
|
page: {},
|
|
@@ -100,14 +100,17 @@ class ContainerAnalysisClient {
|
|
|
100
100
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
|
101
101
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
102
102
|
}
|
|
103
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
104
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
105
|
+
: undefined;
|
|
103
106
|
this._universeDomain =
|
|
104
|
-
(_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
|
|
107
|
+
(_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
|
105
108
|
this._servicePath = 'containeranalysis.' + this._universeDomain;
|
|
106
109
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
|
107
110
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
|
108
111
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
|
109
|
-
const clientConfig = (
|
|
110
|
-
const fallback = (
|
|
112
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
|
113
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
|
111
114
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
112
115
|
// Request numeric enum values if REST transport is used.
|
|
113
116
|
opts.numericEnums = true;
|
|
@@ -137,7 +140,7 @@ class ContainerAnalysisClient {
|
|
|
137
140
|
}
|
|
138
141
|
// Determine the client header string.
|
|
139
142
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
|
140
|
-
if (typeof process
|
|
143
|
+
if (typeof process === 'object' && 'versions' in process) {
|
|
141
144
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
142
145
|
}
|
|
143
146
|
else {
|
|
@@ -224,7 +227,7 @@ class ContainerAnalysisClient {
|
|
|
224
227
|
* @returns {string} The DNS address for this service.
|
|
225
228
|
*/
|
|
226
229
|
static get servicePath() {
|
|
227
|
-
if (typeof process
|
|
230
|
+
if (typeof process === 'object' &&
|
|
228
231
|
typeof process.emitWarning === 'function') {
|
|
229
232
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
230
233
|
}
|
|
@@ -236,7 +239,7 @@ class ContainerAnalysisClient {
|
|
|
236
239
|
* @returns {string} The DNS address for this service.
|
|
237
240
|
*/
|
|
238
241
|
static get apiEndpoint() {
|
|
239
|
-
if (typeof process
|
|
242
|
+
if (typeof process === 'object' &&
|
|
240
243
|
typeof process.emitWarning === 'function') {
|
|
241
244
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
242
245
|
}
|
|
@@ -84,7 +84,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
84
84
|
* ```
|
|
85
85
|
*/
|
|
86
86
|
constructor(opts, gaxInstance) {
|
|
87
|
-
var _a, _b, _c, _d;
|
|
87
|
+
var _a, _b, _c, _d, _e;
|
|
88
88
|
this._terminated = false;
|
|
89
89
|
this.descriptors = {
|
|
90
90
|
page: {},
|
|
@@ -100,14 +100,17 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
100
100
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
|
101
101
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
102
102
|
}
|
|
103
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
104
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
105
|
+
: undefined;
|
|
103
106
|
this._universeDomain =
|
|
104
|
-
(_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
|
|
107
|
+
(_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
|
105
108
|
this._servicePath = 'containeranalysis.' + this._universeDomain;
|
|
106
109
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
|
107
110
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
|
108
111
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
|
109
|
-
const clientConfig = (
|
|
110
|
-
const fallback = (
|
|
112
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
|
113
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
|
111
114
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
112
115
|
// Request numeric enum values if REST transport is used.
|
|
113
116
|
opts.numericEnums = true;
|
|
@@ -137,7 +140,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
137
140
|
}
|
|
138
141
|
// Determine the client header string.
|
|
139
142
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
|
140
|
-
if (typeof process
|
|
143
|
+
if (typeof process === 'object' && 'versions' in process) {
|
|
141
144
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
142
145
|
}
|
|
143
146
|
else {
|
|
@@ -217,7 +220,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
217
220
|
* @returns {string} The DNS address for this service.
|
|
218
221
|
*/
|
|
219
222
|
static get servicePath() {
|
|
220
|
-
if (typeof process
|
|
223
|
+
if (typeof process === 'object' &&
|
|
221
224
|
typeof process.emitWarning === 'function') {
|
|
222
225
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
223
226
|
}
|
|
@@ -229,7 +232,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
229
232
|
* @returns {string} The DNS address for this service.
|
|
230
233
|
*/
|
|
231
234
|
static get apiEndpoint() {
|
|
232
|
-
if (typeof process
|
|
235
|
+
if (typeof process === 'object' &&
|
|
233
236
|
typeof process.emitWarning === 'function') {
|
|
234
237
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
235
238
|
}
|
|
@@ -85,7 +85,7 @@ class GrafeasV1Beta1Client {
|
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
87
|
constructor(opts, gaxInstance) {
|
|
88
|
-
var _a, _b, _c, _d;
|
|
88
|
+
var _a, _b, _c, _d, _e;
|
|
89
89
|
this._terminated = false;
|
|
90
90
|
this.descriptors = {
|
|
91
91
|
page: {},
|
|
@@ -100,14 +100,17 @@ class GrafeasV1Beta1Client {
|
|
|
100
100
|
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
|
101
101
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
102
102
|
}
|
|
103
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
104
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
105
|
+
: undefined;
|
|
103
106
|
this._universeDomain =
|
|
104
|
-
(_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
|
|
107
|
+
(_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
|
|
105
108
|
this._servicePath = 'containeranalysis.' + this._universeDomain;
|
|
106
109
|
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
|
107
110
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
|
108
111
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
|
109
|
-
const clientConfig = (
|
|
110
|
-
const fallback = (
|
|
112
|
+
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
|
|
113
|
+
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
|
111
114
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
112
115
|
// Request numeric enum values if REST transport is used.
|
|
113
116
|
opts.numericEnums = true;
|
|
@@ -137,7 +140,7 @@ class GrafeasV1Beta1Client {
|
|
|
137
140
|
}
|
|
138
141
|
// Determine the client header string.
|
|
139
142
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
|
140
|
-
if (typeof process
|
|
143
|
+
if (typeof process === 'object' && 'versions' in process) {
|
|
141
144
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
142
145
|
}
|
|
143
146
|
else {
|
|
@@ -234,7 +237,7 @@ class GrafeasV1Beta1Client {
|
|
|
234
237
|
* @returns {string} The DNS address for this service.
|
|
235
238
|
*/
|
|
236
239
|
static get servicePath() {
|
|
237
|
-
if (typeof process
|
|
240
|
+
if (typeof process === 'object' &&
|
|
238
241
|
typeof process.emitWarning === 'function') {
|
|
239
242
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
240
243
|
}
|
|
@@ -246,7 +249,7 @@ class GrafeasV1Beta1Client {
|
|
|
246
249
|
* @returns {string} The DNS address for this service.
|
|
247
250
|
*/
|
|
248
251
|
static get apiEndpoint() {
|
|
249
|
-
if (typeof process
|
|
252
|
+
if (typeof process === 'object' &&
|
|
250
253
|
typeof process.emitWarning === 'function') {
|
|
251
254
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
252
255
|
}
|