google-apis-securitycenter_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 74c8d619f7caf482c5627ba9fe5373c99fe7f34500bf9c1fbc385538ac0c9e48
4
+ data.tar.gz: 2d3f6fde7a9bb045872ec0662c831fe2ecb86035a82c310df43c320d234792f9
5
+ SHA512:
6
+ metadata.gz: da6c9ecb9eb554fff1c105a4bb78c94d3159d2c7c8ea7415a0968d2626e65ef7fd99219147b4f00c136d0d9d8be795bc8b4b4ce7dbece038ca403f6ffadaf039
7
+ data.tar.gz: 02b6340cc573bec001d4280ffd681b9ec7877542a48fadc9c1e09ccf633e4328835d534e0821583420b34161db50411069598777fc34b9adc8f34ca9360c9093
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-securitycenter_v1beta1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/securitycenter_v1beta1/*.rb
9
+ lib/google/apis/securitycenter_v1beta1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-securitycenter_v1beta1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated from discovery document revision 20201231
6
+ * Regenerated using generator version 0.1.1
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1beta1 of the Security Command Center API
2
+
3
+ This is a simple client library for version V1beta1 of the Security Command Center API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/securitycenter.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-securitycenter_v1beta1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-securitycenter_v1beta1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/securitycenter_v1beta1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::SecuritycenterV1beta1::SecurityCommandCenterService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Securitycenter service in particular.)
67
+
68
+ For reference information on specific calls in the Security Command Center API, see the {Google::Apis::SecuritycenterV1beta1::SecurityCommandCenterService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-securitycenter_v1beta1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/security-command-center) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 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
+ # http://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
+ require "google/apis/securitycenter_v1beta1"
@@ -0,0 +1,37 @@
1
+ # Copyright 2020 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
+ # http://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
+ require 'google/apis/securitycenter_v1beta1/service.rb'
16
+ require 'google/apis/securitycenter_v1beta1/classes.rb'
17
+ require 'google/apis/securitycenter_v1beta1/representations.rb'
18
+ require 'google/apis/securitycenter_v1beta1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Security Command Center API
23
+ #
24
+ # Security Command Center API provides access to temporal views of assets and
25
+ # findings within an organization.
26
+ #
27
+ # @see https://cloud.google.com/security-command-center
28
+ module SecuritycenterV1beta1
29
+ # Version of the Security Command Center API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1beta1'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,1942 @@
1
+ # Copyright 2020 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
+ # http://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
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module SecuritycenterV1beta1
24
+
25
+ # Security Command Center representation of a Google Cloud resource. The Asset
26
+ # is a Security Command Center resource that captures information about a single
27
+ # Google Cloud resource. All modifications to an Asset are only within the
28
+ # context of Security Command Center and don't affect the referenced Google
29
+ # Cloud resource.
30
+ class Asset
31
+ include Google::Apis::Core::Hashable
32
+
33
+ # The time at which the asset was created in Security Command Center.
34
+ # Corresponds to the JSON property `createTime`
35
+ # @return [String]
36
+ attr_accessor :create_time
37
+
38
+ # The relative resource name of this asset. See: https://cloud.google.com/apis/
39
+ # design/resource_names#relative_resource_name Example: "organizations/`
40
+ # organization_id`/assets/`asset_id`".
41
+ # Corresponds to the JSON property `name`
42
+ # @return [String]
43
+ attr_accessor :name
44
+
45
+ # Resource managed properties. These properties are managed and defined by the
46
+ # Google Cloud resource and cannot be modified by the user.
47
+ # Corresponds to the JSON property `resourceProperties`
48
+ # @return [Hash<String,Object>]
49
+ attr_accessor :resource_properties
50
+
51
+ # Security Command Center managed properties. These properties are managed by
52
+ # Security Command Center and cannot be modified by the user.
53
+ # Corresponds to the JSON property `securityCenterProperties`
54
+ # @return [Google::Apis::SecuritycenterV1beta1::SecurityCenterProperties]
55
+ attr_accessor :security_center_properties
56
+
57
+ # User specified security marks that are attached to the parent Security Command
58
+ # Center resource. Security marks are scoped within a Security Command Center
59
+ # organization -- they can be modified and viewed by all users who have proper
60
+ # permissions on the organization.
61
+ # Corresponds to the JSON property `securityMarks`
62
+ # @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks]
63
+ attr_accessor :security_marks
64
+
65
+ # The time at which the asset was last updated, added, or deleted in Security
66
+ # Command Center.
67
+ # Corresponds to the JSON property `updateTime`
68
+ # @return [String]
69
+ attr_accessor :update_time
70
+
71
+ def initialize(**args)
72
+ update!(**args)
73
+ end
74
+
75
+ # Update properties of this object
76
+ def update!(**args)
77
+ @create_time = args[:create_time] if args.key?(:create_time)
78
+ @name = args[:name] if args.key?(:name)
79
+ @resource_properties = args[:resource_properties] if args.key?(:resource_properties)
80
+ @security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
81
+ @security_marks = args[:security_marks] if args.key?(:security_marks)
82
+ @update_time = args[:update_time] if args.key?(:update_time)
83
+ end
84
+ end
85
+
86
+ # The configuration used for Asset Discovery runs.
87
+ class AssetDiscoveryConfig
88
+ include Google::Apis::Core::Hashable
89
+
90
+ # The mode to use for filtering asset discovery.
91
+ # Corresponds to the JSON property `inclusionMode`
92
+ # @return [String]
93
+ attr_accessor :inclusion_mode
94
+
95
+ # The project ids to use for filtering asset discovery.
96
+ # Corresponds to the JSON property `projectIds`
97
+ # @return [Array<String>]
98
+ attr_accessor :project_ids
99
+
100
+ def initialize(**args)
101
+ update!(**args)
102
+ end
103
+
104
+ # Update properties of this object
105
+ def update!(**args)
106
+ @inclusion_mode = args[:inclusion_mode] if args.key?(:inclusion_mode)
107
+ @project_ids = args[:project_ids] if args.key?(:project_ids)
108
+ end
109
+ end
110
+
111
+ # Specifies the audit configuration for a service. The configuration determines
112
+ # which permission types are logged, and what identities, if any, are exempted
113
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
114
+ # are AuditConfigs for both `allServices` and a specific service, the union of
115
+ # the two AuditConfigs is used for that service: the log_types specified in each
116
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
117
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
118
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
119
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
120
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
121
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
122
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
123
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
124
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
125
+ # DATA_WRITE logging.
126
+ class AuditConfig
127
+ include Google::Apis::Core::Hashable
128
+
129
+ # The configuration for logging of each type of permission.
130
+ # Corresponds to the JSON property `auditLogConfigs`
131
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::AuditLogConfig>]
132
+ attr_accessor :audit_log_configs
133
+
134
+ # Specifies a service that will be enabled for audit logging. For example, `
135
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
136
+ # value that covers all services.
137
+ # Corresponds to the JSON property `service`
138
+ # @return [String]
139
+ attr_accessor :service
140
+
141
+ def initialize(**args)
142
+ update!(**args)
143
+ end
144
+
145
+ # Update properties of this object
146
+ def update!(**args)
147
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
148
+ @service = args[:service] if args.key?(:service)
149
+ end
150
+ end
151
+
152
+ # Provides the configuration for logging a type of permissions. Example: ` "
153
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
154
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
155
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
156
+ # DATA_READ logging.
157
+ class AuditLogConfig
158
+ include Google::Apis::Core::Hashable
159
+
160
+ # Specifies the identities that do not cause logging for this type of permission.
161
+ # Follows the same format of Binding.members.
162
+ # Corresponds to the JSON property `exemptedMembers`
163
+ # @return [Array<String>]
164
+ attr_accessor :exempted_members
165
+
166
+ # The log type that this config enables.
167
+ # Corresponds to the JSON property `logType`
168
+ # @return [String]
169
+ attr_accessor :log_type
170
+
171
+ def initialize(**args)
172
+ update!(**args)
173
+ end
174
+
175
+ # Update properties of this object
176
+ def update!(**args)
177
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
178
+ @log_type = args[:log_type] if args.key?(:log_type)
179
+ end
180
+ end
181
+
182
+ # Associates `members` with a `role`.
183
+ class Binding
184
+ include Google::Apis::Core::Hashable
185
+
186
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
187
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
188
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
189
+ # "Summary size limit" description: "Determines if a summary is less than 100
190
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
191
+ # Requestor is owner" description: "Determines if requestor is the document
192
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
193
+ # Logic): title: "Public documents" description: "Determine whether the document
194
+ # should be publicly visible" expression: "document.type != 'private' &&
195
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
196
+ # string" description: "Create a notification string with a timestamp."
197
+ # expression: "'New message received at ' + string(document.create_time)" The
198
+ # exact variables and functions that may be referenced within an expression are
199
+ # determined by the service that evaluates it. See the service documentation for
200
+ # additional information.
201
+ # Corresponds to the JSON property `condition`
202
+ # @return [Google::Apis::SecuritycenterV1beta1::Expr]
203
+ attr_accessor :condition
204
+
205
+ # Specifies the identities requesting access for a Cloud Platform resource. `
206
+ # members` can have the following values: * `allUsers`: A special identifier
207
+ # that represents anyone who is on the internet; with or without a Google
208
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
209
+ # anyone who is authenticated with a Google account or a service account. * `
210
+ # user:`emailid``: An email address that represents a specific Google account.
211
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
212
+ # address that represents a service account. For example, `my-other-app@appspot.
213
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
214
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
215
+ # `uniqueid``: An email address (plus unique identifier) representing a user
216
+ # that has been recently deleted. For example, `alice@example.com?uid=
217
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
218
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
219
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
220
+ # identifier) representing a service account that has been recently deleted. For
221
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
222
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
223
+ # emailid`` and the undeleted service account retains the role in the binding. *
224
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
225
+ # identifier) representing a Google group that has been recently deleted. For
226
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
227
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
228
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
229
+ # primary) that represents all the users of that domain. For example, `google.
230
+ # com` or `example.com`.
231
+ # Corresponds to the JSON property `members`
232
+ # @return [Array<String>]
233
+ attr_accessor :members
234
+
235
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
236
+ # , or `roles/owner`.
237
+ # Corresponds to the JSON property `role`
238
+ # @return [String]
239
+ attr_accessor :role
240
+
241
+ def initialize(**args)
242
+ update!(**args)
243
+ end
244
+
245
+ # Update properties of this object
246
+ def update!(**args)
247
+ @condition = args[:condition] if args.key?(:condition)
248
+ @members = args[:members] if args.key?(:members)
249
+ @role = args[:role] if args.key?(:role)
250
+ end
251
+ end
252
+
253
+ # The request message for Operations.CancelOperation.
254
+ class CancelOperationRequest
255
+ include Google::Apis::Core::Hashable
256
+
257
+ def initialize(**args)
258
+ update!(**args)
259
+ end
260
+
261
+ # Update properties of this object
262
+ def update!(**args)
263
+ end
264
+ end
265
+
266
+ # A generic empty message that you can re-use to avoid defining duplicated empty
267
+ # messages in your APIs. A typical example is to use it as the request or the
268
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
269
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
270
+ # `Empty` is empty JSON object ````.
271
+ class Empty
272
+ include Google::Apis::Core::Hashable
273
+
274
+ def initialize(**args)
275
+ update!(**args)
276
+ end
277
+
278
+ # Update properties of this object
279
+ def update!(**args)
280
+ end
281
+ end
282
+
283
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
284
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
285
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
286
+ # "Summary size limit" description: "Determines if a summary is less than 100
287
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
288
+ # Requestor is owner" description: "Determines if requestor is the document
289
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
290
+ # Logic): title: "Public documents" description: "Determine whether the document
291
+ # should be publicly visible" expression: "document.type != 'private' &&
292
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
293
+ # string" description: "Create a notification string with a timestamp."
294
+ # expression: "'New message received at ' + string(document.create_time)" The
295
+ # exact variables and functions that may be referenced within an expression are
296
+ # determined by the service that evaluates it. See the service documentation for
297
+ # additional information.
298
+ class Expr
299
+ include Google::Apis::Core::Hashable
300
+
301
+ # Optional. Description of the expression. This is a longer text which describes
302
+ # the expression, e.g. when hovered over it in a UI.
303
+ # Corresponds to the JSON property `description`
304
+ # @return [String]
305
+ attr_accessor :description
306
+
307
+ # Textual representation of an expression in Common Expression Language syntax.
308
+ # Corresponds to the JSON property `expression`
309
+ # @return [String]
310
+ attr_accessor :expression
311
+
312
+ # Optional. String indicating the location of the expression for error reporting,
313
+ # e.g. a file name and a position in the file.
314
+ # Corresponds to the JSON property `location`
315
+ # @return [String]
316
+ attr_accessor :location
317
+
318
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
319
+ # This can be used e.g. in UIs which allow to enter the expression.
320
+ # Corresponds to the JSON property `title`
321
+ # @return [String]
322
+ attr_accessor :title
323
+
324
+ def initialize(**args)
325
+ update!(**args)
326
+ end
327
+
328
+ # Update properties of this object
329
+ def update!(**args)
330
+ @description = args[:description] if args.key?(:description)
331
+ @expression = args[:expression] if args.key?(:expression)
332
+ @location = args[:location] if args.key?(:location)
333
+ @title = args[:title] if args.key?(:title)
334
+ end
335
+ end
336
+
337
+ # Security Command Center finding. A finding is a record of assessment data like
338
+ # security, risk, health, or privacy, that is ingested into Security Command
339
+ # Center for presentation, notification, analysis, policy testing, and
340
+ # enforcement. For example, a cross-site scripting (XSS) vulnerability in an App
341
+ # Engine application is a finding.
342
+ class Finding
343
+ include Google::Apis::Core::Hashable
344
+
345
+ # The additional taxonomy group within findings from a given source. This field
346
+ # is immutable after creation time. Example: "XSS_FLASH_INJECTION"
347
+ # Corresponds to the JSON property `category`
348
+ # @return [String]
349
+ attr_accessor :category
350
+
351
+ # The time at which the finding was created in Security Command Center.
352
+ # Corresponds to the JSON property `createTime`
353
+ # @return [String]
354
+ attr_accessor :create_time
355
+
356
+ # The time at which the event took place, or when an update to the finding
357
+ # occurred. For example, if the finding represents an open firewall it would
358
+ # capture the time the detector believes the firewall became open. The accuracy
359
+ # is determined by the detector. If the finding were to be resolved afterward,
360
+ # this time would reflect when the finding was resolved.
361
+ # Corresponds to the JSON property `eventTime`
362
+ # @return [String]
363
+ attr_accessor :event_time
364
+
365
+ # The URI that, if available, points to a web page outside of Security Command
366
+ # Center where additional information about the finding can be found. This field
367
+ # is guaranteed to be either empty or a well formed URL.
368
+ # Corresponds to the JSON property `externalUri`
369
+ # @return [String]
370
+ attr_accessor :external_uri
371
+
372
+ # The relative resource name of this finding. See: https://cloud.google.com/apis/
373
+ # design/resource_names#relative_resource_name Example: "organizations/`
374
+ # organization_id`/sources/`source_id`/findings/`finding_id`"
375
+ # Corresponds to the JSON property `name`
376
+ # @return [String]
377
+ attr_accessor :name
378
+
379
+ # The relative resource name of the source the finding belongs to. See: https://
380
+ # cloud.google.com/apis/design/resource_names#relative_resource_name This field
381
+ # is immutable after creation time. For example: "organizations/`organization_id`
382
+ # /sources/`source_id`"
383
+ # Corresponds to the JSON property `parent`
384
+ # @return [String]
385
+ attr_accessor :parent
386
+
387
+ # For findings on Google Cloud resources, the full resource name of the Google
388
+ # Cloud resource this finding is for. See: https://cloud.google.com/apis/design/
389
+ # resource_names#full_resource_name When the finding is for a non-Google Cloud
390
+ # resource, the resourceName can be a customer or partner defined string. This
391
+ # field is immutable after creation time.
392
+ # Corresponds to the JSON property `resourceName`
393
+ # @return [String]
394
+ attr_accessor :resource_name
395
+
396
+ # User specified security marks that are attached to the parent Security Command
397
+ # Center resource. Security marks are scoped within a Security Command Center
398
+ # organization -- they can be modified and viewed by all users who have proper
399
+ # permissions on the organization.
400
+ # Corresponds to the JSON property `securityMarks`
401
+ # @return [Google::Apis::SecuritycenterV1beta1::SecurityMarks]
402
+ attr_accessor :security_marks
403
+
404
+ # The severity of the finding. This field is managed by the source that writes
405
+ # the finding.
406
+ # Corresponds to the JSON property `severity`
407
+ # @return [String]
408
+ attr_accessor :severity
409
+
410
+ # Source specific properties. These properties are managed by the source that
411
+ # writes the finding. The key names in the source_properties map must be between
412
+ # 1 and 255 characters, and must start with a letter and contain alphanumeric
413
+ # characters or underscores only.
414
+ # Corresponds to the JSON property `sourceProperties`
415
+ # @return [Hash<String,Object>]
416
+ attr_accessor :source_properties
417
+
418
+ # The state of the finding.
419
+ # Corresponds to the JSON property `state`
420
+ # @return [String]
421
+ attr_accessor :state
422
+
423
+ def initialize(**args)
424
+ update!(**args)
425
+ end
426
+
427
+ # Update properties of this object
428
+ def update!(**args)
429
+ @category = args[:category] if args.key?(:category)
430
+ @create_time = args[:create_time] if args.key?(:create_time)
431
+ @event_time = args[:event_time] if args.key?(:event_time)
432
+ @external_uri = args[:external_uri] if args.key?(:external_uri)
433
+ @name = args[:name] if args.key?(:name)
434
+ @parent = args[:parent] if args.key?(:parent)
435
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
436
+ @security_marks = args[:security_marks] if args.key?(:security_marks)
437
+ @severity = args[:severity] if args.key?(:severity)
438
+ @source_properties = args[:source_properties] if args.key?(:source_properties)
439
+ @state = args[:state] if args.key?(:state)
440
+ end
441
+ end
442
+
443
+ # Message that contains the resource name and display name of a folder resource.
444
+ class Folder
445
+ include Google::Apis::Core::Hashable
446
+
447
+ # Full resource name of this folder. See: https://cloud.google.com/apis/design/
448
+ # resource_names#full_resource_name
449
+ # Corresponds to the JSON property `resourceFolder`
450
+ # @return [String]
451
+ attr_accessor :resource_folder
452
+
453
+ # The user defined display name for this folder.
454
+ # Corresponds to the JSON property `resourceFolderDisplayName`
455
+ # @return [String]
456
+ attr_accessor :resource_folder_display_name
457
+
458
+ def initialize(**args)
459
+ update!(**args)
460
+ end
461
+
462
+ # Update properties of this object
463
+ def update!(**args)
464
+ @resource_folder = args[:resource_folder] if args.key?(:resource_folder)
465
+ @resource_folder_display_name = args[:resource_folder_display_name] if args.key?(:resource_folder_display_name)
466
+ end
467
+ end
468
+
469
+ # Request message for `GetIamPolicy` method.
470
+ class GetIamPolicyRequest
471
+ include Google::Apis::Core::Hashable
472
+
473
+ # Encapsulates settings provided to GetIamPolicy.
474
+ # Corresponds to the JSON property `options`
475
+ # @return [Google::Apis::SecuritycenterV1beta1::GetPolicyOptions]
476
+ attr_accessor :options
477
+
478
+ def initialize(**args)
479
+ update!(**args)
480
+ end
481
+
482
+ # Update properties of this object
483
+ def update!(**args)
484
+ @options = args[:options] if args.key?(:options)
485
+ end
486
+ end
487
+
488
+ # Encapsulates settings provided to GetIamPolicy.
489
+ class GetPolicyOptions
490
+ include Google::Apis::Core::Hashable
491
+
492
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
493
+ # 3. Requests specifying an invalid value will be rejected. Requests for
494
+ # policies with any conditional bindings must specify version 3. Policies
495
+ # without any conditional bindings may specify any valid value or leave the
496
+ # field unset. To learn which resources support conditions in their IAM policies,
497
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
498
+ # resource-policies).
499
+ # Corresponds to the JSON property `requestedPolicyVersion`
500
+ # @return [Fixnum]
501
+ attr_accessor :requested_policy_version
502
+
503
+ def initialize(**args)
504
+ update!(**args)
505
+ end
506
+
507
+ # Update properties of this object
508
+ def update!(**args)
509
+ @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
510
+ end
511
+ end
512
+
513
+ # Cloud SCC's Notification
514
+ class GoogleCloudSecuritycenterV1NotificationMessage
515
+ include Google::Apis::Core::Hashable
516
+
517
+ # Security Command Center finding. A finding is a record of assessment data like
518
+ # security, risk, health, or privacy, that is ingested into Security Command
519
+ # Center for presentation, notification, analysis, policy testing, and
520
+ # enforcement. For example, a cross-site scripting (XSS) vulnerability in an App
521
+ # Engine application is a finding.
522
+ # Corresponds to the JSON property `finding`
523
+ # @return [Google::Apis::SecuritycenterV1beta1::Finding]
524
+ attr_accessor :finding
525
+
526
+ # Name of the notification config that generated current notification.
527
+ # Corresponds to the JSON property `notificationConfigName`
528
+ # @return [String]
529
+ attr_accessor :notification_config_name
530
+
531
+ # Information related to the Google Cloud resource.
532
+ # Corresponds to the JSON property `resource`
533
+ # @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1Resource]
534
+ attr_accessor :resource
535
+
536
+ def initialize(**args)
537
+ update!(**args)
538
+ end
539
+
540
+ # Update properties of this object
541
+ def update!(**args)
542
+ @finding = args[:finding] if args.key?(:finding)
543
+ @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
544
+ @resource = args[:resource] if args.key?(:resource)
545
+ end
546
+ end
547
+
548
+ # Information related to the Google Cloud resource.
549
+ class GoogleCloudSecuritycenterV1Resource
550
+ include Google::Apis::Core::Hashable
551
+
552
+ # Output only. Contains a Folder message for each folder in the assets ancestry.
553
+ # The first folder is the deepest nested folder, and the last folder is the
554
+ # folder directly under the Organization.
555
+ # Corresponds to the JSON property `folders`
556
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::Folder>]
557
+ attr_accessor :folders
558
+
559
+ # The full resource name of the resource. See: https://cloud.google.com/apis/
560
+ # design/resource_names#full_resource_name
561
+ # Corresponds to the JSON property `name`
562
+ # @return [String]
563
+ attr_accessor :name
564
+
565
+ # The full resource name of resource's parent.
566
+ # Corresponds to the JSON property `parent`
567
+ # @return [String]
568
+ attr_accessor :parent
569
+
570
+ # The human readable name of resource's parent.
571
+ # Corresponds to the JSON property `parentDisplayName`
572
+ # @return [String]
573
+ attr_accessor :parent_display_name
574
+
575
+ # The full resource name of project that the resource belongs to.
576
+ # Corresponds to the JSON property `project`
577
+ # @return [String]
578
+ attr_accessor :project
579
+
580
+ # The human readable name of project that the resource belongs to.
581
+ # Corresponds to the JSON property `projectDisplayName`
582
+ # @return [String]
583
+ attr_accessor :project_display_name
584
+
585
+ def initialize(**args)
586
+ update!(**args)
587
+ end
588
+
589
+ # Update properties of this object
590
+ def update!(**args)
591
+ @folders = args[:folders] if args.key?(:folders)
592
+ @name = args[:name] if args.key?(:name)
593
+ @parent = args[:parent] if args.key?(:parent)
594
+ @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
595
+ @project = args[:project] if args.key?(:project)
596
+ @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
597
+ end
598
+ end
599
+
600
+ # Response of asset discovery run
601
+ class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
602
+ include Google::Apis::Core::Hashable
603
+
604
+ # The duration between asset discovery run start and end
605
+ # Corresponds to the JSON property `duration`
606
+ # @return [String]
607
+ attr_accessor :duration
608
+
609
+ # The state of an asset discovery run.
610
+ # Corresponds to the JSON property `state`
611
+ # @return [String]
612
+ attr_accessor :state
613
+
614
+ def initialize(**args)
615
+ update!(**args)
616
+ end
617
+
618
+ # Update properties of this object
619
+ def update!(**args)
620
+ @duration = args[:duration] if args.key?(:duration)
621
+ @state = args[:state] if args.key?(:state)
622
+ end
623
+ end
624
+
625
+ # Security Command Center finding. A finding is a record of assessment data (
626
+ # security, risk, health or privacy) ingested into Security Command Center for
627
+ # presentation, notification, analysis, policy testing, and enforcement. For
628
+ # example, an XSS vulnerability in an App Engine application is a finding.
629
+ class GoogleCloudSecuritycenterV1beta1Finding
630
+ include Google::Apis::Core::Hashable
631
+
632
+ # The additional taxonomy group within findings from a given source. This field
633
+ # is immutable after creation time. Example: "XSS_FLASH_INJECTION"
634
+ # Corresponds to the JSON property `category`
635
+ # @return [String]
636
+ attr_accessor :category
637
+
638
+ # The time at which the finding was created in Security Command Center.
639
+ # Corresponds to the JSON property `createTime`
640
+ # @return [String]
641
+ attr_accessor :create_time
642
+
643
+ # The time at which the event took place, or when an update to the finding
644
+ # occurred. For example, if the finding represents an open firewall it would
645
+ # capture the time the detector believes the firewall became open. The accuracy
646
+ # is determined by the detector. If the finding were to be resolved afterward,
647
+ # this time would reflect when the finding was resolved.
648
+ # Corresponds to the JSON property `eventTime`
649
+ # @return [String]
650
+ attr_accessor :event_time
651
+
652
+ # The URI that, if available, points to a web page outside of Security Command
653
+ # Center where additional information about the finding can be found. This field
654
+ # is guaranteed to be either empty or a well formed URL.
655
+ # Corresponds to the JSON property `externalUri`
656
+ # @return [String]
657
+ attr_accessor :external_uri
658
+
659
+ # The relative resource name of this finding. See: https://cloud.google.com/apis/
660
+ # design/resource_names#relative_resource_name Example: "organizations/`
661
+ # organization_id`/sources/`source_id`/findings/`finding_id`"
662
+ # Corresponds to the JSON property `name`
663
+ # @return [String]
664
+ attr_accessor :name
665
+
666
+ # Immutable. The relative resource name of the source the finding belongs to.
667
+ # See: https://cloud.google.com/apis/design/resource_names#
668
+ # relative_resource_name This field is immutable after creation time. For
669
+ # example: "organizations/`organization_id`/sources/`source_id`"
670
+ # Corresponds to the JSON property `parent`
671
+ # @return [String]
672
+ attr_accessor :parent
673
+
674
+ # For findings on Google Cloud resources, the full resource name of the Google
675
+ # Cloud resource this finding is for. See: https://cloud.google.com/apis/design/
676
+ # resource_names#full_resource_name When the finding is for a non-Google Cloud
677
+ # resource, the resourceName can be a customer or partner defined string. This
678
+ # field is immutable after creation time.
679
+ # Corresponds to the JSON property `resourceName`
680
+ # @return [String]
681
+ attr_accessor :resource_name
682
+
683
+ # User specified security marks that are attached to the parent Security Command
684
+ # Center resource. Security marks are scoped within a Security Command Center
685
+ # organization -- they can be modified and viewed by all users who have proper
686
+ # permissions on the organization.
687
+ # Corresponds to the JSON property `securityMarks`
688
+ # @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks]
689
+ attr_accessor :security_marks
690
+
691
+ # Source specific properties. These properties are managed by the source that
692
+ # writes the finding. The key names in the source_properties map must be between
693
+ # 1 and 255 characters, and must start with a letter and contain alphanumeric
694
+ # characters or underscores only.
695
+ # Corresponds to the JSON property `sourceProperties`
696
+ # @return [Hash<String,Object>]
697
+ attr_accessor :source_properties
698
+
699
+ # The state of the finding.
700
+ # Corresponds to the JSON property `state`
701
+ # @return [String]
702
+ attr_accessor :state
703
+
704
+ def initialize(**args)
705
+ update!(**args)
706
+ end
707
+
708
+ # Update properties of this object
709
+ def update!(**args)
710
+ @category = args[:category] if args.key?(:category)
711
+ @create_time = args[:create_time] if args.key?(:create_time)
712
+ @event_time = args[:event_time] if args.key?(:event_time)
713
+ @external_uri = args[:external_uri] if args.key?(:external_uri)
714
+ @name = args[:name] if args.key?(:name)
715
+ @parent = args[:parent] if args.key?(:parent)
716
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
717
+ @security_marks = args[:security_marks] if args.key?(:security_marks)
718
+ @source_properties = args[:source_properties] if args.key?(:source_properties)
719
+ @state = args[:state] if args.key?(:state)
720
+ end
721
+ end
722
+
723
+ # Response of asset discovery run
724
+ class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
725
+ include Google::Apis::Core::Hashable
726
+
727
+ # The duration between asset discovery run start and end
728
+ # Corresponds to the JSON property `duration`
729
+ # @return [String]
730
+ attr_accessor :duration
731
+
732
+ # The state of an asset discovery run.
733
+ # Corresponds to the JSON property `state`
734
+ # @return [String]
735
+ attr_accessor :state
736
+
737
+ def initialize(**args)
738
+ update!(**args)
739
+ end
740
+
741
+ # Update properties of this object
742
+ def update!(**args)
743
+ @duration = args[:duration] if args.key?(:duration)
744
+ @state = args[:state] if args.key?(:state)
745
+ end
746
+ end
747
+
748
+ # User specified security marks that are attached to the parent Security Command
749
+ # Center resource. Security marks are scoped within a Security Command Center
750
+ # organization -- they can be modified and viewed by all users who have proper
751
+ # permissions on the organization.
752
+ class GoogleCloudSecuritycenterV1beta1SecurityMarks
753
+ include Google::Apis::Core::Hashable
754
+
755
+ # Mutable user specified security marks belonging to the parent resource.
756
+ # Constraints are as follows: * Keys and values are treated as case insensitive *
757
+ # Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
758
+ # numbers, underscores, or dashes * Values have leading and trailing whitespace
759
+ # trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
760
+ # Corresponds to the JSON property `marks`
761
+ # @return [Hash<String,String>]
762
+ attr_accessor :marks
763
+
764
+ # The relative resource name of the SecurityMarks. See: https://cloud.google.com/
765
+ # apis/design/resource_names#relative_resource_name Examples: "organizations/`
766
+ # organization_id`/assets/`asset_id`/securityMarks" "organizations/`
767
+ # organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
768
+ # Corresponds to the JSON property `name`
769
+ # @return [String]
770
+ attr_accessor :name
771
+
772
+ def initialize(**args)
773
+ update!(**args)
774
+ end
775
+
776
+ # Update properties of this object
777
+ def update!(**args)
778
+ @marks = args[:marks] if args.key?(:marks)
779
+ @name = args[:name] if args.key?(:name)
780
+ end
781
+ end
782
+
783
+ # Security Command Center finding. A finding is a record of assessment data (
784
+ # security, risk, health or privacy) ingested into Security Command Center for
785
+ # presentation, notification, analysis, policy testing, and enforcement. For
786
+ # example, an XSS vulnerability in an App Engine application is a finding.
787
+ class GoogleCloudSecuritycenterV1p1beta1Finding
788
+ include Google::Apis::Core::Hashable
789
+
790
+ # The additional taxonomy group within findings from a given source. This field
791
+ # is immutable after creation time. Example: "XSS_FLASH_INJECTION"
792
+ # Corresponds to the JSON property `category`
793
+ # @return [String]
794
+ attr_accessor :category
795
+
796
+ # The time at which the finding was created in Security Command Center.
797
+ # Corresponds to the JSON property `createTime`
798
+ # @return [String]
799
+ attr_accessor :create_time
800
+
801
+ # The time at which the event took place, or when an update to the finding
802
+ # occurred. For example, if the finding represents an open firewall it would
803
+ # capture the time the detector believes the firewall became open. The accuracy
804
+ # is determined by the detector. If the finding were to be resolved afterward,
805
+ # this time would reflect when the finding was resolved.
806
+ # Corresponds to the JSON property `eventTime`
807
+ # @return [String]
808
+ attr_accessor :event_time
809
+
810
+ # The URI that, if available, points to a web page outside of Security Command
811
+ # Center where additional information about the finding can be found. This field
812
+ # is guaranteed to be either empty or a well formed URL.
813
+ # Corresponds to the JSON property `externalUri`
814
+ # @return [String]
815
+ attr_accessor :external_uri
816
+
817
+ # The relative resource name of this finding. See: https://cloud.google.com/apis/
818
+ # design/resource_names#relative_resource_name Example: "organizations/`
819
+ # organization_id`/sources/`source_id`/findings/`finding_id`"
820
+ # Corresponds to the JSON property `name`
821
+ # @return [String]
822
+ attr_accessor :name
823
+
824
+ # The relative resource name of the source the finding belongs to. See: https://
825
+ # cloud.google.com/apis/design/resource_names#relative_resource_name This field
826
+ # is immutable after creation time. For example: "organizations/`organization_id`
827
+ # /sources/`source_id`"
828
+ # Corresponds to the JSON property `parent`
829
+ # @return [String]
830
+ attr_accessor :parent
831
+
832
+ # For findings on Google Cloud resources, the full resource name of the Google
833
+ # Cloud resource this finding is for. See: https://cloud.google.com/apis/design/
834
+ # resource_names#full_resource_name When the finding is for a non-Google Cloud
835
+ # resource, the resourceName can be a customer or partner defined string. This
836
+ # field is immutable after creation time.
837
+ # Corresponds to the JSON property `resourceName`
838
+ # @return [String]
839
+ attr_accessor :resource_name
840
+
841
+ # User specified security marks that are attached to the parent Security Command
842
+ # Center resource. Security marks are scoped within a Security Command Center
843
+ # organization -- they can be modified and viewed by all users who have proper
844
+ # permissions on the organization.
845
+ # Corresponds to the JSON property `securityMarks`
846
+ # @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
847
+ attr_accessor :security_marks
848
+
849
+ # The severity of the finding. This field is managed by the source that writes
850
+ # the finding.
851
+ # Corresponds to the JSON property `severity`
852
+ # @return [String]
853
+ attr_accessor :severity
854
+
855
+ # Source specific properties. These properties are managed by the source that
856
+ # writes the finding. The key names in the source_properties map must be between
857
+ # 1 and 255 characters, and must start with a letter and contain alphanumeric
858
+ # characters or underscores only.
859
+ # Corresponds to the JSON property `sourceProperties`
860
+ # @return [Hash<String,Object>]
861
+ attr_accessor :source_properties
862
+
863
+ # The state of the finding.
864
+ # Corresponds to the JSON property `state`
865
+ # @return [String]
866
+ attr_accessor :state
867
+
868
+ def initialize(**args)
869
+ update!(**args)
870
+ end
871
+
872
+ # Update properties of this object
873
+ def update!(**args)
874
+ @category = args[:category] if args.key?(:category)
875
+ @create_time = args[:create_time] if args.key?(:create_time)
876
+ @event_time = args[:event_time] if args.key?(:event_time)
877
+ @external_uri = args[:external_uri] if args.key?(:external_uri)
878
+ @name = args[:name] if args.key?(:name)
879
+ @parent = args[:parent] if args.key?(:parent)
880
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
881
+ @security_marks = args[:security_marks] if args.key?(:security_marks)
882
+ @severity = args[:severity] if args.key?(:severity)
883
+ @source_properties = args[:source_properties] if args.key?(:source_properties)
884
+ @state = args[:state] if args.key?(:state)
885
+ end
886
+ end
887
+
888
+ # Message that contains the resource name and display name of a folder resource.
889
+ class GoogleCloudSecuritycenterV1p1beta1Folder
890
+ include Google::Apis::Core::Hashable
891
+
892
+ # Full resource name of this folder. See: https://cloud.google.com/apis/design/
893
+ # resource_names#full_resource_name
894
+ # Corresponds to the JSON property `resourceFolder`
895
+ # @return [String]
896
+ attr_accessor :resource_folder
897
+
898
+ # The user defined display name for this folder.
899
+ # Corresponds to the JSON property `resourceFolderDisplayName`
900
+ # @return [String]
901
+ attr_accessor :resource_folder_display_name
902
+
903
+ def initialize(**args)
904
+ update!(**args)
905
+ end
906
+
907
+ # Update properties of this object
908
+ def update!(**args)
909
+ @resource_folder = args[:resource_folder] if args.key?(:resource_folder)
910
+ @resource_folder_display_name = args[:resource_folder_display_name] if args.key?(:resource_folder_display_name)
911
+ end
912
+ end
913
+
914
+ # Security Command Center's Notification
915
+ class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
916
+ include Google::Apis::Core::Hashable
917
+
918
+ # Security Command Center finding. A finding is a record of assessment data (
919
+ # security, risk, health or privacy) ingested into Security Command Center for
920
+ # presentation, notification, analysis, policy testing, and enforcement. For
921
+ # example, an XSS vulnerability in an App Engine application is a finding.
922
+ # Corresponds to the JSON property `finding`
923
+ # @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Finding]
924
+ attr_accessor :finding
925
+
926
+ # Name of the notification config that generated current notification.
927
+ # Corresponds to the JSON property `notificationConfigName`
928
+ # @return [String]
929
+ attr_accessor :notification_config_name
930
+
931
+ # Information related to the Google Cloud resource.
932
+ # Corresponds to the JSON property `resource`
933
+ # @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Resource]
934
+ attr_accessor :resource
935
+
936
+ def initialize(**args)
937
+ update!(**args)
938
+ end
939
+
940
+ # Update properties of this object
941
+ def update!(**args)
942
+ @finding = args[:finding] if args.key?(:finding)
943
+ @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
944
+ @resource = args[:resource] if args.key?(:resource)
945
+ end
946
+ end
947
+
948
+ # Information related to the Google Cloud resource.
949
+ class GoogleCloudSecuritycenterV1p1beta1Resource
950
+ include Google::Apis::Core::Hashable
951
+
952
+ # Output only. Contains a Folder message for each folder in the assets ancestry.
953
+ # The first folder is the deepest nested folder, and the last folder is the
954
+ # folder directly under the Organization.
955
+ # Corresponds to the JSON property `folders`
956
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Folder>]
957
+ attr_accessor :folders
958
+
959
+ # The full resource name of the resource. See: https://cloud.google.com/apis/
960
+ # design/resource_names#full_resource_name
961
+ # Corresponds to the JSON property `name`
962
+ # @return [String]
963
+ attr_accessor :name
964
+
965
+ # The full resource name of resource's parent.
966
+ # Corresponds to the JSON property `parent`
967
+ # @return [String]
968
+ attr_accessor :parent
969
+
970
+ # The human readable name of resource's parent.
971
+ # Corresponds to the JSON property `parentDisplayName`
972
+ # @return [String]
973
+ attr_accessor :parent_display_name
974
+
975
+ # The full resource name of project that the resource belongs to.
976
+ # Corresponds to the JSON property `project`
977
+ # @return [String]
978
+ attr_accessor :project
979
+
980
+ # The human readable name of project that the resource belongs to.
981
+ # Corresponds to the JSON property `projectDisplayName`
982
+ # @return [String]
983
+ attr_accessor :project_display_name
984
+
985
+ def initialize(**args)
986
+ update!(**args)
987
+ end
988
+
989
+ # Update properties of this object
990
+ def update!(**args)
991
+ @folders = args[:folders] if args.key?(:folders)
992
+ @name = args[:name] if args.key?(:name)
993
+ @parent = args[:parent] if args.key?(:parent)
994
+ @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
995
+ @project = args[:project] if args.key?(:project)
996
+ @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
997
+ end
998
+ end
999
+
1000
+ # Response of asset discovery run
1001
+ class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
1002
+ include Google::Apis::Core::Hashable
1003
+
1004
+ # The duration between asset discovery run start and end
1005
+ # Corresponds to the JSON property `duration`
1006
+ # @return [String]
1007
+ attr_accessor :duration
1008
+
1009
+ # The state of an asset discovery run.
1010
+ # Corresponds to the JSON property `state`
1011
+ # @return [String]
1012
+ attr_accessor :state
1013
+
1014
+ def initialize(**args)
1015
+ update!(**args)
1016
+ end
1017
+
1018
+ # Update properties of this object
1019
+ def update!(**args)
1020
+ @duration = args[:duration] if args.key?(:duration)
1021
+ @state = args[:state] if args.key?(:state)
1022
+ end
1023
+ end
1024
+
1025
+ # User specified security marks that are attached to the parent Security Command
1026
+ # Center resource. Security marks are scoped within a Security Command Center
1027
+ # organization -- they can be modified and viewed by all users who have proper
1028
+ # permissions on the organization.
1029
+ class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
1030
+ include Google::Apis::Core::Hashable
1031
+
1032
+ # Mutable user specified security marks belonging to the parent resource.
1033
+ # Constraints are as follows: * Keys and values are treated as case insensitive *
1034
+ # Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
1035
+ # numbers, underscores, or dashes * Values have leading and trailing whitespace
1036
+ # trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
1037
+ # Corresponds to the JSON property `marks`
1038
+ # @return [Hash<String,String>]
1039
+ attr_accessor :marks
1040
+
1041
+ # The relative resource name of the SecurityMarks. See: https://cloud.google.com/
1042
+ # apis/design/resource_names#relative_resource_name Examples: "organizations/`
1043
+ # organization_id`/assets/`asset_id`/securityMarks" "organizations/`
1044
+ # organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
1045
+ # Corresponds to the JSON property `name`
1046
+ # @return [String]
1047
+ attr_accessor :name
1048
+
1049
+ def initialize(**args)
1050
+ update!(**args)
1051
+ end
1052
+
1053
+ # Update properties of this object
1054
+ def update!(**args)
1055
+ @marks = args[:marks] if args.key?(:marks)
1056
+ @name = args[:name] if args.key?(:name)
1057
+ end
1058
+ end
1059
+
1060
+ # Request message for grouping by assets.
1061
+ class GroupAssetsRequest
1062
+ include Google::Apis::Core::Hashable
1063
+
1064
+ # When compare_duration is set, the Asset's "state" property is updated to
1065
+ # indicate whether the asset was added, removed, or remained present during the
1066
+ # compare_duration period of time that precedes the read_time. This is the time
1067
+ # between (read_time - compare_duration) and read_time. The state value is
1068
+ # derived based on the presence of the asset at the two points in time.
1069
+ # Intermediate state changes between the two times don't affect the result. For
1070
+ # example, the results aren't affected if the asset is removed and re-created
1071
+ # again. Possible "state" values when compare_duration is specified: * "ADDED":
1072
+ # indicates that the asset was not present before compare_duration, but present
1073
+ # at reference_time. * "REMOVED": indicates that the asset was present at the
1074
+ # start of compare_duration, but not present at reference_time. * "ACTIVE":
1075
+ # indicates that the asset was present at both the start and the end of the time
1076
+ # period defined by compare_duration and reference_time. This field is ignored
1077
+ # if `state` is not a field in `group_by`.
1078
+ # Corresponds to the JSON property `compareDuration`
1079
+ # @return [String]
1080
+ attr_accessor :compare_duration
1081
+
1082
+ # Expression that defines the filter to apply across assets. The expression is a
1083
+ # list of zero or more restrictions combined via logical operators `AND` and `OR`
1084
+ # . Parentheses are not supported, and `OR` has higher precedence than `AND`.
1085
+ # Restrictions have the form ` ` and may have a `-` character in front of them
1086
+ # to indicate negation. The fields map to those defined in the Asset resource.
1087
+ # Examples include: * name * security_center_properties.resource_name *
1088
+ # resource_properties.a_property * security_marks.marks.marka The supported
1089
+ # operators are: * `=` for all value types. * `>`, `<`, `>=`, `<=` for integer
1090
+ # values. * `:`, meaning substring matching, for strings. The supported value
1091
+ # types are: * string literals in quotes. * integer literals without quotes. *
1092
+ # boolean literals `true` and `false` without quotes. For example, `
1093
+ # resource_properties.size = 100` is a valid filter string.
1094
+ # Corresponds to the JSON property `filter`
1095
+ # @return [String]
1096
+ attr_accessor :filter
1097
+
1098
+ # Required. Expression that defines what assets fields to use for grouping. The
1099
+ # string value should follow SQL syntax: comma separated list of fields. For
1100
+ # example: "security_center_properties.resource_project,
1101
+ # security_center_properties.project". The following fields are supported when
1102
+ # compare_duration is not set: * security_center_properties.resource_project *
1103
+ # security_center_properties.resource_type * security_center_properties.
1104
+ # resource_parent The following fields are supported when compare_duration is
1105
+ # set: * security_center_properties.resource_type
1106
+ # Corresponds to the JSON property `groupBy`
1107
+ # @return [String]
1108
+ attr_accessor :group_by
1109
+
1110
+ # The maximum number of results to return in a single response. Default is 10,
1111
+ # minimum is 1, maximum is 1000.
1112
+ # Corresponds to the JSON property `pageSize`
1113
+ # @return [Fixnum]
1114
+ attr_accessor :page_size
1115
+
1116
+ # The value returned by the last `GroupAssetsResponse`; indicates that this is a
1117
+ # continuation of a prior `GroupAssets` call, and that the system should return
1118
+ # the next page of data.
1119
+ # Corresponds to the JSON property `pageToken`
1120
+ # @return [String]
1121
+ attr_accessor :page_token
1122
+
1123
+ # Time used as a reference point when filtering assets. The filter is limited to
1124
+ # assets existing at the supplied time and their values are those at that
1125
+ # specific time. Absence of this field will default to the API's version of NOW.
1126
+ # Corresponds to the JSON property `readTime`
1127
+ # @return [String]
1128
+ attr_accessor :read_time
1129
+
1130
+ def initialize(**args)
1131
+ update!(**args)
1132
+ end
1133
+
1134
+ # Update properties of this object
1135
+ def update!(**args)
1136
+ @compare_duration = args[:compare_duration] if args.key?(:compare_duration)
1137
+ @filter = args[:filter] if args.key?(:filter)
1138
+ @group_by = args[:group_by] if args.key?(:group_by)
1139
+ @page_size = args[:page_size] if args.key?(:page_size)
1140
+ @page_token = args[:page_token] if args.key?(:page_token)
1141
+ @read_time = args[:read_time] if args.key?(:read_time)
1142
+ end
1143
+ end
1144
+
1145
+ # Response message for grouping by assets.
1146
+ class GroupAssetsResponse
1147
+ include Google::Apis::Core::Hashable
1148
+
1149
+ # Group results. There exists an element for each existing unique combination of
1150
+ # property/values. The element contains a count for the number of times those
1151
+ # specific property/values appear.
1152
+ # Corresponds to the JSON property `groupByResults`
1153
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::GroupResult>]
1154
+ attr_accessor :group_by_results
1155
+
1156
+ # Token to retrieve the next page of results, or empty if there are no more
1157
+ # results.
1158
+ # Corresponds to the JSON property `nextPageToken`
1159
+ # @return [String]
1160
+ attr_accessor :next_page_token
1161
+
1162
+ # Time used for executing the groupBy request.
1163
+ # Corresponds to the JSON property `readTime`
1164
+ # @return [String]
1165
+ attr_accessor :read_time
1166
+
1167
+ def initialize(**args)
1168
+ update!(**args)
1169
+ end
1170
+
1171
+ # Update properties of this object
1172
+ def update!(**args)
1173
+ @group_by_results = args[:group_by_results] if args.key?(:group_by_results)
1174
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1175
+ @read_time = args[:read_time] if args.key?(:read_time)
1176
+ end
1177
+ end
1178
+
1179
+ # Request message for grouping by findings.
1180
+ class GroupFindingsRequest
1181
+ include Google::Apis::Core::Hashable
1182
+
1183
+ # Expression that defines the filter to apply across findings. The expression is
1184
+ # a list of one or more restrictions combined via logical operators `AND` and `
1185
+ # OR`. Parentheses are not supported, and `OR` has higher precedence than `AND`.
1186
+ # Restrictions have the form ` ` and may have a `-` character in front of them
1187
+ # to indicate negation. Examples include: * name * source_properties.a_property *
1188
+ # security_marks.marks.marka The supported operators are: * `=` for all value
1189
+ # types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning substring
1190
+ # matching, for strings. The supported value types are: * string literals in
1191
+ # quotes. * integer literals without quotes. * boolean literals `true` and `
1192
+ # false` without quotes. For example, `source_properties.size = 100` is a valid
1193
+ # filter string.
1194
+ # Corresponds to the JSON property `filter`
1195
+ # @return [String]
1196
+ attr_accessor :filter
1197
+
1198
+ # Required. Expression that defines what assets fields to use for grouping (
1199
+ # including `state`). The string value should follow SQL syntax: comma separated
1200
+ # list of fields. For example: "parent,resource_name". The following fields are
1201
+ # supported: * resource_name * category * state * parent
1202
+ # Corresponds to the JSON property `groupBy`
1203
+ # @return [String]
1204
+ attr_accessor :group_by
1205
+
1206
+ # The maximum number of results to return in a single response. Default is 10,
1207
+ # minimum is 1, maximum is 1000.
1208
+ # Corresponds to the JSON property `pageSize`
1209
+ # @return [Fixnum]
1210
+ attr_accessor :page_size
1211
+
1212
+ # The value returned by the last `GroupFindingsResponse`; indicates that this is
1213
+ # a continuation of a prior `GroupFindings` call, and that the system should
1214
+ # return the next page of data.
1215
+ # Corresponds to the JSON property `pageToken`
1216
+ # @return [String]
1217
+ attr_accessor :page_token
1218
+
1219
+ # Time used as a reference point when filtering findings. The filter is limited
1220
+ # to findings existing at the supplied time and their values are those at that
1221
+ # specific time. Absence of this field will default to the API's version of NOW.
1222
+ # Corresponds to the JSON property `readTime`
1223
+ # @return [String]
1224
+ attr_accessor :read_time
1225
+
1226
+ def initialize(**args)
1227
+ update!(**args)
1228
+ end
1229
+
1230
+ # Update properties of this object
1231
+ def update!(**args)
1232
+ @filter = args[:filter] if args.key?(:filter)
1233
+ @group_by = args[:group_by] if args.key?(:group_by)
1234
+ @page_size = args[:page_size] if args.key?(:page_size)
1235
+ @page_token = args[:page_token] if args.key?(:page_token)
1236
+ @read_time = args[:read_time] if args.key?(:read_time)
1237
+ end
1238
+ end
1239
+
1240
+ # Response message for group by findings.
1241
+ class GroupFindingsResponse
1242
+ include Google::Apis::Core::Hashable
1243
+
1244
+ # Group results. There exists an element for each existing unique combination of
1245
+ # property/values. The element contains a count for the number of times those
1246
+ # specific property/values appear.
1247
+ # Corresponds to the JSON property `groupByResults`
1248
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::GroupResult>]
1249
+ attr_accessor :group_by_results
1250
+
1251
+ # Token to retrieve the next page of results, or empty if there are no more
1252
+ # results.
1253
+ # Corresponds to the JSON property `nextPageToken`
1254
+ # @return [String]
1255
+ attr_accessor :next_page_token
1256
+
1257
+ # Time used for executing the groupBy request.
1258
+ # Corresponds to the JSON property `readTime`
1259
+ # @return [String]
1260
+ attr_accessor :read_time
1261
+
1262
+ def initialize(**args)
1263
+ update!(**args)
1264
+ end
1265
+
1266
+ # Update properties of this object
1267
+ def update!(**args)
1268
+ @group_by_results = args[:group_by_results] if args.key?(:group_by_results)
1269
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1270
+ @read_time = args[:read_time] if args.key?(:read_time)
1271
+ end
1272
+ end
1273
+
1274
+ # Result containing the properties and count of a groupBy request.
1275
+ class GroupResult
1276
+ include Google::Apis::Core::Hashable
1277
+
1278
+ # Total count of resources for the given properties.
1279
+ # Corresponds to the JSON property `count`
1280
+ # @return [Fixnum]
1281
+ attr_accessor :count
1282
+
1283
+ # Properties matching the groupBy fields in the request.
1284
+ # Corresponds to the JSON property `properties`
1285
+ # @return [Hash<String,Object>]
1286
+ attr_accessor :properties
1287
+
1288
+ def initialize(**args)
1289
+ update!(**args)
1290
+ end
1291
+
1292
+ # Update properties of this object
1293
+ def update!(**args)
1294
+ @count = args[:count] if args.key?(:count)
1295
+ @properties = args[:properties] if args.key?(:properties)
1296
+ end
1297
+ end
1298
+
1299
+ # Response message for listing assets.
1300
+ class ListAssetsResponse
1301
+ include Google::Apis::Core::Hashable
1302
+
1303
+ # Assets matching the list request.
1304
+ # Corresponds to the JSON property `listAssetsResults`
1305
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::ListAssetsResult>]
1306
+ attr_accessor :list_assets_results
1307
+
1308
+ # Token to retrieve the next page of results, or empty if there are no more
1309
+ # results.
1310
+ # Corresponds to the JSON property `nextPageToken`
1311
+ # @return [String]
1312
+ attr_accessor :next_page_token
1313
+
1314
+ # Time used for executing the list request.
1315
+ # Corresponds to the JSON property `readTime`
1316
+ # @return [String]
1317
+ attr_accessor :read_time
1318
+
1319
+ # The total number of assets matching the query.
1320
+ # Corresponds to the JSON property `totalSize`
1321
+ # @return [Fixnum]
1322
+ attr_accessor :total_size
1323
+
1324
+ def initialize(**args)
1325
+ update!(**args)
1326
+ end
1327
+
1328
+ # Update properties of this object
1329
+ def update!(**args)
1330
+ @list_assets_results = args[:list_assets_results] if args.key?(:list_assets_results)
1331
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1332
+ @read_time = args[:read_time] if args.key?(:read_time)
1333
+ @total_size = args[:total_size] if args.key?(:total_size)
1334
+ end
1335
+ end
1336
+
1337
+ # Result containing the Asset and its State.
1338
+ class ListAssetsResult
1339
+ include Google::Apis::Core::Hashable
1340
+
1341
+ # Security Command Center representation of a Google Cloud resource. The Asset
1342
+ # is a Security Command Center resource that captures information about a single
1343
+ # Google Cloud resource. All modifications to an Asset are only within the
1344
+ # context of Security Command Center and don't affect the referenced Google
1345
+ # Cloud resource.
1346
+ # Corresponds to the JSON property `asset`
1347
+ # @return [Google::Apis::SecuritycenterV1beta1::Asset]
1348
+ attr_accessor :asset
1349
+
1350
+ # State of the asset.
1351
+ # Corresponds to the JSON property `state`
1352
+ # @return [String]
1353
+ attr_accessor :state
1354
+
1355
+ def initialize(**args)
1356
+ update!(**args)
1357
+ end
1358
+
1359
+ # Update properties of this object
1360
+ def update!(**args)
1361
+ @asset = args[:asset] if args.key?(:asset)
1362
+ @state = args[:state] if args.key?(:state)
1363
+ end
1364
+ end
1365
+
1366
+ # Response message for listing findings.
1367
+ class ListFindingsResponse
1368
+ include Google::Apis::Core::Hashable
1369
+
1370
+ # Findings matching the list request.
1371
+ # Corresponds to the JSON property `findings`
1372
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1Finding>]
1373
+ attr_accessor :findings
1374
+
1375
+ # Token to retrieve the next page of results, or empty if there are no more
1376
+ # results.
1377
+ # Corresponds to the JSON property `nextPageToken`
1378
+ # @return [String]
1379
+ attr_accessor :next_page_token
1380
+
1381
+ # Time used for executing the list request.
1382
+ # Corresponds to the JSON property `readTime`
1383
+ # @return [String]
1384
+ attr_accessor :read_time
1385
+
1386
+ # The total number of findings matching the query.
1387
+ # Corresponds to the JSON property `totalSize`
1388
+ # @return [Fixnum]
1389
+ attr_accessor :total_size
1390
+
1391
+ def initialize(**args)
1392
+ update!(**args)
1393
+ end
1394
+
1395
+ # Update properties of this object
1396
+ def update!(**args)
1397
+ @findings = args[:findings] if args.key?(:findings)
1398
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1399
+ @read_time = args[:read_time] if args.key?(:read_time)
1400
+ @total_size = args[:total_size] if args.key?(:total_size)
1401
+ end
1402
+ end
1403
+
1404
+ # The response message for Operations.ListOperations.
1405
+ class ListOperationsResponse
1406
+ include Google::Apis::Core::Hashable
1407
+
1408
+ # The standard List next-page token.
1409
+ # Corresponds to the JSON property `nextPageToken`
1410
+ # @return [String]
1411
+ attr_accessor :next_page_token
1412
+
1413
+ # A list of operations that matches the specified filter in the request.
1414
+ # Corresponds to the JSON property `operations`
1415
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::Operation>]
1416
+ attr_accessor :operations
1417
+
1418
+ def initialize(**args)
1419
+ update!(**args)
1420
+ end
1421
+
1422
+ # Update properties of this object
1423
+ def update!(**args)
1424
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1425
+ @operations = args[:operations] if args.key?(:operations)
1426
+ end
1427
+ end
1428
+
1429
+ # Response message for listing sources.
1430
+ class ListSourcesResponse
1431
+ include Google::Apis::Core::Hashable
1432
+
1433
+ # Token to retrieve the next page of results, or empty if there are no more
1434
+ # results.
1435
+ # Corresponds to the JSON property `nextPageToken`
1436
+ # @return [String]
1437
+ attr_accessor :next_page_token
1438
+
1439
+ # Sources belonging to the requested parent.
1440
+ # Corresponds to the JSON property `sources`
1441
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::Source>]
1442
+ attr_accessor :sources
1443
+
1444
+ def initialize(**args)
1445
+ update!(**args)
1446
+ end
1447
+
1448
+ # Update properties of this object
1449
+ def update!(**args)
1450
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1451
+ @sources = args[:sources] if args.key?(:sources)
1452
+ end
1453
+ end
1454
+
1455
+ # This resource represents a long-running operation that is the result of a
1456
+ # network API call.
1457
+ class Operation
1458
+ include Google::Apis::Core::Hashable
1459
+
1460
+ # If the value is `false`, it means the operation is still in progress. If `true`
1461
+ # , the operation is completed, and either `error` or `response` is available.
1462
+ # Corresponds to the JSON property `done`
1463
+ # @return [Boolean]
1464
+ attr_accessor :done
1465
+ alias_method :done?, :done
1466
+
1467
+ # The `Status` type defines a logical error model that is suitable for different
1468
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1469
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1470
+ # data: error code, error message, and error details. You can find out more
1471
+ # about this error model and how to work with it in the [API Design Guide](https:
1472
+ # //cloud.google.com/apis/design/errors).
1473
+ # Corresponds to the JSON property `error`
1474
+ # @return [Google::Apis::SecuritycenterV1beta1::Status]
1475
+ attr_accessor :error
1476
+
1477
+ # Service-specific metadata associated with the operation. It typically contains
1478
+ # progress information and common metadata such as create time. Some services
1479
+ # might not provide such metadata. Any method that returns a long-running
1480
+ # operation should document the metadata type, if any.
1481
+ # Corresponds to the JSON property `metadata`
1482
+ # @return [Hash<String,Object>]
1483
+ attr_accessor :metadata
1484
+
1485
+ # The server-assigned name, which is only unique within the same service that
1486
+ # originally returns it. If you use the default HTTP mapping, the `name` should
1487
+ # be a resource name ending with `operations/`unique_id``.
1488
+ # Corresponds to the JSON property `name`
1489
+ # @return [String]
1490
+ attr_accessor :name
1491
+
1492
+ # The normal response of the operation in case of success. If the original
1493
+ # method returns no data on success, such as `Delete`, the response is `google.
1494
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1495
+ # the response should be the resource. For other methods, the response should
1496
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
1497
+ # example, if the original method name is `TakeSnapshot()`, the inferred
1498
+ # response type is `TakeSnapshotResponse`.
1499
+ # Corresponds to the JSON property `response`
1500
+ # @return [Hash<String,Object>]
1501
+ attr_accessor :response
1502
+
1503
+ def initialize(**args)
1504
+ update!(**args)
1505
+ end
1506
+
1507
+ # Update properties of this object
1508
+ def update!(**args)
1509
+ @done = args[:done] if args.key?(:done)
1510
+ @error = args[:error] if args.key?(:error)
1511
+ @metadata = args[:metadata] if args.key?(:metadata)
1512
+ @name = args[:name] if args.key?(:name)
1513
+ @response = args[:response] if args.key?(:response)
1514
+ end
1515
+ end
1516
+
1517
+ # User specified settings that are attached to the Security Command Center
1518
+ # organization.
1519
+ class OrganizationSettings
1520
+ include Google::Apis::Core::Hashable
1521
+
1522
+ # The configuration used for Asset Discovery runs.
1523
+ # Corresponds to the JSON property `assetDiscoveryConfig`
1524
+ # @return [Google::Apis::SecuritycenterV1beta1::AssetDiscoveryConfig]
1525
+ attr_accessor :asset_discovery_config
1526
+
1527
+ # A flag that indicates if Asset Discovery should be enabled. If the flag is set
1528
+ # to `true`, then discovery of assets will occur. If it is set to `false, all
1529
+ # historical assets will remain, but discovery of future assets will not occur.
1530
+ # Corresponds to the JSON property `enableAssetDiscovery`
1531
+ # @return [Boolean]
1532
+ attr_accessor :enable_asset_discovery
1533
+ alias_method :enable_asset_discovery?, :enable_asset_discovery
1534
+
1535
+ # The relative resource name of the settings. See: https://cloud.google.com/apis/
1536
+ # design/resource_names#relative_resource_name Example: "organizations/`
1537
+ # organization_id`/organizationSettings".
1538
+ # Corresponds to the JSON property `name`
1539
+ # @return [String]
1540
+ attr_accessor :name
1541
+
1542
+ def initialize(**args)
1543
+ update!(**args)
1544
+ end
1545
+
1546
+ # Update properties of this object
1547
+ def update!(**args)
1548
+ @asset_discovery_config = args[:asset_discovery_config] if args.key?(:asset_discovery_config)
1549
+ @enable_asset_discovery = args[:enable_asset_discovery] if args.key?(:enable_asset_discovery)
1550
+ @name = args[:name] if args.key?(:name)
1551
+ end
1552
+ end
1553
+
1554
+ # An Identity and Access Management (IAM) policy, which specifies access
1555
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1556
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1557
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1558
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1559
+ # role or a user-created custom role. For some types of Google Cloud resources,
1560
+ # a `binding` can also specify a `condition`, which is a logical expression that
1561
+ # allows access to a resource only if the expression evaluates to `true`. A
1562
+ # condition can add constraints based on attributes of the request, the resource,
1563
+ # or both. To learn which resources support conditions in their IAM policies,
1564
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1565
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1566
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1567
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1568
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1569
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1570
+ # title": "expirable access", "description": "Does not grant access after Sep
1571
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1572
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1573
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1574
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1575
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1576
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1577
+ # description: Does not grant access after Sep 2020 expression: request.time <
1578
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1579
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1580
+ # google.com/iam/docs/).
1581
+ class Policy
1582
+ include Google::Apis::Core::Hashable
1583
+
1584
+ # Specifies cloud audit logging configuration for this policy.
1585
+ # Corresponds to the JSON property `auditConfigs`
1586
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::AuditConfig>]
1587
+ attr_accessor :audit_configs
1588
+
1589
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
1590
+ # condition` that determines how and when the `bindings` are applied. Each of
1591
+ # the `bindings` must contain at least one member.
1592
+ # Corresponds to the JSON property `bindings`
1593
+ # @return [Array<Google::Apis::SecuritycenterV1beta1::Binding>]
1594
+ attr_accessor :bindings
1595
+
1596
+ # `etag` is used for optimistic concurrency control as a way to help prevent
1597
+ # simultaneous updates of a policy from overwriting each other. It is strongly
1598
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
1599
+ # to perform policy updates in order to avoid race conditions: An `etag` is
1600
+ # returned in the response to `getIamPolicy`, and systems are expected to put
1601
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
1602
+ # applied to the same version of the policy. **Important:** If you use IAM
1603
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1604
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
1605
+ # with a version `1` policy, and all of the conditions in the version `3` policy
1606
+ # are lost.
1607
+ # Corresponds to the JSON property `etag`
1608
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1609
+ # @return [String]
1610
+ attr_accessor :etag
1611
+
1612
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
1613
+ # Requests that specify an invalid value are rejected. Any operation that
1614
+ # affects conditional role bindings must specify version `3`. This requirement
1615
+ # applies to the following operations: * Getting a policy that includes a
1616
+ # conditional role binding * Adding a conditional role binding to a policy *
1617
+ # Changing a conditional role binding in a policy * Removing any role binding,
1618
+ # with or without a condition, from a policy that includes conditions **
1619
+ # Important:** If you use IAM Conditions, you must include the `etag` field
1620
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
1621
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
1622
+ # conditions in the version `3` policy are lost. If a policy does not include
1623
+ # any conditions, operations on that policy may specify any valid version or
1624
+ # leave the field unset. To learn which resources support conditions in their
1625
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
1626
+ # conditions/resource-policies).
1627
+ # Corresponds to the JSON property `version`
1628
+ # @return [Fixnum]
1629
+ attr_accessor :version
1630
+
1631
+ def initialize(**args)
1632
+ update!(**args)
1633
+ end
1634
+
1635
+ # Update properties of this object
1636
+ def update!(**args)
1637
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
1638
+ @bindings = args[:bindings] if args.key?(:bindings)
1639
+ @etag = args[:etag] if args.key?(:etag)
1640
+ @version = args[:version] if args.key?(:version)
1641
+ end
1642
+ end
1643
+
1644
+ # Request message for running asset discovery for an organization.
1645
+ class RunAssetDiscoveryRequest
1646
+ include Google::Apis::Core::Hashable
1647
+
1648
+ def initialize(**args)
1649
+ update!(**args)
1650
+ end
1651
+
1652
+ # Update properties of this object
1653
+ def update!(**args)
1654
+ end
1655
+ end
1656
+
1657
+ # Security Command Center managed properties. These properties are managed by
1658
+ # Security Command Center and cannot be modified by the user.
1659
+ class SecurityCenterProperties
1660
+ include Google::Apis::Core::Hashable
1661
+
1662
+ # Immutable. The full resource name of the Google Cloud resource this asset
1663
+ # represents. This field is immutable after create time. See: https://cloud.
1664
+ # google.com/apis/design/resource_names#full_resource_name
1665
+ # Corresponds to the JSON property `resourceName`
1666
+ # @return [String]
1667
+ attr_accessor :resource_name
1668
+
1669
+ # Owners of the Google Cloud resource.
1670
+ # Corresponds to the JSON property `resourceOwners`
1671
+ # @return [Array<String>]
1672
+ attr_accessor :resource_owners
1673
+
1674
+ # The full resource name of the immediate parent of the resource. See: https://
1675
+ # cloud.google.com/apis/design/resource_names#full_resource_name
1676
+ # Corresponds to the JSON property `resourceParent`
1677
+ # @return [String]
1678
+ attr_accessor :resource_parent
1679
+
1680
+ # The full resource name of the project the resource belongs to. See: https://
1681
+ # cloud.google.com/apis/design/resource_names#full_resource_name
1682
+ # Corresponds to the JSON property `resourceProject`
1683
+ # @return [String]
1684
+ attr_accessor :resource_project
1685
+
1686
+ # The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT,
1687
+ # and ORGANIZATION. This is a case insensitive field defined by Security Command
1688
+ # Center and/or the producer of the resource and is immutable after create time.
1689
+ # Corresponds to the JSON property `resourceType`
1690
+ # @return [String]
1691
+ attr_accessor :resource_type
1692
+
1693
+ def initialize(**args)
1694
+ update!(**args)
1695
+ end
1696
+
1697
+ # Update properties of this object
1698
+ def update!(**args)
1699
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
1700
+ @resource_owners = args[:resource_owners] if args.key?(:resource_owners)
1701
+ @resource_parent = args[:resource_parent] if args.key?(:resource_parent)
1702
+ @resource_project = args[:resource_project] if args.key?(:resource_project)
1703
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1704
+ end
1705
+ end
1706
+
1707
+ # User specified security marks that are attached to the parent Security Command
1708
+ # Center resource. Security marks are scoped within a Security Command Center
1709
+ # organization -- they can be modified and viewed by all users who have proper
1710
+ # permissions on the organization.
1711
+ class SecurityMarks
1712
+ include Google::Apis::Core::Hashable
1713
+
1714
+ # Mutable user specified security marks belonging to the parent resource.
1715
+ # Constraints are as follows: * Keys and values are treated as case insensitive *
1716
+ # Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
1717
+ # numbers, underscores, or dashes * Values have leading and trailing whitespace
1718
+ # trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
1719
+ # Corresponds to the JSON property `marks`
1720
+ # @return [Hash<String,String>]
1721
+ attr_accessor :marks
1722
+
1723
+ # The relative resource name of the SecurityMarks. See: https://cloud.google.com/
1724
+ # apis/design/resource_names#relative_resource_name Examples: "organizations/`
1725
+ # organization_id`/assets/`asset_id`/securityMarks" "organizations/`
1726
+ # organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
1727
+ # Corresponds to the JSON property `name`
1728
+ # @return [String]
1729
+ attr_accessor :name
1730
+
1731
+ def initialize(**args)
1732
+ update!(**args)
1733
+ end
1734
+
1735
+ # Update properties of this object
1736
+ def update!(**args)
1737
+ @marks = args[:marks] if args.key?(:marks)
1738
+ @name = args[:name] if args.key?(:name)
1739
+ end
1740
+ end
1741
+
1742
+ # Request message for updating a finding's state.
1743
+ class SetFindingStateRequest
1744
+ include Google::Apis::Core::Hashable
1745
+
1746
+ # Required. The time at which the updated state takes effect.
1747
+ # Corresponds to the JSON property `startTime`
1748
+ # @return [String]
1749
+ attr_accessor :start_time
1750
+
1751
+ # Required. The desired State of the finding.
1752
+ # Corresponds to the JSON property `state`
1753
+ # @return [String]
1754
+ attr_accessor :state
1755
+
1756
+ def initialize(**args)
1757
+ update!(**args)
1758
+ end
1759
+
1760
+ # Update properties of this object
1761
+ def update!(**args)
1762
+ @start_time = args[:start_time] if args.key?(:start_time)
1763
+ @state = args[:state] if args.key?(:state)
1764
+ end
1765
+ end
1766
+
1767
+ # Request message for `SetIamPolicy` method.
1768
+ class SetIamPolicyRequest
1769
+ include Google::Apis::Core::Hashable
1770
+
1771
+ # An Identity and Access Management (IAM) policy, which specifies access
1772
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1773
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1774
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1775
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1776
+ # role or a user-created custom role. For some types of Google Cloud resources,
1777
+ # a `binding` can also specify a `condition`, which is a logical expression that
1778
+ # allows access to a resource only if the expression evaluates to `true`. A
1779
+ # condition can add constraints based on attributes of the request, the resource,
1780
+ # or both. To learn which resources support conditions in their IAM policies,
1781
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1782
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1783
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1784
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1785
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1786
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1787
+ # title": "expirable access", "description": "Does not grant access after Sep
1788
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1789
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1790
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1791
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1792
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1793
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1794
+ # description: Does not grant access after Sep 2020 expression: request.time <
1795
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1796
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1797
+ # google.com/iam/docs/).
1798
+ # Corresponds to the JSON property `policy`
1799
+ # @return [Google::Apis::SecuritycenterV1beta1::Policy]
1800
+ attr_accessor :policy
1801
+
1802
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1803
+ # the fields in the mask will be modified. If no mask is provided, the following
1804
+ # default mask is used: `paths: "bindings, etag"`
1805
+ # Corresponds to the JSON property `updateMask`
1806
+ # @return [String]
1807
+ attr_accessor :update_mask
1808
+
1809
+ def initialize(**args)
1810
+ update!(**args)
1811
+ end
1812
+
1813
+ # Update properties of this object
1814
+ def update!(**args)
1815
+ @policy = args[:policy] if args.key?(:policy)
1816
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1817
+ end
1818
+ end
1819
+
1820
+ # Security Command Center finding source. A finding source is an entity or a
1821
+ # mechanism that can produce a finding. A source is like a container of findings
1822
+ # that come from the same scanner, logger, monitor, etc.
1823
+ class Source
1824
+ include Google::Apis::Core::Hashable
1825
+
1826
+ # The description of the source (max of 1024 characters). Example: "Web Security
1827
+ # Scanner is a web security scanner for common vulnerabilities in App Engine
1828
+ # applications. It can automatically scan and detect four common vulnerabilities,
1829
+ # including cross-site-scripting (XSS), Flash injection, mixed content (HTTP in
1830
+ # HTTPS), and outdated/insecure libraries."
1831
+ # Corresponds to the JSON property `description`
1832
+ # @return [String]
1833
+ attr_accessor :description
1834
+
1835
+ # The source's display name. A source's display name must be unique amongst its
1836
+ # siblings, for example, two sources with the same parent can't share the same
1837
+ # display name. The display name must have a length between 1 and 64 characters (
1838
+ # inclusive).
1839
+ # Corresponds to the JSON property `displayName`
1840
+ # @return [String]
1841
+ attr_accessor :display_name
1842
+
1843
+ # The relative resource name of this source. See: https://cloud.google.com/apis/
1844
+ # design/resource_names#relative_resource_name Example: "organizations/`
1845
+ # organization_id`/sources/`source_id`"
1846
+ # Corresponds to the JSON property `name`
1847
+ # @return [String]
1848
+ attr_accessor :name
1849
+
1850
+ def initialize(**args)
1851
+ update!(**args)
1852
+ end
1853
+
1854
+ # Update properties of this object
1855
+ def update!(**args)
1856
+ @description = args[:description] if args.key?(:description)
1857
+ @display_name = args[:display_name] if args.key?(:display_name)
1858
+ @name = args[:name] if args.key?(:name)
1859
+ end
1860
+ end
1861
+
1862
+ # The `Status` type defines a logical error model that is suitable for different
1863
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1864
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1865
+ # data: error code, error message, and error details. You can find out more
1866
+ # about this error model and how to work with it in the [API Design Guide](https:
1867
+ # //cloud.google.com/apis/design/errors).
1868
+ class Status
1869
+ include Google::Apis::Core::Hashable
1870
+
1871
+ # The status code, which should be an enum value of google.rpc.Code.
1872
+ # Corresponds to the JSON property `code`
1873
+ # @return [Fixnum]
1874
+ attr_accessor :code
1875
+
1876
+ # A list of messages that carry the error details. There is a common set of
1877
+ # message types for APIs to use.
1878
+ # Corresponds to the JSON property `details`
1879
+ # @return [Array<Hash<String,Object>>]
1880
+ attr_accessor :details
1881
+
1882
+ # A developer-facing error message, which should be in English. Any user-facing
1883
+ # error message should be localized and sent in the google.rpc.Status.details
1884
+ # field, or localized by the client.
1885
+ # Corresponds to the JSON property `message`
1886
+ # @return [String]
1887
+ attr_accessor :message
1888
+
1889
+ def initialize(**args)
1890
+ update!(**args)
1891
+ end
1892
+
1893
+ # Update properties of this object
1894
+ def update!(**args)
1895
+ @code = args[:code] if args.key?(:code)
1896
+ @details = args[:details] if args.key?(:details)
1897
+ @message = args[:message] if args.key?(:message)
1898
+ end
1899
+ end
1900
+
1901
+ # Request message for `TestIamPermissions` method.
1902
+ class TestIamPermissionsRequest
1903
+ include Google::Apis::Core::Hashable
1904
+
1905
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1906
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
1907
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1908
+ # Corresponds to the JSON property `permissions`
1909
+ # @return [Array<String>]
1910
+ attr_accessor :permissions
1911
+
1912
+ def initialize(**args)
1913
+ update!(**args)
1914
+ end
1915
+
1916
+ # Update properties of this object
1917
+ def update!(**args)
1918
+ @permissions = args[:permissions] if args.key?(:permissions)
1919
+ end
1920
+ end
1921
+
1922
+ # Response message for `TestIamPermissions` method.
1923
+ class TestIamPermissionsResponse
1924
+ include Google::Apis::Core::Hashable
1925
+
1926
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1927
+ # Corresponds to the JSON property `permissions`
1928
+ # @return [Array<String>]
1929
+ attr_accessor :permissions
1930
+
1931
+ def initialize(**args)
1932
+ update!(**args)
1933
+ end
1934
+
1935
+ # Update properties of this object
1936
+ def update!(**args)
1937
+ @permissions = args[:permissions] if args.key?(:permissions)
1938
+ end
1939
+ end
1940
+ end
1941
+ end
1942
+ end