google-api-client 0.37.2 → 0.37.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +74 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +11 -1
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +1 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +6 -5
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +2 -1
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +6 -5
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +7 -71
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +0 -31
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +111 -9
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +56 -0
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +151 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +2 -2
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +11 -0
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +4 -2
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +23 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -5
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +8 -0
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/clouddebugger_v2.rb +2 -2
- data/generated/google/apis/clouddebugger_v2/service.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +2 -2
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +2 -2
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +30 -0
- data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
- data/generated/google/apis/cloudtrace_v2.rb +4 -4
- data/generated/google/apis/cloudtrace_v2/service.rb +3 -3
- data/generated/google/apis/cloudtrace_v2beta1.rb +4 -4
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +3 -3
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +2 -2
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +224 -66
- data/generated/google/apis/container_v1/representations.rb +70 -0
- data/generated/google/apis/container_v1/service.rb +116 -116
- data/generated/google/apis/container_v1beta1/classes.rb +18 -4
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +18 -2
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +51 -0
- data/generated/google/apis/content_v2_1/representations.rb +15 -0
- data/generated/google/apis/content_v2_1/service.rb +73 -1
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +27 -0
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +15 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +43 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +15 -0
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +11 -3
- data/generated/google/apis/dialogflow_v2/service.rb +555 -16
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +11 -3
- data/generated/google/apis/dialogflow_v2beta1/service.rb +26 -42
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +417 -2
- data/generated/google/apis/dlp_v2/representations.rb +175 -0
- data/generated/google/apis/dlp_v2/service.rb +116 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +1 -145
- data/generated/google/apis/file_v1/representations.rb +0 -34
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +1 -145
- data/generated/google/apis/file_v1beta1/representations.rb +0 -34
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/service.rb +3 -3
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +4 -0
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/logging_v2.rb +6 -7
- data/generated/google/apis/logging_v2/service.rb +5 -6
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +7 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +966 -21
- data/generated/google/apis/ml_v1/representations.rb +477 -0
- data/generated/google/apis/ml_v1/service.rb +491 -0
- data/generated/google/apis/{toolresults_v1.rb → networkmanagement_v1beta1.rb} +13 -9
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +1856 -0
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +661 -0
- data/generated/google/apis/networkmanagement_v1beta1/service.rb +664 -0
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +214 -0
- data/generated/google/apis/recommender_v1beta1/representations.rb +96 -0
- data/generated/google/apis/recommender_v1beta1/service.rb +123 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +84 -0
- data/generated/google/apis/run_v1/representations.rb +44 -0
- data/generated/google/apis/run_v1/service.rb +138 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +154 -6
- data/generated/google/apis/securitycenter_v1/representations.rb +61 -0
- data/generated/google/apis/securitycenter_v1/service.rb +194 -6
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +171 -0
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +171 -0
- data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +183 -6
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -6
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +8 -7
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +58 -1
- data/generated/google/apis/servicemanagement_v1/representations.rb +17 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +8 -7
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +280 -7
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +117 -0
- data/generated/google/apis/serviceusage_v1beta1/service.rb +515 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +7 -1
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +6 -3
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +13 -13
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -7
- data/generated/google/apis/toolresults_v1/classes.rb +0 -696
- data/generated/google/apis/toolresults_v1/representations.rb +0 -438
- data/generated/google/apis/toolresults_v1/service.rb +0 -59
|
@@ -70,6 +70,12 @@ module Google
|
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
+
class Finding
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
|
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
+
end
|
|
78
|
+
|
|
73
79
|
class GetIamPolicyRequest
|
|
74
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
81
|
|
|
@@ -82,6 +88,12 @@ module Google
|
|
|
82
88
|
include Google::Apis::Core::JsonObjectSupport
|
|
83
89
|
end
|
|
84
90
|
|
|
91
|
+
class GoogleCloudSecuritycenterV1NotificationMessage
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
+
|
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
95
|
+
end
|
|
96
|
+
|
|
85
97
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
|
86
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
99
|
|
|
@@ -244,6 +256,12 @@ module Google
|
|
|
244
256
|
include Google::Apis::Core::JsonObjectSupport
|
|
245
257
|
end
|
|
246
258
|
|
|
259
|
+
class SecurityMarks
|
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
261
|
+
|
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
263
|
+
end
|
|
264
|
+
|
|
247
265
|
class SetFindingStateRequest
|
|
248
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
249
267
|
|
|
@@ -351,6 +369,23 @@ module Google
|
|
|
351
369
|
end
|
|
352
370
|
end
|
|
353
371
|
|
|
372
|
+
class Finding
|
|
373
|
+
# @private
|
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
375
|
+
property :category, as: 'category'
|
|
376
|
+
property :create_time, as: 'createTime'
|
|
377
|
+
property :event_time, as: 'eventTime'
|
|
378
|
+
property :external_uri, as: 'externalUri'
|
|
379
|
+
property :name, as: 'name'
|
|
380
|
+
property :parent, as: 'parent'
|
|
381
|
+
property :resource_name, as: 'resourceName'
|
|
382
|
+
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta1::SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta1::SecurityMarks::Representation
|
|
383
|
+
|
|
384
|
+
hash :source_properties, as: 'sourceProperties'
|
|
385
|
+
property :state, as: 'state'
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
354
389
|
class GetIamPolicyRequest
|
|
355
390
|
# @private
|
|
356
391
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -366,6 +401,15 @@ module Google
|
|
|
366
401
|
end
|
|
367
402
|
end
|
|
368
403
|
|
|
404
|
+
class GoogleCloudSecuritycenterV1NotificationMessage
|
|
405
|
+
# @private
|
|
406
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
407
|
+
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta1::Finding, decorator: Google::Apis::SecuritycenterV1beta1::Finding::Representation
|
|
408
|
+
|
|
409
|
+
property :notification_config_name, as: 'notificationConfigName'
|
|
410
|
+
end
|
|
411
|
+
end
|
|
412
|
+
|
|
369
413
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
|
370
414
|
# @private
|
|
371
415
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -648,6 +692,14 @@ module Google
|
|
|
648
692
|
end
|
|
649
693
|
end
|
|
650
694
|
|
|
695
|
+
class SecurityMarks
|
|
696
|
+
# @private
|
|
697
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
698
|
+
hash :marks, as: 'marks'
|
|
699
|
+
property :name, as: 'name'
|
|
700
|
+
end
|
|
701
|
+
end
|
|
702
|
+
|
|
651
703
|
class SetFindingStateRequest
|
|
652
704
|
# @private
|
|
653
705
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
|
27
27
|
module SecuritycenterV1p1alpha1
|
|
28
28
|
VERSION = 'V1p1alpha1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20200306'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -41,6 +41,138 @@ module Google
|
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
# Cloud Security Command Center (Cloud SCC) finding.
|
|
45
|
+
# A finding is a record of assessment data like security, risk, health, or
|
|
46
|
+
# privacy, that is ingested into Cloud SCC for presentation, notification,
|
|
47
|
+
# analysis, policy testing, and enforcement. For example, a
|
|
48
|
+
# cross-site scripting (XSS) vulnerability in an App Engine application is a
|
|
49
|
+
# finding.
|
|
50
|
+
class Finding
|
|
51
|
+
include Google::Apis::Core::Hashable
|
|
52
|
+
|
|
53
|
+
# The additional taxonomy group within findings from a given source.
|
|
54
|
+
# This field is immutable after creation time.
|
|
55
|
+
# Example: "XSS_FLASH_INJECTION"
|
|
56
|
+
# Corresponds to the JSON property `category`
|
|
57
|
+
# @return [String]
|
|
58
|
+
attr_accessor :category
|
|
59
|
+
|
|
60
|
+
# The time at which the finding was created in Cloud SCC.
|
|
61
|
+
# Corresponds to the JSON property `createTime`
|
|
62
|
+
# @return [String]
|
|
63
|
+
attr_accessor :create_time
|
|
64
|
+
|
|
65
|
+
# The time at which the event took place. For example, if the finding
|
|
66
|
+
# represents an open firewall it would capture the time the detector believes
|
|
67
|
+
# the firewall became open. The accuracy is determined by the detector.
|
|
68
|
+
# Corresponds to the JSON property `eventTime`
|
|
69
|
+
# @return [String]
|
|
70
|
+
attr_accessor :event_time
|
|
71
|
+
|
|
72
|
+
# The URI that, if available, points to a web page outside of Cloud SCC
|
|
73
|
+
# where additional information about the finding can be found. This field is
|
|
74
|
+
# guaranteed to be either empty or a well formed URL.
|
|
75
|
+
# Corresponds to the JSON property `externalUri`
|
|
76
|
+
# @return [String]
|
|
77
|
+
attr_accessor :external_uri
|
|
78
|
+
|
|
79
|
+
# The relative resource name of this finding. See:
|
|
80
|
+
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
81
|
+
# Example:
|
|
82
|
+
# "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`"
|
|
83
|
+
# Corresponds to the JSON property `name`
|
|
84
|
+
# @return [String]
|
|
85
|
+
attr_accessor :name
|
|
86
|
+
|
|
87
|
+
# The relative resource name of the source the finding belongs to. See:
|
|
88
|
+
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
89
|
+
# This field is immutable after creation time.
|
|
90
|
+
# For example:
|
|
91
|
+
# "organizations/`organization_id`/sources/`source_id`"
|
|
92
|
+
# Corresponds to the JSON property `parent`
|
|
93
|
+
# @return [String]
|
|
94
|
+
attr_accessor :parent
|
|
95
|
+
|
|
96
|
+
# For findings on Google Cloud Platform (GCP) resources, the full resource
|
|
97
|
+
# name of the GCP resource this finding is for. See:
|
|
98
|
+
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
99
|
+
# When the finding is for a non-GCP resource, the resourceName can be a
|
|
100
|
+
# customer or partner defined string.
|
|
101
|
+
# This field is immutable after creation time.
|
|
102
|
+
# Corresponds to the JSON property `resourceName`
|
|
103
|
+
# @return [String]
|
|
104
|
+
attr_accessor :resource_name
|
|
105
|
+
|
|
106
|
+
# User specified security marks that are attached to the parent Cloud Security
|
|
107
|
+
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
|
|
108
|
+
# SCC organization -- they can be modified and viewed by all users who have
|
|
109
|
+
# proper permissions on the organization.
|
|
110
|
+
# Corresponds to the JSON property `securityMarks`
|
|
111
|
+
# @return [Google::Apis::SecuritycenterV1p1alpha1::SecurityMarks]
|
|
112
|
+
attr_accessor :security_marks
|
|
113
|
+
|
|
114
|
+
# Source specific properties. These properties are managed by the source
|
|
115
|
+
# that writes the finding. The key names in the source_properties map must be
|
|
116
|
+
# between 1 and 255 characters, and must start with a letter and contain
|
|
117
|
+
# alphanumeric characters or underscores only.
|
|
118
|
+
# Corresponds to the JSON property `sourceProperties`
|
|
119
|
+
# @return [Hash<String,Object>]
|
|
120
|
+
attr_accessor :source_properties
|
|
121
|
+
|
|
122
|
+
# The state of the finding.
|
|
123
|
+
# Corresponds to the JSON property `state`
|
|
124
|
+
# @return [String]
|
|
125
|
+
attr_accessor :state
|
|
126
|
+
|
|
127
|
+
def initialize(**args)
|
|
128
|
+
update!(**args)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Update properties of this object
|
|
132
|
+
def update!(**args)
|
|
133
|
+
@category = args[:category] if args.key?(:category)
|
|
134
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
135
|
+
@event_time = args[:event_time] if args.key?(:event_time)
|
|
136
|
+
@external_uri = args[:external_uri] if args.key?(:external_uri)
|
|
137
|
+
@name = args[:name] if args.key?(:name)
|
|
138
|
+
@parent = args[:parent] if args.key?(:parent)
|
|
139
|
+
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
|
140
|
+
@security_marks = args[:security_marks] if args.key?(:security_marks)
|
|
141
|
+
@source_properties = args[:source_properties] if args.key?(:source_properties)
|
|
142
|
+
@state = args[:state] if args.key?(:state)
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Cloud SCC's Notification
|
|
147
|
+
class GoogleCloudSecuritycenterV1NotificationMessage
|
|
148
|
+
include Google::Apis::Core::Hashable
|
|
149
|
+
|
|
150
|
+
# Cloud Security Command Center (Cloud SCC) finding.
|
|
151
|
+
# A finding is a record of assessment data like security, risk, health, or
|
|
152
|
+
# privacy, that is ingested into Cloud SCC for presentation, notification,
|
|
153
|
+
# analysis, policy testing, and enforcement. For example, a
|
|
154
|
+
# cross-site scripting (XSS) vulnerability in an App Engine application is a
|
|
155
|
+
# finding.
|
|
156
|
+
# Corresponds to the JSON property `finding`
|
|
157
|
+
# @return [Google::Apis::SecuritycenterV1p1alpha1::Finding]
|
|
158
|
+
attr_accessor :finding
|
|
159
|
+
|
|
160
|
+
# Name of the notification config that generated current notification.
|
|
161
|
+
# Corresponds to the JSON property `notificationConfigName`
|
|
162
|
+
# @return [String]
|
|
163
|
+
attr_accessor :notification_config_name
|
|
164
|
+
|
|
165
|
+
def initialize(**args)
|
|
166
|
+
update!(**args)
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Update properties of this object
|
|
170
|
+
def update!(**args)
|
|
171
|
+
@finding = args[:finding] if args.key?(:finding)
|
|
172
|
+
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
44
176
|
# Response of asset discovery run
|
|
45
177
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
|
46
178
|
include Google::Apis::Core::Hashable
|
|
@@ -573,6 +705,45 @@ module Google
|
|
|
573
705
|
end
|
|
574
706
|
end
|
|
575
707
|
|
|
708
|
+
# User specified security marks that are attached to the parent Cloud Security
|
|
709
|
+
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
|
|
710
|
+
# SCC organization -- they can be modified and viewed by all users who have
|
|
711
|
+
# proper permissions on the organization.
|
|
712
|
+
class SecurityMarks
|
|
713
|
+
include Google::Apis::Core::Hashable
|
|
714
|
+
|
|
715
|
+
# Mutable user specified security marks belonging to the parent resource.
|
|
716
|
+
# Constraints are as follows:
|
|
717
|
+
# * Keys and values are treated as case insensitive
|
|
718
|
+
# * Keys must be between 1 - 256 characters (inclusive)
|
|
719
|
+
# * Keys must be letters, numbers, underscores, or dashes
|
|
720
|
+
# * Values have leading and trailing whitespace trimmed, remaining
|
|
721
|
+
# characters must be between 1 - 4096 characters (inclusive)
|
|
722
|
+
# Corresponds to the JSON property `marks`
|
|
723
|
+
# @return [Hash<String,String>]
|
|
724
|
+
attr_accessor :marks
|
|
725
|
+
|
|
726
|
+
# The relative resource name of the SecurityMarks. See:
|
|
727
|
+
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
728
|
+
# Examples:
|
|
729
|
+
# "organizations/`organization_id`/assets/`asset_id`/securityMarks"
|
|
730
|
+
# "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/
|
|
731
|
+
# securityMarks".
|
|
732
|
+
# Corresponds to the JSON property `name`
|
|
733
|
+
# @return [String]
|
|
734
|
+
attr_accessor :name
|
|
735
|
+
|
|
736
|
+
def initialize(**args)
|
|
737
|
+
update!(**args)
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
# Update properties of this object
|
|
741
|
+
def update!(**args)
|
|
742
|
+
@marks = args[:marks] if args.key?(:marks)
|
|
743
|
+
@name = args[:name] if args.key?(:name)
|
|
744
|
+
end
|
|
745
|
+
end
|
|
746
|
+
|
|
576
747
|
# The `Status` type defines a logical error model that is suitable for
|
|
577
748
|
# different programming environments, including REST APIs and RPC APIs. It is
|
|
578
749
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
|
@@ -28,6 +28,18 @@ module Google
|
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
class Finding
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class GoogleCloudSecuritycenterV1NotificationMessage
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
31
43
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
|
32
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
45
|
|
|
@@ -100,6 +112,12 @@ module Google
|
|
|
100
112
|
include Google::Apis::Core::JsonObjectSupport
|
|
101
113
|
end
|
|
102
114
|
|
|
115
|
+
class SecurityMarks
|
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
|
+
|
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
119
|
+
end
|
|
120
|
+
|
|
103
121
|
class Status
|
|
104
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
123
|
|
|
@@ -112,6 +130,32 @@ module Google
|
|
|
112
130
|
end
|
|
113
131
|
end
|
|
114
132
|
|
|
133
|
+
class Finding
|
|
134
|
+
# @private
|
|
135
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
136
|
+
property :category, as: 'category'
|
|
137
|
+
property :create_time, as: 'createTime'
|
|
138
|
+
property :event_time, as: 'eventTime'
|
|
139
|
+
property :external_uri, as: 'externalUri'
|
|
140
|
+
property :name, as: 'name'
|
|
141
|
+
property :parent, as: 'parent'
|
|
142
|
+
property :resource_name, as: 'resourceName'
|
|
143
|
+
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1alpha1::SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1alpha1::SecurityMarks::Representation
|
|
144
|
+
|
|
145
|
+
hash :source_properties, as: 'sourceProperties'
|
|
146
|
+
property :state, as: 'state'
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
class GoogleCloudSecuritycenterV1NotificationMessage
|
|
151
|
+
# @private
|
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
153
|
+
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1alpha1::Finding, decorator: Google::Apis::SecuritycenterV1p1alpha1::Finding::Representation
|
|
154
|
+
|
|
155
|
+
property :notification_config_name, as: 'notificationConfigName'
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|
|
115
159
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
|
116
160
|
# @private
|
|
117
161
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -239,6 +283,14 @@ module Google
|
|
|
239
283
|
end
|
|
240
284
|
end
|
|
241
285
|
|
|
286
|
+
class SecurityMarks
|
|
287
|
+
# @private
|
|
288
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
289
|
+
hash :marks, as: 'marks'
|
|
290
|
+
property :name, as: 'name'
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
|
|
242
294
|
class Status
|
|
243
295
|
# @private
|
|
244
296
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
|
27
27
|
module SecuritycenterV1p1beta1
|
|
28
28
|
VERSION = 'V1p1beta1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20200306'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -328,6 +328,108 @@ module Google
|
|
|
328
328
|
end
|
|
329
329
|
end
|
|
330
330
|
|
|
331
|
+
# Cloud Security Command Center (Cloud SCC) finding.
|
|
332
|
+
# A finding is a record of assessment data like security, risk, health, or
|
|
333
|
+
# privacy, that is ingested into Cloud SCC for presentation, notification,
|
|
334
|
+
# analysis, policy testing, and enforcement. For example, a
|
|
335
|
+
# cross-site scripting (XSS) vulnerability in an App Engine application is a
|
|
336
|
+
# finding.
|
|
337
|
+
class Finding
|
|
338
|
+
include Google::Apis::Core::Hashable
|
|
339
|
+
|
|
340
|
+
# The additional taxonomy group within findings from a given source.
|
|
341
|
+
# This field is immutable after creation time.
|
|
342
|
+
# Example: "XSS_FLASH_INJECTION"
|
|
343
|
+
# Corresponds to the JSON property `category`
|
|
344
|
+
# @return [String]
|
|
345
|
+
attr_accessor :category
|
|
346
|
+
|
|
347
|
+
# The time at which the finding was created in Cloud SCC.
|
|
348
|
+
# Corresponds to the JSON property `createTime`
|
|
349
|
+
# @return [String]
|
|
350
|
+
attr_accessor :create_time
|
|
351
|
+
|
|
352
|
+
# The time at which the event took place. For example, if the finding
|
|
353
|
+
# represents an open firewall it would capture the time the detector believes
|
|
354
|
+
# the firewall became open. The accuracy is determined by the detector.
|
|
355
|
+
# Corresponds to the JSON property `eventTime`
|
|
356
|
+
# @return [String]
|
|
357
|
+
attr_accessor :event_time
|
|
358
|
+
|
|
359
|
+
# The URI that, if available, points to a web page outside of Cloud SCC
|
|
360
|
+
# where additional information about the finding can be found. This field is
|
|
361
|
+
# guaranteed to be either empty or a well formed URL.
|
|
362
|
+
# Corresponds to the JSON property `externalUri`
|
|
363
|
+
# @return [String]
|
|
364
|
+
attr_accessor :external_uri
|
|
365
|
+
|
|
366
|
+
# The relative resource name of this finding. See:
|
|
367
|
+
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
368
|
+
# Example:
|
|
369
|
+
# "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`"
|
|
370
|
+
# Corresponds to the JSON property `name`
|
|
371
|
+
# @return [String]
|
|
372
|
+
attr_accessor :name
|
|
373
|
+
|
|
374
|
+
# The relative resource name of the source the finding belongs to. See:
|
|
375
|
+
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
376
|
+
# This field is immutable after creation time.
|
|
377
|
+
# For example:
|
|
378
|
+
# "organizations/`organization_id`/sources/`source_id`"
|
|
379
|
+
# Corresponds to the JSON property `parent`
|
|
380
|
+
# @return [String]
|
|
381
|
+
attr_accessor :parent
|
|
382
|
+
|
|
383
|
+
# For findings on Google Cloud Platform (GCP) resources, the full resource
|
|
384
|
+
# name of the GCP resource this finding is for. See:
|
|
385
|
+
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
|
386
|
+
# When the finding is for a non-GCP resource, the resourceName can be a
|
|
387
|
+
# customer or partner defined string.
|
|
388
|
+
# This field is immutable after creation time.
|
|
389
|
+
# Corresponds to the JSON property `resourceName`
|
|
390
|
+
# @return [String]
|
|
391
|
+
attr_accessor :resource_name
|
|
392
|
+
|
|
393
|
+
# User specified security marks that are attached to the parent Cloud Security
|
|
394
|
+
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
|
|
395
|
+
# SCC organization -- they can be modified and viewed by all users who have
|
|
396
|
+
# proper permissions on the organization.
|
|
397
|
+
# Corresponds to the JSON property `securityMarks`
|
|
398
|
+
# @return [Google::Apis::SecuritycenterV1p1beta1::SecurityMarks]
|
|
399
|
+
attr_accessor :security_marks
|
|
400
|
+
|
|
401
|
+
# Source specific properties. These properties are managed by the source
|
|
402
|
+
# that writes the finding. The key names in the source_properties map must be
|
|
403
|
+
# between 1 and 255 characters, and must start with a letter and contain
|
|
404
|
+
# alphanumeric characters or underscores only.
|
|
405
|
+
# Corresponds to the JSON property `sourceProperties`
|
|
406
|
+
# @return [Hash<String,Object>]
|
|
407
|
+
attr_accessor :source_properties
|
|
408
|
+
|
|
409
|
+
# The state of the finding.
|
|
410
|
+
# Corresponds to the JSON property `state`
|
|
411
|
+
# @return [String]
|
|
412
|
+
attr_accessor :state
|
|
413
|
+
|
|
414
|
+
def initialize(**args)
|
|
415
|
+
update!(**args)
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
# Update properties of this object
|
|
419
|
+
def update!(**args)
|
|
420
|
+
@category = args[:category] if args.key?(:category)
|
|
421
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
422
|
+
@event_time = args[:event_time] if args.key?(:event_time)
|
|
423
|
+
@external_uri = args[:external_uri] if args.key?(:external_uri)
|
|
424
|
+
@name = args[:name] if args.key?(:name)
|
|
425
|
+
@parent = args[:parent] if args.key?(:parent)
|
|
426
|
+
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
|
427
|
+
@security_marks = args[:security_marks] if args.key?(:security_marks)
|
|
428
|
+
@source_properties = args[:source_properties] if args.key?(:source_properties)
|
|
429
|
+
@state = args[:state] if args.key?(:state)
|
|
430
|
+
end
|
|
431
|
+
end
|
|
432
|
+
|
|
331
433
|
# Request message for `GetIamPolicy` method.
|
|
332
434
|
class GetIamPolicyRequest
|
|
333
435
|
include Google::Apis::Core::Hashable
|
|
@@ -371,6 +473,36 @@ module Google
|
|
|
371
473
|
end
|
|
372
474
|
end
|
|
373
475
|
|
|
476
|
+
# Cloud SCC's Notification
|
|
477
|
+
class GoogleCloudSecuritycenterV1NotificationMessage
|
|
478
|
+
include Google::Apis::Core::Hashable
|
|
479
|
+
|
|
480
|
+
# Cloud Security Command Center (Cloud SCC) finding.
|
|
481
|
+
# A finding is a record of assessment data like security, risk, health, or
|
|
482
|
+
# privacy, that is ingested into Cloud SCC for presentation, notification,
|
|
483
|
+
# analysis, policy testing, and enforcement. For example, a
|
|
484
|
+
# cross-site scripting (XSS) vulnerability in an App Engine application is a
|
|
485
|
+
# finding.
|
|
486
|
+
# Corresponds to the JSON property `finding`
|
|
487
|
+
# @return [Google::Apis::SecuritycenterV1p1beta1::Finding]
|
|
488
|
+
attr_accessor :finding
|
|
489
|
+
|
|
490
|
+
# Name of the notification config that generated current notification.
|
|
491
|
+
# Corresponds to the JSON property `notificationConfigName`
|
|
492
|
+
# @return [String]
|
|
493
|
+
attr_accessor :notification_config_name
|
|
494
|
+
|
|
495
|
+
def initialize(**args)
|
|
496
|
+
update!(**args)
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
# Update properties of this object
|
|
500
|
+
def update!(**args)
|
|
501
|
+
@finding = args[:finding] if args.key?(:finding)
|
|
502
|
+
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
|
|
503
|
+
end
|
|
504
|
+
end
|
|
505
|
+
|
|
374
506
|
# Response of asset discovery run
|
|
375
507
|
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
|
|
376
508
|
include Google::Apis::Core::Hashable
|
|
@@ -1001,12 +1133,18 @@ module Google
|
|
|
1001
1133
|
# two times don't affect the result. For example, the results aren't affected
|
|
1002
1134
|
# if the finding is made inactive and then active again.
|
|
1003
1135
|
# Possible "state_change" values when compare_duration is specified:
|
|
1004
|
-
# * "CHANGED": indicates that the finding was present
|
|
1005
|
-
# compare_duration, but changed its
|
|
1006
|
-
#
|
|
1007
|
-
#
|
|
1008
|
-
#
|
|
1009
|
-
#
|
|
1136
|
+
# * "CHANGED": indicates that the finding was present and matched the given
|
|
1137
|
+
# filter at the start of compare_duration, but changed its
|
|
1138
|
+
# state at read_time.
|
|
1139
|
+
# * "UNCHANGED": indicates that the finding was present and matched the given
|
|
1140
|
+
# filter at the start of compare_duration and did not change
|
|
1141
|
+
# state at read_time.
|
|
1142
|
+
# * "ADDED": indicates that the finding did not match the given filter or
|
|
1143
|
+
# was not present at the start of compare_duration, but was
|
|
1144
|
+
# present at read_time.
|
|
1145
|
+
# * "REMOVED": indicates that the finding was present and matched the
|
|
1146
|
+
# filter at the start of compare_duration, but did not match
|
|
1147
|
+
# the filter at read_time.
|
|
1010
1148
|
# If compare_duration is not specified, then the only possible state_change
|
|
1011
1149
|
# is "UNUSED", which will be the state_change set for all findings present
|
|
1012
1150
|
# at read_time.
|
|
@@ -1724,6 +1862,45 @@ module Google
|
|
|
1724
1862
|
end
|
|
1725
1863
|
end
|
|
1726
1864
|
|
|
1865
|
+
# User specified security marks that are attached to the parent Cloud Security
|
|
1866
|
+
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
|
|
1867
|
+
# SCC organization -- they can be modified and viewed by all users who have
|
|
1868
|
+
# proper permissions on the organization.
|
|
1869
|
+
class SecurityMarks
|
|
1870
|
+
include Google::Apis::Core::Hashable
|
|
1871
|
+
|
|
1872
|
+
# Mutable user specified security marks belonging to the parent resource.
|
|
1873
|
+
# Constraints are as follows:
|
|
1874
|
+
# * Keys and values are treated as case insensitive
|
|
1875
|
+
# * Keys must be between 1 - 256 characters (inclusive)
|
|
1876
|
+
# * Keys must be letters, numbers, underscores, or dashes
|
|
1877
|
+
# * Values have leading and trailing whitespace trimmed, remaining
|
|
1878
|
+
# characters must be between 1 - 4096 characters (inclusive)
|
|
1879
|
+
# Corresponds to the JSON property `marks`
|
|
1880
|
+
# @return [Hash<String,String>]
|
|
1881
|
+
attr_accessor :marks
|
|
1882
|
+
|
|
1883
|
+
# The relative resource name of the SecurityMarks. See:
|
|
1884
|
+
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
|
1885
|
+
# Examples:
|
|
1886
|
+
# "organizations/`organization_id`/assets/`asset_id`/securityMarks"
|
|
1887
|
+
# "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`/
|
|
1888
|
+
# securityMarks".
|
|
1889
|
+
# Corresponds to the JSON property `name`
|
|
1890
|
+
# @return [String]
|
|
1891
|
+
attr_accessor :name
|
|
1892
|
+
|
|
1893
|
+
def initialize(**args)
|
|
1894
|
+
update!(**args)
|
|
1895
|
+
end
|
|
1896
|
+
|
|
1897
|
+
# Update properties of this object
|
|
1898
|
+
def update!(**args)
|
|
1899
|
+
@marks = args[:marks] if args.key?(:marks)
|
|
1900
|
+
@name = args[:name] if args.key?(:name)
|
|
1901
|
+
end
|
|
1902
|
+
end
|
|
1903
|
+
|
|
1727
1904
|
# Request message for updating a finding's state.
|
|
1728
1905
|
class SetFindingStateRequest
|
|
1729
1906
|
include Google::Apis::Core::Hashable
|