google-cloud-security_center-v1 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/security_center/v1/security_center/client.rb +9 -3
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/finding_pb.rb +3 -0
- data/lib/google/cloud/securitycenter/v1/iam_binding_pb.rb +30 -0
- data/lib/google/cloud/securitycenter/v1/mitre_attack_pb.rb +2 -0
- data/lib/google/cloud/securitycenter/v1/resource_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +2 -2
- data/proto_docs/google/cloud/securitycenter/v1/bigquery_export.rb +5 -5
- data/proto_docs/google/cloud/securitycenter/v1/external_system.rb +2 -1
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +10 -4
- data/proto_docs/google/cloud/securitycenter/v1/iam_binding.rb +56 -0
- data/proto_docs/google/cloud/securitycenter/v1/mitre_attack.rb +7 -0
- data/proto_docs/google/cloud/securitycenter/v1/resource.rb +7 -7
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +8 -8
- data/proto_docs/google/iam/v1/iam_policy.rb +8 -1
- data/proto_docs/google/iam/v1/options.rb +14 -4
- data/proto_docs/google/iam/v1/policy.rb +208 -38
- metadata +8 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb47b74e440ba1ff819ae1dabba3941f5546970e5233ed472e38308061180419
|
4
|
+
data.tar.gz: 866f1b03b7346308631dce5ec7343c0b585cdb6cd9923a72bbec988580f86c49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30a2550657ecd729c5885e4a02f841f466eb845b30a14f48caf83fdf98fc455ef09ca88a9f1affb91e170ccf5754e550b57383562a1bf1c9160ddef99bb510b5
|
7
|
+
data.tar.gz: 8b11f0377d29c4bb38a52135fe29bc15566c1dde326b666e7bd323bf5bf35f8acd14e5d9b4a95da73d4edef2bd2d87bf313cb0e8f32ca0b15b2c85d37e17f33f
|
@@ -1014,7 +1014,7 @@ module Google
|
|
1014
1014
|
# See the operation documentation for the appropriate value for this field.
|
1015
1015
|
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
1016
1016
|
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
1017
|
-
# `GetIamPolicy`.
|
1017
|
+
# `GetIamPolicy`.
|
1018
1018
|
#
|
1019
1019
|
# @yield [response, operation] Access the result along with the RPC operation
|
1020
1020
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
@@ -2918,7 +2918,7 @@ module Google
|
|
2918
2918
|
# @param options [::Gapic::CallOptions, ::Hash]
|
2919
2919
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2920
2920
|
#
|
2921
|
-
# @overload set_iam_policy(resource: nil, policy: nil)
|
2921
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
2922
2922
|
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
2923
2923
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2924
2924
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -2931,6 +2931,12 @@ module Google
|
|
2931
2931
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
2932
2932
|
# valid policy but certain Cloud Platform services (such as Projects)
|
2933
2933
|
# might reject them.
|
2934
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2935
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
2936
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
2937
|
+
# following default mask is used:
|
2938
|
+
#
|
2939
|
+
# `paths: "bindings, etag"`
|
2934
2940
|
#
|
2935
2941
|
# @yield [response, operation] Access the result along with the RPC operation
|
2936
2942
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
@@ -3661,7 +3667,7 @@ module Google
|
|
3661
3667
|
# The time at which the updated SecurityMarks take effect.
|
3662
3668
|
# If not set uses current server time. Updates will be applied to the
|
3663
3669
|
# SecurityMarks that are active immediately preceding this time. Must be
|
3664
|
-
#
|
3670
|
+
# earlier or equal to the server time.
|
3665
3671
|
#
|
3666
3672
|
# @yield [response, operation] Access the result along with the RPC operation
|
3667
3673
|
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::SecurityMarks]
|
@@ -5,6 +5,7 @@ require 'google/api/field_behavior_pb'
|
|
5
5
|
require 'google/api/resource_pb'
|
6
6
|
require 'google/cloud/securitycenter/v1/access_pb'
|
7
7
|
require 'google/cloud/securitycenter/v1/external_system_pb'
|
8
|
+
require 'google/cloud/securitycenter/v1/iam_binding_pb'
|
8
9
|
require 'google/cloud/securitycenter/v1/indicator_pb'
|
9
10
|
require 'google/cloud/securitycenter/v1/mitre_attack_pb'
|
10
11
|
require 'google/cloud/securitycenter/v1/security_marks_pb'
|
@@ -37,6 +38,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
37
38
|
optional :mitre_attack, :message, 25, "google.cloud.securitycenter.v1.MitreAttack"
|
38
39
|
optional :access, :message, 26, "google.cloud.securitycenter.v1.Access"
|
39
40
|
optional :mute_initiator, :string, 28
|
41
|
+
repeated :iam_bindings, :message, 39, "google.cloud.securitycenter.v1.IamBinding"
|
42
|
+
optional :next_steps, :string, 40
|
40
43
|
end
|
41
44
|
add_enum "google.cloud.securitycenter.v1.Finding.State" do
|
42
45
|
value :STATE_UNSPECIFIED, 0
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/securitycenter/v1/iam_binding.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("google/cloud/securitycenter/v1/iam_binding.proto", :syntax => :proto3) do
|
8
|
+
add_message "google.cloud.securitycenter.v1.IamBinding" do
|
9
|
+
optional :action, :enum, 1, "google.cloud.securitycenter.v1.IamBinding.Action"
|
10
|
+
optional :role, :string, 2
|
11
|
+
optional :member, :string, 3
|
12
|
+
end
|
13
|
+
add_enum "google.cloud.securitycenter.v1.IamBinding.Action" do
|
14
|
+
value :ACTION_UNSPECIFIED, 0
|
15
|
+
value :ADD, 1
|
16
|
+
value :REMOVE, 2
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module SecurityCenter
|
24
|
+
module V1
|
25
|
+
IamBinding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.IamBinding").msgclass
|
26
|
+
IamBinding::Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.IamBinding.Action").enummodule
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -59,6 +59,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
59
59
|
value :MODIFY_CLOUD_COMPUTE_INFRASTRUCTURE, 26
|
60
60
|
value :EXPLOIT_PUBLIC_FACING_APPLICATION, 27
|
61
61
|
value :MODIFY_AUTHENTICATION_PROCESS, 28
|
62
|
+
value :DATA_DESTRUCTION, 29
|
63
|
+
value :DOMAIN_POLICY_MODIFICATION, 30
|
62
64
|
end
|
63
65
|
end
|
64
66
|
end
|
@@ -9,13 +9,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
9
9
|
add_file("google/cloud/securitycenter/v1/resource.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.securitycenter.v1.Resource" do
|
11
11
|
optional :name, :string, 1
|
12
|
+
optional :display_name, :string, 8
|
13
|
+
optional :type, :string, 6
|
12
14
|
optional :project, :string, 2
|
13
15
|
optional :project_display_name, :string, 3
|
14
16
|
optional :parent, :string, 4
|
15
17
|
optional :parent_display_name, :string, 5
|
16
|
-
optional :type, :string, 6
|
17
18
|
repeated :folders, :message, 7, "google.cloud.securitycenter.v1.Folder"
|
18
|
-
optional :display_name, :string, 8
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
@@ -185,13 +185,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
185
185
|
end
|
186
186
|
add_message "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource" do
|
187
187
|
optional :name, :string, 1
|
188
|
+
optional :display_name, :string, 8
|
189
|
+
optional :type, :string, 6
|
188
190
|
optional :project_name, :string, 2
|
189
191
|
optional :project_display_name, :string, 3
|
190
192
|
optional :parent_name, :string, 4
|
191
193
|
optional :parent_display_name, :string, 5
|
192
|
-
optional :type, :string, 6
|
193
194
|
repeated :folders, :message, 7, "google.cloud.securitycenter.v1.Folder"
|
194
|
-
optional :display_name, :string, 8
|
195
195
|
end
|
196
196
|
add_enum "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange" do
|
197
197
|
value :UNUSED, 0
|
@@ -75,13 +75,13 @@ module Google
|
|
75
75
|
# creation or update.
|
76
76
|
# @!attribute [r] most_recent_editor
|
77
77
|
# @return [::String]
|
78
|
-
# Output only. Email address of the user who last edited the big query
|
79
|
-
#
|
80
|
-
#
|
78
|
+
# Output only. Email address of the user who last edited the big query export.
|
79
|
+
# This field is set by the server and will be ignored if provided on export
|
80
|
+
# creation or update.
|
81
81
|
# @!attribute [r] principal
|
82
82
|
# @return [::String]
|
83
|
-
# Output only. The service account that needs permission to create table,
|
84
|
-
#
|
83
|
+
# Output only. The service account that needs permission to create table, upload data to
|
84
|
+
# the big query dataset.
|
85
85
|
class BigQueryExport
|
86
86
|
include ::Google::Protobuf::MessageExts
|
87
87
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -25,7 +25,8 @@ module Google
|
|
25
25
|
# @!attribute [rw] name
|
26
26
|
# @return [::String]
|
27
27
|
# External System Name e.g. jira, demisto, etc.
|
28
|
-
# e.g.:
|
28
|
+
# e.g.:
|
29
|
+
# `organizations/1234/sources/5678/findings/123456/externalSystems/jira`
|
29
30
|
# `folders/1234/sources/5678/findings/123456/externalSystems/jira`
|
30
31
|
# `projects/1234/sources/5678/findings/123456/externalSystems/jira`
|
31
32
|
# @!attribute [rw] assignees
|
@@ -99,7 +99,7 @@ module Google
|
|
99
99
|
# finding.
|
100
100
|
# @!attribute [rw] mute
|
101
101
|
# @return [::Google::Cloud::SecurityCenter::V1::Finding::Mute]
|
102
|
-
# Indicates the mute state of a finding (either
|
102
|
+
# Indicates the mute state of a finding (either muted, unmuted
|
103
103
|
# or undefined). Unlike other attributes of a finding, a finding provider
|
104
104
|
# shouldn't set the value of mute.
|
105
105
|
# @!attribute [rw] finding_class
|
@@ -122,8 +122,8 @@ module Google
|
|
122
122
|
# Output only. The most recent time this finding was muted or unmuted.
|
123
123
|
# @!attribute [r] external_systems
|
124
124
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::SecurityCenter::V1::ExternalSystem}]
|
125
|
-
# Output only. Third party SIEM/SOAR fields within SCC, contains external
|
126
|
-
#
|
125
|
+
# Output only. Third party SIEM/SOAR fields within SCC, contains external system
|
126
|
+
# information and external system finding fields.
|
127
127
|
# @!attribute [rw] mitre_attack
|
128
128
|
# @return [::Google::Cloud::SecurityCenter::V1::MitreAttack]
|
129
129
|
# MITRE ATT&CK tactics and techniques related to this finding.
|
@@ -138,6 +138,12 @@ module Google
|
|
138
138
|
# mute operation e.g. mute config that muted the finding, user who muted the
|
139
139
|
# finding, etc. Unlike other attributes of a finding, a finding provider
|
140
140
|
# shouldn't set the value of mute.
|
141
|
+
# @!attribute [rw] iam_bindings
|
142
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V1::IamBinding>]
|
143
|
+
# Represents IAM bindings associated with the Finding.
|
144
|
+
# @!attribute [rw] next_steps
|
145
|
+
# @return [::String]
|
146
|
+
# Next steps associate to the finding.
|
141
147
|
class Finding
|
142
148
|
include ::Google::Protobuf::MessageExts
|
143
149
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -221,7 +227,7 @@ module Google
|
|
221
227
|
MEDIUM = 3
|
222
228
|
|
223
229
|
# Vulnerability:
|
224
|
-
# A low risk vulnerability hampers a security organization
|
230
|
+
# A low risk vulnerability hampers a security organization's ability to
|
225
231
|
# detect vulnerabilities or active threats in their deployment, or prevents
|
226
232
|
# the root cause investigation of security issues. An example is monitoring
|
227
233
|
# and logs being disabled for resource configurations and access.
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module SecurityCenter
|
23
|
+
module V1
|
24
|
+
# Represents a particular IAM binding, which captures a member's role addition,
|
25
|
+
# removal, or state.
|
26
|
+
# @!attribute [rw] action
|
27
|
+
# @return [::Google::Cloud::SecurityCenter::V1::IamBinding::Action]
|
28
|
+
# The action that was performed on a Binding.
|
29
|
+
# @!attribute [rw] role
|
30
|
+
# @return [::String]
|
31
|
+
# Role that is assigned to "members".
|
32
|
+
# For example, "roles/viewer", "roles/editor", or "roles/owner".
|
33
|
+
# @!attribute [rw] member
|
34
|
+
# @return [::String]
|
35
|
+
# A single identity requesting access for a Cloud Platform resource,
|
36
|
+
# e.g. "foo@google.com".
|
37
|
+
class IamBinding
|
38
|
+
include ::Google::Protobuf::MessageExts
|
39
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
40
|
+
|
41
|
+
# The type of action performed on a Binding in a policy.
|
42
|
+
module Action
|
43
|
+
# Unspecified.
|
44
|
+
ACTION_UNSPECIFIED = 0
|
45
|
+
|
46
|
+
# Addition of a Binding.
|
47
|
+
ADD = 1
|
48
|
+
|
49
|
+
# Removal of a Binding.
|
50
|
+
REMOVE = 2
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -99,6 +99,7 @@ module Google
|
|
99
99
|
|
100
100
|
# MITRE ATT&CK techniques that can be referenced by SCC findings.
|
101
101
|
# See: https://attack.mitre.org/techniques/enterprise/
|
102
|
+
# Next ID: 31
|
102
103
|
module Technique
|
103
104
|
# Unspecified value.
|
104
105
|
TECHNIQUE_UNSPECIFIED = 0
|
@@ -186,6 +187,12 @@ module Google
|
|
186
187
|
|
187
188
|
# T1556
|
188
189
|
MODIFY_AUTHENTICATION_PROCESS = 28
|
190
|
+
|
191
|
+
# T1485
|
192
|
+
DATA_DESTRUCTION = 29
|
193
|
+
|
194
|
+
# T1484
|
195
|
+
DOMAIN_POLICY_MODIFICATION = 30
|
189
196
|
end
|
190
197
|
end
|
191
198
|
end
|
@@ -26,29 +26,29 @@ module Google
|
|
26
26
|
# @return [::String]
|
27
27
|
# The full resource name of the resource. See:
|
28
28
|
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
29
|
+
# @!attribute [rw] display_name
|
30
|
+
# @return [::String]
|
31
|
+
# The human readable name of the resource.
|
32
|
+
# @!attribute [rw] type
|
33
|
+
# @return [::String]
|
34
|
+
# The full resource type of the resource.
|
29
35
|
# @!attribute [rw] project
|
30
36
|
# @return [::String]
|
31
37
|
# The full resource name of project that the resource belongs to.
|
32
38
|
# @!attribute [rw] project_display_name
|
33
39
|
# @return [::String]
|
34
|
-
# The project
|
40
|
+
# The project ID that the resource belongs to.
|
35
41
|
# @!attribute [rw] parent
|
36
42
|
# @return [::String]
|
37
43
|
# The full resource name of resource's parent.
|
38
44
|
# @!attribute [rw] parent_display_name
|
39
45
|
# @return [::String]
|
40
46
|
# The human readable name of resource's parent.
|
41
|
-
# @!attribute [rw] type
|
42
|
-
# @return [::String]
|
43
|
-
# The full resource type of the resource.
|
44
47
|
# @!attribute [r] folders
|
45
48
|
# @return [::Array<::Google::Cloud::SecurityCenter::V1::Folder>]
|
46
49
|
# Output only. Contains a Folder message for each folder in the assets ancestry.
|
47
50
|
# The first folder is the deepest nested folder, and the last folder is the
|
48
51
|
# folder directly under the Organization.
|
49
|
-
# @!attribute [rw] display_name
|
50
|
-
# @return [::String]
|
51
|
-
# The human readable name of the resource.
|
52
52
|
class Resource
|
53
53
|
include ::Google::Protobuf::MessageExts
|
54
54
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1048,29 +1048,29 @@ module Google
|
|
1048
1048
|
# @return [::String]
|
1049
1049
|
# The full resource name of the resource. See:
|
1050
1050
|
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
1051
|
+
# @!attribute [rw] display_name
|
1052
|
+
# @return [::String]
|
1053
|
+
# The human readable name of the resource.
|
1054
|
+
# @!attribute [rw] type
|
1055
|
+
# @return [::String]
|
1056
|
+
# The full resource type of the resource.
|
1051
1057
|
# @!attribute [rw] project_name
|
1052
1058
|
# @return [::String]
|
1053
1059
|
# The full resource name of project that the resource belongs to.
|
1054
1060
|
# @!attribute [rw] project_display_name
|
1055
1061
|
# @return [::String]
|
1056
|
-
# The project
|
1062
|
+
# The project ID that the resource belongs to.
|
1057
1063
|
# @!attribute [rw] parent_name
|
1058
1064
|
# @return [::String]
|
1059
1065
|
# The full resource name of resource's parent.
|
1060
1066
|
# @!attribute [rw] parent_display_name
|
1061
1067
|
# @return [::String]
|
1062
1068
|
# The human readable name of resource's parent.
|
1063
|
-
# @!attribute [rw] type
|
1064
|
-
# @return [::String]
|
1065
|
-
# The full resource type of the resource.
|
1066
1069
|
# @!attribute [rw] folders
|
1067
1070
|
# @return [::Array<::Google::Cloud::SecurityCenter::V1::Folder>]
|
1068
1071
|
# Contains a Folder message for each folder in the assets ancestry.
|
1069
1072
|
# The first folder is the deepest nested folder, and the last folder is
|
1070
1073
|
# the folder directly under the Organization.
|
1071
|
-
# @!attribute [rw] display_name
|
1072
|
-
# @return [::String]
|
1073
|
-
# The human readable name of the resource.
|
1074
1074
|
class Resource
|
1075
1075
|
include ::Google::Protobuf::MessageExts
|
1076
1076
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1259,7 +1259,7 @@ module Google
|
|
1259
1259
|
# The time at which the updated SecurityMarks take effect.
|
1260
1260
|
# If not set uses current server time. Updates will be applied to the
|
1261
1261
|
# SecurityMarks that are active immediately preceding this time. Must be
|
1262
|
-
#
|
1262
|
+
# earlier or equal to the server time.
|
1263
1263
|
class UpdateSecurityMarksRequest
|
1264
1264
|
include ::Google::Protobuf::MessageExts
|
1265
1265
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -31,6 +31,13 @@ module Google
|
|
31
31
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
32
32
|
# valid policy but certain Cloud Platform services (such as Projects)
|
33
33
|
# might reject them.
|
34
|
+
# @!attribute [rw] update_mask
|
35
|
+
# @return [::Google::Protobuf::FieldMask]
|
36
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
37
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
38
|
+
# following default mask is used:
|
39
|
+
#
|
40
|
+
# `paths: "bindings, etag"`
|
34
41
|
class SetIamPolicyRequest
|
35
42
|
include ::Google::Protobuf::MessageExts
|
36
43
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -44,7 +51,7 @@ module Google
|
|
44
51
|
# @!attribute [rw] options
|
45
52
|
# @return [::Google::Iam::V1::GetPolicyOptions]
|
46
53
|
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
47
|
-
# `GetIamPolicy`.
|
54
|
+
# `GetIamPolicy`.
|
48
55
|
class GetIamPolicyRequest
|
49
56
|
include ::Google::Protobuf::MessageExts
|
50
57
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -23,14 +23,24 @@ module Google
|
|
23
23
|
# Encapsulates settings provided to GetIamPolicy.
|
24
24
|
# @!attribute [rw] requested_policy_version
|
25
25
|
# @return [::Integer]
|
26
|
-
# Optional. The policy
|
26
|
+
# Optional. The maximum policy version that will be used to format the
|
27
|
+
# policy.
|
27
28
|
#
|
28
29
|
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
29
30
|
# rejected.
|
30
31
|
#
|
31
|
-
# Requests for policies with any conditional bindings must specify
|
32
|
-
# Policies
|
33
|
-
# leave the field unset.
|
32
|
+
# Requests for policies with any conditional role bindings must specify
|
33
|
+
# version 3. Policies with no conditional role bindings may specify any valid
|
34
|
+
# value or leave the field unset.
|
35
|
+
#
|
36
|
+
# The policy in the response might use the policy version that you specified,
|
37
|
+
# or it might use a lower policy version. For example, if you specify version
|
38
|
+
# 3, but the policy has no conditional role bindings, the response uses
|
39
|
+
# version 1.
|
40
|
+
#
|
41
|
+
# To learn which resources support conditions in their IAM policies, see the
|
42
|
+
# [IAM
|
43
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
34
44
|
class GetPolicyOptions
|
35
45
|
include ::Google::Protobuf::MessageExts
|
36
46
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -20,19 +20,24 @@
|
|
20
20
|
module Google
|
21
21
|
module Iam
|
22
22
|
module V1
|
23
|
-
#
|
24
|
-
#
|
23
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
24
|
+
# controls for Google Cloud resources.
|
25
25
|
#
|
26
26
|
#
|
27
27
|
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
28
|
-
# `members
|
29
|
-
# Google groups, and domains (such as G Suite). A
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# constrains the role binding based on attributes about the request and/or
|
33
|
-
# target resource.
|
28
|
+
# `members`, or principals, to a single `role`. Principals can be user
|
29
|
+
# accounts, service accounts, Google groups, and domains (such as G Suite). A
|
30
|
+
# `role` is a named list of permissions; each `role` can be an IAM predefined
|
31
|
+
# role or a user-created custom role.
|
34
32
|
#
|
35
|
-
#
|
33
|
+
# For some types of Google Cloud resources, a `binding` can also specify a
|
34
|
+
# `condition`, which is a logical expression that allows access to a resource
|
35
|
+
# only if the expression evaluates to `true`. A condition can add constraints
|
36
|
+
# based on attributes of the request, the resource, or both. To learn which
|
37
|
+
# resources support conditions in their IAM policies, see the
|
38
|
+
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
39
|
+
#
|
40
|
+
# **JSON example:**
|
36
41
|
#
|
37
42
|
# {
|
38
43
|
# "bindings": [
|
@@ -47,18 +52,21 @@ module Google
|
|
47
52
|
# },
|
48
53
|
# {
|
49
54
|
# "role": "roles/resourcemanager.organizationViewer",
|
50
|
-
# "members": [
|
55
|
+
# "members": [
|
56
|
+
# "user:eve@example.com"
|
57
|
+
# ],
|
51
58
|
# "condition": {
|
52
59
|
# "title": "expirable access",
|
53
60
|
# "description": "Does not grant access after Sep 2020",
|
54
|
-
# "expression": "request.time <
|
55
|
-
# timestamp('2020-10-01T00:00:00.000Z')",
|
61
|
+
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
|
56
62
|
# }
|
57
63
|
# }
|
58
|
-
# ]
|
64
|
+
# ],
|
65
|
+
# "etag": "BwWWja0YfJA=",
|
66
|
+
# "version": 3
|
59
67
|
# }
|
60
68
|
#
|
61
|
-
# **YAML
|
69
|
+
# **YAML example:**
|
62
70
|
#
|
63
71
|
# bindings:
|
64
72
|
# - members:
|
@@ -74,30 +82,52 @@ module Google
|
|
74
82
|
# title: expirable access
|
75
83
|
# description: Does not grant access after Sep 2020
|
76
84
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
85
|
+
# etag: BwWWja0YfJA=
|
86
|
+
# version: 3
|
77
87
|
#
|
78
88
|
# For a description of IAM and its features, see the
|
79
|
-
# [IAM
|
89
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
80
90
|
# @!attribute [rw] version
|
81
91
|
# @return [::Integer]
|
82
92
|
# Specifies the format of the policy.
|
83
93
|
#
|
84
|
-
# Valid values are 0
|
85
|
-
# rejected.
|
94
|
+
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
|
95
|
+
# are rejected.
|
96
|
+
#
|
97
|
+
# Any operation that affects conditional role bindings must specify version
|
98
|
+
# `3`. This requirement applies to the following operations:
|
86
99
|
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# leave the field unset.
|
100
|
+
# * Getting a policy that includes a conditional role binding
|
101
|
+
# * Adding a conditional role binding to a policy
|
102
|
+
# * Changing a conditional role binding in a policy
|
103
|
+
# * Removing any role binding, with or without a condition, from a policy
|
104
|
+
# that includes conditions
|
93
105
|
#
|
94
|
-
# If
|
95
|
-
#
|
106
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
107
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
108
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
109
|
+
# the conditions in the version `3` policy are lost.
|
110
|
+
#
|
111
|
+
# If a policy does not include any conditions, operations on that policy may
|
112
|
+
# specify any valid version or leave the field unset.
|
113
|
+
#
|
114
|
+
# To learn which resources support conditions in their IAM policies, see the
|
115
|
+
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
96
116
|
# @!attribute [rw] bindings
|
97
117
|
# @return [::Array<::Google::Iam::V1::Binding>]
|
98
|
-
# Associates a list of `members
|
99
|
-
# `condition` that determines when
|
100
|
-
# `bindings`
|
118
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally,
|
119
|
+
# may specify a `condition` that determines how and when the `bindings` are
|
120
|
+
# applied. Each of the `bindings` must contain at least one principal.
|
121
|
+
#
|
122
|
+
# The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
|
123
|
+
# of these principals can be Google groups. Each occurrence of a principal
|
124
|
+
# counts towards these limits. For example, if the `bindings` grant 50
|
125
|
+
# different roles to `user:alice@example.com`, and not to any other
|
126
|
+
# principal, then you can add another 1,450 principals to the `bindings` in
|
127
|
+
# the `Policy`.
|
128
|
+
# @!attribute [rw] audit_configs
|
129
|
+
# @return [::Array<::Google::Iam::V1::AuditConfig>]
|
130
|
+
# Specifies cloud audit logging configuration for this policy.
|
101
131
|
# @!attribute [rw] etag
|
102
132
|
# @return [::String]
|
103
133
|
# `etag` is used for optimistic concurrency control as a way to help
|
@@ -108,23 +138,23 @@ module Google
|
|
108
138
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
109
139
|
# ensure that their change will be applied to the same version of the policy.
|
110
140
|
#
|
111
|
-
# If
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
141
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
142
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
143
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
144
|
+
# the conditions in the version `3` policy are lost.
|
115
145
|
class Policy
|
116
146
|
include ::Google::Protobuf::MessageExts
|
117
147
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
118
148
|
end
|
119
149
|
|
120
|
-
# Associates `members
|
150
|
+
# Associates `members`, or principals, with a `role`.
|
121
151
|
# @!attribute [rw] role
|
122
152
|
# @return [::String]
|
123
|
-
# Role that is assigned to `members
|
153
|
+
# Role that is assigned to the list of `members`, or principals.
|
124
154
|
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
125
155
|
# @!attribute [rw] members
|
126
156
|
# @return [::Array<::String>]
|
127
|
-
# Specifies the
|
157
|
+
# Specifies the principals requesting access for a Cloud Platform resource.
|
128
158
|
# `members` can have the following values:
|
129
159
|
#
|
130
160
|
# * `allUsers`: A special identifier that represents anyone who is
|
@@ -143,20 +173,160 @@ module Google
|
|
143
173
|
# * `group:{emailid}`: An email address that represents a Google group.
|
144
174
|
# For example, `admins@example.com`.
|
145
175
|
#
|
176
|
+
# * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
|
177
|
+
# identifier) representing a user that has been recently deleted. For
|
178
|
+
# example, `alice@example.com?uid=123456789012345678901`. If the user is
|
179
|
+
# recovered, this value reverts to `user:{emailid}` and the recovered user
|
180
|
+
# retains the role in the binding.
|
181
|
+
#
|
182
|
+
# * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
|
183
|
+
# unique identifier) representing a service account that has been recently
|
184
|
+
# deleted. For example,
|
185
|
+
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
186
|
+
# If the service account is undeleted, this value reverts to
|
187
|
+
# `serviceAccount:{emailid}` and the undeleted service account retains the
|
188
|
+
# role in the binding.
|
189
|
+
#
|
190
|
+
# * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
|
191
|
+
# identifier) representing a Google group that has been recently
|
192
|
+
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
193
|
+
# the group is recovered, this value reverts to `group:{emailid}` and the
|
194
|
+
# recovered group retains the role in the binding.
|
195
|
+
#
|
146
196
|
#
|
147
197
|
# * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
148
198
|
# users of that domain. For example, `google.com` or `example.com`.
|
149
199
|
# @!attribute [rw] condition
|
150
200
|
# @return [::Google::Type::Expr]
|
151
201
|
# The condition that is associated with this binding.
|
152
|
-
#
|
153
|
-
#
|
154
|
-
#
|
202
|
+
#
|
203
|
+
# If the condition evaluates to `true`, then this binding applies to the
|
204
|
+
# current request.
|
205
|
+
#
|
206
|
+
# If the condition evaluates to `false`, then this binding does not apply to
|
207
|
+
# the current request. However, a different role binding might grant the same
|
208
|
+
# role to one or more of the principals in this binding.
|
209
|
+
#
|
210
|
+
# To learn which resources support conditions in their IAM policies, see the
|
211
|
+
# [IAM
|
212
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
155
213
|
class Binding
|
156
214
|
include ::Google::Protobuf::MessageExts
|
157
215
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
158
216
|
end
|
159
217
|
|
218
|
+
# Specifies the audit configuration for a service.
|
219
|
+
# The configuration determines which permission types are logged, and what
|
220
|
+
# identities, if any, are exempted from logging.
|
221
|
+
# An AuditConfig must have one or more AuditLogConfigs.
|
222
|
+
#
|
223
|
+
# If there are AuditConfigs for both `allServices` and a specific service,
|
224
|
+
# the union of the two AuditConfigs is used for that service: the log_types
|
225
|
+
# specified in each AuditConfig are enabled, and the exempted_members in each
|
226
|
+
# AuditLogConfig are exempted.
|
227
|
+
#
|
228
|
+
# Example Policy with multiple AuditConfigs:
|
229
|
+
#
|
230
|
+
# {
|
231
|
+
# "audit_configs": [
|
232
|
+
# {
|
233
|
+
# "service": "allServices",
|
234
|
+
# "audit_log_configs": [
|
235
|
+
# {
|
236
|
+
# "log_type": "DATA_READ",
|
237
|
+
# "exempted_members": [
|
238
|
+
# "user:jose@example.com"
|
239
|
+
# ]
|
240
|
+
# },
|
241
|
+
# {
|
242
|
+
# "log_type": "DATA_WRITE"
|
243
|
+
# },
|
244
|
+
# {
|
245
|
+
# "log_type": "ADMIN_READ"
|
246
|
+
# }
|
247
|
+
# ]
|
248
|
+
# },
|
249
|
+
# {
|
250
|
+
# "service": "sampleservice.googleapis.com",
|
251
|
+
# "audit_log_configs": [
|
252
|
+
# {
|
253
|
+
# "log_type": "DATA_READ"
|
254
|
+
# },
|
255
|
+
# {
|
256
|
+
# "log_type": "DATA_WRITE",
|
257
|
+
# "exempted_members": [
|
258
|
+
# "user:aliya@example.com"
|
259
|
+
# ]
|
260
|
+
# }
|
261
|
+
# ]
|
262
|
+
# }
|
263
|
+
# ]
|
264
|
+
# }
|
265
|
+
#
|
266
|
+
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
267
|
+
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
268
|
+
# aliya@example.com from DATA_WRITE logging.
|
269
|
+
# @!attribute [rw] service
|
270
|
+
# @return [::String]
|
271
|
+
# Specifies a service that will be enabled for audit logging.
|
272
|
+
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
273
|
+
# `allServices` is a special value that covers all services.
|
274
|
+
# @!attribute [rw] audit_log_configs
|
275
|
+
# @return [::Array<::Google::Iam::V1::AuditLogConfig>]
|
276
|
+
# The configuration for logging of each type of permission.
|
277
|
+
class AuditConfig
|
278
|
+
include ::Google::Protobuf::MessageExts
|
279
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
280
|
+
end
|
281
|
+
|
282
|
+
# Provides the configuration for logging a type of permissions.
|
283
|
+
# Example:
|
284
|
+
#
|
285
|
+
# {
|
286
|
+
# "audit_log_configs": [
|
287
|
+
# {
|
288
|
+
# "log_type": "DATA_READ",
|
289
|
+
# "exempted_members": [
|
290
|
+
# "user:jose@example.com"
|
291
|
+
# ]
|
292
|
+
# },
|
293
|
+
# {
|
294
|
+
# "log_type": "DATA_WRITE"
|
295
|
+
# }
|
296
|
+
# ]
|
297
|
+
# }
|
298
|
+
#
|
299
|
+
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
300
|
+
# jose@example.com from DATA_READ logging.
|
301
|
+
# @!attribute [rw] log_type
|
302
|
+
# @return [::Google::Iam::V1::AuditLogConfig::LogType]
|
303
|
+
# The log type that this config enables.
|
304
|
+
# @!attribute [rw] exempted_members
|
305
|
+
# @return [::Array<::String>]
|
306
|
+
# Specifies the identities that do not cause logging for this type of
|
307
|
+
# permission.
|
308
|
+
# Follows the same format of {::Google::Iam::V1::Binding#members Binding.members}.
|
309
|
+
class AuditLogConfig
|
310
|
+
include ::Google::Protobuf::MessageExts
|
311
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
312
|
+
|
313
|
+
# The list of valid permission types for which logging can be configured.
|
314
|
+
# Admin writes are always logged, and are not configurable.
|
315
|
+
module LogType
|
316
|
+
# Default case. Should never be this.
|
317
|
+
LOG_TYPE_UNSPECIFIED = 0
|
318
|
+
|
319
|
+
# Admin reads. Example: CloudIAM getIamPolicy
|
320
|
+
ADMIN_READ = 1
|
321
|
+
|
322
|
+
# Data writes. Example: CloudSQL Users create
|
323
|
+
DATA_WRITE = 2
|
324
|
+
|
325
|
+
# Data reads. Example: CloudSQL Users list
|
326
|
+
DATA_READ = 3
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
160
330
|
# The difference delta between two policies.
|
161
331
|
# @!attribute [rw] binding_deltas
|
162
332
|
# @return [::Array<::Google::Iam::V1::BindingDelta>]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-security_center-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.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: 2022-
|
11
|
+
date: 2022-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -48,22 +48,16 @@ dependencies:
|
|
48
48
|
name: grpc-google-iam-v1
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 0.6.10
|
54
|
-
- - "<"
|
51
|
+
- - "~>"
|
55
52
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
53
|
+
version: '1.1'
|
57
54
|
type: :runtime
|
58
55
|
prerelease: false
|
59
56
|
version_requirements: !ruby/object:Gem::Requirement
|
60
57
|
requirements:
|
61
|
-
- - "
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 0.6.10
|
64
|
-
- - "<"
|
58
|
+
- - "~>"
|
65
59
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
60
|
+
version: '1.1'
|
67
61
|
- !ruby/object:Gem::Dependency
|
68
62
|
name: google-style
|
69
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,6 +197,7 @@ files:
|
|
203
197
|
- lib/google/cloud/securitycenter/v1/external_system_pb.rb
|
204
198
|
- lib/google/cloud/securitycenter/v1/finding_pb.rb
|
205
199
|
- lib/google/cloud/securitycenter/v1/folder_pb.rb
|
200
|
+
- lib/google/cloud/securitycenter/v1/iam_binding_pb.rb
|
206
201
|
- lib/google/cloud/securitycenter/v1/indicator_pb.rb
|
207
202
|
- lib/google/cloud/securitycenter/v1/mitre_attack_pb.rb
|
208
203
|
- lib/google/cloud/securitycenter/v1/mute_config_pb.rb
|
@@ -225,6 +220,7 @@ files:
|
|
225
220
|
- proto_docs/google/cloud/securitycenter/v1/external_system.rb
|
226
221
|
- proto_docs/google/cloud/securitycenter/v1/finding.rb
|
227
222
|
- proto_docs/google/cloud/securitycenter/v1/folder.rb
|
223
|
+
- proto_docs/google/cloud/securitycenter/v1/iam_binding.rb
|
228
224
|
- proto_docs/google/cloud/securitycenter/v1/indicator.rb
|
229
225
|
- proto_docs/google/cloud/securitycenter/v1/mitre_attack.rb
|
230
226
|
- proto_docs/google/cloud/securitycenter/v1/mute_config.rb
|