google-cloud-container_analysis 0.2.0 → 0.3.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 +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/container_analysis.rb +2 -2
- data/lib/google/cloud/container_analysis/v1.rb +2 -2
- data/lib/google/cloud/container_analysis/v1/container_analysis_client.rb +17 -0
- data/lib/google/cloud/container_analysis/v1/doc/google/iam/v1/policy.rb +2 -2
- data/lib/google/cloud/container_analysis/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '096135a59e0f1c8ed096593e7f151984c81e81a60d96c07ad7eb37258b5f9c14'
|
|
4
|
+
data.tar.gz: 9ea2fcb4c6078739db2eb6cef8152d4897e7a8f9b9ef772947873dd9974078fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '063286bf1630abc1f78620353616e94ccd455a5a5eaa3924cd0031d24e94786d55a89efaa94add475b2e3c27fa8d224d1bf7e5b9ee9d1958cb6e1ab41ecf22e5'
|
|
7
|
+
data.tar.gz: 69f944a307cd4e611e1054307bc7c735248691641d87d8cbd48b620e067c645f4634b62bfa71c84d3dc43f05de762e277274d147ee579ddd1ebaee39ea976325
|
data/README.md
CHANGED
|
@@ -13,7 +13,7 @@ steps:
|
|
|
13
13
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
|
14
14
|
2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
|
15
15
|
3. [Enable the Container Analysis API.](https://console.cloud.google.com/apis/library/containeranalysis.googleapis.com)
|
|
16
|
-
4. [Setup Authentication.](https://googleapis.
|
|
16
|
+
4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-container_analysis/latest/file.AUTHENTICATION.html)
|
|
17
17
|
|
|
18
18
|
### Installation
|
|
19
19
|
```
|
|
@@ -40,14 +40,14 @@ end
|
|
|
40
40
|
- View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
|
41
41
|
to see the full list of Cloud APIs that we cover.
|
|
42
42
|
|
|
43
|
-
[Client Library Documentation]: https://googleapis.
|
|
43
|
+
[Client Library Documentation]: https://googleapis.dev/ruby/google-cloud-container_analysis/latest
|
|
44
44
|
[Product Documentation]: https://cloud.google.com/container-registry/docs/container-analysis
|
|
45
45
|
|
|
46
46
|
## Enabling Logging
|
|
47
47
|
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://googleapis.
|
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
|
51
51
|
that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
|
53
53
|
|
|
@@ -36,7 +36,7 @@ module Google
|
|
|
36
36
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
|
37
37
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
|
38
38
|
# 3. [Enable the Container Analysis API.](https://console.cloud.google.com/apis/library/containeranalysis.googleapis.com)
|
|
39
|
-
# 4. [Setup Authentication.](https://googleapis.
|
|
39
|
+
# 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-container_analysis/latest/file.AUTHENTICATION.html)
|
|
40
40
|
#
|
|
41
41
|
# ### Installation
|
|
42
42
|
# ```
|
|
@@ -55,7 +55,7 @@ module Google
|
|
|
55
55
|
#
|
|
56
56
|
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
57
57
|
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
|
58
|
-
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.
|
|
58
|
+
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
|
59
59
|
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
60
60
|
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
|
61
61
|
#
|
|
@@ -35,7 +35,7 @@ module Google
|
|
|
35
35
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
|
36
36
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
|
37
37
|
# 3. [Enable the Container Analysis API.](https://console.cloud.google.com/apis/library/containeranalysis.googleapis.com)
|
|
38
|
-
# 4. [Setup Authentication.](https://googleapis.
|
|
38
|
+
# 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-container_analysis/latest/file.AUTHENTICATION.html)
|
|
39
39
|
#
|
|
40
40
|
# ### Installation
|
|
41
41
|
# ```
|
|
@@ -54,7 +54,7 @@ module Google
|
|
|
54
54
|
#
|
|
55
55
|
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
56
56
|
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
|
57
|
-
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.
|
|
57
|
+
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
|
58
58
|
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
59
59
|
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
|
60
60
|
#
|
|
@@ -80,6 +80,12 @@ module Google
|
|
|
80
80
|
|
|
81
81
|
private_constant :NOTE_PATH_TEMPLATE
|
|
82
82
|
|
|
83
|
+
OCCURRENCE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
|
84
|
+
"projects/{project}/occurrences/{occurrence}"
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
private_constant :OCCURRENCE_PATH_TEMPLATE
|
|
88
|
+
|
|
83
89
|
# Returns a fully-qualified note resource name string.
|
|
84
90
|
# @param project [String]
|
|
85
91
|
# @param note [String]
|
|
@@ -91,6 +97,17 @@ module Google
|
|
|
91
97
|
)
|
|
92
98
|
end
|
|
93
99
|
|
|
100
|
+
# Returns a fully-qualified occurrence resource name string.
|
|
101
|
+
# @param project [String]
|
|
102
|
+
# @param occurrence [String]
|
|
103
|
+
# @return [String]
|
|
104
|
+
def self.occurrence_path project, occurrence
|
|
105
|
+
OCCURRENCE_PATH_TEMPLATE.render(
|
|
106
|
+
:"project" => project,
|
|
107
|
+
:"occurrence" => occurrence
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
|
|
94
111
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
|
95
112
|
# Provides the means for authenticating requests made by the client. This parameter can
|
|
96
113
|
# be many types.
|
|
@@ -79,7 +79,7 @@ module Google
|
|
|
79
79
|
# ensure that their change will be applied to the same version of the policy.
|
|
80
80
|
#
|
|
81
81
|
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
|
82
|
-
# policy is overwritten
|
|
82
|
+
# policy is overwritten.
|
|
83
83
|
class Policy; end
|
|
84
84
|
|
|
85
85
|
# Associates `members` with a `role`.
|
|
@@ -99,7 +99,7 @@ module Google
|
|
|
99
99
|
# who is authenticated with a Google account or a service account.
|
|
100
100
|
#
|
|
101
101
|
# * `user:{emailid}`: An email address that represents a specific Google
|
|
102
|
-
# account. For example, `alice@
|
|
102
|
+
# account. For example, `alice@example.com` .
|
|
103
103
|
#
|
|
104
104
|
#
|
|
105
105
|
# * `serviceAccount:{emailid}`: An email address that represents a service
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-container_analysis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-08-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: grafeas-client
|
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
165
165
|
- !ruby/object:Gem::Version
|
|
166
166
|
version: '0'
|
|
167
167
|
requirements: []
|
|
168
|
-
rubygems_version: 3.0.
|
|
168
|
+
rubygems_version: 3.0.4
|
|
169
169
|
signing_key:
|
|
170
170
|
specification_version: 4
|
|
171
171
|
summary: API Client library for Container Analysis API
|