google-apis-securitycenter_v1beta2 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: 1304754c6644679d90e6033d765dfeb3644df5996a2855c1841c2cd22c4b0e1d
4
+ data.tar.gz: 854e4ef871395624663e3ad397767e5569e3ed518912b4353fad3a2c975a181a
5
+ SHA512:
6
+ metadata.gz: 47bee8a5305d3ed3d149a63de14e0e0d15c415a6b2567094784a76454e4841ea3f300b09296ed2e00d9b6d3b348952386e58dae1ab8138f325c250fcd1bf6069
7
+ data.tar.gz: a3606076f785899ddd51492fad31363c83453be71e6a6ac059c199a2e135e56449c9f14ad7a72f87353bc775809257ba188906e3fa801285512068bb539b49d0
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-securitycenter_v1beta2
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/securitycenter_v1beta2/*.rb
9
+ lib/google/apis/securitycenter_v1beta2.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-securitycenter_v1beta2
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 V1beta2 of the Security Command Center API
2
+
3
+ This is a simple client library for version V1beta2 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_v1beta2', '~> 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_v1beta2
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_v1beta2"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::SecuritycenterV1beta2::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::SecuritycenterV1beta2::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_v1beta2`, 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_v1beta2"
@@ -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_v1beta2/service.rb'
16
+ require 'google/apis/securitycenter_v1beta2/classes.rb'
17
+ require 'google/apis/securitycenter_v1beta2/representations.rb'
18
+ require 'google/apis/securitycenter_v1beta2/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 SecuritycenterV1beta2
29
+ # Version of the Security Command Center API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1beta2'
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,918 @@
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 SecuritycenterV1beta2
24
+
25
+ # Configuration of a module.
26
+ class Config
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The state of enablement for the module at its level of the resource hierarchy.
30
+ # Corresponds to the JSON property `moduleEnablementState`
31
+ # @return [String]
32
+ attr_accessor :module_enablement_state
33
+
34
+ # The configuration value for the module. The absence of this field implies its
35
+ # inheritance from the parent.
36
+ # Corresponds to the JSON property `value`
37
+ # @return [Hash<String,Object>]
38
+ attr_accessor :value
39
+
40
+ def initialize(**args)
41
+ update!(**args)
42
+ end
43
+
44
+ # Update properties of this object
45
+ def update!(**args)
46
+ @module_enablement_state = args[:module_enablement_state] if args.key?(:module_enablement_state)
47
+ @value = args[:value] if args.key?(:value)
48
+ end
49
+ end
50
+
51
+ # Resource capturing the settings for the Container Threat Detection service.
52
+ class ContainerThreatDetectionSettings
53
+ include Google::Apis::Core::Hashable
54
+
55
+ # The configurations including the state of enablement for the service's
56
+ # different modules. The absence of a module in the map implies its
57
+ # configuration is inherited from its parent's.
58
+ # Corresponds to the JSON property `modules`
59
+ # @return [Hash<String,Google::Apis::SecuritycenterV1beta2::Config>]
60
+ attr_accessor :modules
61
+
62
+ # The resource name of the ContainerThreatDetectionSettings. Formats: *
63
+ # organizations/`organization`/containerThreatDetectionSettings * folders/`
64
+ # folder`/containerThreatDetectionSettings * projects/`project`/
65
+ # containerThreatDetectionSettings * projects/`project`/locations/`location`/
66
+ # clusters/`cluster`/containerThreatDetectionSettings
67
+ # Corresponds to the JSON property `name`
68
+ # @return [String]
69
+ attr_accessor :name
70
+
71
+ # Output only. The service account used by Container Threat Detection for
72
+ # scanning. Service accounts are scoped at the project level meaning this field
73
+ # will be empty at any level above a project.
74
+ # Corresponds to the JSON property `serviceAccount`
75
+ # @return [String]
76
+ attr_accessor :service_account
77
+
78
+ # The state of enablement for the service at its level of the resource hierarchy.
79
+ # A DISABLED state will override all module enablement_states to DISABLED.
80
+ # Corresponds to the JSON property `serviceEnablementState`
81
+ # @return [String]
82
+ attr_accessor :service_enablement_state
83
+
84
+ # Output only. The time the settings were last updated.
85
+ # Corresponds to the JSON property `updateTime`
86
+ # @return [String]
87
+ attr_accessor :update_time
88
+
89
+ def initialize(**args)
90
+ update!(**args)
91
+ end
92
+
93
+ # Update properties of this object
94
+ def update!(**args)
95
+ @modules = args[:modules] if args.key?(:modules)
96
+ @name = args[:name] if args.key?(:name)
97
+ @service_account = args[:service_account] if args.key?(:service_account)
98
+ @service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state)
99
+ @update_time = args[:update_time] if args.key?(:update_time)
100
+ end
101
+ end
102
+
103
+ # Details of a subscription.
104
+ class Details
105
+ include Google::Apis::Core::Hashable
106
+
107
+ # The time the subscription has or will end.
108
+ # Corresponds to the JSON property `endTime`
109
+ # @return [String]
110
+ attr_accessor :end_time
111
+
112
+ # The time the subscription has or will start.
113
+ # Corresponds to the JSON property `startTime`
114
+ # @return [String]
115
+ attr_accessor :start_time
116
+
117
+ # The type of subscription
118
+ # Corresponds to the JSON property `type`
119
+ # @return [String]
120
+ attr_accessor :type
121
+
122
+ def initialize(**args)
123
+ update!(**args)
124
+ end
125
+
126
+ # Update properties of this object
127
+ def update!(**args)
128
+ @end_time = args[:end_time] if args.key?(:end_time)
129
+ @start_time = args[:start_time] if args.key?(:start_time)
130
+ @type = args[:type] if args.key?(:type)
131
+ end
132
+ end
133
+
134
+ # Resource capturing the settings for the Event Threat Detection service.
135
+ class EventThreatDetectionSettings
136
+ include Google::Apis::Core::Hashable
137
+
138
+ # The configurations including the state of enablement for the service's
139
+ # different modules. The absence of a module in the map implies its
140
+ # configuration is inherited from its parent's.
141
+ # Corresponds to the JSON property `modules`
142
+ # @return [Hash<String,Google::Apis::SecuritycenterV1beta2::Config>]
143
+ attr_accessor :modules
144
+
145
+ # The resource name of the EventThreatDetectionSettings. Formats: *
146
+ # organizations/`organization`/eventThreatDetectionSettings * folders/`folder`/
147
+ # eventThreatDetectionSettings * projects/`project`/eventThreatDetectionSettings
148
+ # Corresponds to the JSON property `name`
149
+ # @return [String]
150
+ attr_accessor :name
151
+
152
+ # The state of enablement for the service at its level of the resource hierarchy.
153
+ # A DISABLED state will override all module enablement_states to DISABLED.
154
+ # Corresponds to the JSON property `serviceEnablementState`
155
+ # @return [String]
156
+ attr_accessor :service_enablement_state
157
+
158
+ # Output only. The time the settings were last updated.
159
+ # Corresponds to the JSON property `updateTime`
160
+ # @return [String]
161
+ attr_accessor :update_time
162
+
163
+ def initialize(**args)
164
+ update!(**args)
165
+ end
166
+
167
+ # Update properties of this object
168
+ def update!(**args)
169
+ @modules = args[:modules] if args.key?(:modules)
170
+ @name = args[:name] if args.key?(:name)
171
+ @service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state)
172
+ @update_time = args[:update_time] if args.key?(:update_time)
173
+ end
174
+ end
175
+
176
+ # Security Command Center finding. A finding is a record of assessment data like
177
+ # security, risk, health, or privacy, that is ingested into Security Command
178
+ # Center for presentation, notification, analysis, policy testing, and
179
+ # enforcement. For example, a cross-site scripting (XSS) vulnerability in an App
180
+ # Engine application is a finding.
181
+ class Finding
182
+ include Google::Apis::Core::Hashable
183
+
184
+ # The additional taxonomy group within findings from a given source. This field
185
+ # is immutable after creation time. Example: "XSS_FLASH_INJECTION"
186
+ # Corresponds to the JSON property `category`
187
+ # @return [String]
188
+ attr_accessor :category
189
+
190
+ # The time at which the finding was created in Security Command Center.
191
+ # Corresponds to the JSON property `createTime`
192
+ # @return [String]
193
+ attr_accessor :create_time
194
+
195
+ # The time at which the event took place, or when an update to the finding
196
+ # occurred. For example, if the finding represents an open firewall it would
197
+ # capture the time the detector believes the firewall became open. The accuracy
198
+ # is determined by the detector. If the finding were to be resolved afterward,
199
+ # this time would reflect when the finding was resolved.
200
+ # Corresponds to the JSON property `eventTime`
201
+ # @return [String]
202
+ attr_accessor :event_time
203
+
204
+ # The URI that, if available, points to a web page outside of Security Command
205
+ # Center where additional information about the finding can be found. This field
206
+ # is guaranteed to be either empty or a well formed URL.
207
+ # Corresponds to the JSON property `externalUri`
208
+ # @return [String]
209
+ attr_accessor :external_uri
210
+
211
+ # The relative resource name of this finding. See: https://cloud.google.com/apis/
212
+ # design/resource_names#relative_resource_name Example: "organizations/`
213
+ # organization_id`/sources/`source_id`/findings/`finding_id`"
214
+ # Corresponds to the JSON property `name`
215
+ # @return [String]
216
+ attr_accessor :name
217
+
218
+ # The relative resource name of the source the finding belongs to. See: https://
219
+ # cloud.google.com/apis/design/resource_names#relative_resource_name This field
220
+ # is immutable after creation time. For example: "organizations/`organization_id`
221
+ # /sources/`source_id`"
222
+ # Corresponds to the JSON property `parent`
223
+ # @return [String]
224
+ attr_accessor :parent
225
+
226
+ # For findings on Google Cloud resources, the full resource name of the Google
227
+ # Cloud resource this finding is for. See: https://cloud.google.com/apis/design/
228
+ # resource_names#full_resource_name When the finding is for a non-Google Cloud
229
+ # resource, the resourceName can be a customer or partner defined string. This
230
+ # field is immutable after creation time.
231
+ # Corresponds to the JSON property `resourceName`
232
+ # @return [String]
233
+ attr_accessor :resource_name
234
+
235
+ # User specified security marks that are attached to the parent Security Command
236
+ # Center resource. Security marks are scoped within a Security Command Center
237
+ # organization -- they can be modified and viewed by all users who have proper
238
+ # permissions on the organization.
239
+ # Corresponds to the JSON property `securityMarks`
240
+ # @return [Google::Apis::SecuritycenterV1beta2::SecurityMarks]
241
+ attr_accessor :security_marks
242
+
243
+ # The severity of the finding. This field is managed by the source that writes
244
+ # the finding.
245
+ # Corresponds to the JSON property `severity`
246
+ # @return [String]
247
+ attr_accessor :severity
248
+
249
+ # Source specific properties. These properties are managed by the source that
250
+ # writes the finding. The key names in the source_properties map must be between
251
+ # 1 and 255 characters, and must start with a letter and contain alphanumeric
252
+ # characters or underscores only.
253
+ # Corresponds to the JSON property `sourceProperties`
254
+ # @return [Hash<String,Object>]
255
+ attr_accessor :source_properties
256
+
257
+ # The state of the finding.
258
+ # Corresponds to the JSON property `state`
259
+ # @return [String]
260
+ attr_accessor :state
261
+
262
+ def initialize(**args)
263
+ update!(**args)
264
+ end
265
+
266
+ # Update properties of this object
267
+ def update!(**args)
268
+ @category = args[:category] if args.key?(:category)
269
+ @create_time = args[:create_time] if args.key?(:create_time)
270
+ @event_time = args[:event_time] if args.key?(:event_time)
271
+ @external_uri = args[:external_uri] if args.key?(:external_uri)
272
+ @name = args[:name] if args.key?(:name)
273
+ @parent = args[:parent] if args.key?(:parent)
274
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
275
+ @security_marks = args[:security_marks] if args.key?(:security_marks)
276
+ @severity = args[:severity] if args.key?(:severity)
277
+ @source_properties = args[:source_properties] if args.key?(:source_properties)
278
+ @state = args[:state] if args.key?(:state)
279
+ end
280
+ end
281
+
282
+ # Message that contains the resource name and display name of a folder resource.
283
+ class Folder
284
+ include Google::Apis::Core::Hashable
285
+
286
+ # Full resource name of this folder. See: https://cloud.google.com/apis/design/
287
+ # resource_names#full_resource_name
288
+ # Corresponds to the JSON property `resourceFolder`
289
+ # @return [String]
290
+ attr_accessor :resource_folder
291
+
292
+ # The user defined display name for this folder.
293
+ # Corresponds to the JSON property `resourceFolderDisplayName`
294
+ # @return [String]
295
+ attr_accessor :resource_folder_display_name
296
+
297
+ def initialize(**args)
298
+ update!(**args)
299
+ end
300
+
301
+ # Update properties of this object
302
+ def update!(**args)
303
+ @resource_folder = args[:resource_folder] if args.key?(:resource_folder)
304
+ @resource_folder_display_name = args[:resource_folder_display_name] if args.key?(:resource_folder_display_name)
305
+ end
306
+ end
307
+
308
+ # Cloud SCC's Notification
309
+ class GoogleCloudSecuritycenterV1NotificationMessage
310
+ include Google::Apis::Core::Hashable
311
+
312
+ # Security Command Center finding. A finding is a record of assessment data like
313
+ # security, risk, health, or privacy, that is ingested into Security Command
314
+ # Center for presentation, notification, analysis, policy testing, and
315
+ # enforcement. For example, a cross-site scripting (XSS) vulnerability in an App
316
+ # Engine application is a finding.
317
+ # Corresponds to the JSON property `finding`
318
+ # @return [Google::Apis::SecuritycenterV1beta2::Finding]
319
+ attr_accessor :finding
320
+
321
+ # Name of the notification config that generated current notification.
322
+ # Corresponds to the JSON property `notificationConfigName`
323
+ # @return [String]
324
+ attr_accessor :notification_config_name
325
+
326
+ # Information related to the Google Cloud resource.
327
+ # Corresponds to the JSON property `resource`
328
+ # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1Resource]
329
+ attr_accessor :resource
330
+
331
+ def initialize(**args)
332
+ update!(**args)
333
+ end
334
+
335
+ # Update properties of this object
336
+ def update!(**args)
337
+ @finding = args[:finding] if args.key?(:finding)
338
+ @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
339
+ @resource = args[:resource] if args.key?(:resource)
340
+ end
341
+ end
342
+
343
+ # Information related to the Google Cloud resource.
344
+ class GoogleCloudSecuritycenterV1Resource
345
+ include Google::Apis::Core::Hashable
346
+
347
+ # Output only. Contains a Folder message for each folder in the assets ancestry.
348
+ # The first folder is the deepest nested folder, and the last folder is the
349
+ # folder directly under the Organization.
350
+ # Corresponds to the JSON property `folders`
351
+ # @return [Array<Google::Apis::SecuritycenterV1beta2::Folder>]
352
+ attr_accessor :folders
353
+
354
+ # The full resource name of the resource. See: https://cloud.google.com/apis/
355
+ # design/resource_names#full_resource_name
356
+ # Corresponds to the JSON property `name`
357
+ # @return [String]
358
+ attr_accessor :name
359
+
360
+ # The full resource name of resource's parent.
361
+ # Corresponds to the JSON property `parent`
362
+ # @return [String]
363
+ attr_accessor :parent
364
+
365
+ # The human readable name of resource's parent.
366
+ # Corresponds to the JSON property `parentDisplayName`
367
+ # @return [String]
368
+ attr_accessor :parent_display_name
369
+
370
+ # The full resource name of project that the resource belongs to.
371
+ # Corresponds to the JSON property `project`
372
+ # @return [String]
373
+ attr_accessor :project
374
+
375
+ # The human readable name of project that the resource belongs to.
376
+ # Corresponds to the JSON property `projectDisplayName`
377
+ # @return [String]
378
+ attr_accessor :project_display_name
379
+
380
+ def initialize(**args)
381
+ update!(**args)
382
+ end
383
+
384
+ # Update properties of this object
385
+ def update!(**args)
386
+ @folders = args[:folders] if args.key?(:folders)
387
+ @name = args[:name] if args.key?(:name)
388
+ @parent = args[:parent] if args.key?(:parent)
389
+ @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
390
+ @project = args[:project] if args.key?(:project)
391
+ @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
392
+ end
393
+ end
394
+
395
+ # Response of asset discovery run
396
+ class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
397
+ include Google::Apis::Core::Hashable
398
+
399
+ # The duration between asset discovery run start and end
400
+ # Corresponds to the JSON property `duration`
401
+ # @return [String]
402
+ attr_accessor :duration
403
+
404
+ # The state of an asset discovery run.
405
+ # Corresponds to the JSON property `state`
406
+ # @return [String]
407
+ attr_accessor :state
408
+
409
+ def initialize(**args)
410
+ update!(**args)
411
+ end
412
+
413
+ # Update properties of this object
414
+ def update!(**args)
415
+ @duration = args[:duration] if args.key?(:duration)
416
+ @state = args[:state] if args.key?(:state)
417
+ end
418
+ end
419
+
420
+ # Response of asset discovery run
421
+ class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
422
+ include Google::Apis::Core::Hashable
423
+
424
+ # The duration between asset discovery run start and end
425
+ # Corresponds to the JSON property `duration`
426
+ # @return [String]
427
+ attr_accessor :duration
428
+
429
+ # The state of an asset discovery run.
430
+ # Corresponds to the JSON property `state`
431
+ # @return [String]
432
+ attr_accessor :state
433
+
434
+ def initialize(**args)
435
+ update!(**args)
436
+ end
437
+
438
+ # Update properties of this object
439
+ def update!(**args)
440
+ @duration = args[:duration] if args.key?(:duration)
441
+ @state = args[:state] if args.key?(:state)
442
+ end
443
+ end
444
+
445
+ # Security Command Center finding. A finding is a record of assessment data (
446
+ # security, risk, health or privacy) ingested into Security Command Center for
447
+ # presentation, notification, analysis, policy testing, and enforcement. For
448
+ # example, an XSS vulnerability in an App Engine application is a finding.
449
+ class GoogleCloudSecuritycenterV1p1beta1Finding
450
+ include Google::Apis::Core::Hashable
451
+
452
+ # The additional taxonomy group within findings from a given source. This field
453
+ # is immutable after creation time. Example: "XSS_FLASH_INJECTION"
454
+ # Corresponds to the JSON property `category`
455
+ # @return [String]
456
+ attr_accessor :category
457
+
458
+ # The time at which the finding was created in Security Command Center.
459
+ # Corresponds to the JSON property `createTime`
460
+ # @return [String]
461
+ attr_accessor :create_time
462
+
463
+ # The time at which the event took place, or when an update to the finding
464
+ # occurred. For example, if the finding represents an open firewall it would
465
+ # capture the time the detector believes the firewall became open. The accuracy
466
+ # is determined by the detector. If the finding were to be resolved afterward,
467
+ # this time would reflect when the finding was resolved.
468
+ # Corresponds to the JSON property `eventTime`
469
+ # @return [String]
470
+ attr_accessor :event_time
471
+
472
+ # The URI that, if available, points to a web page outside of Security Command
473
+ # Center where additional information about the finding can be found. This field
474
+ # is guaranteed to be either empty or a well formed URL.
475
+ # Corresponds to the JSON property `externalUri`
476
+ # @return [String]
477
+ attr_accessor :external_uri
478
+
479
+ # The relative resource name of this finding. See: https://cloud.google.com/apis/
480
+ # design/resource_names#relative_resource_name Example: "organizations/`
481
+ # organization_id`/sources/`source_id`/findings/`finding_id`"
482
+ # Corresponds to the JSON property `name`
483
+ # @return [String]
484
+ attr_accessor :name
485
+
486
+ # The relative resource name of the source the finding belongs to. See: https://
487
+ # cloud.google.com/apis/design/resource_names#relative_resource_name This field
488
+ # is immutable after creation time. For example: "organizations/`organization_id`
489
+ # /sources/`source_id`"
490
+ # Corresponds to the JSON property `parent`
491
+ # @return [String]
492
+ attr_accessor :parent
493
+
494
+ # For findings on Google Cloud resources, the full resource name of the Google
495
+ # Cloud resource this finding is for. See: https://cloud.google.com/apis/design/
496
+ # resource_names#full_resource_name When the finding is for a non-Google Cloud
497
+ # resource, the resourceName can be a customer or partner defined string. This
498
+ # field is immutable after creation time.
499
+ # Corresponds to the JSON property `resourceName`
500
+ # @return [String]
501
+ attr_accessor :resource_name
502
+
503
+ # User specified security marks that are attached to the parent Security Command
504
+ # Center resource. Security marks are scoped within a Security Command Center
505
+ # organization -- they can be modified and viewed by all users who have proper
506
+ # permissions on the organization.
507
+ # Corresponds to the JSON property `securityMarks`
508
+ # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
509
+ attr_accessor :security_marks
510
+
511
+ # The severity of the finding. This field is managed by the source that writes
512
+ # the finding.
513
+ # Corresponds to the JSON property `severity`
514
+ # @return [String]
515
+ attr_accessor :severity
516
+
517
+ # Source specific properties. These properties are managed by the source that
518
+ # writes the finding. The key names in the source_properties map must be between
519
+ # 1 and 255 characters, and must start with a letter and contain alphanumeric
520
+ # characters or underscores only.
521
+ # Corresponds to the JSON property `sourceProperties`
522
+ # @return [Hash<String,Object>]
523
+ attr_accessor :source_properties
524
+
525
+ # The state of the finding.
526
+ # Corresponds to the JSON property `state`
527
+ # @return [String]
528
+ attr_accessor :state
529
+
530
+ def initialize(**args)
531
+ update!(**args)
532
+ end
533
+
534
+ # Update properties of this object
535
+ def update!(**args)
536
+ @category = args[:category] if args.key?(:category)
537
+ @create_time = args[:create_time] if args.key?(:create_time)
538
+ @event_time = args[:event_time] if args.key?(:event_time)
539
+ @external_uri = args[:external_uri] if args.key?(:external_uri)
540
+ @name = args[:name] if args.key?(:name)
541
+ @parent = args[:parent] if args.key?(:parent)
542
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
543
+ @security_marks = args[:security_marks] if args.key?(:security_marks)
544
+ @severity = args[:severity] if args.key?(:severity)
545
+ @source_properties = args[:source_properties] if args.key?(:source_properties)
546
+ @state = args[:state] if args.key?(:state)
547
+ end
548
+ end
549
+
550
+ # Message that contains the resource name and display name of a folder resource.
551
+ class GoogleCloudSecuritycenterV1p1beta1Folder
552
+ include Google::Apis::Core::Hashable
553
+
554
+ # Full resource name of this folder. See: https://cloud.google.com/apis/design/
555
+ # resource_names#full_resource_name
556
+ # Corresponds to the JSON property `resourceFolder`
557
+ # @return [String]
558
+ attr_accessor :resource_folder
559
+
560
+ # The user defined display name for this folder.
561
+ # Corresponds to the JSON property `resourceFolderDisplayName`
562
+ # @return [String]
563
+ attr_accessor :resource_folder_display_name
564
+
565
+ def initialize(**args)
566
+ update!(**args)
567
+ end
568
+
569
+ # Update properties of this object
570
+ def update!(**args)
571
+ @resource_folder = args[:resource_folder] if args.key?(:resource_folder)
572
+ @resource_folder_display_name = args[:resource_folder_display_name] if args.key?(:resource_folder_display_name)
573
+ end
574
+ end
575
+
576
+ # Security Command Center's Notification
577
+ class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
578
+ include Google::Apis::Core::Hashable
579
+
580
+ # Security Command Center finding. A finding is a record of assessment data (
581
+ # security, risk, health or privacy) ingested into Security Command Center for
582
+ # presentation, notification, analysis, policy testing, and enforcement. For
583
+ # example, an XSS vulnerability in an App Engine application is a finding.
584
+ # Corresponds to the JSON property `finding`
585
+ # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Finding]
586
+ attr_accessor :finding
587
+
588
+ # Name of the notification config that generated current notification.
589
+ # Corresponds to the JSON property `notificationConfigName`
590
+ # @return [String]
591
+ attr_accessor :notification_config_name
592
+
593
+ # Information related to the Google Cloud resource.
594
+ # Corresponds to the JSON property `resource`
595
+ # @return [Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Resource]
596
+ attr_accessor :resource
597
+
598
+ def initialize(**args)
599
+ update!(**args)
600
+ end
601
+
602
+ # Update properties of this object
603
+ def update!(**args)
604
+ @finding = args[:finding] if args.key?(:finding)
605
+ @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
606
+ @resource = args[:resource] if args.key?(:resource)
607
+ end
608
+ end
609
+
610
+ # Information related to the Google Cloud resource.
611
+ class GoogleCloudSecuritycenterV1p1beta1Resource
612
+ include Google::Apis::Core::Hashable
613
+
614
+ # Output only. Contains a Folder message for each folder in the assets ancestry.
615
+ # The first folder is the deepest nested folder, and the last folder is the
616
+ # folder directly under the Organization.
617
+ # Corresponds to the JSON property `folders`
618
+ # @return [Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Folder>]
619
+ attr_accessor :folders
620
+
621
+ # The full resource name of the resource. See: https://cloud.google.com/apis/
622
+ # design/resource_names#full_resource_name
623
+ # Corresponds to the JSON property `name`
624
+ # @return [String]
625
+ attr_accessor :name
626
+
627
+ # The full resource name of resource's parent.
628
+ # Corresponds to the JSON property `parent`
629
+ # @return [String]
630
+ attr_accessor :parent
631
+
632
+ # The human readable name of resource's parent.
633
+ # Corresponds to the JSON property `parentDisplayName`
634
+ # @return [String]
635
+ attr_accessor :parent_display_name
636
+
637
+ # The full resource name of project that the resource belongs to.
638
+ # Corresponds to the JSON property `project`
639
+ # @return [String]
640
+ attr_accessor :project
641
+
642
+ # The human readable name of project that the resource belongs to.
643
+ # Corresponds to the JSON property `projectDisplayName`
644
+ # @return [String]
645
+ attr_accessor :project_display_name
646
+
647
+ def initialize(**args)
648
+ update!(**args)
649
+ end
650
+
651
+ # Update properties of this object
652
+ def update!(**args)
653
+ @folders = args[:folders] if args.key?(:folders)
654
+ @name = args[:name] if args.key?(:name)
655
+ @parent = args[:parent] if args.key?(:parent)
656
+ @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
657
+ @project = args[:project] if args.key?(:project)
658
+ @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
659
+ end
660
+ end
661
+
662
+ # Response of asset discovery run
663
+ class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
664
+ include Google::Apis::Core::Hashable
665
+
666
+ # The duration between asset discovery run start and end
667
+ # Corresponds to the JSON property `duration`
668
+ # @return [String]
669
+ attr_accessor :duration
670
+
671
+ # The state of an asset discovery run.
672
+ # Corresponds to the JSON property `state`
673
+ # @return [String]
674
+ attr_accessor :state
675
+
676
+ def initialize(**args)
677
+ update!(**args)
678
+ end
679
+
680
+ # Update properties of this object
681
+ def update!(**args)
682
+ @duration = args[:duration] if args.key?(:duration)
683
+ @state = args[:state] if args.key?(:state)
684
+ end
685
+ end
686
+
687
+ # User specified security marks that are attached to the parent Security Command
688
+ # Center resource. Security marks are scoped within a Security Command Center
689
+ # organization -- they can be modified and viewed by all users who have proper
690
+ # permissions on the organization.
691
+ class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
692
+ include Google::Apis::Core::Hashable
693
+
694
+ # Mutable user specified security marks belonging to the parent resource.
695
+ # Constraints are as follows: * Keys and values are treated as case insensitive *
696
+ # Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
697
+ # numbers, underscores, or dashes * Values have leading and trailing whitespace
698
+ # trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
699
+ # Corresponds to the JSON property `marks`
700
+ # @return [Hash<String,String>]
701
+ attr_accessor :marks
702
+
703
+ # The relative resource name of the SecurityMarks. See: https://cloud.google.com/
704
+ # apis/design/resource_names#relative_resource_name Examples: "organizations/`
705
+ # organization_id`/assets/`asset_id`/securityMarks" "organizations/`
706
+ # organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
707
+ # Corresponds to the JSON property `name`
708
+ # @return [String]
709
+ attr_accessor :name
710
+
711
+ def initialize(**args)
712
+ update!(**args)
713
+ end
714
+
715
+ # Update properties of this object
716
+ def update!(**args)
717
+ @marks = args[:marks] if args.key?(:marks)
718
+ @name = args[:name] if args.key?(:name)
719
+ end
720
+ end
721
+
722
+ # Resource capturing the settings for Security Center.
723
+ class SecurityCenterSettings
724
+ include Google::Apis::Core::Hashable
725
+
726
+ # The resource name of the project to send logs to. This project must be part of
727
+ # the organization this resource resides in. The format is `projects/`project_id`
728
+ # `. An empty value disables logging. This value is only referenced by services
729
+ # that support log sink. Please refer to the documentation for an updated list
730
+ # of compatible services.
731
+ # Corresponds to the JSON property `logSinkProject`
732
+ # @return [String]
733
+ attr_accessor :log_sink_project
734
+
735
+ # The resource name of the SecurityCenterSettings. Format: organizations/`
736
+ # organization`/securityCenterSettings
737
+ # Corresponds to the JSON property `name`
738
+ # @return [String]
739
+ attr_accessor :name
740
+
741
+ # The organization level service account to be used for security center
742
+ # components.
743
+ # Corresponds to the JSON property `orgServiceAccount`
744
+ # @return [String]
745
+ attr_accessor :org_service_account
746
+
747
+ def initialize(**args)
748
+ update!(**args)
749
+ end
750
+
751
+ # Update properties of this object
752
+ def update!(**args)
753
+ @log_sink_project = args[:log_sink_project] if args.key?(:log_sink_project)
754
+ @name = args[:name] if args.key?(:name)
755
+ @org_service_account = args[:org_service_account] if args.key?(:org_service_account)
756
+ end
757
+ end
758
+
759
+ # Resource capturing the settings for the Security Health Analytics service.
760
+ class SecurityHealthAnalyticsSettings
761
+ include Google::Apis::Core::Hashable
762
+
763
+ # The configurations including the state of enablement for the service's
764
+ # different modules. The absence of a module in the map implies its
765
+ # configuration is inherited from its parent's.
766
+ # Corresponds to the JSON property `modules`
767
+ # @return [Hash<String,Google::Apis::SecuritycenterV1beta2::Config>]
768
+ attr_accessor :modules
769
+
770
+ # The resource name of the SecurityHealthAnalyticsSettings. Formats: *
771
+ # organizations/`organization`/securityHealthAnalyticsSettings * folders/`folder`
772
+ # /securityHealthAnalyticsSettings * projects/`project`/
773
+ # securityHealthAnalyticsSettings
774
+ # Corresponds to the JSON property `name`
775
+ # @return [String]
776
+ attr_accessor :name
777
+
778
+ # Output only. The service account used by Security Health Analytics detectors.
779
+ # Corresponds to the JSON property `serviceAccount`
780
+ # @return [String]
781
+ attr_accessor :service_account
782
+
783
+ # The state of enablement for the service at its level of the resource hierarchy.
784
+ # A DISABLED state will override all module enablement_states to DISABLED.
785
+ # Corresponds to the JSON property `serviceEnablementState`
786
+ # @return [String]
787
+ attr_accessor :service_enablement_state
788
+
789
+ # Output only. The time the settings were last updated.
790
+ # Corresponds to the JSON property `updateTime`
791
+ # @return [String]
792
+ attr_accessor :update_time
793
+
794
+ def initialize(**args)
795
+ update!(**args)
796
+ end
797
+
798
+ # Update properties of this object
799
+ def update!(**args)
800
+ @modules = args[:modules] if args.key?(:modules)
801
+ @name = args[:name] if args.key?(:name)
802
+ @service_account = args[:service_account] if args.key?(:service_account)
803
+ @service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state)
804
+ @update_time = args[:update_time] if args.key?(:update_time)
805
+ end
806
+ end
807
+
808
+ # User specified security marks that are attached to the parent Security Command
809
+ # Center resource. Security marks are scoped within a Security Command Center
810
+ # organization -- they can be modified and viewed by all users who have proper
811
+ # permissions on the organization.
812
+ class SecurityMarks
813
+ include Google::Apis::Core::Hashable
814
+
815
+ # Mutable user specified security marks belonging to the parent resource.
816
+ # Constraints are as follows: * Keys and values are treated as case insensitive *
817
+ # Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
818
+ # numbers, underscores, or dashes * Values have leading and trailing whitespace
819
+ # trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
820
+ # Corresponds to the JSON property `marks`
821
+ # @return [Hash<String,String>]
822
+ attr_accessor :marks
823
+
824
+ # The relative resource name of the SecurityMarks. See: https://cloud.google.com/
825
+ # apis/design/resource_names#relative_resource_name Examples: "organizations/`
826
+ # organization_id`/assets/`asset_id`/securityMarks" "organizations/`
827
+ # organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
828
+ # Corresponds to the JSON property `name`
829
+ # @return [String]
830
+ attr_accessor :name
831
+
832
+ def initialize(**args)
833
+ update!(**args)
834
+ end
835
+
836
+ # Update properties of this object
837
+ def update!(**args)
838
+ @marks = args[:marks] if args.key?(:marks)
839
+ @name = args[:name] if args.key?(:name)
840
+ end
841
+ end
842
+
843
+ # Resource capturing the state of an organization's subscription.
844
+ class Subscription
845
+ include Google::Apis::Core::Hashable
846
+
847
+ # Details of a subscription.
848
+ # Corresponds to the JSON property `details`
849
+ # @return [Google::Apis::SecuritycenterV1beta2::Details]
850
+ attr_accessor :details
851
+
852
+ # The resource name of the subscription. Format: organizations/`organization`/
853
+ # subscription
854
+ # Corresponds to the JSON property `name`
855
+ # @return [String]
856
+ attr_accessor :name
857
+
858
+ # The tier of SCC features this organization currently has access to.
859
+ # Corresponds to the JSON property `tier`
860
+ # @return [String]
861
+ attr_accessor :tier
862
+
863
+ def initialize(**args)
864
+ update!(**args)
865
+ end
866
+
867
+ # Update properties of this object
868
+ def update!(**args)
869
+ @details = args[:details] if args.key?(:details)
870
+ @name = args[:name] if args.key?(:name)
871
+ @tier = args[:tier] if args.key?(:tier)
872
+ end
873
+ end
874
+
875
+ # Resource capturing the settings for the Web Security Scanner service.
876
+ class WebSecurityScannerSettings
877
+ include Google::Apis::Core::Hashable
878
+
879
+ # The configurations including the state of enablement for the service's
880
+ # different modules. The absence of a module in the map implies its
881
+ # configuration is inherited from its parent's.
882
+ # Corresponds to the JSON property `modules`
883
+ # @return [Hash<String,Google::Apis::SecuritycenterV1beta2::Config>]
884
+ attr_accessor :modules
885
+
886
+ # The resource name of the WebSecurityScannerSettings. Formats: * organizations/`
887
+ # organization`/webSecurityScannerSettings * folders/`folder`/
888
+ # webSecurityScannerSettings * projects/`project`/webSecurityScannerSettings
889
+ # Corresponds to the JSON property `name`
890
+ # @return [String]
891
+ attr_accessor :name
892
+
893
+ # The state of enablement for the service at its level of the resource hierarchy.
894
+ # A DISABLED state will override all module enablement_states to DISABLED.
895
+ # Corresponds to the JSON property `serviceEnablementState`
896
+ # @return [String]
897
+ attr_accessor :service_enablement_state
898
+
899
+ # Output only. The time the settings were last updated.
900
+ # Corresponds to the JSON property `updateTime`
901
+ # @return [String]
902
+ attr_accessor :update_time
903
+
904
+ def initialize(**args)
905
+ update!(**args)
906
+ end
907
+
908
+ # Update properties of this object
909
+ def update!(**args)
910
+ @modules = args[:modules] if args.key?(:modules)
911
+ @name = args[:name] if args.key?(:name)
912
+ @service_enablement_state = args[:service_enablement_state] if args.key?(:service_enablement_state)
913
+ @update_time = args[:update_time] if args.key?(:update_time)
914
+ end
915
+ end
916
+ end
917
+ end
918
+ end