You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dyn/ondemandscanning_v1.projects.locations.scans.html
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -103,16 +103,25 @@ <h3>Method Details</h3>
103
103
"binarySourceInfo": [ # A bundle containing the binary and source information.
104
104
{
105
105
"binaryVersion": { # The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See b/175908657#comment15.
106
+
"licenses": [ # The licenses associated with this package. Note that this has to go on the PackageVersion level, because we can have cases with images with the same source having different licences. E.g. in Alpine, musl and musl-utils both have the same origin musl, but have different sets of licenses.
107
+
"A String",
108
+
],
106
109
"name": "A String",
107
110
"version": "A String",
108
111
},
109
112
"sourceVersion": { # The source package. Similar to the above, this is significant when the source is different than the binary itself. Since the top-level package/version fields are based on an if/else, we need a separate field for both binary and source if we want to know definitively where the data is coming from.
113
+
"licenses": [ # The licenses associated with this package. Note that this has to go on the PackageVersion level, because we can have cases with images with the same source having different licences. E.g. in Alpine, musl and musl-utils both have the same origin musl, but have different sets of licenses.
114
+
"A String",
115
+
],
110
116
"name": "A String",
111
117
"version": "A String",
112
118
},
113
119
},
114
120
],
115
121
"binaryVersion": { # DEPRECATED
122
+
"licenses": [ # The licenses associated with this package. Note that this has to go on the PackageVersion level, because we can have cases with images with the same source having different licences. E.g. in Alpine, musl and musl-utils both have the same origin musl, but have different sets of licenses.
123
+
"A String",
124
+
],
116
125
"name": "A String",
117
126
"version": "A String",
118
127
},
@@ -129,6 +138,9 @@ <h3>Method Details</h3>
129
138
},
130
139
],
131
140
"hashDigest": "A String", # HashDigest stores the SHA512 hash digest of the jar file if the package is of type Maven. This field will be unset for non Maven packages.
141
+
"licenses": [ # The list of licenses found that are related to a given package. Note that licenses may also be stored on the BinarySourceInfo. If there is no BinarySourceInfo (because there's no concept of source vs binary), then it will be stored here, while if there are BinarySourceInfos, it will be stored there, as one source can have multiple binaries with different licenses.
142
+
"A String",
143
+
],
132
144
"maintainer": { # The maintainer of the package.
133
145
"kind": "A String",
134
146
"name": "A String",
@@ -141,6 +153,9 @@ <h3>Method Details</h3>
141
153
"A String",
142
154
],
143
155
"sourceVersion": { # DEPRECATED
156
+
"licenses": [ # The licenses associated with this package. Note that this has to go on the PackageVersion level, because we can have cases with images with the same source having different licences. E.g. in Alpine, musl and musl-utils both have the same origin musl, but have different sets of licenses.
Copy file name to clipboardExpand all lines: docs/dyn/ondemandscanning_v1beta1.projects.locations.scans.html
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,16 +102,25 @@ <h3>Method Details</h3>
102
102
"binarySourceInfo": [ # A bundle containing the binary and source information.
103
103
{
104
104
"binaryVersion": { # The binary package. This is significant when the source is different than the binary itself. Historically if they've differed, we've stored the name of the source and its version in the package/version fields, but we should also store the binary package info, as that's what's actually installed. See b/175908657#comment15.
105
+
"licenses": [ # The licenses associated with this package. Note that this has to go on the PackageVersion level, because we can have cases with images with the same source having different licences. E.g. in Alpine, musl and musl-utils both have the same origin musl, but have different sets of licenses.
106
+
"A String",
107
+
],
105
108
"name": "A String",
106
109
"version": "A String",
107
110
},
108
111
"sourceVersion": { # The source package. Similar to the above, this is significant when the source is different than the binary itself. Since the top-level package/version fields are based on an if/else, we need a separate field for both binary and source if we want to know definitively where the data is coming from.
112
+
"licenses": [ # The licenses associated with this package. Note that this has to go on the PackageVersion level, because we can have cases with images with the same source having different licences. E.g. in Alpine, musl and musl-utils both have the same origin musl, but have different sets of licenses.
113
+
"A String",
114
+
],
109
115
"name": "A String",
110
116
"version": "A String",
111
117
},
112
118
},
113
119
],
114
120
"binaryVersion": { # DEPRECATED
121
+
"licenses": [ # The licenses associated with this package. Note that this has to go on the PackageVersion level, because we can have cases with images with the same source having different licences. E.g. in Alpine, musl and musl-utils both have the same origin musl, but have different sets of licenses.
122
+
"A String",
123
+
],
115
124
"name": "A String",
116
125
"version": "A String",
117
126
},
@@ -128,6 +137,9 @@ <h3>Method Details</h3>
128
137
},
129
138
],
130
139
"hashDigest": "A String", # HashDigest stores the SHA512 hash digest of the jar file if the package is of type Maven. This field will be unset for non Maven packages.
140
+
"licenses": [ # The list of licenses found that are related to a given package. Note that licenses may also be stored on the BinarySourceInfo. If there is no BinarySourceInfo (because there's no concept of source vs binary), then it will be stored here, while if there are BinarySourceInfos, it will be stored there, as one source can have multiple binaries with different licenses.
141
+
"A String",
142
+
],
131
143
"maintainer": { # The maintainer of the package.
132
144
"kind": "A String",
133
145
"name": "A String",
@@ -140,6 +152,9 @@ <h3>Method Details</h3>
140
152
"A String",
141
153
],
142
154
"sourceVersion": { # DEPRECATED
155
+
"licenses": [ # The licenses associated with this package. Note that this has to go on the PackageVersion level, because we can have cases with images with the same source having different licences. E.g. in Alpine, musl and musl-utils both have the same origin musl, but have different sets of licenses.
"description": "HashDigest stores the SHA512 hash digest of the jar file if the package is of type Maven. This field will be unset for non Maven packages.",
1875
1875
"type": "string"
1876
1876
},
1877
+
"licenses": {
1878
+
"description": "The list of licenses found that are related to a given package. Note that licenses may also be stored on the BinarySourceInfo. If there is no BinarySourceInfo (because there's no concept of source vs binary), then it will be stored here, while if there are BinarySourceInfos, it will be stored there, as one source can have multiple binaries with different licenses.",
1879
+
"items": {
1880
+
"type": "string"
1881
+
},
1882
+
"type": "array"
1883
+
},
1877
1884
"maintainer": {
1878
1885
"$ref": "Maintainer",
1879
1886
"description": "The maintainer of the package."
@@ -2056,6 +2063,13 @@
2056
2063
"PackageVersion": {
2057
2064
"id": "PackageVersion",
2058
2065
"properties": {
2066
+
"licenses": {
2067
+
"description": "The licenses associated with this package. Note that this has to go on the PackageVersion level, because we can have cases with images with the same source having different licences. E.g. in Alpine, musl and musl-utils both have the same origin musl, but have different sets of licenses.",
"description": "HashDigest stores the SHA512 hash digest of the jar file if the package is of type Maven. This field will be unset for non Maven packages.",
1870
1870
"type": "string"
1871
1871
},
1872
+
"licenses": {
1873
+
"description": "The list of licenses found that are related to a given package. Note that licenses may also be stored on the BinarySourceInfo. If there is no BinarySourceInfo (because there's no concept of source vs binary), then it will be stored here, while if there are BinarySourceInfos, it will be stored there, as one source can have multiple binaries with different licenses.",
1874
+
"items": {
1875
+
"type": "string"
1876
+
},
1877
+
"type": "array"
1878
+
},
1872
1879
"maintainer": {
1873
1880
"$ref": "Maintainer",
1874
1881
"description": "The maintainer of the package."
@@ -2051,6 +2058,13 @@
2051
2058
"PackageVersion": {
2052
2059
"id": "PackageVersion",
2053
2060
"properties": {
2061
+
"licenses": {
2062
+
"description": "The licenses associated with this package. Note that this has to go on the PackageVersion level, because we can have cases with images with the same source having different licences. E.g. in Alpine, musl and musl-utils both have the same origin musl, but have different sets of licenses.",
0 commit comments