google-cloud-security_center-v1 0.1.1 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb944bdb3110ec9500bccd8d31fe2bde397acbfb6185418ece3637a97abb39a7
4
- data.tar.gz: a2762fac978d3d7b3d11a2162c546fcaf572389ed93b3541b449f09ba449aeed
3
+ metadata.gz: 5752e83e801766b7bf1bbbe273bad9ef06fb9dfd27671c092399007210ed214e
4
+ data.tar.gz: e7c9807181ca238b73377d0b97d90a3dd1495fedbf1ff0b03a6ed66e78dc9b3c
5
5
  SHA512:
6
- metadata.gz: bc809cb3d7ddfcd44a1efd0720b52594830a0aa922d0b775834fb325b5ca282b107d88cf1bdfbb9c1ee89a40045f296765f6c87bd31477b762b94332e8e59daa
7
- data.tar.gz: 3b811d4a68a6ae6b0a0ecee7d7464c53a6b9f55f177e0661b6e4c36960b648c12adcdda2adb62156e093d5141e919ed4df0f753be1e174ce09a6afddc4b017ec
6
+ metadata.gz: 20f145e0f3119dbf7df8648f7dbe1a87f87f4c0836deff487eb256af77053767007d54012652c2f65e8e4c9cc571a881c1f970e1cf092d8b132ba1b29b877830
7
+ data.tar.gz: 41d93ec208849e16509e8c4ae81cf85af31661a7fd906a2ed22840357404f2289d874593706f34a8526ae1fea5915530265ffb253609e98130516b5a2564064f
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/securitycenter.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -33,6 +34,9 @@ response = client.create_source request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-security_center-v1/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/security-command-center)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -242,7 +242,8 @@ module Google
242
242
  if credentials.is_a?(String) || credentials.is_a?(Hash)
243
243
  credentials = Credentials.new credentials, scope: @config.scope
244
244
  end
245
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
245
+ @quota_project_id = @config.quota_project
246
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
246
247
 
247
248
  @operations_client = Operations.new do |config|
248
249
  config.credentials = credentials
@@ -882,15 +883,15 @@ module Google
882
883
  #
883
884
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
884
885
  # Examples:
885
- # "update_time = \"2019-06-10T16:07:18-07:00\""
886
- # "update_time = 1560208038000"
886
+ # `update_time = "2019-06-10T16:07:18-07:00"`
887
+ # `update_time = 1560208038000`
887
888
  #
888
889
  # * create_time: `=`, `>`, `<`, `>=`, `<=`
889
890
  #
890
891
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
891
892
  # Examples:
892
- # "create_time = \"2019-06-10T16:07:18-07:00\""
893
- # "create_time = 1560208038000"
893
+ # `create_time = "2019-06-10T16:07:18-07:00"`
894
+ # `create_time = 1560208038000`
894
895
  #
895
896
  # * iam_policy.policy_blob: `=`, `:`
896
897
  # * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
@@ -905,6 +906,12 @@ module Google
905
906
  # * security_center_properties.resource_owners: `=`, `:`
906
907
  #
907
908
  # For example, `resource_properties.size = 100` is a valid filter string.
909
+ #
910
+ # Use a partial match on the empty string to filter based on a property
911
+ # existing:`resource_properties.my_property : ""`
912
+ #
913
+ # Use a negated partial match on the empty string to filter based on a
914
+ # property not existing: `-resource_properties.my_property : ""`
908
915
  # @param group_by [::String]
909
916
  # Required. Expression that defines what assets fields to use for grouping.
910
917
  # The string value should follow SQL syntax: comma separated list of fields.
@@ -1075,13 +1082,19 @@ module Google
1075
1082
  #
1076
1083
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
1077
1084
  # Examples:
1078
- # "event_time = \"2019-06-10T16:07:18-07:00\""
1079
- # "event_time = 1560208038000"
1085
+ # `event_time = "2019-06-10T16:07:18-07:00"`
1086
+ # `event_time = 1560208038000`
1080
1087
  #
1081
1088
  # * security_marks.marks: `=`, `:`
1082
1089
  # * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
1083
1090
  #
1084
1091
  # For example, `source_properties.size = 100` is a valid filter string.
1092
+ #
1093
+ # Use a partial match on the empty string to filter based on a property
1094
+ # existing: `source_properties.my_property : ""`
1095
+ #
1096
+ # Use a negated partial match on the empty string to filter based on a
1097
+ # property not existing: `-source_properties.my_property : ""`
1085
1098
  # @param group_by [::String]
1086
1099
  # Required. Expression that defines what assets fields to use for grouping
1087
1100
  # (including `state_change`). The string value should follow SQL syntax:
@@ -1244,15 +1257,15 @@ module Google
1244
1257
  #
1245
1258
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
1246
1259
  # Examples:
1247
- # "update_time = \"2019-06-10T16:07:18-07:00\""
1248
- # "update_time = 1560208038000"
1260
+ # `update_time = "2019-06-10T16:07:18-07:00"`
1261
+ # `update_time = 1560208038000`
1249
1262
  #
1250
1263
  # * create_time: `=`, `>`, `<`, `>=`, `<=`
1251
1264
  #
1252
1265
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
1253
1266
  # Examples:
1254
- # "create_time = \"2019-06-10T16:07:18-07:00\""
1255
- # "create_time = 1560208038000"
1267
+ # `create_time = "2019-06-10T16:07:18-07:00"`
1268
+ # `create_time = 1560208038000`
1256
1269
  #
1257
1270
  # * iam_policy.policy_blob: `=`, `:`
1258
1271
  # * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
@@ -1267,6 +1280,12 @@ module Google
1267
1280
  # * security_center_properties.resource_owners: `=`, `:`
1268
1281
  #
1269
1282
  # For example, `resource_properties.size = 100` is a valid filter string.
1283
+ #
1284
+ # Use a partial match on the empty string to filter based on a property
1285
+ # existing: `resource_properties.my_property : ""`
1286
+ #
1287
+ # Use a negated partial match on the empty string to filter based on a
1288
+ # property not existing: `-resource_properties.my_property : ""`
1270
1289
  # @param order_by [::String]
1271
1290
  # Expression that defines what fields and order to use for sorting. The
1272
1291
  # string value should follow SQL syntax: comma separated list of fields. For
@@ -1439,13 +1458,19 @@ module Google
1439
1458
  #
1440
1459
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
1441
1460
  # Examples:
1442
- # "event_time = \"2019-06-10T16:07:18-07:00\""
1443
- # "event_time = 1560208038000"
1461
+ # `event_time = "2019-06-10T16:07:18-07:00"`
1462
+ # `event_time = 1560208038000`
1444
1463
  #
1445
1464
  # security_marks.marks: `=`, `:`
1446
1465
  # source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
1447
1466
  #
1448
1467
  # For example, `source_properties.size = 100` is a valid filter string.
1468
+ #
1469
+ # Use a partial match on the empty string to filter based on a property
1470
+ # existing: `source_properties.my_property : ""`
1471
+ #
1472
+ # Use a negated partial match on the empty string to filter based on a
1473
+ # property not existing: `-source_properties.my_property : ""`
1449
1474
  # @param order_by [::String]
1450
1475
  # Expression that defines what fields and order to use for sorting. The
1451
1476
  # string value should follow SQL syntax: comma separated list of fields. For
@@ -2079,7 +2104,8 @@ module Google
2079
2104
  end
2080
2105
 
2081
2106
  ##
2082
- # Updates a notification config.
2107
+ # Updates a notification config. The following update
2108
+ # fields are allowed: description, pubsub_topic, streaming_config.filter
2083
2109
  #
2084
2110
  # @overload update_notification_config(request, options = nil)
2085
2111
  # Pass arguments to `update_notification_config` via a request object, either of type
@@ -2440,24 +2466,28 @@ module Google
2440
2466
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2441
2467
  # trigger a retry.
2442
2468
  # @return [::Hash]
2469
+ # @!attribute [rw] quota_project
2470
+ # A separate project against which to charge quota.
2471
+ # @return [::String]
2443
2472
  #
2444
2473
  class Configuration
2445
2474
  extend ::Gapic::Config
2446
2475
 
2447
- config_attr :endpoint, "securitycenter.googleapis.com", String
2448
- config_attr :credentials, nil do |value|
2476
+ config_attr :endpoint, "securitycenter.googleapis.com", ::String
2477
+ config_attr :credentials, nil do |value|
2449
2478
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2450
2479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2451
2480
  allowed.any? { |klass| klass === value }
2452
2481
  end
2453
- config_attr :scope, nil, ::String, ::Array, nil
2454
- config_attr :lib_name, nil, ::String, nil
2455
- config_attr :lib_version, nil, ::String, nil
2456
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2457
- config_attr :interceptors, nil, ::Array, nil
2458
- config_attr :timeout, nil, ::Numeric, nil
2459
- config_attr :metadata, nil, ::Hash, nil
2460
- config_attr :retry_policy, nil, ::Hash, Proc, nil
2482
+ config_attr :scope, nil, ::String, ::Array, nil
2483
+ config_attr :lib_name, nil, ::String, nil
2484
+ config_attr :lib_version, nil, ::String, nil
2485
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2486
+ config_attr :interceptors, nil, ::Array, nil
2487
+ config_attr :timeout, nil, ::Numeric, nil
2488
+ config_attr :metadata, nil, ::Hash, nil
2489
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2490
+ config_attr :quota_project, nil, ::String, nil
2461
2491
 
2462
2492
  # @private
2463
2493
  def initialize parent_config = nil
@@ -2473,7 +2503,7 @@ module Google
2473
2503
  def rpcs
2474
2504
  @rpcs ||= begin
2475
2505
  parent_rpcs = nil
2476
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
2506
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
2477
2507
  Rpcs.new parent_rpcs
2478
2508
  end
2479
2509
  end
@@ -85,6 +85,8 @@ module Google
85
85
  if credentials.is_a?(String) || credentials.is_a?(Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
+ @quota_project_id = @config.quota_project
89
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
88
90
 
89
91
  @operations_stub = ::Gapic::ServiceStub.new(
90
92
  ::Google::Longrunning::Operations::Stub,
@@ -464,24 +466,28 @@ module Google
464
466
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
467
  # trigger a retry.
466
468
  # @return [::Hash]
469
+ # @!attribute [rw] quota_project
470
+ # A separate project against which to charge quota.
471
+ # @return [::String]
467
472
  #
468
473
  class Configuration
469
474
  extend ::Gapic::Config
470
475
 
471
- config_attr :endpoint, "securitycenter.googleapis.com", String
472
- config_attr :credentials, nil do |value|
476
+ config_attr :endpoint, "securitycenter.googleapis.com", ::String
477
+ config_attr :credentials, nil do |value|
473
478
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
480
  allowed.any? { |klass| klass === value }
476
481
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
482
+ config_attr :scope, nil, ::String, ::Array, nil
483
+ config_attr :lib_name, nil, ::String, nil
484
+ config_attr :lib_version, nil, ::String, nil
485
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
486
+ config_attr :interceptors, nil, ::Array, nil
487
+ config_attr :timeout, nil, ::Numeric, nil
488
+ config_attr :metadata, nil, ::Hash, nil
489
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
490
+ config_attr :quota_project, nil, ::String, nil
485
491
 
486
492
  # @private
487
493
  def initialize parent_config = nil
@@ -497,7 +503,7 @@ module Google
497
503
  def rpcs
498
504
  @rpcs ||= begin
499
505
  parent_rpcs = nil
500
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
506
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
501
507
  Rpcs.new parent_rpcs
502
508
  end
503
509
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.3.1"
25
25
  end
26
26
  end
27
27
  end
@@ -5,10 +5,12 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/annotations_pb'
7
7
  require 'google/cloud/securitycenter/v1/finding_pb'
8
+ require 'google/cloud/securitycenter/v1/resource_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/cloud/securitycenter/v1/notification_message.proto", :syntax => :proto3) do
10
11
  add_message "google.cloud.securitycenter.v1.NotificationMessage" do
11
12
  optional :notification_config_name, :string, 1
13
+ optional :resource, :message, 3, "google.cloud.securitycenter.v1.Resource"
12
14
  oneof :event do
13
15
  optional :finding, :message, 2, "google.cloud.securitycenter.v1.Finding"
14
16
  end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/securitycenter/v1/resource.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/securitycenter/v1/resource.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.securitycenter.v1.Resource" do
10
+ optional :name, :string, 1
11
+ optional :project, :string, 2
12
+ optional :project_display_name, :string, 3
13
+ optional :parent, :string, 4
14
+ optional :parent_display_name, :string, 5
15
+ end
16
+ end
17
+ end
18
+
19
+ module Google
20
+ module Cloud
21
+ module SecurityCenter
22
+ module V1
23
+ Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.Resource").msgclass
24
+ end
25
+ end
26
+ end
27
+ end
@@ -86,8 +86,8 @@ module Google
86
86
  # Creates or updates a finding. The corresponding source must exist for a
87
87
  # finding creation to succeed.
88
88
  rpc :UpdateFinding, Google::Cloud::SecurityCenter::V1::UpdateFindingRequest, Google::Cloud::SecurityCenter::V1::Finding
89
- #
90
- # Updates a notification config.
89
+ # Updates a notification config. The following update
90
+ # fields are allowed: description, pubsub_topic, streaming_config.filter
91
91
  rpc :UpdateNotificationConfig, Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest, Google::Cloud::SecurityCenter::V1::NotificationConfig
92
92
  # Updates an organization's settings.
93
93
  rpc :UpdateOrganizationSettings, Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest, Google::Cloud::SecurityCenter::V1::OrganizationSettings
@@ -21,12 +21,13 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1
24
- # Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
25
- # Platform (GCP) resource.
24
+ # Security Command Center representation of a Google Cloud
25
+ # resource.
26
26
  #
27
- # The Asset is a Cloud SCC resource that captures information about a single
28
- # GCP resource. All modifications to an Asset are only within the context of
29
- # Cloud SCC and don't affect the referenced GCP resource.
27
+ # The Asset is a Security Command Center resource that captures information
28
+ # about a single Google Cloud resource. All modifications to an Asset are only
29
+ # within the context of Security Command Center and don't affect the referenced
30
+ # Google Cloud resource.
30
31
  # @!attribute [rw] name
31
32
  # @return [::String]
32
33
  # The relative resource name of this asset. See:
@@ -35,45 +36,46 @@ module Google
35
36
  # "organizations/\\{organization_id}/assets/\\{asset_id}".
36
37
  # @!attribute [rw] security_center_properties
37
38
  # @return [::Google::Cloud::SecurityCenter::V1::Asset::SecurityCenterProperties]
38
- # Cloud SCC managed properties. These properties are managed by
39
- # Cloud SCC and cannot be modified by the user.
39
+ # Security Command Center managed properties. These properties are managed by
40
+ # Security Command Center and cannot be modified by the user.
40
41
  # @!attribute [rw] resource_properties
41
42
  # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
42
43
  # Resource managed properties. These properties are managed and defined by
43
- # the GCP resource and cannot be modified by the user.
44
+ # the Google Cloud resource and cannot be modified by the user.
44
45
  # @!attribute [rw] security_marks
45
46
  # @return [::Google::Cloud::SecurityCenter::V1::SecurityMarks]
46
47
  # User specified security marks. These marks are entirely managed by the user
47
48
  # and come from the SecurityMarks resource that belongs to the asset.
48
49
  # @!attribute [rw] create_time
49
50
  # @return [::Google::Protobuf::Timestamp]
50
- # The time at which the asset was created in Cloud SCC.
51
+ # The time at which the asset was created in Security Command Center.
51
52
  # @!attribute [rw] update_time
52
53
  # @return [::Google::Protobuf::Timestamp]
53
- # The time at which the asset was last updated, added, or deleted in Cloud
54
- # SCC.
54
+ # The time at which the asset was last updated, added, or deleted in Security
55
+ # Command Center.
55
56
  # @!attribute [rw] iam_policy
56
57
  # @return [::Google::Cloud::SecurityCenter::V1::Asset::IamPolicy]
57
- # IAM Policy information associated with the GCP resource described by the
58
- # Cloud SCC asset. This information is managed and defined by the GCP
59
- # resource and cannot be modified by the user.
58
+ # Cloud IAM Policy information associated with the Google Cloud resource
59
+ # described by the Security Command Center asset. This information is managed
60
+ # and defined by the Google Cloud resource and cannot be modified by the
61
+ # user.
60
62
  class Asset
61
63
  include ::Google::Protobuf::MessageExts
62
64
  extend ::Google::Protobuf::MessageExts::ClassMethods
63
65
 
64
- # Cloud SCC managed properties. These properties are managed by Cloud SCC and
65
- # cannot be modified by the user.
66
+ # Security Command Center managed properties. These properties are managed by
67
+ # Security Command Center and cannot be modified by the user.
66
68
  # @!attribute [rw] resource_name
67
69
  # @return [::String]
68
- # The full resource name of the GCP resource this asset
70
+ # The full resource name of the Google Cloud resource this asset
69
71
  # represents. This field is immutable after create time. See:
70
72
  # https://cloud.google.com/apis/design/resource_names#full_resource_name
71
73
  # @!attribute [rw] resource_type
72
74
  # @return [::String]
73
- # The type of the GCP resource. Examples include: APPLICATION,
75
+ # The type of the Google Cloud resource. Examples include: APPLICATION,
74
76
  # PROJECT, and ORGANIZATION. This is a case insensitive field defined by
75
- # Cloud SCC and/or the producer of the resource and is immutable
76
- # after create time.
77
+ # Security Command Center and/or the producer of the resource and is
78
+ # immutable after create time.
77
79
  # @!attribute [rw] resource_parent
78
80
  # @return [::String]
79
81
  # The full resource name of the immediate parent of the resource. See:
@@ -99,9 +101,10 @@ module Google
99
101
  extend ::Google::Protobuf::MessageExts::ClassMethods
100
102
  end
101
103
 
102
- # IAM Policy information associated with the GCP resource described by the
103
- # Cloud SCC asset. This information is managed and defined by the GCP
104
- # resource and cannot be modified by the user.
104
+ # Cloud IAM Policy information associated with the Google Cloud resource
105
+ # described by the Security Command Center asset. This information is managed
106
+ # and defined by the Google Cloud resource and cannot be modified by the
107
+ # user.
105
108
  # @!attribute [rw] policy_blob
106
109
  # @return [::String]
107
110
  # The JSON representation of the Policy associated with the asset.
@@ -21,11 +21,11 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1
24
- # Cloud Security Command Center (Cloud SCC) finding.
24
+ # Security Command Center finding.
25
25
  #
26
26
  # A finding is a record of assessment data like security, risk, health, or
27
- # privacy, that is ingested into Cloud SCC for presentation, notification,
28
- # analysis, policy testing, and enforcement. For example, a
27
+ # privacy, that is ingested into Security Command Center for presentation,
28
+ # notification, analysis, policy testing, and enforcement. For example, a
29
29
  # cross-site scripting (XSS) vulnerability in an App Engine application is a
30
30
  # finding.
31
31
  # @!attribute [rw] name
@@ -43,12 +43,12 @@ module Google
43
43
  # "organizations/\\{organization_id}/sources/\\{source_id}"
44
44
  # @!attribute [rw] resource_name
45
45
  # @return [::String]
46
- # For findings on Google Cloud Platform (GCP) resources, the full resource
47
- # name of the GCP resource this finding is for. See:
46
+ # For findings on Google Cloud resources, the full resource
47
+ # name of the Google Cloud resource this finding is for. See:
48
48
  # https://cloud.google.com/apis/design/resource_names#full_resource_name
49
- # When the finding is for a non-GCP resource, the resourceName can be a
50
- # customer or partner defined string.
51
- # This field is immutable after creation time.
49
+ # When the finding is for a non-Google Cloud resource, the resourceName can
50
+ # be a customer or partner defined string. This field is immutable after
51
+ # creation time.
52
52
  # @!attribute [rw] state
53
53
  # @return [::Google::Cloud::SecurityCenter::V1::Finding::State]
54
54
  # The state of the finding.
@@ -59,9 +59,9 @@ module Google
59
59
  # Example: "XSS_FLASH_INJECTION"
60
60
  # @!attribute [rw] external_uri
61
61
  # @return [::String]
62
- # The URI that, if available, points to a web page outside of Cloud SCC
63
- # where additional information about the finding can be found. This field is
64
- # guaranteed to be either empty or a well formed URL.
62
+ # The URI that, if available, points to a web page outside of Security
63
+ # Command Center where additional information about the finding can be found.
64
+ # This field is guaranteed to be either empty or a well formed URL.
65
65
  # @!attribute [rw] source_properties
66
66
  # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
67
67
  # Source specific properties. These properties are managed by the source
@@ -80,7 +80,7 @@ module Google
80
80
  # the firewall became open. The accuracy is determined by the detector.
81
81
  # @!attribute [rw] create_time
82
82
  # @return [::Google::Protobuf::Timestamp]
83
- # The time at which the finding was created in Cloud SCC.
83
+ # The time at which the finding was created in Security Command Center.
84
84
  class Finding
85
85
  include ::Google::Protobuf::MessageExts
86
86
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -29,6 +29,9 @@ module Google
29
29
  # @return [::Google::Cloud::SecurityCenter::V1::Finding]
30
30
  # If it's a Finding based notification config, this field will be
31
31
  # populated.
32
+ # @!attribute [rw] resource
33
+ # @return [::Google::Cloud::SecurityCenter::V1::Resource]
34
+ # The Cloud resource tied to this notification's Finding.
32
35
  class NotificationMessage
33
36
  include ::Google::Protobuf::MessageExts
34
37
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -21,8 +21,8 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1
24
- # User specified settings that are attached to the Cloud Security Command
25
- # Center (Cloud SCC) organization.
24
+ # User specified settings that are attached to the Security Command
25
+ # Center organization.
26
26
  # @!attribute [rw] name
27
27
  # @return [::String]
28
28
  # The relative resource name of the settings. See:
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module SecurityCenter
23
+ module V1
24
+ # Information related to the Google Cloud resource.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # The full resource name of the resource. See:
28
+ # https://cloud.google.com/apis/design/resource_names#full_resource_name
29
+ # @!attribute [rw] project
30
+ # @return [::String]
31
+ # The full resource name of project that the resource belongs to.
32
+ # @!attribute [rw] project_display_name
33
+ # @return [::String]
34
+ # The human readable name of project that the resource belongs to.
35
+ # @!attribute [rw] parent
36
+ # @return [::String]
37
+ # The full resource name of resource's parent.
38
+ # @!attribute [rw] parent_display_name
39
+ # @return [::String]
40
+ # The human readable name of resource's parent.
41
+ class Resource
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -21,9 +21,9 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1
24
- # User specified security marks that are attached to the parent Cloud Security
25
- # Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
26
- # SCC organization -- they can be modified and viewed by all users who have
24
+ # User specified security marks that are attached to the parent Security
25
+ # Command Center resource. Security marks are scoped within a Security Command
26
+ # Center organization -- they can be modified and viewed by all users who have
27
27
  # proper permissions on the organization.
28
28
  # @!attribute [rw] name
29
29
  # @return [::String]
@@ -155,15 +155,15 @@ module Google
155
155
  #
156
156
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
157
157
  # Examples:
158
- # "update_time = \"2019-06-10T16:07:18-07:00\""
159
- # "update_time = 1560208038000"
158
+ # `update_time = "2019-06-10T16:07:18-07:00"`
159
+ # `update_time = 1560208038000`
160
160
  #
161
161
  # * create_time: `=`, `>`, `<`, `>=`, `<=`
162
162
  #
163
163
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
164
164
  # Examples:
165
- # "create_time = \"2019-06-10T16:07:18-07:00\""
166
- # "create_time = 1560208038000"
165
+ # `create_time = "2019-06-10T16:07:18-07:00"`
166
+ # `create_time = 1560208038000`
167
167
  #
168
168
  # * iam_policy.policy_blob: `=`, `:`
169
169
  # * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
@@ -178,6 +178,12 @@ module Google
178
178
  # * security_center_properties.resource_owners: `=`, `:`
179
179
  #
180
180
  # For example, `resource_properties.size = 100` is a valid filter string.
181
+ #
182
+ # Use a partial match on the empty string to filter based on a property
183
+ # existing:`resource_properties.my_property : ""`
184
+ #
185
+ # Use a negated partial match on the empty string to filter based on a
186
+ # property not existing: `-resource_properties.my_property : ""`
181
187
  # @!attribute [rw] group_by
182
188
  # @return [::String]
183
189
  # Required. Expression that defines what assets fields to use for grouping.
@@ -313,13 +319,19 @@ module Google
313
319
  #
314
320
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
315
321
  # Examples:
316
- # "event_time = \"2019-06-10T16:07:18-07:00\""
317
- # "event_time = 1560208038000"
322
+ # `event_time = "2019-06-10T16:07:18-07:00"`
323
+ # `event_time = 1560208038000`
318
324
  #
319
325
  # * security_marks.marks: `=`, `:`
320
326
  # * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
321
327
  #
322
328
  # For example, `source_properties.size = 100` is a valid filter string.
329
+ #
330
+ # Use a partial match on the empty string to filter based on a property
331
+ # existing: `source_properties.my_property : ""`
332
+ #
333
+ # Use a negated partial match on the empty string to filter based on a
334
+ # property not existing: `-source_properties.my_property : ""`
323
335
  # @!attribute [rw] group_by
324
336
  # @return [::String]
325
337
  # Required. Expression that defines what assets fields to use for grouping
@@ -536,15 +548,15 @@ module Google
536
548
  #
537
549
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
538
550
  # Examples:
539
- # "update_time = \"2019-06-10T16:07:18-07:00\""
540
- # "update_time = 1560208038000"
551
+ # `update_time = "2019-06-10T16:07:18-07:00"`
552
+ # `update_time = 1560208038000`
541
553
  #
542
554
  # * create_time: `=`, `>`, `<`, `>=`, `<=`
543
555
  #
544
556
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
545
557
  # Examples:
546
- # "create_time = \"2019-06-10T16:07:18-07:00\""
547
- # "create_time = 1560208038000"
558
+ # `create_time = "2019-06-10T16:07:18-07:00"`
559
+ # `create_time = 1560208038000`
548
560
  #
549
561
  # * iam_policy.policy_blob: `=`, `:`
550
562
  # * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
@@ -559,6 +571,12 @@ module Google
559
571
  # * security_center_properties.resource_owners: `=`, `:`
560
572
  #
561
573
  # For example, `resource_properties.size = 100` is a valid filter string.
574
+ #
575
+ # Use a partial match on the empty string to filter based on a property
576
+ # existing: `resource_properties.my_property : ""`
577
+ #
578
+ # Use a negated partial match on the empty string to filter based on a
579
+ # property not existing: `-resource_properties.my_property : ""`
562
580
  # @!attribute [rw] order_by
563
581
  # @return [::String]
564
582
  # Expression that defines what fields and order to use for sorting. The
@@ -728,13 +746,19 @@ module Google
728
746
  #
729
747
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
730
748
  # Examples:
731
- # "event_time = \"2019-06-10T16:07:18-07:00\""
732
- # "event_time = 1560208038000"
749
+ # `event_time = "2019-06-10T16:07:18-07:00"`
750
+ # `event_time = 1560208038000`
733
751
  #
734
752
  # security_marks.marks: `=`, `:`
735
753
  # source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
736
754
  #
737
755
  # For example, `source_properties.size = 100` is a valid filter string.
756
+ #
757
+ # Use a partial match on the empty string to filter based on a property
758
+ # existing: `source_properties.my_property : ""`
759
+ #
760
+ # Use a negated partial match on the empty string to filter based on a
761
+ # property not existing: `-source_properties.my_property : ""`
738
762
  # @!attribute [rw] order_by
739
763
  # @return [::String]
740
764
  # Expression that defines what fields and order to use for sorting. The
@@ -843,7 +867,7 @@ module Google
843
867
  include ::Google::Protobuf::MessageExts
844
868
  extend ::Google::Protobuf::MessageExts::ClassMethods
845
869
 
846
- # Information related to the Google Cloud Platform (GCP) resource that is
870
+ # Information related to the Google Cloud resource that is
847
871
  # associated with this finding.
848
872
  # @!attribute [rw] name
849
873
  # @return [::String]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1
24
- # Cloud Security Command Center's (Cloud SCC) finding source. A finding source
24
+ # Security Command Center finding source. A finding source
25
25
  # is an entity or a mechanism that can produce a finding. A source is like a
26
26
  # container of findings that come from the same scanner, logger, monitor, and
27
27
  # other tools.
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.1.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -78,14 +78,42 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '5.10'
81
+ version: '5.14'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '5.10'
88
+ version: '5.14'
89
+ - !ruby/object:Gem::Dependency
90
+ name: minitest-focus
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.1'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.1'
103
+ - !ruby/object:Gem::Dependency
104
+ name: minitest-rg
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '5.2'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '5.2'
89
117
  - !ruby/object:Gem::Dependency
90
118
  name: rake
91
119
  requirement: !ruby/object:Gem::Requirement
@@ -154,7 +182,6 @@ files:
154
182
  - LICENSE.md
155
183
  - README.md
156
184
  - lib/google-cloud-security_center-v1.rb
157
- - lib/google/cloud/common_resources_pb.rb
158
185
  - lib/google/cloud/security_center/v1.rb
159
186
  - lib/google/cloud/security_center/v1/security_center.rb
160
187
  - lib/google/cloud/security_center/v1/security_center/client.rb
@@ -167,6 +194,7 @@ files:
167
194
  - lib/google/cloud/securitycenter/v1/notification_config_pb.rb
168
195
  - lib/google/cloud/securitycenter/v1/notification_message_pb.rb
169
196
  - lib/google/cloud/securitycenter/v1/organization_settings_pb.rb
197
+ - lib/google/cloud/securitycenter/v1/resource_pb.rb
170
198
  - lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb
171
199
  - lib/google/cloud/securitycenter/v1/security_marks_pb.rb
172
200
  - lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb
@@ -180,6 +208,7 @@ files:
180
208
  - proto_docs/google/cloud/securitycenter/v1/notification_config.rb
181
209
  - proto_docs/google/cloud/securitycenter/v1/notification_message.rb
182
210
  - proto_docs/google/cloud/securitycenter/v1/organization_settings.rb
211
+ - proto_docs/google/cloud/securitycenter/v1/resource.rb
183
212
  - proto_docs/google/cloud/securitycenter/v1/run_asset_discovery_response.rb
184
213
  - proto_docs/google/cloud/securitycenter/v1/security_marks.rb
185
214
  - proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb
@@ -215,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
244
  - !ruby/object:Gem::Version
216
245
  version: '0'
217
246
  requirements: []
218
- rubygems_version: 3.0.6
247
+ rubygems_version: 3.1.3
219
248
  signing_key:
220
249
  specification_version: 4
221
250
  summary: API Client library for the Cloud Security Command Center V1 API
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/common_resources.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/resource_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
- end
10
- end
11
-
12
- module Google
13
- module Cloud
14
- end
15
- end