@google-cloud/containeranalysis 6.6.0 → 6.7.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.
|
@@ -134,6 +134,9 @@ message FileLocation {
|
|
|
134
134
|
// Each package found in a file should have its own layer metadata (that is,
|
|
135
135
|
// information from the origin layer of the package).
|
|
136
136
|
LayerDetails layer_details = 2;
|
|
137
|
+
// Line number in the file where the package was found.
|
|
138
|
+
// Optional field that only applies to source repository scanning.
|
|
139
|
+
int32 line_number = 3;
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
// BaseImage describes a base image of a container image.
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -877,6 +877,9 @@ export namespace grafeas {
|
|
|
877
877
|
|
|
878
878
|
/** FileLocation layerDetails */
|
|
879
879
|
layerDetails?: (grafeas.v1.ILayerDetails|null);
|
|
880
|
+
|
|
881
|
+
/** FileLocation lineNumber */
|
|
882
|
+
lineNumber?: (number|null);
|
|
880
883
|
}
|
|
881
884
|
|
|
882
885
|
/** Represents a FileLocation. */
|
|
@@ -894,6 +897,9 @@ export namespace grafeas {
|
|
|
894
897
|
/** FileLocation layerDetails. */
|
|
895
898
|
public layerDetails?: (grafeas.v1.ILayerDetails|null);
|
|
896
899
|
|
|
900
|
+
/** FileLocation lineNumber. */
|
|
901
|
+
public lineNumber: number;
|
|
902
|
+
|
|
897
903
|
/**
|
|
898
904
|
* Creates a new FileLocation instance using the specified properties.
|
|
899
905
|
* @param [properties] Properties to set
|
package/build/protos/protos.js
CHANGED
|
@@ -2028,6 +2028,7 @@
|
|
|
2028
2028
|
* @interface IFileLocation
|
|
2029
2029
|
* @property {string|null} [filePath] FileLocation filePath
|
|
2030
2030
|
* @property {grafeas.v1.ILayerDetails|null} [layerDetails] FileLocation layerDetails
|
|
2031
|
+
* @property {number|null} [lineNumber] FileLocation lineNumber
|
|
2031
2032
|
*/
|
|
2032
2033
|
|
|
2033
2034
|
/**
|
|
@@ -2061,6 +2062,14 @@
|
|
|
2061
2062
|
*/
|
|
2062
2063
|
FileLocation.prototype.layerDetails = null;
|
|
2063
2064
|
|
|
2065
|
+
/**
|
|
2066
|
+
* FileLocation lineNumber.
|
|
2067
|
+
* @member {number} lineNumber
|
|
2068
|
+
* @memberof grafeas.v1.FileLocation
|
|
2069
|
+
* @instance
|
|
2070
|
+
*/
|
|
2071
|
+
FileLocation.prototype.lineNumber = 0;
|
|
2072
|
+
|
|
2064
2073
|
/**
|
|
2065
2074
|
* Creates a new FileLocation instance using the specified properties.
|
|
2066
2075
|
* @function create
|
|
@@ -2089,6 +2098,8 @@
|
|
|
2089
2098
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.filePath);
|
|
2090
2099
|
if (message.layerDetails != null && Object.hasOwnProperty.call(message, "layerDetails"))
|
|
2091
2100
|
$root.grafeas.v1.LayerDetails.encode(message.layerDetails, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
2101
|
+
if (message.lineNumber != null && Object.hasOwnProperty.call(message, "lineNumber"))
|
|
2102
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.lineNumber);
|
|
2092
2103
|
return writer;
|
|
2093
2104
|
};
|
|
2094
2105
|
|
|
@@ -2133,6 +2144,10 @@
|
|
|
2133
2144
|
message.layerDetails = $root.grafeas.v1.LayerDetails.decode(reader, reader.uint32());
|
|
2134
2145
|
break;
|
|
2135
2146
|
}
|
|
2147
|
+
case 3: {
|
|
2148
|
+
message.lineNumber = reader.int32();
|
|
2149
|
+
break;
|
|
2150
|
+
}
|
|
2136
2151
|
default:
|
|
2137
2152
|
reader.skipType(tag & 7);
|
|
2138
2153
|
break;
|
|
@@ -2176,6 +2191,9 @@
|
|
|
2176
2191
|
if (error)
|
|
2177
2192
|
return "layerDetails." + error;
|
|
2178
2193
|
}
|
|
2194
|
+
if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
|
|
2195
|
+
if (!$util.isInteger(message.lineNumber))
|
|
2196
|
+
return "lineNumber: integer expected";
|
|
2179
2197
|
return null;
|
|
2180
2198
|
};
|
|
2181
2199
|
|
|
@@ -2198,6 +2216,8 @@
|
|
|
2198
2216
|
throw TypeError(".grafeas.v1.FileLocation.layerDetails: object expected");
|
|
2199
2217
|
message.layerDetails = $root.grafeas.v1.LayerDetails.fromObject(object.layerDetails);
|
|
2200
2218
|
}
|
|
2219
|
+
if (object.lineNumber != null)
|
|
2220
|
+
message.lineNumber = object.lineNumber | 0;
|
|
2201
2221
|
return message;
|
|
2202
2222
|
};
|
|
2203
2223
|
|
|
@@ -2217,11 +2237,14 @@
|
|
|
2217
2237
|
if (options.defaults) {
|
|
2218
2238
|
object.filePath = "";
|
|
2219
2239
|
object.layerDetails = null;
|
|
2240
|
+
object.lineNumber = 0;
|
|
2220
2241
|
}
|
|
2221
2242
|
if (message.filePath != null && message.hasOwnProperty("filePath"))
|
|
2222
2243
|
object.filePath = message.filePath;
|
|
2223
2244
|
if (message.layerDetails != null && message.hasOwnProperty("layerDetails"))
|
|
2224
2245
|
object.layerDetails = $root.grafeas.v1.LayerDetails.toObject(message.layerDetails, options);
|
|
2246
|
+
if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
|
|
2247
|
+
object.lineNumber = message.lineNumber;
|
|
2225
2248
|
return object;
|
|
2226
2249
|
};
|
|
2227
2250
|
|
package/build/protos/protos.json
CHANGED