@google-cloud/containeranalysis 5.0.1 → 5.2.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 +26 -0
- package/README.md +46 -45
- package/build/protos/google/devtools/containeranalysis/v1beta1/containeranalysis.proto +23 -0
- package/build/protos/protos.d.ts +216 -1
- package/build/protos/protos.js +440 -1
- package/build/protos/protos.json +35 -0
- package/build/src/index.js +1 -1
- package/build/src/v1/container_analysis_client.d.ts +13 -5
- package/build/src/v1/container_analysis_client.js +40 -14
- package/build/src/v1beta1/container_analysis_v1_beta1_client.d.ts +37 -5
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js +62 -14
- package/build/src/v1beta1/container_analysis_v1_beta1_client_config.json +4 -0
- package/build/src/v1beta1/grafeas_v1_beta1_client.d.ts +13 -5
- package/build/src/v1beta1/grafeas_v1_beta1_client.js +40 -14
- package/package.json +12 -7
- package/build/src/v1/grafeas_client.d.ts +0 -764
- package/build/src/v1/grafeas_client.js +0 -928
- package/build/src/v1/grafeas_client_config.json +0 -82
package/build/protos/protos.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -58069,6 +58069,39 @@
|
|
|
58069
58069
|
* @variation 2
|
|
58070
58070
|
*/
|
|
58071
58071
|
|
|
58072
|
+
/**
|
|
58073
|
+
* Callback as used by {@link google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1|exportSBOM}.
|
|
58074
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1
|
|
58075
|
+
* @typedef ExportSBOMCallback
|
|
58076
|
+
* @type {function}
|
|
58077
|
+
* @param {Error|null} error Error, if any
|
|
58078
|
+
* @param {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} [response] ExportSBOMResponse
|
|
58079
|
+
*/
|
|
58080
|
+
|
|
58081
|
+
/**
|
|
58082
|
+
* Calls ExportSBOM.
|
|
58083
|
+
* @function exportSBOM
|
|
58084
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1
|
|
58085
|
+
* @instance
|
|
58086
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest} request ExportSBOMRequest message or plain object
|
|
58087
|
+
* @param {google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.ExportSBOMCallback} callback Node-style callback called with the error, if any, and ExportSBOMResponse
|
|
58088
|
+
* @returns {undefined}
|
|
58089
|
+
* @variation 1
|
|
58090
|
+
*/
|
|
58091
|
+
Object.defineProperty(ContainerAnalysisV1Beta1.prototype.exportSBOM = function exportSBOM(request, callback) {
|
|
58092
|
+
return this.rpcCall(exportSBOM, $root.google.devtools.containeranalysis.v1beta1.ExportSBOMRequest, $root.google.devtools.containeranalysis.v1beta1.ExportSBOMResponse, request, callback);
|
|
58093
|
+
}, "name", { value: "ExportSBOM" });
|
|
58094
|
+
|
|
58095
|
+
/**
|
|
58096
|
+
* Calls ExportSBOM.
|
|
58097
|
+
* @function exportSBOM
|
|
58098
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1
|
|
58099
|
+
* @instance
|
|
58100
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest} request ExportSBOMRequest message or plain object
|
|
58101
|
+
* @returns {Promise<google.devtools.containeranalysis.v1beta1.ExportSBOMResponse>} Promise
|
|
58102
|
+
* @variation 2
|
|
58103
|
+
*/
|
|
58104
|
+
|
|
58072
58105
|
return ContainerAnalysisV1Beta1;
|
|
58073
58106
|
})();
|
|
58074
58107
|
|
|
@@ -58764,6 +58797,412 @@
|
|
|
58764
58797
|
return PackagesSummaryResponse;
|
|
58765
58798
|
})();
|
|
58766
58799
|
|
|
58800
|
+
v1beta1.ExportSBOMRequest = (function() {
|
|
58801
|
+
|
|
58802
|
+
/**
|
|
58803
|
+
* Properties of an ExportSBOMRequest.
|
|
58804
|
+
* @memberof google.devtools.containeranalysis.v1beta1
|
|
58805
|
+
* @interface IExportSBOMRequest
|
|
58806
|
+
* @property {string|null} [name] ExportSBOMRequest name
|
|
58807
|
+
*/
|
|
58808
|
+
|
|
58809
|
+
/**
|
|
58810
|
+
* Constructs a new ExportSBOMRequest.
|
|
58811
|
+
* @memberof google.devtools.containeranalysis.v1beta1
|
|
58812
|
+
* @classdesc Represents an ExportSBOMRequest.
|
|
58813
|
+
* @implements IExportSBOMRequest
|
|
58814
|
+
* @constructor
|
|
58815
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest=} [properties] Properties to set
|
|
58816
|
+
*/
|
|
58817
|
+
function ExportSBOMRequest(properties) {
|
|
58818
|
+
if (properties)
|
|
58819
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58820
|
+
if (properties[keys[i]] != null)
|
|
58821
|
+
this[keys[i]] = properties[keys[i]];
|
|
58822
|
+
}
|
|
58823
|
+
|
|
58824
|
+
/**
|
|
58825
|
+
* ExportSBOMRequest name.
|
|
58826
|
+
* @member {string} name
|
|
58827
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58828
|
+
* @instance
|
|
58829
|
+
*/
|
|
58830
|
+
ExportSBOMRequest.prototype.name = "";
|
|
58831
|
+
|
|
58832
|
+
/**
|
|
58833
|
+
* Creates a new ExportSBOMRequest instance using the specified properties.
|
|
58834
|
+
* @function create
|
|
58835
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58836
|
+
* @static
|
|
58837
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest=} [properties] Properties to set
|
|
58838
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMRequest} ExportSBOMRequest instance
|
|
58839
|
+
*/
|
|
58840
|
+
ExportSBOMRequest.create = function create(properties) {
|
|
58841
|
+
return new ExportSBOMRequest(properties);
|
|
58842
|
+
};
|
|
58843
|
+
|
|
58844
|
+
/**
|
|
58845
|
+
* Encodes the specified ExportSBOMRequest message. Does not implicitly {@link google.devtools.containeranalysis.v1beta1.ExportSBOMRequest.verify|verify} messages.
|
|
58846
|
+
* @function encode
|
|
58847
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58848
|
+
* @static
|
|
58849
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest} message ExportSBOMRequest message or plain object to encode
|
|
58850
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58851
|
+
* @returns {$protobuf.Writer} Writer
|
|
58852
|
+
*/
|
|
58853
|
+
ExportSBOMRequest.encode = function encode(message, writer) {
|
|
58854
|
+
if (!writer)
|
|
58855
|
+
writer = $Writer.create();
|
|
58856
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
58857
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
58858
|
+
return writer;
|
|
58859
|
+
};
|
|
58860
|
+
|
|
58861
|
+
/**
|
|
58862
|
+
* Encodes the specified ExportSBOMRequest message, length delimited. Does not implicitly {@link google.devtools.containeranalysis.v1beta1.ExportSBOMRequest.verify|verify} messages.
|
|
58863
|
+
* @function encodeDelimited
|
|
58864
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58865
|
+
* @static
|
|
58866
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMRequest} message ExportSBOMRequest message or plain object to encode
|
|
58867
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58868
|
+
* @returns {$protobuf.Writer} Writer
|
|
58869
|
+
*/
|
|
58870
|
+
ExportSBOMRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58871
|
+
return this.encode(message, writer).ldelim();
|
|
58872
|
+
};
|
|
58873
|
+
|
|
58874
|
+
/**
|
|
58875
|
+
* Decodes an ExportSBOMRequest message from the specified reader or buffer.
|
|
58876
|
+
* @function decode
|
|
58877
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58878
|
+
* @static
|
|
58879
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58880
|
+
* @param {number} [length] Message length if known beforehand
|
|
58881
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMRequest} ExportSBOMRequest
|
|
58882
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58883
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58884
|
+
*/
|
|
58885
|
+
ExportSBOMRequest.decode = function decode(reader, length) {
|
|
58886
|
+
if (!(reader instanceof $Reader))
|
|
58887
|
+
reader = $Reader.create(reader);
|
|
58888
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.containeranalysis.v1beta1.ExportSBOMRequest();
|
|
58889
|
+
while (reader.pos < end) {
|
|
58890
|
+
var tag = reader.uint32();
|
|
58891
|
+
switch (tag >>> 3) {
|
|
58892
|
+
case 1: {
|
|
58893
|
+
message.name = reader.string();
|
|
58894
|
+
break;
|
|
58895
|
+
}
|
|
58896
|
+
default:
|
|
58897
|
+
reader.skipType(tag & 7);
|
|
58898
|
+
break;
|
|
58899
|
+
}
|
|
58900
|
+
}
|
|
58901
|
+
return message;
|
|
58902
|
+
};
|
|
58903
|
+
|
|
58904
|
+
/**
|
|
58905
|
+
* Decodes an ExportSBOMRequest message from the specified reader or buffer, length delimited.
|
|
58906
|
+
* @function decodeDelimited
|
|
58907
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58908
|
+
* @static
|
|
58909
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58910
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMRequest} ExportSBOMRequest
|
|
58911
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58912
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58913
|
+
*/
|
|
58914
|
+
ExportSBOMRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
58915
|
+
if (!(reader instanceof $Reader))
|
|
58916
|
+
reader = new $Reader(reader);
|
|
58917
|
+
return this.decode(reader, reader.uint32());
|
|
58918
|
+
};
|
|
58919
|
+
|
|
58920
|
+
/**
|
|
58921
|
+
* Verifies an ExportSBOMRequest message.
|
|
58922
|
+
* @function verify
|
|
58923
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58924
|
+
* @static
|
|
58925
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58926
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58927
|
+
*/
|
|
58928
|
+
ExportSBOMRequest.verify = function verify(message) {
|
|
58929
|
+
if (typeof message !== "object" || message === null)
|
|
58930
|
+
return "object expected";
|
|
58931
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
58932
|
+
if (!$util.isString(message.name))
|
|
58933
|
+
return "name: string expected";
|
|
58934
|
+
return null;
|
|
58935
|
+
};
|
|
58936
|
+
|
|
58937
|
+
/**
|
|
58938
|
+
* Creates an ExportSBOMRequest message from a plain object. Also converts values to their respective internal types.
|
|
58939
|
+
* @function fromObject
|
|
58940
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58941
|
+
* @static
|
|
58942
|
+
* @param {Object.<string,*>} object Plain object
|
|
58943
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMRequest} ExportSBOMRequest
|
|
58944
|
+
*/
|
|
58945
|
+
ExportSBOMRequest.fromObject = function fromObject(object) {
|
|
58946
|
+
if (object instanceof $root.google.devtools.containeranalysis.v1beta1.ExportSBOMRequest)
|
|
58947
|
+
return object;
|
|
58948
|
+
var message = new $root.google.devtools.containeranalysis.v1beta1.ExportSBOMRequest();
|
|
58949
|
+
if (object.name != null)
|
|
58950
|
+
message.name = String(object.name);
|
|
58951
|
+
return message;
|
|
58952
|
+
};
|
|
58953
|
+
|
|
58954
|
+
/**
|
|
58955
|
+
* Creates a plain object from an ExportSBOMRequest message. Also converts values to other types if specified.
|
|
58956
|
+
* @function toObject
|
|
58957
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58958
|
+
* @static
|
|
58959
|
+
* @param {google.devtools.containeranalysis.v1beta1.ExportSBOMRequest} message ExportSBOMRequest
|
|
58960
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58961
|
+
* @returns {Object.<string,*>} Plain object
|
|
58962
|
+
*/
|
|
58963
|
+
ExportSBOMRequest.toObject = function toObject(message, options) {
|
|
58964
|
+
if (!options)
|
|
58965
|
+
options = {};
|
|
58966
|
+
var object = {};
|
|
58967
|
+
if (options.defaults)
|
|
58968
|
+
object.name = "";
|
|
58969
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
58970
|
+
object.name = message.name;
|
|
58971
|
+
return object;
|
|
58972
|
+
};
|
|
58973
|
+
|
|
58974
|
+
/**
|
|
58975
|
+
* Converts this ExportSBOMRequest to JSON.
|
|
58976
|
+
* @function toJSON
|
|
58977
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58978
|
+
* @instance
|
|
58979
|
+
* @returns {Object.<string,*>} JSON object
|
|
58980
|
+
*/
|
|
58981
|
+
ExportSBOMRequest.prototype.toJSON = function toJSON() {
|
|
58982
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58983
|
+
};
|
|
58984
|
+
|
|
58985
|
+
/**
|
|
58986
|
+
* Gets the default type url for ExportSBOMRequest
|
|
58987
|
+
* @function getTypeUrl
|
|
58988
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMRequest
|
|
58989
|
+
* @static
|
|
58990
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
58991
|
+
* @returns {string} The default type url
|
|
58992
|
+
*/
|
|
58993
|
+
ExportSBOMRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
58994
|
+
if (typeUrlPrefix === undefined) {
|
|
58995
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
58996
|
+
}
|
|
58997
|
+
return typeUrlPrefix + "/google.devtools.containeranalysis.v1beta1.ExportSBOMRequest";
|
|
58998
|
+
};
|
|
58999
|
+
|
|
59000
|
+
return ExportSBOMRequest;
|
|
59001
|
+
})();
|
|
59002
|
+
|
|
59003
|
+
v1beta1.ExportSBOMResponse = (function() {
|
|
59004
|
+
|
|
59005
|
+
/**
|
|
59006
|
+
* Properties of an ExportSBOMResponse.
|
|
59007
|
+
* @memberof google.devtools.containeranalysis.v1beta1
|
|
59008
|
+
* @interface IExportSBOMResponse
|
|
59009
|
+
* @property {string|null} [discoveryOccurrenceId] ExportSBOMResponse discoveryOccurrenceId
|
|
59010
|
+
*/
|
|
59011
|
+
|
|
59012
|
+
/**
|
|
59013
|
+
* Constructs a new ExportSBOMResponse.
|
|
59014
|
+
* @memberof google.devtools.containeranalysis.v1beta1
|
|
59015
|
+
* @classdesc Represents an ExportSBOMResponse.
|
|
59016
|
+
* @implements IExportSBOMResponse
|
|
59017
|
+
* @constructor
|
|
59018
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMResponse=} [properties] Properties to set
|
|
59019
|
+
*/
|
|
59020
|
+
function ExportSBOMResponse(properties) {
|
|
59021
|
+
if (properties)
|
|
59022
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59023
|
+
if (properties[keys[i]] != null)
|
|
59024
|
+
this[keys[i]] = properties[keys[i]];
|
|
59025
|
+
}
|
|
59026
|
+
|
|
59027
|
+
/**
|
|
59028
|
+
* ExportSBOMResponse discoveryOccurrenceId.
|
|
59029
|
+
* @member {string} discoveryOccurrenceId
|
|
59030
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59031
|
+
* @instance
|
|
59032
|
+
*/
|
|
59033
|
+
ExportSBOMResponse.prototype.discoveryOccurrenceId = "";
|
|
59034
|
+
|
|
59035
|
+
/**
|
|
59036
|
+
* Creates a new ExportSBOMResponse instance using the specified properties.
|
|
59037
|
+
* @function create
|
|
59038
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59039
|
+
* @static
|
|
59040
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMResponse=} [properties] Properties to set
|
|
59041
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} ExportSBOMResponse instance
|
|
59042
|
+
*/
|
|
59043
|
+
ExportSBOMResponse.create = function create(properties) {
|
|
59044
|
+
return new ExportSBOMResponse(properties);
|
|
59045
|
+
};
|
|
59046
|
+
|
|
59047
|
+
/**
|
|
59048
|
+
* Encodes the specified ExportSBOMResponse message. Does not implicitly {@link google.devtools.containeranalysis.v1beta1.ExportSBOMResponse.verify|verify} messages.
|
|
59049
|
+
* @function encode
|
|
59050
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59051
|
+
* @static
|
|
59052
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMResponse} message ExportSBOMResponse message or plain object to encode
|
|
59053
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59054
|
+
* @returns {$protobuf.Writer} Writer
|
|
59055
|
+
*/
|
|
59056
|
+
ExportSBOMResponse.encode = function encode(message, writer) {
|
|
59057
|
+
if (!writer)
|
|
59058
|
+
writer = $Writer.create();
|
|
59059
|
+
if (message.discoveryOccurrenceId != null && Object.hasOwnProperty.call(message, "discoveryOccurrenceId"))
|
|
59060
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.discoveryOccurrenceId);
|
|
59061
|
+
return writer;
|
|
59062
|
+
};
|
|
59063
|
+
|
|
59064
|
+
/**
|
|
59065
|
+
* Encodes the specified ExportSBOMResponse message, length delimited. Does not implicitly {@link google.devtools.containeranalysis.v1beta1.ExportSBOMResponse.verify|verify} messages.
|
|
59066
|
+
* @function encodeDelimited
|
|
59067
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59068
|
+
* @static
|
|
59069
|
+
* @param {google.devtools.containeranalysis.v1beta1.IExportSBOMResponse} message ExportSBOMResponse message or plain object to encode
|
|
59070
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59071
|
+
* @returns {$protobuf.Writer} Writer
|
|
59072
|
+
*/
|
|
59073
|
+
ExportSBOMResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59074
|
+
return this.encode(message, writer).ldelim();
|
|
59075
|
+
};
|
|
59076
|
+
|
|
59077
|
+
/**
|
|
59078
|
+
* Decodes an ExportSBOMResponse message from the specified reader or buffer.
|
|
59079
|
+
* @function decode
|
|
59080
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59081
|
+
* @static
|
|
59082
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59083
|
+
* @param {number} [length] Message length if known beforehand
|
|
59084
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} ExportSBOMResponse
|
|
59085
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59086
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59087
|
+
*/
|
|
59088
|
+
ExportSBOMResponse.decode = function decode(reader, length) {
|
|
59089
|
+
if (!(reader instanceof $Reader))
|
|
59090
|
+
reader = $Reader.create(reader);
|
|
59091
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.containeranalysis.v1beta1.ExportSBOMResponse();
|
|
59092
|
+
while (reader.pos < end) {
|
|
59093
|
+
var tag = reader.uint32();
|
|
59094
|
+
switch (tag >>> 3) {
|
|
59095
|
+
case 1: {
|
|
59096
|
+
message.discoveryOccurrenceId = reader.string();
|
|
59097
|
+
break;
|
|
59098
|
+
}
|
|
59099
|
+
default:
|
|
59100
|
+
reader.skipType(tag & 7);
|
|
59101
|
+
break;
|
|
59102
|
+
}
|
|
59103
|
+
}
|
|
59104
|
+
return message;
|
|
59105
|
+
};
|
|
59106
|
+
|
|
59107
|
+
/**
|
|
59108
|
+
* Decodes an ExportSBOMResponse message from the specified reader or buffer, length delimited.
|
|
59109
|
+
* @function decodeDelimited
|
|
59110
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59111
|
+
* @static
|
|
59112
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59113
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} ExportSBOMResponse
|
|
59114
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59115
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59116
|
+
*/
|
|
59117
|
+
ExportSBOMResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
59118
|
+
if (!(reader instanceof $Reader))
|
|
59119
|
+
reader = new $Reader(reader);
|
|
59120
|
+
return this.decode(reader, reader.uint32());
|
|
59121
|
+
};
|
|
59122
|
+
|
|
59123
|
+
/**
|
|
59124
|
+
* Verifies an ExportSBOMResponse message.
|
|
59125
|
+
* @function verify
|
|
59126
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59127
|
+
* @static
|
|
59128
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59129
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59130
|
+
*/
|
|
59131
|
+
ExportSBOMResponse.verify = function verify(message) {
|
|
59132
|
+
if (typeof message !== "object" || message === null)
|
|
59133
|
+
return "object expected";
|
|
59134
|
+
if (message.discoveryOccurrenceId != null && message.hasOwnProperty("discoveryOccurrenceId"))
|
|
59135
|
+
if (!$util.isString(message.discoveryOccurrenceId))
|
|
59136
|
+
return "discoveryOccurrenceId: string expected";
|
|
59137
|
+
return null;
|
|
59138
|
+
};
|
|
59139
|
+
|
|
59140
|
+
/**
|
|
59141
|
+
* Creates an ExportSBOMResponse message from a plain object. Also converts values to their respective internal types.
|
|
59142
|
+
* @function fromObject
|
|
59143
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59144
|
+
* @static
|
|
59145
|
+
* @param {Object.<string,*>} object Plain object
|
|
59146
|
+
* @returns {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} ExportSBOMResponse
|
|
59147
|
+
*/
|
|
59148
|
+
ExportSBOMResponse.fromObject = function fromObject(object) {
|
|
59149
|
+
if (object instanceof $root.google.devtools.containeranalysis.v1beta1.ExportSBOMResponse)
|
|
59150
|
+
return object;
|
|
59151
|
+
var message = new $root.google.devtools.containeranalysis.v1beta1.ExportSBOMResponse();
|
|
59152
|
+
if (object.discoveryOccurrenceId != null)
|
|
59153
|
+
message.discoveryOccurrenceId = String(object.discoveryOccurrenceId);
|
|
59154
|
+
return message;
|
|
59155
|
+
};
|
|
59156
|
+
|
|
59157
|
+
/**
|
|
59158
|
+
* Creates a plain object from an ExportSBOMResponse message. Also converts values to other types if specified.
|
|
59159
|
+
* @function toObject
|
|
59160
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59161
|
+
* @static
|
|
59162
|
+
* @param {google.devtools.containeranalysis.v1beta1.ExportSBOMResponse} message ExportSBOMResponse
|
|
59163
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59164
|
+
* @returns {Object.<string,*>} Plain object
|
|
59165
|
+
*/
|
|
59166
|
+
ExportSBOMResponse.toObject = function toObject(message, options) {
|
|
59167
|
+
if (!options)
|
|
59168
|
+
options = {};
|
|
59169
|
+
var object = {};
|
|
59170
|
+
if (options.defaults)
|
|
59171
|
+
object.discoveryOccurrenceId = "";
|
|
59172
|
+
if (message.discoveryOccurrenceId != null && message.hasOwnProperty("discoveryOccurrenceId"))
|
|
59173
|
+
object.discoveryOccurrenceId = message.discoveryOccurrenceId;
|
|
59174
|
+
return object;
|
|
59175
|
+
};
|
|
59176
|
+
|
|
59177
|
+
/**
|
|
59178
|
+
* Converts this ExportSBOMResponse to JSON.
|
|
59179
|
+
* @function toJSON
|
|
59180
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59181
|
+
* @instance
|
|
59182
|
+
* @returns {Object.<string,*>} JSON object
|
|
59183
|
+
*/
|
|
59184
|
+
ExportSBOMResponse.prototype.toJSON = function toJSON() {
|
|
59185
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59186
|
+
};
|
|
59187
|
+
|
|
59188
|
+
/**
|
|
59189
|
+
* Gets the default type url for ExportSBOMResponse
|
|
59190
|
+
* @function getTypeUrl
|
|
59191
|
+
* @memberof google.devtools.containeranalysis.v1beta1.ExportSBOMResponse
|
|
59192
|
+
* @static
|
|
59193
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
59194
|
+
* @returns {string} The default type url
|
|
59195
|
+
*/
|
|
59196
|
+
ExportSBOMResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
59197
|
+
if (typeUrlPrefix === undefined) {
|
|
59198
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
59199
|
+
}
|
|
59200
|
+
return typeUrlPrefix + "/google.devtools.containeranalysis.v1beta1.ExportSBOMResponse";
|
|
59201
|
+
};
|
|
59202
|
+
|
|
59203
|
+
return ExportSBOMResponse;
|
|
59204
|
+
})();
|
|
59205
|
+
|
|
58767
59206
|
return v1beta1;
|
|
58768
59207
|
})();
|
|
58769
59208
|
|
package/build/protos/protos.json
CHANGED
|
@@ -5159,6 +5159,22 @@
|
|
|
5159
5159
|
}
|
|
5160
5160
|
}
|
|
5161
5161
|
]
|
|
5162
|
+
},
|
|
5163
|
+
"ExportSBOM": {
|
|
5164
|
+
"requestType": "ExportSBOMRequest",
|
|
5165
|
+
"responseType": "ExportSBOMResponse",
|
|
5166
|
+
"options": {
|
|
5167
|
+
"(google.api.http).post": "/v1beta1/{name=projects/*/resources/**}:exportSBOM",
|
|
5168
|
+
"(google.api.http).body": "*"
|
|
5169
|
+
},
|
|
5170
|
+
"parsedOptions": [
|
|
5171
|
+
{
|
|
5172
|
+
"(google.api.http)": {
|
|
5173
|
+
"post": "/v1beta1/{name=projects/*/resources/**}:exportSBOM",
|
|
5174
|
+
"body": "*"
|
|
5175
|
+
}
|
|
5176
|
+
}
|
|
5177
|
+
]
|
|
5162
5178
|
}
|
|
5163
5179
|
}
|
|
5164
5180
|
},
|
|
@@ -5199,6 +5215,25 @@
|
|
|
5199
5215
|
}
|
|
5200
5216
|
}
|
|
5201
5217
|
}
|
|
5218
|
+
},
|
|
5219
|
+
"ExportSBOMRequest": {
|
|
5220
|
+
"fields": {
|
|
5221
|
+
"name": {
|
|
5222
|
+
"type": "string",
|
|
5223
|
+
"id": 1,
|
|
5224
|
+
"options": {
|
|
5225
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
5226
|
+
}
|
|
5227
|
+
}
|
|
5228
|
+
}
|
|
5229
|
+
},
|
|
5230
|
+
"ExportSBOMResponse": {
|
|
5231
|
+
"fields": {
|
|
5232
|
+
"discoveryOccurrenceId": {
|
|
5233
|
+
"type": "string",
|
|
5234
|
+
"id": 1
|
|
5235
|
+
}
|
|
5236
|
+
}
|
|
5202
5237
|
}
|
|
5203
5238
|
}
|
|
5204
5239
|
}
|
package/build/src/index.js
CHANGED
|
@@ -26,6 +26,8 @@ export declare class ContainerAnalysisClient {
|
|
|
26
26
|
private _gaxGrpc;
|
|
27
27
|
private _protos;
|
|
28
28
|
private _defaults;
|
|
29
|
+
private _universeDomain;
|
|
30
|
+
private _servicePath;
|
|
29
31
|
auth: gax.GoogleAuth;
|
|
30
32
|
descriptors: Descriptors;
|
|
31
33
|
warn: (code: string, message: string, warnType?: string) => void;
|
|
@@ -66,8 +68,7 @@ export declare class ContainerAnalysisClient {
|
|
|
66
68
|
* API remote host.
|
|
67
69
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
68
70
|
* Follows the structure of {@link gapicConfig}.
|
|
69
|
-
* @param {boolean
|
|
70
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
71
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
71
72
|
* For more information, please check the
|
|
72
73
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
73
74
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -75,7 +76,7 @@ export declare class ContainerAnalysisClient {
|
|
|
75
76
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
76
77
|
* ```
|
|
77
78
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
78
|
-
* const client = new ContainerAnalysisClient({fallback:
|
|
79
|
+
* const client = new ContainerAnalysisClient({fallback: true}, gax);
|
|
79
80
|
* ```
|
|
80
81
|
*/
|
|
81
82
|
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
|
@@ -95,15 +96,22 @@ export declare class ContainerAnalysisClient {
|
|
|
95
96
|
}>;
|
|
96
97
|
/**
|
|
97
98
|
* The DNS address for this API service.
|
|
99
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
98
100
|
* @returns {string} The DNS address for this service.
|
|
99
101
|
*/
|
|
100
102
|
static get servicePath(): string;
|
|
101
103
|
/**
|
|
102
|
-
* The DNS address for this API service - same as servicePath
|
|
103
|
-
*
|
|
104
|
+
* The DNS address for this API service - same as servicePath.
|
|
105
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
104
106
|
* @returns {string} The DNS address for this service.
|
|
105
107
|
*/
|
|
106
108
|
static get apiEndpoint(): string;
|
|
109
|
+
/**
|
|
110
|
+
* The DNS address for this API service.
|
|
111
|
+
* @returns {string} The DNS address for this service.
|
|
112
|
+
*/
|
|
113
|
+
get apiEndpoint(): string;
|
|
114
|
+
get universeDomain(): string;
|
|
107
115
|
/**
|
|
108
116
|
* The port for this API service.
|
|
109
117
|
* @returns {number} The default port for this service.
|