google-cloud-container_analysis-v1 0.4.0 → 0.4.4
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 +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/container_analysis/v1/container_analysis/client.rb +42 -41
- data/lib/google/cloud/container_analysis/v1/version.rb +1 -1
- data/lib/google/devtools/containeranalysis/v1/containeranalysis_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +23 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1f8afc0d3be6b4284eabb7b63b62e0ae10c18894b71d4d731b495146c269134
|
4
|
+
data.tar.gz: ef5cead8f55549b4950de7b3b8b0bc5a43c7118bad3df6df0bc3964901f4f601
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1b7ab826422575e41651cd3bec6aa03761e2ef3ff8f2e532472df3aadcf435c0f9d2d052f52105450cf99f7c5066e73cc03ce5abf96b787b69022381b8c7d70
|
7
|
+
data.tar.gz: 0ce4d300be9bfb5f8f7c845c01dcb0e319b55f18cedbadaa61c5016298e62dbb9371d407064c66b39d8b8c954288781aa670adee55e238e9c009397f0b9460e7
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-container_analysis-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `CONTAINER_ANALYSIS_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `CONTAINER_ANALYSIS_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/container_analysis/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/container_analysis/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new d
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/container_analysis/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/container_analysis/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Iam::V1::SetIamPolicyRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.set_iam_policy request
|
38
38
|
```
|
39
39
|
|
@@ -53,13 +53,12 @@ module Google
|
|
53
53
|
# See {::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client::Configuration}
|
54
54
|
# for a description of the configuration fields.
|
55
55
|
#
|
56
|
-
#
|
56
|
+
# @example
|
57
57
|
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
# end
|
58
|
+
# # Modify the configuration for all ContainerAnalysis clients
|
59
|
+
# ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
|
60
|
+
# config.timeout = 10.0
|
61
|
+
# end
|
63
62
|
#
|
64
63
|
# @yield [config] Configure the Client client.
|
65
64
|
# @yieldparam config [Client::Configuration]
|
@@ -112,19 +111,15 @@ module Google
|
|
112
111
|
##
|
113
112
|
# Create a new ContainerAnalysis client object.
|
114
113
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
# To create a new ContainerAnalysis client with the default
|
118
|
-
# configuration:
|
119
|
-
#
|
120
|
-
# client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
|
114
|
+
# @example
|
121
115
|
#
|
122
|
-
#
|
123
|
-
#
|
116
|
+
# # Create a client using the default configuration
|
117
|
+
# client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
|
124
118
|
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
119
|
+
# # Create a client using a custom configuration
|
120
|
+
# client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
|
121
|
+
# config.timeout = 10.0
|
122
|
+
# end
|
128
123
|
#
|
129
124
|
# @yield [config] Configure the ContainerAnalysis client.
|
130
125
|
# @yieldparam config [Client::Configuration]
|
@@ -144,14 +139,13 @@ module Google
|
|
144
139
|
|
145
140
|
# Create credentials
|
146
141
|
credentials = @config.credentials
|
147
|
-
# Use self-signed JWT if the
|
142
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
148
143
|
# but only if the default endpoint does not have a region prefix.
|
149
|
-
enable_self_signed_jwt = @config.
|
150
|
-
@config.endpoint == Client.configure.endpoint &&
|
144
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
151
145
|
!@config.endpoint.split(".").first.include?("-")
|
152
146
|
credentials ||= Credentials.default scope: @config.scope,
|
153
147
|
enable_self_signed_jwt: enable_self_signed_jwt
|
154
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
148
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
155
149
|
credentials = Credentials.new credentials, scope: @config.scope
|
156
150
|
end
|
157
151
|
@quota_project_id = @config.quota_project
|
@@ -236,7 +230,9 @@ module Google
|
|
236
230
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
237
231
|
metadata: metadata,
|
238
232
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
239
|
-
|
233
|
+
|
234
|
+
options.apply_defaults timeout: @config.timeout,
|
235
|
+
metadata: @config.metadata,
|
240
236
|
retry_policy: @config.retry_policy
|
241
237
|
|
242
238
|
@container_analysis_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -313,7 +309,9 @@ module Google
|
|
313
309
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
314
310
|
metadata: metadata,
|
315
311
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
316
|
-
|
312
|
+
|
313
|
+
options.apply_defaults timeout: @config.timeout,
|
314
|
+
metadata: @config.metadata,
|
317
315
|
retry_policy: @config.retry_policy
|
318
316
|
|
319
317
|
@container_analysis_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -391,7 +389,9 @@ module Google
|
|
391
389
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
392
390
|
metadata: metadata,
|
393
391
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
394
|
-
|
392
|
+
|
393
|
+
options.apply_defaults timeout: @config.timeout,
|
394
|
+
metadata: @config.metadata,
|
395
395
|
retry_policy: @config.retry_policy
|
396
396
|
|
397
397
|
@container_analysis_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -460,7 +460,9 @@ module Google
|
|
460
460
|
options.apply_defaults timeout: @config.rpcs.get_vulnerability_occurrences_summary.timeout,
|
461
461
|
metadata: metadata,
|
462
462
|
retry_policy: @config.rpcs.get_vulnerability_occurrences_summary.retry_policy
|
463
|
-
|
463
|
+
|
464
|
+
options.apply_defaults timeout: @config.timeout,
|
465
|
+
metadata: @config.metadata,
|
464
466
|
retry_policy: @config.retry_policy
|
465
467
|
|
466
468
|
@container_analysis_stub.call_rpc :get_vulnerability_occurrences_summary, request, options: options do |response, operation|
|
@@ -484,22 +486,21 @@ module Google
|
|
484
486
|
# Configuration can be applied globally to all clients, or to a single client
|
485
487
|
# on construction.
|
486
488
|
#
|
487
|
-
#
|
488
|
-
#
|
489
|
-
#
|
490
|
-
# to 20 seconds,
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
500
|
-
#
|
501
|
-
#
|
502
|
-
# end
|
489
|
+
# @example
|
490
|
+
#
|
491
|
+
# # Modify the global config, setting the timeout for
|
492
|
+
# # set_iam_policy to 20 seconds,
|
493
|
+
# # and all remaining timeouts to 10 seconds.
|
494
|
+
# ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
|
495
|
+
# config.timeout = 10.0
|
496
|
+
# config.rpcs.set_iam_policy.timeout = 20.0
|
497
|
+
# end
|
498
|
+
#
|
499
|
+
# # Apply the above configuration only to a new client.
|
500
|
+
# client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
|
501
|
+
# config.timeout = 10.0
|
502
|
+
# config.rpcs.set_iam_policy.timeout = 20.0
|
503
|
+
# end
|
503
504
|
#
|
504
505
|
# @!attribute [rw] endpoint
|
505
506
|
# The hostname or hostname:port of the service endpoint.
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -19,30 +19,53 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents
|
22
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
23
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
24
|
+
# are documented at https://github.com/google/cel-spec.
|
23
25
|
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
26
|
+
# Example (Comparison):
|
27
|
+
#
|
28
|
+
# title: "Summary size limit"
|
29
|
+
# description: "Determines if a summary is less than 100 chars"
|
30
|
+
# expression: "document.summary.size() < 100"
|
31
|
+
#
|
32
|
+
# Example (Equality):
|
33
|
+
#
|
34
|
+
# title: "Requestor is owner"
|
35
|
+
# description: "Determines if requestor is the document owner"
|
36
|
+
# expression: "document.owner == request.auth.claims.email"
|
37
|
+
#
|
38
|
+
# Example (Logic):
|
39
|
+
#
|
40
|
+
# title: "Public documents"
|
41
|
+
# description: "Determine whether the document should be publicly visible"
|
42
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
43
|
+
#
|
44
|
+
# Example (Data Manipulation):
|
45
|
+
#
|
46
|
+
# title: "Notification string"
|
47
|
+
# description: "Create a notification string with a timestamp."
|
48
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
49
|
+
#
|
50
|
+
# The exact variables and functions that may be referenced within an expression
|
51
|
+
# are determined by the service that evaluates it. See the service
|
52
|
+
# documentation for additional information.
|
27
53
|
# @!attribute [rw] expression
|
28
54
|
# @return [::String]
|
29
|
-
# Textual representation of an expression in
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# The application context of the containing message determines which
|
33
|
-
# well-known feature set of CEL is supported.
|
55
|
+
# Textual representation of an expression in Common Expression Language
|
56
|
+
# syntax.
|
34
57
|
# @!attribute [rw] title
|
35
58
|
# @return [::String]
|
36
|
-
#
|
59
|
+
# Optional. Title for the expression, i.e. a short string describing
|
37
60
|
# its purpose. This can be used e.g. in UIs which allow to enter the
|
38
61
|
# expression.
|
39
62
|
# @!attribute [rw] description
|
40
63
|
# @return [::String]
|
41
|
-
#
|
64
|
+
# Optional. Description of the expression. This is a longer text which
|
42
65
|
# describes the expression, e.g. when hovered over it in a UI.
|
43
66
|
# @!attribute [rw] location
|
44
67
|
# @return [::String]
|
45
|
-
#
|
68
|
+
# Optional. String indicating the location of the expression for error
|
46
69
|
# reporting, e.g. a file name and a position in the file.
|
47
70
|
class Expr
|
48
71
|
include ::Google::Protobuf::MessageExts
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-container_analysis-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,16 +48,22 @@ dependencies:
|
|
42
48
|
name: grafeas-v1
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- - "
|
51
|
+
- - ">"
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0.0'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.a
|
48
57
|
type: :runtime
|
49
58
|
prerelease: false
|
50
59
|
version_requirements: !ruby/object:Gem::Requirement
|
51
60
|
requirements:
|
52
|
-
- - "
|
61
|
+
- - ">"
|
53
62
|
- !ruby/object:Gem::Version
|
54
63
|
version: '0.0'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.a
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
68
|
name: grpc-google-iam-v1
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,7 +73,7 @@ dependencies:
|
|
61
73
|
version: 0.6.10
|
62
74
|
- - "<"
|
63
75
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
76
|
+
version: 2.a
|
65
77
|
type: :runtime
|
66
78
|
prerelease: false
|
67
79
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -71,7 +83,7 @@ dependencies:
|
|
71
83
|
version: 0.6.10
|
72
84
|
- - "<"
|
73
85
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
86
|
+
version: 2.a
|
75
87
|
- !ruby/object:Gem::Dependency
|
76
88
|
name: google-style
|
77
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -240,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
252
|
- !ruby/object:Gem::Version
|
241
253
|
version: '0'
|
242
254
|
requirements: []
|
243
|
-
rubygems_version: 3.2.
|
255
|
+
rubygems_version: 3.2.17
|
244
256
|
signing_key:
|
245
257
|
specification_version: 4
|
246
258
|
summary: API Client library for the Container Analysis V1 API
|