google-cloud-container_analysis 0.4.1 → 1.0.3
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/.yardopts +2 -1
- data/AUTHENTICATION.md +51 -59
- data/LICENSE.md +203 -0
- data/MIGRATING.md +326 -0
- data/README.md +92 -35
- data/lib/google-cloud-container_analysis.rb +6 -2
- data/lib/google/cloud/container_analysis.rb +89 -120
- data/lib/google/cloud/container_analysis/version.rb +6 -2
- metadata +43 -63
- data/LICENSE +0 -201
- data/lib/google/cloud/container_analysis/v1.rb +0 -158
- data/lib/google/cloud/container_analysis/v1/container_analysis_client.rb +0 -397
- data/lib/google/cloud/container_analysis/v1/container_analysis_client_config.json +0 -41
- data/lib/google/cloud/container_analysis/v1/credentials.rb +0 -41
- data/lib/google/cloud/container_analysis/v1/doc/google/iam/v1/iam_policy.rb +0 -64
- data/lib/google/cloud/container_analysis/v1/doc/google/iam/v1/options.rb +0 -33
- data/lib/google/cloud/container_analysis/v1/doc/google/iam/v1/policy.rb +0 -150
- data/lib/google/cloud/container_analysis/v1/doc/google/type/expr.rb +0 -45
- data/lib/google/devtools/containeranalysis/v1/containeranalysis_pb.rb +0 -15
- data/lib/google/devtools/containeranalysis/v1/containeranalysis_services_pb.rb +0 -77
@@ -1,41 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"google.devtools.containeranalysis.v1.ContainerAnalysis": {
|
4
|
-
"retry_codes": {
|
5
|
-
"idempotent": [
|
6
|
-
"DEADLINE_EXCEEDED",
|
7
|
-
"UNAVAILABLE"
|
8
|
-
],
|
9
|
-
"non_idempotent": []
|
10
|
-
},
|
11
|
-
"retry_params": {
|
12
|
-
"default": {
|
13
|
-
"initial_retry_delay_millis": 100,
|
14
|
-
"retry_delay_multiplier": 1.3,
|
15
|
-
"max_retry_delay_millis": 60000,
|
16
|
-
"initial_rpc_timeout_millis": 20000,
|
17
|
-
"rpc_timeout_multiplier": 1.0,
|
18
|
-
"max_rpc_timeout_millis": 20000,
|
19
|
-
"total_timeout_millis": 600000
|
20
|
-
}
|
21
|
-
},
|
22
|
-
"methods": {
|
23
|
-
"SetIamPolicy": {
|
24
|
-
"timeout_millis": 30000,
|
25
|
-
"retry_codes_name": "non_idempotent",
|
26
|
-
"retry_params_name": "default"
|
27
|
-
},
|
28
|
-
"GetIamPolicy": {
|
29
|
-
"timeout_millis": 30000,
|
30
|
-
"retry_codes_name": "non_idempotent",
|
31
|
-
"retry_params_name": "default"
|
32
|
-
},
|
33
|
-
"TestIamPermissions": {
|
34
|
-
"timeout_millis": 30000,
|
35
|
-
"retry_codes_name": "non_idempotent",
|
36
|
-
"retry_params_name": "default"
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
41
|
-
}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
require "googleauth"
|
17
|
-
|
18
|
-
module Google
|
19
|
-
module Cloud
|
20
|
-
module ContainerAnalysis
|
21
|
-
module V1
|
22
|
-
class Credentials < Google::Auth::Credentials
|
23
|
-
SCOPE = [
|
24
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
25
|
-
].freeze
|
26
|
-
PATH_ENV_VARS = %w(CONTAINER_ANALYSIS_CREDENTIALS
|
27
|
-
CONTAINER_ANALYSIS_KEYFILE
|
28
|
-
GOOGLE_CLOUD_CREDENTIALS
|
29
|
-
GOOGLE_CLOUD_KEYFILE
|
30
|
-
GCLOUD_KEYFILE)
|
31
|
-
JSON_ENV_VARS = %w(CONTAINER_ANALYSIS_CREDENTIALS_JSON
|
32
|
-
CONTAINER_ANALYSIS_KEYFILE_JSON
|
33
|
-
GOOGLE_CLOUD_CREDENTIALS_JSON
|
34
|
-
GOOGLE_CLOUD_KEYFILE_JSON
|
35
|
-
GCLOUD_KEYFILE_JSON)
|
36
|
-
DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
@@ -1,64 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
module Google
|
17
|
-
module Iam
|
18
|
-
module V1
|
19
|
-
# Request message for `SetIamPolicy` method.
|
20
|
-
# @!attribute [rw] resource
|
21
|
-
# @return [String]
|
22
|
-
# REQUIRED: The resource for which the policy is being specified.
|
23
|
-
# See the operation documentation for the appropriate value for this field.
|
24
|
-
# @!attribute [rw] policy
|
25
|
-
# @return [Google::Iam::V1::Policy]
|
26
|
-
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
27
|
-
# the policy is limited to a few 10s of KB. An empty policy is a
|
28
|
-
# valid policy but certain Cloud Platform services (such as Projects)
|
29
|
-
# might reject them.
|
30
|
-
class SetIamPolicyRequest; end
|
31
|
-
|
32
|
-
# Request message for `GetIamPolicy` method.
|
33
|
-
# @!attribute [rw] resource
|
34
|
-
# @return [String]
|
35
|
-
# REQUIRED: The resource for which the policy is being requested.
|
36
|
-
# See the operation documentation for the appropriate value for this field.
|
37
|
-
# @!attribute [rw] options
|
38
|
-
# @return [Google::Iam::V1::GetPolicyOptions]
|
39
|
-
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
40
|
-
# `GetIamPolicy`. This field is only used by Cloud IAM.
|
41
|
-
class GetIamPolicyRequest; end
|
42
|
-
|
43
|
-
# Request message for `TestIamPermissions` method.
|
44
|
-
# @!attribute [rw] resource
|
45
|
-
# @return [String]
|
46
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
47
|
-
# See the operation documentation for the appropriate value for this field.
|
48
|
-
# @!attribute [rw] permissions
|
49
|
-
# @return [Array<String>]
|
50
|
-
# The set of permissions to check for the `resource`. Permissions with
|
51
|
-
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
52
|
-
# information see
|
53
|
-
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
54
|
-
class TestIamPermissionsRequest; end
|
55
|
-
|
56
|
-
# Response message for `TestIamPermissions` method.
|
57
|
-
# @!attribute [rw] permissions
|
58
|
-
# @return [Array<String>]
|
59
|
-
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
60
|
-
# allowed.
|
61
|
-
class TestIamPermissionsResponse; end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
module Google
|
17
|
-
module Iam
|
18
|
-
module V1
|
19
|
-
# Encapsulates settings provided to GetIamPolicy.
|
20
|
-
# @!attribute [rw] requested_policy_version
|
21
|
-
# @return [Integer]
|
22
|
-
# Optional. The policy format version to be returned.
|
23
|
-
#
|
24
|
-
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
25
|
-
# rejected.
|
26
|
-
#
|
27
|
-
# Requests for policies with any conditional bindings must specify version 3.
|
28
|
-
# Policies without any conditional bindings may specify any valid value or
|
29
|
-
# leave the field unset.
|
30
|
-
class GetPolicyOptions; end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,150 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
module Google
|
17
|
-
module Iam
|
18
|
-
module V1
|
19
|
-
# Defines an Identity and Access Management (IAM) policy. It is used to
|
20
|
-
# specify access control policies for Cloud Platform resources.
|
21
|
-
#
|
22
|
-
#
|
23
|
-
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
24
|
-
# `members` to a single `role`. Members can be user accounts, service accounts,
|
25
|
-
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
26
|
-
# permissions (defined by IAM or configured by users). A `binding` can
|
27
|
-
# optionally specify a `condition`, which is a logic expression that further
|
28
|
-
# constrains the role binding based on attributes about the request and/or
|
29
|
-
# target resource.
|
30
|
-
#
|
31
|
-
# **JSON Example**
|
32
|
-
#
|
33
|
-
# {
|
34
|
-
# "bindings": [
|
35
|
-
# {
|
36
|
-
# "role": "roles/resourcemanager.organizationAdmin",
|
37
|
-
# "members": [
|
38
|
-
# "user:mike@example.com",
|
39
|
-
# "group:admins@example.com",
|
40
|
-
# "domain:google.com",
|
41
|
-
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
42
|
-
# ]
|
43
|
-
# },
|
44
|
-
# {
|
45
|
-
# "role": "roles/resourcemanager.organizationViewer",
|
46
|
-
# "members": ["user:eve@example.com"],
|
47
|
-
# "condition": {
|
48
|
-
# "title": "expirable access",
|
49
|
-
# "description": "Does not grant access after Sep 2020",
|
50
|
-
# "expression": "request.time <
|
51
|
-
# timestamp('2020-10-01T00:00:00.000Z')",
|
52
|
-
# }
|
53
|
-
# }
|
54
|
-
# ]
|
55
|
-
# }
|
56
|
-
#
|
57
|
-
# **YAML Example**
|
58
|
-
#
|
59
|
-
# bindings:
|
60
|
-
# * members:
|
61
|
-
# * user:mike@example.com
|
62
|
-
# * group:admins@example.com
|
63
|
-
# * domain:google.com
|
64
|
-
# * serviceAccount:my-project-id@appspot.gserviceaccount.com
|
65
|
-
# role: roles/resourcemanager.organizationAdmin
|
66
|
-
# * members:
|
67
|
-
# * user:eve@example.com
|
68
|
-
# role: roles/resourcemanager.organizationViewer
|
69
|
-
# condition:
|
70
|
-
# title: expirable access
|
71
|
-
# description: Does not grant access after Sep 2020
|
72
|
-
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
73
|
-
#
|
74
|
-
# For a description of IAM and its features, see the
|
75
|
-
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
76
|
-
# @!attribute [rw] version
|
77
|
-
# @return [Integer]
|
78
|
-
# Specifies the format of the policy.
|
79
|
-
#
|
80
|
-
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
81
|
-
# rejected.
|
82
|
-
#
|
83
|
-
# Operations affecting conditional bindings must specify version 3. This can
|
84
|
-
# be either setting a conditional policy, modifying a conditional binding,
|
85
|
-
# or removing a conditional binding from the stored conditional policy.
|
86
|
-
# Operations on non-conditional policies may specify any valid value or
|
87
|
-
# leave the field unset.
|
88
|
-
#
|
89
|
-
# If no etag is provided in the call to `setIamPolicy`, any version
|
90
|
-
# compliance checks on the incoming and/or stored policy is skipped.
|
91
|
-
# @!attribute [rw] bindings
|
92
|
-
# @return [Array<Google::Iam::V1::Binding>]
|
93
|
-
# Associates a list of `members` to a `role`. Optionally may specify a
|
94
|
-
# `condition` that determines when binding is in effect.
|
95
|
-
# `bindings` with no members will result in an error.
|
96
|
-
# @!attribute [rw] etag
|
97
|
-
# @return [String]
|
98
|
-
# `etag` is used for optimistic concurrency control as a way to help
|
99
|
-
# prevent simultaneous updates of a policy from overwriting each other.
|
100
|
-
# It is strongly suggested that systems make use of the `etag` in the
|
101
|
-
# read-modify-write cycle to perform policy updates in order to avoid race
|
102
|
-
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
103
|
-
# systems are expected to put that etag in the request to `setIamPolicy` to
|
104
|
-
# ensure that their change will be applied to the same version of the policy.
|
105
|
-
#
|
106
|
-
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
107
|
-
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
|
108
|
-
# 'setIamPolicy' will not fail even if either of incoming or stored policy
|
109
|
-
# does not meet the version requirements.
|
110
|
-
class Policy; end
|
111
|
-
|
112
|
-
# Associates `members` with a `role`.
|
113
|
-
# @!attribute [rw] role
|
114
|
-
# @return [String]
|
115
|
-
# Role that is assigned to `members`.
|
116
|
-
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
117
|
-
# @!attribute [rw] members
|
118
|
-
# @return [Array<String>]
|
119
|
-
# Specifies the identities requesting access for a Cloud Platform resource.
|
120
|
-
# `members` can have the following values:
|
121
|
-
#
|
122
|
-
# * `allUsers`: A special identifier that represents anyone who is
|
123
|
-
# on the internet; with or without a Google account.
|
124
|
-
#
|
125
|
-
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
126
|
-
# who is authenticated with a Google account or a service account.
|
127
|
-
#
|
128
|
-
# * `user:{emailid}`: An email address that represents a specific Google
|
129
|
-
# account. For example, `alice@example.com` .
|
130
|
-
#
|
131
|
-
#
|
132
|
-
# * `serviceAccount:{emailid}`: An email address that represents a service
|
133
|
-
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
134
|
-
#
|
135
|
-
# * `group:{emailid}`: An email address that represents a Google group.
|
136
|
-
# For example, `admins@example.com`.
|
137
|
-
#
|
138
|
-
#
|
139
|
-
# * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
140
|
-
# users of that domain. For example, `google.com` or `example.com`.
|
141
|
-
# @!attribute [rw] condition
|
142
|
-
# @return [Google::Type::Expr]
|
143
|
-
# The condition that is associated with this binding.
|
144
|
-
# NOTE: An unsatisfied condition will not allow user access via current
|
145
|
-
# binding. Different bindings, including their conditions, are examined
|
146
|
-
# independently.
|
147
|
-
class Binding; end
|
148
|
-
end
|
149
|
-
end
|
150
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
module Google
|
17
|
-
module Type
|
18
|
-
# Represents an expression text. Example:
|
19
|
-
#
|
20
|
-
# title: "User account presence"
|
21
|
-
# description: "Determines whether the request has a user account"
|
22
|
-
# expression: "size(request.user) > 0"
|
23
|
-
# @!attribute [rw] expression
|
24
|
-
# @return [String]
|
25
|
-
# Textual representation of an expression in
|
26
|
-
# Common Expression Language syntax.
|
27
|
-
#
|
28
|
-
# The application context of the containing message determines which
|
29
|
-
# well-known feature set of CEL is supported.
|
30
|
-
# @!attribute [rw] title
|
31
|
-
# @return [String]
|
32
|
-
# An optional title for the expression, i.e. a short string describing
|
33
|
-
# its purpose. This can be used e.g. in UIs which allow to enter the
|
34
|
-
# expression.
|
35
|
-
# @!attribute [rw] description
|
36
|
-
# @return [String]
|
37
|
-
# An optional description of the expression. This is a longer text which
|
38
|
-
# describes the expression, e.g. when hovered over it in a UI.
|
39
|
-
# @!attribute [rw] location
|
40
|
-
# @return [String]
|
41
|
-
# An optional string indicating the location of the expression for error
|
42
|
-
# reporting, e.g. a file name and a position in the file.
|
43
|
-
class Expr; end
|
44
|
-
end
|
45
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/devtools/containeranalysis/v1/containeranalysis.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/iam/v1/iam_policy_pb'
|
9
|
-
require 'google/iam/v1/policy_pb'
|
10
|
-
require 'google/protobuf/timestamp_pb'
|
11
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
-
end
|
13
|
-
|
14
|
-
module Google::Cloud::ContainerAnalysis::V1
|
15
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/devtools/containeranalysis/v1/containeranalysis.proto for package 'Google::Cloud::ContainerAnalysis::V1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019 Google LLC.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
#
|
19
|
-
|
20
|
-
|
21
|
-
require 'grpc'
|
22
|
-
require 'google/devtools/containeranalysis/v1/containeranalysis_pb'
|
23
|
-
|
24
|
-
module Google::Cloud::ContainerAnalysis::V1
|
25
|
-
module ContainerAnalysisService
|
26
|
-
# Retrieves analysis results of Cloud components such as Docker container
|
27
|
-
# images. The Container Analysis API is an implementation of the
|
28
|
-
# [Grafeas](https://grafeas.io) API.
|
29
|
-
#
|
30
|
-
# Analysis results are stored as a series of occurrences. An `Occurrence`
|
31
|
-
# contains information about a specific analysis instance on a resource. An
|
32
|
-
# occurrence refers to a `Note`. A note contains details describing the
|
33
|
-
# analysis and is generally stored in a separate project, called a `Provider`.
|
34
|
-
# Multiple occurrences can refer to the same note.
|
35
|
-
#
|
36
|
-
# For example, an SSL vulnerability could affect multiple images. In this case,
|
37
|
-
# there would be one note for the vulnerability and an occurrence for each
|
38
|
-
# image with the vulnerability referring to that note.
|
39
|
-
class Service
|
40
|
-
|
41
|
-
include GRPC::GenericService
|
42
|
-
|
43
|
-
self.marshal_class_method = :encode
|
44
|
-
self.unmarshal_class_method = :decode
|
45
|
-
self.service_name = 'google.devtools.containeranalysis.v1.ContainerAnalysis'
|
46
|
-
|
47
|
-
# Sets the access control policy on the specified note or occurrence.
|
48
|
-
# Requires `containeranalysis.notes.setIamPolicy` or
|
49
|
-
# `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
50
|
-
# a note or an occurrence, respectively.
|
51
|
-
#
|
52
|
-
# The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
53
|
-
# notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
54
|
-
# occurrences.
|
55
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
56
|
-
# Gets the access control policy for a note or an occurrence resource.
|
57
|
-
# Requires `containeranalysis.notes.setIamPolicy` or
|
58
|
-
# `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
59
|
-
# a note or occurrence, respectively.
|
60
|
-
#
|
61
|
-
# The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
62
|
-
# notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
63
|
-
# occurrences.
|
64
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
65
|
-
# Returns the permissions that a caller has on the specified note or
|
66
|
-
# occurrence. Requires list permission on the project (for example,
|
67
|
-
# `containeranalysis.notes.list`).
|
68
|
-
#
|
69
|
-
# The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
70
|
-
# notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
71
|
-
# occurrences.
|
72
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
73
|
-
end
|
74
|
-
|
75
|
-
Stub = Service.rpc_stub_class
|
76
|
-
end
|
77
|
-
end
|