google-cloud-container_analysis-v1 1.5.0 → 1.6.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5bb5eadd297aa599be8e70d582e6e0ead4cc350d5d649b8da7295fd62a2afbd9
|
|
4
|
+
data.tar.gz: f789467860199485fd66a73bda2f46cc1b35491d78d030c39e29b3b9fa94e69a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a8af142db82208698eb2042f315e0add52a15173d4f58b2087df7c9a8216ec07cd726808d12f327aaed066f71da204bb5a8b2ce9b14c5da870ba3aebc9ac4ae
|
|
7
|
+
data.tar.gz: 7fe2b2b495d4011ac2d6c2769a8d2ff43c2c9ab56b24a6568a9fe014e1c14868602b87ba6f025daed242cfec2870dbe74fd3fb18c9235bae1c1a55f5aa9dcc33
|
|
@@ -710,8 +710,6 @@ module Google
|
|
|
710
710
|
# @return [::String,nil]
|
|
711
711
|
# @!attribute [rw] credentials
|
|
712
712
|
# Credentials to send with calls. You may provide any of the following types:
|
|
713
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
714
|
-
# * (`Hash`) A service account key as a Hash
|
|
715
713
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
716
714
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
717
715
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -720,7 +718,26 @@ module Google
|
|
|
720
718
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
721
719
|
# * (`nil`) indicating no credentials
|
|
722
720
|
#
|
|
723
|
-
# Warning:
|
|
721
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
722
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
723
|
+
# Google APIs can compromise the security of your systems and data.
|
|
724
|
+
#
|
|
725
|
+
# @example
|
|
726
|
+
#
|
|
727
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
728
|
+
# # on the appropriate credentials class for your environment.
|
|
729
|
+
#
|
|
730
|
+
# require "googleauth"
|
|
731
|
+
#
|
|
732
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
733
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
734
|
+
# )
|
|
735
|
+
#
|
|
736
|
+
# client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
|
|
737
|
+
# config.credentials = credentials
|
|
738
|
+
# end
|
|
739
|
+
#
|
|
740
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
724
741
|
# external source for authentication to Google Cloud, you must validate it before
|
|
725
742
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
726
743
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -15,29 +15,8 @@ require 'grafeas/v1/severity_pb'
|
|
|
15
15
|
|
|
16
16
|
descriptor_data = "\n<google/devtools/containeranalysis/v1/containeranalysis.proto\x12$google.devtools.containeranalysis.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x19grafeas/v1/severity.proto\"\xbd\x01\n\x11\x45xportSBOMRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12s\n\x16\x63loud_storage_location\x18\x02 \x01(\x0b\x32L.google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocationB\x03\xe0\x41\x01H\x00\x1a\x16\n\x14\x43loudStorageLocationB\x08\n\x06target\"2\n\x12\x45xportSBOMResponse\x12\x1c\n\x14\x64iscovery_occurrence\x18\x01 \x01(\t\"\x80\x01\n)GetVulnerabilityOccurrencesSummaryRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\"\x90\x02\n\x1fVulnerabilityOccurrencesSummary\x12j\n\x06\x63ounts\x18\x01 \x03(\x0b\x32Z.google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest\x1a\x80\x01\n\x14\x46ixableTotalByDigest\x12\x14\n\x0cresource_uri\x18\x01 \x01(\t\x12&\n\x08severity\x18\x02 \x01(\x0e\x32\x14.grafeas.v1.Severity\x12\x15\n\rfixable_count\x18\x03 \x01(\x03\x12\x13\n\x0btotal_count\x18\x04 \x01(\x03\x32\x90\x0e\n\x11\x43ontainerAnalysis\x12\xdb\x02\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\x8f\x02\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02\xf6\x01\"./v1/{resource=projects/*/notes/*}:setIamPolicy:\x01*Z9\"4/v1/{resource=projects/*/occurrences/*}:setIamPolicy:\x01*Z?\":/v1/{resource=projects/*/locations/*/notes/*}:setIamPolicy:\x01*ZE\"@/v1/{resource=projects/*/locations/*/occurrences/*}:setIamPolicy:\x01*\x12\xd4\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\x88\x02\xda\x41\x08resource\x82\xd3\xe4\x93\x02\xf6\x01\"./v1/{resource=projects/*/notes/*}:getIamPolicy:\x01*Z9\"4/v1/{resource=projects/*/occurrences/*}:getIamPolicy:\x01*Z?\":/v1/{resource=projects/*/locations/*/notes/*}:getIamPolicy:\x01*ZE\"@/v1/{resource=projects/*/locations/*/occurrences/*}:getIamPolicy:\x01*\x12\x98\x03\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xac\x02\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02\x8e\x02\"4/v1/{resource=projects/*/notes/*}:testIamPermissions:\x01*Z?\":/v1/{resource=projects/*/occurrences/*}:testIamPermissions:\x01*ZE\"@/v1/{resource=projects/*/locations/*/notes/*}:testIamPermissions:\x01*ZK\"F/v1/{resource=projects/*/locations/*/occurrences/*}:testIamPermissions:\x01*\x12\xd8\x02\n\"GetVulnerabilityOccurrencesSummary\x12O.google.devtools.containeranalysis.v1.GetVulnerabilityOccurrencesSummaryRequest\x1a\x45.google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary\"\x99\x01\xda\x41\rparent,filter\x82\xd3\xe4\x93\x02\x82\x01\x12\x38/v1/{parent=projects/*}/occurrences:vulnerabilitySummaryZF\x12\x44/v1/{parent=projects/*/locations/*}/occurrences:vulnerabilitySummary\x12\xf9\x01\n\nExportSBOM\x12\x37.google.devtools.containeranalysis.v1.ExportSBOMRequest\x1a\x38.google.devtools.containeranalysis.v1.ExportSBOMResponse\"x\x82\xd3\xe4\x93\x02r\"-/v1/{name=projects/*/resources/**}:exportSBOM:\x01*Z>\"9/v1/{name=projects/*/locations/*/resources/**}:exportSBOM:\x01*\x1aT\xca\x41 containeranalysis.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xf6\x01\n\x1f\x63om.google.containeranalysis.v1P\x01ZScloud.google.com/go/containeranalysis/apiv1/containeranalysispb;containeranalysispb\xa2\x02\x03GCA\xaa\x02*Google.Cloud.DevTools.ContainerAnalysis.V1\xca\x02!Google\\Cloud\\ContainerAnalysis\\V1\xea\x02$Google::Cloud::ContainerAnalysis::V1b\x06proto3"
|
|
17
17
|
|
|
18
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
19
|
-
|
|
20
|
-
begin
|
|
21
|
-
pool.add_serialized_file(descriptor_data)
|
|
22
|
-
rescue TypeError
|
|
23
|
-
# Compatibility code: will be removed in the next major version.
|
|
24
|
-
require 'google/protobuf/descriptor_pb'
|
|
25
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
26
|
-
parsed.clear_dependency
|
|
27
|
-
serialized = parsed.class.encode(parsed)
|
|
28
|
-
file = pool.add_serialized_file(serialized)
|
|
29
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
30
|
-
imports = [
|
|
31
|
-
]
|
|
32
|
-
imports.each do |type_name, expected_filename|
|
|
33
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
34
|
-
if import_file.name != expected_filename
|
|
35
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
39
|
-
warn "This will become an error in the next major version."
|
|
40
|
-
end
|
|
18
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
|
41
20
|
|
|
42
21
|
module Google
|
|
43
22
|
module Cloud
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-container_analysis-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
119
119
|
requirements:
|
|
120
120
|
- - ">="
|
|
121
121
|
- !ruby/object:Gem::Version
|
|
122
|
-
version: '3.
|
|
122
|
+
version: '3.2'
|
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
requirements:
|
|
125
125
|
- - ">="
|