google-cloud-container_analysis-v1 0.4.0 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33cee5d81bcc12c5927d325677a37992106e81702bf2a8bbb097865ec70b0f3c
4
- data.tar.gz: 110815e72fb39fbfe84886a4b09b3b81218c4e9a40ba04fe5687aca87811b7d6
3
+ metadata.gz: a1f8afc0d3be6b4284eabb7b63b62e0ae10c18894b71d4d731b495146c269134
4
+ data.tar.gz: ef5cead8f55549b4950de7b3b8b0bc5a43c7118bad3df6df0bc3964901f4f601
5
5
  SHA512:
6
- metadata.gz: 8b582f9e0e5a538d5c823eb3bade2928954e50387ba2a37c95aa4ea4d71edbc38daf52580f2c50303c2d0679bcbabf9e6c71ff9367444f43cc4e666b5e435df3
7
- data.tar.gz: b3aa7be071815771a9ca164c78bc94a3ffa6651cd2af1256f6d4f841a78e6a84d51882b6b2ec352dad1a5016fb6af4cb1102bfd5e47fdc64bcebf082b7133a4d
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
- 1. `CONTAINER_ANALYSIS_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `CONTAINER_ANALYSIS_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
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 placing them in
86
- environment variables. Either on an individual client initialization:
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 configured globally for all clients:
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 = my_create_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
- # ## Example
56
+ # @example
57
57
  #
58
- # To modify the configuration for all ContainerAnalysis clients:
59
- #
60
- # ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
61
- # config.timeout = 10.0
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
- # ## Examples
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
- # To create a new ContainerAnalysis client with a custom
123
- # configuration:
116
+ # # Create a client using the default configuration
117
+ # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
124
118
  #
125
- # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
126
- # config.timeout = 10.0
127
- # end
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
488
- #
489
- # To modify the global config, setting the timeout for set_iam_policy
490
- # to 20 seconds, and all remaining timeouts to 10 seconds:
491
- #
492
- # ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
493
- # config.timeout = 10.0
494
- # config.rpcs.set_iam_policy.timeout = 20.0
495
- # end
496
- #
497
- # To apply the above configuration only to a new client:
498
- #
499
- # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
500
- # config.timeout = 10.0
501
- # config.rpcs.set_iam_policy.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ContainerAnalysis
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.4.4"
25
25
  end
26
26
  end
27
27
  end
@@ -39,7 +39,7 @@ module Google
39
39
  # image with the vulnerability referring to that note.
40
40
  class Service
41
41
 
42
- include GRPC::GenericService
42
+ include ::GRPC::GenericService
43
43
 
44
44
  self.marshal_class_method = :encode
45
45
  self.unmarshal_class_method = :decode
@@ -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 order, rather than the order the user originally
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 an expression text. Example:
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
- # title: "User account presence"
25
- # description: "Determines whether the request has a user account"
26
- # expression: "size(request.user) > 0"
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
- # Common Expression Language syntax.
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
- # An optional title for the expression, i.e. a short string describing
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
- # An optional description of the expression. This is a longer text which
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
- # An optional string indicating the location of the expression for error
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.0
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-03-09 00:00:00.000000000 Z
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: '0.3'
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: '0.3'
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: '2.0'
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: '2.0'
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.13
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