google-cloud-security_center-v1 0.21.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f13b0297efb3fee913255351e082c5c11fad87adcda13c90a84e45401db96b0b
4
- data.tar.gz: 504b2ca3c237b00b032935e74d9effdb85bc702ef9ae61ca0b99e14dbb4b7432
3
+ metadata.gz: ad28e7f8c402c362847da78df80d5a15dd6ec9e0ac54662c75acfcf53b0e7217
4
+ data.tar.gz: 0d71845dea8d3f50ef683179e346ae64145df654ca63c0880c6092a64a15f727
5
5
  SHA512:
6
- metadata.gz: 4a1a7317a533c567e5ff404be91a480179f8b5d45e0fcb57ed03d54cffa1c7add2c51821db3724cee40db8523d123ebebe1b48b97258c3b380be446177b6d456
7
- data.tar.gz: cbb8059fe743a15451bd248c70ca6a0b007067ae56e7e80875516eea61969a59fce9eaa747d40becc26fe290381791cca27b51b106b9d1aa60b7bbfbe14db44e
6
+ metadata.gz: 6f1e5e8a733414cc3f27f6f2facfabb9d9a7d1aff94e5bce5f82637cae253521ee1353df1fb689f17a87b9b87a5142ca696844d4aca5ba01a4b02269c8cf6386
7
+ data.tar.gz: 7ab34466150a681b58e99d523b4f3344887e4a283fd88d608e2a4e48a8341f379c70a9aacf4356e3a2adef8141fd07b5bd8b1430fc903876f23ac27176d134b6
@@ -257,8 +257,8 @@ module Google
257
257
  # the default parameter values, pass an empty Hash as a request object (see above).
258
258
  #
259
259
  # @param parent [::String]
260
- # Required. The parent, at which bulk action needs to be applied. Its format is
261
- # "organizations/[organization_id]", "folders/[folder_id]",
260
+ # Required. The parent, at which bulk action needs to be applied. Its format
261
+ # is "organizations/[organization_id]", "folders/[folder_id]",
262
262
  # "projects/[project_id]".
263
263
  # @param filter [::String]
264
264
  # Expression that identifies findings that should be updated.
@@ -379,8 +379,8 @@ module Google
379
379
  # Required. Resource name of the new source's parent. Its format should be
380
380
  # "organizations/[organization_id]".
381
381
  # @param source [::Google::Cloud::SecurityCenter::V1::Source, ::Hash]
382
- # Required. The Source being created, only the display_name and description will be
383
- # used. All other fields will be ignored.
382
+ # Required. The Source being created, only the display_name and description
383
+ # will be used. All other fields will be ignored.
384
384
  #
385
385
  # @yield [response, operation] Access the result along with the RPC operation
386
386
  # @yieldparam response [::Google::Cloud::SecurityCenter::V1::Source]
@@ -473,8 +473,8 @@ module Google
473
473
  # It must be alphanumeric and less than or equal to 32 characters and
474
474
  # greater than 0 characters in length.
475
475
  # @param finding [::Google::Cloud::SecurityCenter::V1::Finding, ::Hash]
476
- # Required. The Finding being created. The name and security_marks will be ignored as
477
- # they are both output only fields on this resource.
476
+ # Required. The Finding being created. The name and security_marks will be
477
+ # ignored as they are both output only fields on this resource.
478
478
  #
479
479
  # @yield [response, operation] Access the result along with the RPC operation
480
480
  # @yieldparam response [::Google::Cloud::SecurityCenter::V1::Finding]
@@ -653,16 +653,18 @@ module Google
653
653
  # the default parameter values, pass an empty Hash as a request object (see above).
654
654
  #
655
655
  # @param parent [::String]
656
- # Required. Resource name of the new notification config's parent. Its format is
657
- # "organizations/[organization_id]".
656
+ # Required. Resource name of the new notification config's parent. Its format
657
+ # is "organizations/[organization_id]", "folders/[folder_id]", or
658
+ # "projects/[project_id]".
658
659
  # @param config_id [::String]
659
660
  # Required.
660
661
  # Unique identifier provided by the client within the parent scope.
661
662
  # It must be between 1 and 128 characters, and contains alphanumeric
662
663
  # characters, underscores or hyphens only.
663
664
  # @param notification_config [::Google::Cloud::SecurityCenter::V1::NotificationConfig, ::Hash]
664
- # Required. The notification config being created. The name and the service account
665
- # will be ignored as they are both output only fields on this resource.
665
+ # Required. The notification config being created. The name and the service
666
+ # account will be ignored as they are both output only fields on this
667
+ # resource.
666
668
  #
667
669
  # @yield [response, operation] Access the result along with the RPC operation
668
670
  # @yieldparam response [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
@@ -1272,8 +1274,8 @@ module Google
1272
1274
  # the default parameter values, pass an empty Hash as a request object (see above).
1273
1275
  #
1274
1276
  # @param name [::String]
1275
- # Required. Name of the organization to get organization settings for. Its format is
1276
- # "organizations/[organization_id]/organizationSettings".
1277
+ # Required. Name of the organization to get organization settings for. Its
1278
+ # format is "organizations/[organization_id]/organizationSettings".
1277
1279
  #
1278
1280
  # @yield [response, operation] Access the result along with the RPC operation
1279
1281
  # @yieldparam response [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
@@ -1512,9 +1514,9 @@ module Google
1512
1514
  # Use a negated partial match on the empty string to filter based on a
1513
1515
  # property not existing: `-resource_properties.my_property : ""`
1514
1516
  # @param group_by [::String]
1515
- # Required. Expression that defines what assets fields to use for grouping. The string
1516
- # value should follow SQL syntax: comma separated list of fields. For
1517
- # example:
1517
+ # Required. Expression that defines what assets fields to use for grouping.
1518
+ # The string value should follow SQL syntax: comma separated list of fields.
1519
+ # For example:
1518
1520
  # "security_center_properties.resource_project,security_center_properties.project".
1519
1521
  #
1520
1522
  # The following fields are supported when compare_duration is not set:
@@ -1735,9 +1737,9 @@ module Google
1735
1737
  # * resource.project_display_name: `=`, `:`
1736
1738
  # * resource.type: `=`, `:`
1737
1739
  # @param group_by [::String]
1738
- # Required. Expression that defines what assets fields to use for grouping (including
1739
- # `state_change`). The string value should follow SQL syntax: comma separated
1740
- # list of fields. For example: "parent,resource_name".
1740
+ # Required. Expression that defines what assets fields to use for grouping
1741
+ # (including `state_change`). The string value should follow SQL syntax:
1742
+ # comma separated list of fields. For example: "parent,resource_name".
1741
1743
  #
1742
1744
  # The following fields are supported:
1743
1745
  #
@@ -2334,8 +2336,8 @@ module Google
2334
2336
  # the default parameter values, pass an empty Hash as a request object (see above).
2335
2337
  #
2336
2338
  # @param parent [::String]
2337
- # Required. The parent, which owns the collection of mute configs. Its format is
2338
- # "organizations/[organization_id]", "folders/[folder_id]",
2339
+ # Required. The parent, which owns the collection of mute configs. Its format
2340
+ # is "organizations/[organization_id]", "folders/[folder_id]",
2339
2341
  # "projects/[project_id]".
2340
2342
  # @param page_size [::Integer]
2341
2343
  # The maximum number of configs to return. The service may return fewer than
@@ -2439,8 +2441,9 @@ module Google
2439
2441
  # the default parameter values, pass an empty Hash as a request object (see above).
2440
2442
  #
2441
2443
  # @param parent [::String]
2442
- # Required. Name of the organization to list notification configs.
2443
- # Its format is "organizations/[organization_id]".
2444
+ # Required. Name of the organization to list notification configs. Its format
2445
+ # is "organizations/[organization_id]", "folders/[folder_id]", or
2446
+ # "projects/[project_id]".
2444
2447
  # @param page_token [::String]
2445
2448
  # The value returned by the last `ListNotificationConfigsResponse`; indicates
2446
2449
  # that this is a continuation of a prior `ListNotificationConfigs` call, and
@@ -2539,8 +2542,8 @@ module Google
2539
2542
  # the default parameter values, pass an empty Hash as a request object (see above).
2540
2543
  #
2541
2544
  # @param parent [::String]
2542
- # Required. Resource name of the parent of sources to list. Its format should be
2543
- # "organizations/[organization_id], folders/[folder_id], or
2545
+ # Required. Resource name of the parent of sources to list. Its format should
2546
+ # be "organizations/[organization_id], folders/[folder_id], or
2544
2547
  # projects/[project_id]".
2545
2548
  # @param page_token [::String]
2546
2549
  # The value returned by the last `ListSourcesResponse`; indicates
@@ -2645,8 +2648,8 @@ module Google
2645
2648
  # the default parameter values, pass an empty Hash as a request object (see above).
2646
2649
  #
2647
2650
  # @param parent [::String]
2648
- # Required. Name of the organization to run asset discovery for. Its format is
2649
- # "organizations/[organization_id]".
2651
+ # Required. Name of the organization to run asset discovery for. Its format
2652
+ # is "organizations/[organization_id]".
2650
2653
  #
2651
2654
  # @yield [response, operation] Access the result along with the RPC operation
2652
2655
  # @yieldparam response [::Gapic::Operation]
@@ -2742,7 +2745,7 @@ module Google
2742
2745
  # Required. The relative resource name of the finding. See:
2743
2746
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
2744
2747
  # Example:
2745
- # "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}".
2748
+ # "organizations/\\{organization_id}/sources/\\{source_id}/findings/\\{finding_id}".
2746
2749
  # @param state [::Google::Cloud::SecurityCenter::V1::Finding::State]
2747
2750
  # Required. The desired State of the finding.
2748
2751
  # @param start_time [::Google::Protobuf::Timestamp, ::Hash]
@@ -2834,9 +2837,9 @@ module Google
2834
2837
  # Required. The relative resource name of the finding. See:
2835
2838
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
2836
2839
  # Example:
2837
- # "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}",
2838
- # "folders/\\{folder_id}/sources/\\{source_id}/finding/\\{finding_id}",
2839
- # "projects/\\{project_id}/sources/\\{source_id}/finding/\\{finding_id}".
2840
+ # "organizations/\\{organization_id}/sources/\\{source_id}/findings/\\{finding_id}",
2841
+ # "folders/\\{folder_id}/sources/\\{source_id}/findings/\\{finding_id}",
2842
+ # "projects/\\{project_id}/sources/\\{source_id}/findings/\\{finding_id}".
2840
2843
  # @param mute [::Google::Cloud::SecurityCenter::V1::Finding::Mute]
2841
2844
  # Required. The desired state of the Mute.
2842
2845
  #
@@ -3201,8 +3204,8 @@ module Google
3201
3204
  # the default parameter values, pass an empty Hash as a request object (see above).
3202
3205
  #
3203
3206
  # @param finding [::Google::Cloud::SecurityCenter::V1::Finding, ::Hash]
3204
- # Required. The finding resource to update or create if it does not already exist.
3205
- # parent, security_marks, and update_time will be ignored.
3207
+ # Required. The finding resource to update or create if it does not already
3208
+ # exist. parent, security_marks, and update_time will be ignored.
3206
3209
  #
3207
3210
  # In the case of creation, the finding id portion of the name must be
3208
3211
  # alphanumeric and less than or equal to 32 characters and greater than 0
@@ -4025,8 +4028,8 @@ module Google
4025
4028
  # the default parameter values, pass an empty Hash as a request object (see above).
4026
4029
  #
4027
4030
  # @param parent [::String]
4028
- # Required. The parent, which owns the collection of BigQuery exports. Its format is
4029
- # "organizations/[organization_id]", "folders/[folder_id]",
4031
+ # Required. The parent, which owns the collection of BigQuery exports. Its
4032
+ # format is "organizations/[organization_id]", "folders/[folder_id]",
4030
4033
  # "projects/[project_id]".
4031
4034
  # @param page_size [::Integer]
4032
4035
  # The maximum number of configs to return. The service may return fewer than
@@ -267,18 +267,53 @@ module Google
267
267
  ##
268
268
  # Create a fully-qualified NotificationConfig resource string.
269
269
  #
270
- # The resource will be in the following format:
270
+ # @overload notification_config_path(organization:, notification_config:)
271
+ # The resource will be in the following format:
271
272
  #
272
- # `organizations/{organization}/notificationConfigs/{notification_config}`
273
+ # `organizations/{organization}/notificationConfigs/{notification_config}`
273
274
  #
274
- # @param organization [String]
275
- # @param notification_config [String]
275
+ # @param organization [String]
276
+ # @param notification_config [String]
277
+ #
278
+ # @overload notification_config_path(folder:, notification_config:)
279
+ # The resource will be in the following format:
280
+ #
281
+ # `folders/{folder}/notificationConfigs/{notification_config}`
282
+ #
283
+ # @param folder [String]
284
+ # @param notification_config [String]
285
+ #
286
+ # @overload notification_config_path(project:, notification_config:)
287
+ # The resource will be in the following format:
288
+ #
289
+ # `projects/{project}/notificationConfigs/{notification_config}`
290
+ #
291
+ # @param project [String]
292
+ # @param notification_config [String]
276
293
  #
277
294
  # @return [::String]
278
- def notification_config_path organization:, notification_config:
279
- raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
295
+ def notification_config_path **args
296
+ resources = {
297
+ "notification_config:organization" => (proc do |organization:, notification_config:|
298
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
299
+
300
+ "organizations/#{organization}/notificationConfigs/#{notification_config}"
301
+ end),
302
+ "folder:notification_config" => (proc do |folder:, notification_config:|
303
+ raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
304
+
305
+ "folders/#{folder}/notificationConfigs/#{notification_config}"
306
+ end),
307
+ "notification_config:project" => (proc do |project:, notification_config:|
308
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
309
+
310
+ "projects/#{project}/notificationConfigs/#{notification_config}"
311
+ end)
312
+ }
280
313
 
281
- "organizations/#{organization}/notificationConfigs/#{notification_config}"
314
+ resource = resources[args.keys.sort.join(":")]
315
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
316
+ resource.call(**args)
282
317
  end
283
318
 
284
319
  ##
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1
24
- VERSION = "0.21.0"
24
+ VERSION = "0.23.0"
25
25
  end
26
26
  end
27
27
  end
@@ -13,6 +13,7 @@ require 'google/cloud/securitycenter/v1/container_pb'
13
13
  require 'google/cloud/securitycenter/v1/database_pb'
14
14
  require 'google/cloud/securitycenter/v1/exfiltration_pb'
15
15
  require 'google/cloud/securitycenter/v1/external_system_pb'
16
+ require 'google/cloud/securitycenter/v1/file_pb'
16
17
  require 'google/cloud/securitycenter/v1/iam_binding_pb'
17
18
  require 'google/cloud/securitycenter/v1/indicator_pb'
18
19
  require 'google/cloud/securitycenter/v1/kubernetes_pb'
@@ -59,6 +60,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
59
60
  repeated :containers, :message, 42, "google.cloud.securitycenter.v1.Container"
60
61
  optional :kubernetes, :message, 43, "google.cloud.securitycenter.v1.Kubernetes"
61
62
  optional :database, :message, 44, "google.cloud.securitycenter.v1.Database"
63
+ repeated :files, :message, 46, "google.cloud.securitycenter.v1.File"
62
64
  end
63
65
  add_enum "google.cloud.securitycenter.v1.Finding.State" do
64
66
  value :STATE_UNSPECIFIED, 0
@@ -65,6 +65,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
65
65
  value :NETWORK_SERVICE_DISCOVERY, 32
66
66
  value :ACCESS_TOKEN_MANIPULATION, 33
67
67
  value :ABUSE_ELEVATION_CONTROL_MECHANISM, 34
68
+ value :DEFAULT_ACCOUNTS, 35
68
69
  end
69
70
  end
70
71
  end
@@ -0,0 +1,318 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # Required information for every language.
23
+ # @!attribute [rw] reference_docs_uri
24
+ # @return [::String]
25
+ # Link to automatically generated reference documentation. Example:
26
+ # https://cloud.google.com/nodejs/docs/reference/asset/latest
27
+ # @!attribute [rw] destinations
28
+ # @return [::Array<::Google::Api::ClientLibraryDestination>]
29
+ # The destination where API teams want this client library to be published.
30
+ class CommonLanguageSettings
31
+ include ::Google::Protobuf::MessageExts
32
+ extend ::Google::Protobuf::MessageExts::ClassMethods
33
+ end
34
+
35
+ # Details about how and where to publish client libraries.
36
+ # @!attribute [rw] version
37
+ # @return [::String]
38
+ # Version of the API to apply these settings to.
39
+ # @!attribute [rw] launch_stage
40
+ # @return [::Google::Api::LaunchStage]
41
+ # Launch stage of this version of the API.
42
+ # @!attribute [rw] rest_numeric_enums
43
+ # @return [::Boolean]
44
+ # When using transport=rest, the client request will encode enums as
45
+ # numbers rather than strings.
46
+ # @!attribute [rw] java_settings
47
+ # @return [::Google::Api::JavaSettings]
48
+ # Settings for legacy Java features, supported in the Service YAML.
49
+ # @!attribute [rw] cpp_settings
50
+ # @return [::Google::Api::CppSettings]
51
+ # Settings for C++ client libraries.
52
+ # @!attribute [rw] php_settings
53
+ # @return [::Google::Api::PhpSettings]
54
+ # Settings for PHP client libraries.
55
+ # @!attribute [rw] python_settings
56
+ # @return [::Google::Api::PythonSettings]
57
+ # Settings for Python client libraries.
58
+ # @!attribute [rw] node_settings
59
+ # @return [::Google::Api::NodeSettings]
60
+ # Settings for Node client libraries.
61
+ # @!attribute [rw] dotnet_settings
62
+ # @return [::Google::Api::DotnetSettings]
63
+ # Settings for .NET client libraries.
64
+ # @!attribute [rw] ruby_settings
65
+ # @return [::Google::Api::RubySettings]
66
+ # Settings for Ruby client libraries.
67
+ # @!attribute [rw] go_settings
68
+ # @return [::Google::Api::GoSettings]
69
+ # Settings for Go client libraries.
70
+ class ClientLibrarySettings
71
+ include ::Google::Protobuf::MessageExts
72
+ extend ::Google::Protobuf::MessageExts::ClassMethods
73
+ end
74
+
75
+ # This message configures the settings for publishing [Google Cloud Client
76
+ # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
77
+ # generated from the service config.
78
+ # @!attribute [rw] method_settings
79
+ # @return [::Array<::Google::Api::MethodSettings>]
80
+ # A list of API method settings, e.g. the behavior for methods that use the
81
+ # long-running operation pattern.
82
+ # @!attribute [rw] new_issue_uri
83
+ # @return [::String]
84
+ # Link to a place that API users can report issues. Example:
85
+ # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
+ # @!attribute [rw] documentation_uri
87
+ # @return [::String]
88
+ # Link to product home page. Example:
89
+ # https://cloud.google.com/asset-inventory/docs/overview
90
+ # @!attribute [rw] api_short_name
91
+ # @return [::String]
92
+ # Used as a tracking tag when collecting data about the APIs developer
93
+ # relations artifacts like docs, packages delivered to package managers,
94
+ # etc. Example: "speech".
95
+ # @!attribute [rw] github_label
96
+ # @return [::String]
97
+ # GitHub label to apply to issues and pull requests opened for this API.
98
+ # @!attribute [rw] codeowner_github_teams
99
+ # @return [::Array<::String>]
100
+ # GitHub teams to be added to CODEOWNERS in the directory in GitHub
101
+ # containing source code for the client libraries for this API.
102
+ # @!attribute [rw] doc_tag_prefix
103
+ # @return [::String]
104
+ # A prefix used in sample code when demarking regions to be included in
105
+ # documentation.
106
+ # @!attribute [rw] organization
107
+ # @return [::Google::Api::ClientLibraryOrganization]
108
+ # For whom the client library is being published.
109
+ # @!attribute [rw] library_settings
110
+ # @return [::Array<::Google::Api::ClientLibrarySettings>]
111
+ # Client library settings. If the same version string appears multiple
112
+ # times in this list, then the last one wins. Settings from earlier
113
+ # settings with the same version string are discarded.
114
+ class Publishing
115
+ include ::Google::Protobuf::MessageExts
116
+ extend ::Google::Protobuf::MessageExts::ClassMethods
117
+ end
118
+
119
+ # Settings for Java client libraries.
120
+ # @!attribute [rw] library_package
121
+ # @return [::String]
122
+ # The package name to use in Java. Clobbers the java_package option
123
+ # set in the protobuf. This should be used **only** by APIs
124
+ # who have already set the language_settings.java.package_name" field
125
+ # in gapic.yaml. API teams should use the protobuf java_package option
126
+ # where possible.
127
+ #
128
+ # Example of a YAML configuration::
129
+ #
130
+ # publishing:
131
+ # java_settings:
132
+ # library_package: com.google.cloud.pubsub.v1
133
+ # @!attribute [rw] service_class_names
134
+ # @return [::Google::Protobuf::Map{::String => ::String}]
135
+ # Configure the Java class name to use instead of the service's for its
136
+ # corresponding generated GAPIC client. Keys are fully-qualified
137
+ # service names as they appear in the protobuf (including the full
138
+ # the language_settings.java.interface_names" field in gapic.yaml. API
139
+ # teams should otherwise use the service name as it appears in the
140
+ # protobuf.
141
+ #
142
+ # Example of a YAML configuration::
143
+ #
144
+ # publishing:
145
+ # java_settings:
146
+ # service_class_names:
147
+ # - google.pubsub.v1.Publisher: TopicAdmin
148
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
149
+ # @!attribute [rw] common
150
+ # @return [::Google::Api::CommonLanguageSettings]
151
+ # Some settings.
152
+ class JavaSettings
153
+ include ::Google::Protobuf::MessageExts
154
+ extend ::Google::Protobuf::MessageExts::ClassMethods
155
+
156
+ # @!attribute [rw] key
157
+ # @return [::String]
158
+ # @!attribute [rw] value
159
+ # @return [::String]
160
+ class ServiceClassNamesEntry
161
+ include ::Google::Protobuf::MessageExts
162
+ extend ::Google::Protobuf::MessageExts::ClassMethods
163
+ end
164
+ end
165
+
166
+ # Settings for C++ client libraries.
167
+ # @!attribute [rw] common
168
+ # @return [::Google::Api::CommonLanguageSettings]
169
+ # Some settings.
170
+ class CppSettings
171
+ include ::Google::Protobuf::MessageExts
172
+ extend ::Google::Protobuf::MessageExts::ClassMethods
173
+ end
174
+
175
+ # Settings for Php client libraries.
176
+ # @!attribute [rw] common
177
+ # @return [::Google::Api::CommonLanguageSettings]
178
+ # Some settings.
179
+ class PhpSettings
180
+ include ::Google::Protobuf::MessageExts
181
+ extend ::Google::Protobuf::MessageExts::ClassMethods
182
+ end
183
+
184
+ # Settings for Python client libraries.
185
+ # @!attribute [rw] common
186
+ # @return [::Google::Api::CommonLanguageSettings]
187
+ # Some settings.
188
+ class PythonSettings
189
+ include ::Google::Protobuf::MessageExts
190
+ extend ::Google::Protobuf::MessageExts::ClassMethods
191
+ end
192
+
193
+ # Settings for Node client libraries.
194
+ # @!attribute [rw] common
195
+ # @return [::Google::Api::CommonLanguageSettings]
196
+ # Some settings.
197
+ class NodeSettings
198
+ include ::Google::Protobuf::MessageExts
199
+ extend ::Google::Protobuf::MessageExts::ClassMethods
200
+ end
201
+
202
+ # Settings for Dotnet client libraries.
203
+ # @!attribute [rw] common
204
+ # @return [::Google::Api::CommonLanguageSettings]
205
+ # Some settings.
206
+ class DotnetSettings
207
+ include ::Google::Protobuf::MessageExts
208
+ extend ::Google::Protobuf::MessageExts::ClassMethods
209
+ end
210
+
211
+ # Settings for Ruby client libraries.
212
+ # @!attribute [rw] common
213
+ # @return [::Google::Api::CommonLanguageSettings]
214
+ # Some settings.
215
+ class RubySettings
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
219
+
220
+ # Settings for Go client libraries.
221
+ # @!attribute [rw] common
222
+ # @return [::Google::Api::CommonLanguageSettings]
223
+ # Some settings.
224
+ class GoSettings
225
+ include ::Google::Protobuf::MessageExts
226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
227
+ end
228
+
229
+ # Describes the generator configuration for a method.
230
+ # @!attribute [rw] selector
231
+ # @return [::String]
232
+ # The fully qualified name of the method, for which the options below apply.
233
+ # This is used to find the method to apply the options.
234
+ # @!attribute [rw] long_running
235
+ # @return [::Google::Api::MethodSettings::LongRunning]
236
+ # Describes settings to use for long-running operations when generating
237
+ # API methods for RPCs. Complements RPCs that use the annotations in
238
+ # google/longrunning/operations.proto.
239
+ #
240
+ # Example of a YAML configuration::
241
+ #
242
+ # publishing:
243
+ # method_behavior:
244
+ # - selector: CreateAdDomain
245
+ # long_running:
246
+ # initial_poll_delay:
247
+ # seconds: 60 # 1 minute
248
+ # poll_delay_multiplier: 1.5
249
+ # max_poll_delay:
250
+ # seconds: 360 # 6 minutes
251
+ # total_poll_timeout:
252
+ # seconds: 54000 # 90 minutes
253
+ class MethodSettings
254
+ include ::Google::Protobuf::MessageExts
255
+ extend ::Google::Protobuf::MessageExts::ClassMethods
256
+
257
+ # Describes settings to use when generating API methods that use the
258
+ # long-running operation pattern.
259
+ # All default values below are from those used in the client library
260
+ # generators (e.g.
261
+ # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
262
+ # @!attribute [rw] initial_poll_delay
263
+ # @return [::Google::Protobuf::Duration]
264
+ # Initial delay after which the first poll request will be made.
265
+ # Default value: 5 seconds.
266
+ # @!attribute [rw] poll_delay_multiplier
267
+ # @return [::Float]
268
+ # Multiplier to gradually increase delay between subsequent polls until it
269
+ # reaches max_poll_delay.
270
+ # Default value: 1.5.
271
+ # @!attribute [rw] max_poll_delay
272
+ # @return [::Google::Protobuf::Duration]
273
+ # Maximum time between two subsequent poll requests.
274
+ # Default value: 45 seconds.
275
+ # @!attribute [rw] total_poll_timeout
276
+ # @return [::Google::Protobuf::Duration]
277
+ # Total polling timeout.
278
+ # Default value: 5 minutes.
279
+ class LongRunning
280
+ include ::Google::Protobuf::MessageExts
281
+ extend ::Google::Protobuf::MessageExts::ClassMethods
282
+ end
283
+ end
284
+
285
+ # The organization for which the client libraries are being published.
286
+ # Affects the url where generated docs are published, etc.
287
+ module ClientLibraryOrganization
288
+ # Not useful.
289
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0
290
+
291
+ # Google Cloud Platform Org.
292
+ CLOUD = 1
293
+
294
+ # Ads (Advertising) Org.
295
+ ADS = 2
296
+
297
+ # Photos Org.
298
+ PHOTOS = 3
299
+
300
+ # Street View Org.
301
+ STREET_VIEW = 4
302
+ end
303
+
304
+ # To where should client libraries be published?
305
+ module ClientLibraryDestination
306
+ # Client libraries will neither be generated nor published to package
307
+ # managers.
308
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0
309
+
310
+ # Generate the client library in a repo under github.com/googleapis,
311
+ # but don't publish it to package managers.
312
+ GITHUB = 10
313
+
314
+ # Publish the library to package managers like nuget.org and npmjs.com.
315
+ PACKAGE_MANAGER = 20
316
+ end
317
+ end
318
+ end
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # The launch stage as defined by [Google Cloud Platform
23
+ # Launch Stages](https://cloud.google.com/terms/launch-stages).
24
+ module LaunchStage
25
+ # Do not use this default value.
26
+ LAUNCH_STAGE_UNSPECIFIED = 0
27
+
28
+ # The feature is not yet implemented. Users can not use it.
29
+ UNIMPLEMENTED = 6
30
+
31
+ # Prelaunch features are hidden from users and are only visible internally.
32
+ PRELAUNCH = 7
33
+
34
+ # Early Access features are limited to a closed group of testers. To use
35
+ # these features, you must sign up in advance and sign a Trusted Tester
36
+ # agreement (which includes confidentiality provisions). These features may
37
+ # be unstable, changed in backward-incompatible ways, and are not
38
+ # guaranteed to be released.
39
+ EARLY_ACCESS = 1
40
+
41
+ # Alpha is a limited availability test for releases before they are cleared
42
+ # for widespread use. By Alpha, all significant design issues are resolved
43
+ # and we are in the process of verifying functionality. Alpha customers
44
+ # need to apply for access, agree to applicable terms, and have their
45
+ # projects allowlisted. Alpha releases don't have to be feature complete,
46
+ # no SLAs are provided, and there are no technical support obligations, but
47
+ # they will be far enough along that customers can actually use them in
48
+ # test environments or for limited-use tests -- just like they would in
49
+ # normal production cases.
50
+ ALPHA = 2
51
+
52
+ # Beta is the point at which we are ready to open a release for any
53
+ # customer to use. There are no SLA or technical support obligations in a
54
+ # Beta release. Products will be complete from a feature perspective, but
55
+ # may have some open outstanding issues. Beta releases are suitable for
56
+ # limited production use cases.
57
+ BETA = 3
58
+
59
+ # GA features are open to all developers and are considered stable and
60
+ # fully qualified for production use.
61
+ GA = 4
62
+
63
+ # Deprecated features are scheduled to be shut down and removed. For more
64
+ # information, see the "Deprecation Policy" section of our [Terms of
65
+ # Service](https://cloud.google.com/terms/)
66
+ # and the [Google Cloud Platform Subject to the Deprecation
67
+ # Policy](https://cloud.google.com/terms/deprecation) documentation.
68
+ DEPRECATED = 5
69
+ end
70
+ end
71
+ end
@@ -193,6 +193,9 @@ module Google
193
193
  # @!attribute [rw] database
194
194
  # @return [::Google::Cloud::SecurityCenter::V1::Database]
195
195
  # Database associated with the finding.
196
+ # @!attribute [rw] files
197
+ # @return [::Array<::Google::Cloud::SecurityCenter::V1::File>]
198
+ # File associated with the finding.
196
199
  class Finding
197
200
  include ::Google::Protobuf::MessageExts
198
201
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -204,6 +204,9 @@ module Google
204
204
 
205
205
  # T1548
206
206
  ABUSE_ELEVATION_CONTROL_MECHANISM = 34
207
+
208
+ # T1078.001
209
+ DEFAULT_ACCOUNTS = 35
207
210
  end
208
211
  end
209
212
  end
@@ -29,8 +29,8 @@ module Google
29
29
  # 2. Once a bulk operation is started, there is no way to stop it.
30
30
  # @!attribute [rw] parent
31
31
  # @return [::String]
32
- # Required. The parent, at which bulk action needs to be applied. Its format is
33
- # "organizations/[organization_id]", "folders/[folder_id]",
32
+ # Required. The parent, at which bulk action needs to be applied. Its format
33
+ # is "organizations/[organization_id]", "folders/[folder_id]",
34
34
  # "projects/[project_id]".
35
35
  # @!attribute [rw] filter
36
36
  # @return [::String]
@@ -81,8 +81,8 @@ module Google
81
81
  # greater than 0 characters in length.
82
82
  # @!attribute [rw] finding
83
83
  # @return [::Google::Cloud::SecurityCenter::V1::Finding]
84
- # Required. The Finding being created. The name and security_marks will be ignored as
85
- # they are both output only fields on this resource.
84
+ # Required. The Finding being created. The name and security_marks will be
85
+ # ignored as they are both output only fields on this resource.
86
86
  class CreateFindingRequest
87
87
  include ::Google::Protobuf::MessageExts
88
88
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -111,8 +111,9 @@ module Google
111
111
  # Request message for creating a notification config.
112
112
  # @!attribute [rw] parent
113
113
  # @return [::String]
114
- # Required. Resource name of the new notification config's parent. Its format is
115
- # "organizations/[organization_id]".
114
+ # Required. Resource name of the new notification config's parent. Its format
115
+ # is "organizations/[organization_id]", "folders/[folder_id]", or
116
+ # "projects/[project_id]".
116
117
  # @!attribute [rw] config_id
117
118
  # @return [::String]
118
119
  # Required.
@@ -121,8 +122,9 @@ module Google
121
122
  # characters, underscores or hyphens only.
122
123
  # @!attribute [rw] notification_config
123
124
  # @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
124
- # Required. The notification config being created. The name and the service account
125
- # will be ignored as they are both output only fields on this resource.
125
+ # Required. The notification config being created. The name and the service
126
+ # account will be ignored as they are both output only fields on this
127
+ # resource.
126
128
  class CreateNotificationConfigRequest
127
129
  include ::Google::Protobuf::MessageExts
128
130
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -135,8 +137,8 @@ module Google
135
137
  # "organizations/[organization_id]".
136
138
  # @!attribute [rw] source
137
139
  # @return [::Google::Cloud::SecurityCenter::V1::Source]
138
- # Required. The Source being created, only the display_name and description will be
139
- # used. All other fields will be ignored.
140
+ # Required. The Source being created, only the display_name and description
141
+ # will be used. All other fields will be ignored.
140
142
  class CreateSourceRequest
141
143
  include ::Google::Protobuf::MessageExts
142
144
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -201,8 +203,8 @@ module Google
201
203
  # Request message for getting organization settings.
202
204
  # @!attribute [rw] name
203
205
  # @return [::String]
204
- # Required. Name of the organization to get organization settings for. Its format is
205
- # "organizations/[organization_id]/organizationSettings".
206
+ # Required. Name of the organization to get organization settings for. Its
207
+ # format is "organizations/[organization_id]/organizationSettings".
206
208
  class GetOrganizationSettingsRequest
207
209
  include ::Google::Protobuf::MessageExts
208
210
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -290,9 +292,9 @@ module Google
290
292
  # property not existing: `-resource_properties.my_property : ""`
291
293
  # @!attribute [rw] group_by
292
294
  # @return [::String]
293
- # Required. Expression that defines what assets fields to use for grouping. The string
294
- # value should follow SQL syntax: comma separated list of fields. For
295
- # example:
295
+ # Required. Expression that defines what assets fields to use for grouping.
296
+ # The string value should follow SQL syntax: comma separated list of fields.
297
+ # For example:
296
298
  # "security_center_properties.resource_project,security_center_properties.project".
297
299
  #
298
300
  # The following fields are supported when compare_duration is not set:
@@ -451,9 +453,9 @@ module Google
451
453
  # * resource.type: `=`, `:`
452
454
  # @!attribute [rw] group_by
453
455
  # @return [::String]
454
- # Required. Expression that defines what assets fields to use for grouping (including
455
- # `state_change`). The string value should follow SQL syntax: comma separated
456
- # list of fields. For example: "parent,resource_name".
456
+ # Required. Expression that defines what assets fields to use for grouping
457
+ # (including `state_change`). The string value should follow SQL syntax:
458
+ # comma separated list of fields. For example: "parent,resource_name".
457
459
  #
458
460
  # The following fields are supported:
459
461
  #
@@ -566,8 +568,8 @@ module Google
566
568
  # folder or project.
567
569
  # @!attribute [rw] parent
568
570
  # @return [::String]
569
- # Required. The parent, which owns the collection of mute configs. Its format is
570
- # "organizations/[organization_id]", "folders/[folder_id]",
571
+ # Required. The parent, which owns the collection of mute configs. Its format
572
+ # is "organizations/[organization_id]", "folders/[folder_id]",
571
573
  # "projects/[project_id]".
572
574
  # @!attribute [rw] page_size
573
575
  # @return [::Integer]
@@ -603,8 +605,9 @@ module Google
603
605
  # Request message for listing notification configs.
604
606
  # @!attribute [rw] parent
605
607
  # @return [::String]
606
- # Required. Name of the organization to list notification configs.
607
- # Its format is "organizations/[organization_id]".
608
+ # Required. Name of the organization to list notification configs. Its format
609
+ # is "organizations/[organization_id]", "folders/[folder_id]", or
610
+ # "projects/[project_id]".
608
611
  # @!attribute [rw] page_token
609
612
  # @return [::String]
610
613
  # The value returned by the last `ListNotificationConfigsResponse`; indicates
@@ -635,8 +638,8 @@ module Google
635
638
  # Request message for listing sources.
636
639
  # @!attribute [rw] parent
637
640
  # @return [::String]
638
- # Required. Resource name of the parent of sources to list. Its format should be
639
- # "organizations/[organization_id], folders/[folder_id], or
641
+ # Required. Resource name of the parent of sources to list. Its format should
642
+ # be "organizations/[organization_id], folders/[folder_id], or
640
643
  # projects/[project_id]".
641
644
  # @!attribute [rw] page_token
642
645
  # @return [::String]
@@ -1111,7 +1114,7 @@ module Google
1111
1114
  # Required. The relative resource name of the finding. See:
1112
1115
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
1113
1116
  # Example:
1114
- # "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}".
1117
+ # "organizations/\\{organization_id}/sources/\\{source_id}/findings/\\{finding_id}".
1115
1118
  # @!attribute [rw] state
1116
1119
  # @return [::Google::Cloud::SecurityCenter::V1::Finding::State]
1117
1120
  # Required. The desired State of the finding.
@@ -1129,9 +1132,9 @@ module Google
1129
1132
  # Required. The relative resource name of the finding. See:
1130
1133
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
1131
1134
  # Example:
1132
- # "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}",
1133
- # "folders/\\{folder_id}/sources/\\{source_id}/finding/\\{finding_id}",
1134
- # "projects/\\{project_id}/sources/\\{source_id}/finding/\\{finding_id}".
1135
+ # "organizations/\\{organization_id}/sources/\\{source_id}/findings/\\{finding_id}",
1136
+ # "folders/\\{folder_id}/sources/\\{source_id}/findings/\\{finding_id}",
1137
+ # "projects/\\{project_id}/sources/\\{source_id}/findings/\\{finding_id}".
1135
1138
  # @!attribute [rw] mute
1136
1139
  # @return [::Google::Cloud::SecurityCenter::V1::Finding::Mute]
1137
1140
  # Required. The desired state of the Mute.
@@ -1143,8 +1146,8 @@ module Google
1143
1146
  # Request message for running asset discovery for an organization.
1144
1147
  # @!attribute [rw] parent
1145
1148
  # @return [::String]
1146
- # Required. Name of the organization to run asset discovery for. Its format is
1147
- # "organizations/[organization_id]".
1149
+ # Required. Name of the organization to run asset discovery for. Its format
1150
+ # is "organizations/[organization_id]".
1148
1151
  class RunAssetDiscoveryRequest
1149
1152
  include ::Google::Protobuf::MessageExts
1150
1153
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1167,8 +1170,8 @@ module Google
1167
1170
  # Request message for updating or creating a finding.
1168
1171
  # @!attribute [rw] finding
1169
1172
  # @return [::Google::Cloud::SecurityCenter::V1::Finding]
1170
- # Required. The finding resource to update or create if it does not already exist.
1171
- # parent, security_marks, and update_time will be ignored.
1173
+ # Required. The finding resource to update or create if it does not already
1174
+ # exist. parent, security_marks, and update_time will be ignored.
1172
1175
  #
1173
1176
  # In the case of creation, the finding id portion of the name must be
1174
1177
  # alphanumeric and less than or equal to 32 characters and greater than 0
@@ -1297,12 +1300,12 @@ module Google
1297
1300
  extend ::Google::Protobuf::MessageExts::ClassMethods
1298
1301
  end
1299
1302
 
1300
- # Request message for listing BigQuery exports at a given scope e.g.
1303
+ # Request message for listing BigQuery exports at a given scope e.g.
1301
1304
  # organization, folder or project.
1302
1305
  # @!attribute [rw] parent
1303
1306
  # @return [::String]
1304
- # Required. The parent, which owns the collection of BigQuery exports. Its format is
1305
- # "organizations/[organization_id]", "folders/[folder_id]",
1307
+ # Required. The parent, which owns the collection of BigQuery exports. Its
1308
+ # format is "organizations/[organization_id]", "folders/[folder_id]",
1306
1309
  # "projects/[project_id]".
1307
1310
  # @!attribute [rw] page_size
1308
1311
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security_center-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-16 00:00:00.000000000 Z
11
+ date: 2022-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: '0.12'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.10'
29
+ version: '0.12'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -222,7 +222,9 @@ files:
222
222
  - lib/google/cloud/securitycenter/v1/source_pb.rb
223
223
  - lib/google/cloud/securitycenter/v1/vulnerability_pb.rb
224
224
  - proto_docs/README.md
225
+ - proto_docs/google/api/client.rb
225
226
  - proto_docs/google/api/field_behavior.rb
227
+ - proto_docs/google/api/launch_stage.rb
226
228
  - proto_docs/google/api/resource.rb
227
229
  - proto_docs/google/cloud/securitycenter/v1/access.rb
228
230
  - proto_docs/google/cloud/securitycenter/v1/asset.rb