google-cloud-security_center-v1 0.1.0

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.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +71 -0
  6. data/lib/google/cloud/common_resources_pb.rb +15 -0
  7. data/lib/google/cloud/security_center/v1/security_center/client.rb +2673 -0
  8. data/lib/google/cloud/security_center/v1/security_center/credentials.rb +51 -0
  9. data/lib/google/cloud/security_center/v1/security_center/operations.rb +564 -0
  10. data/lib/google/cloud/security_center/v1/security_center/paths.rb +172 -0
  11. data/lib/google/cloud/security_center/v1/security_center.rb +50 -0
  12. data/lib/google/cloud/security_center/v1/version.rb +28 -0
  13. data/lib/google/cloud/security_center/v1.rb +35 -0
  14. data/lib/google/cloud/securitycenter/v1/asset_pb.rb +48 -0
  15. data/lib/google/cloud/securitycenter/v1/finding_pb.rb +43 -0
  16. data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +35 -0
  17. data/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +27 -0
  18. data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +37 -0
  19. data/lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb +32 -0
  20. data/lib/google/cloud/securitycenter/v1/security_marks_pb.rb +25 -0
  21. data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +237 -0
  22. data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +105 -0
  23. data/lib/google/cloud/securitycenter/v1/source_pb.rb +26 -0
  24. data/lib/google-cloud-security_center-v1.rb +21 -0
  25. data/proto_docs/README.md +4 -0
  26. data/proto_docs/google/api/field_behavior.rb +59 -0
  27. data/proto_docs/google/api/resource.rb +247 -0
  28. data/proto_docs/google/cloud/securitycenter/v1/asset.rb +127 -0
  29. data/proto_docs/google/cloud/securitycenter/v1/finding.rb +113 -0
  30. data/proto_docs/google/cloud/securitycenter/v1/notification_config.rb +85 -0
  31. data/proto_docs/google/cloud/securitycenter/v1/notification_message.rb +39 -0
  32. data/proto_docs/google/cloud/securitycenter/v1/organization_settings.rb +82 -0
  33. data/proto_docs/google/cloud/securitycenter/v1/run_asset_discovery_response.rb +54 -0
  34. data/proto_docs/google/cloud/securitycenter/v1/security_marks.rb +61 -0
  35. data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +1015 -0
  36. data/proto_docs/google/cloud/securitycenter/v1/source.rb +57 -0
  37. data/proto_docs/google/iam/v1/iam_policy.rb +80 -0
  38. data/proto_docs/google/iam/v1/options.rb +40 -0
  39. data/proto_docs/google/iam/v1/policy.rb +248 -0
  40. data/proto_docs/google/longrunning/operations.rb +150 -0
  41. data/proto_docs/google/protobuf/any.rb +138 -0
  42. data/proto_docs/google/protobuf/duration.rb +98 -0
  43. data/proto_docs/google/protobuf/empty.rb +36 -0
  44. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  45. data/proto_docs/google/protobuf/struct.rb +96 -0
  46. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  47. data/proto_docs/google/rpc/status.rb +46 -0
  48. data/proto_docs/google/type/expr.rb +52 -0
  49. metadata +222 -0
@@ -0,0 +1,82 @@
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
+ # User specified settings that are attached to the Cloud Security Command
25
+ # Center (Cloud SCC) organization.
26
+ # @!attribute [rw] name
27
+ # @return [String]
28
+ # The relative resource name of the settings. See:
29
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
30
+ # Example:
31
+ # "organizations/\\{organization_id}/organizationSettings".
32
+ # @!attribute [rw] enable_asset_discovery
33
+ # @return [Boolean]
34
+ # A flag that indicates if Asset Discovery should be enabled. If the flag is
35
+ # set to `true`, then discovery of assets will occur. If it is set to `false,
36
+ # all historical assets will remain, but discovery of future assets will not
37
+ # occur.
38
+ # @!attribute [rw] asset_discovery_config
39
+ # @return [Google::Cloud::SecurityCenter::V1::OrganizationSettings::AssetDiscoveryConfig]
40
+ # The configuration used for Asset Discovery runs.
41
+ class OrganizationSettings
42
+ include Google::Protobuf::MessageExts
43
+ extend Google::Protobuf::MessageExts::ClassMethods
44
+
45
+ # The configuration used for Asset Discovery runs.
46
+ # @!attribute [rw] project_ids
47
+ # @return [Array<String>]
48
+ # The project ids to use for filtering asset discovery.
49
+ # @!attribute [rw] inclusion_mode
50
+ # @return [Google::Cloud::SecurityCenter::V1::OrganizationSettings::AssetDiscoveryConfig::InclusionMode]
51
+ # The mode to use for filtering asset discovery.
52
+ class AssetDiscoveryConfig
53
+ include Google::Protobuf::MessageExts
54
+ extend Google::Protobuf::MessageExts::ClassMethods
55
+
56
+ # The mode of inclusion when running Asset Discovery.
57
+ # Asset discovery can be limited by explicitly identifying projects to be
58
+ # included or excluded. If INCLUDE_ONLY is set, then only those projects
59
+ # within the organization and their children are discovered during asset
60
+ # discovery. If EXCLUDE is set, then projects that don't match those
61
+ # projects are discovered during asset discovery. If neither are set, then
62
+ # all projects within the organization are discovered during asset
63
+ # discovery.
64
+ module InclusionMode
65
+ # Unspecified. Setting the mode with this value will disable
66
+ # inclusion/exclusion filtering for Asset Discovery.
67
+ INCLUSION_MODE_UNSPECIFIED = 0
68
+
69
+ # Asset Discovery will capture only the resources within the projects
70
+ # specified. All other resources will be ignored.
71
+ INCLUDE_ONLY = 1
72
+
73
+ # Asset Discovery will ignore all resources under the projects specified.
74
+ # All other resources will be retrieved.
75
+ EXCLUDE = 2
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,54 @@
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
+ # Response of asset discovery run
25
+ # @!attribute [rw] state
26
+ # @return [Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryResponse::State]
27
+ # The state of an asset discovery run.
28
+ # @!attribute [rw] duration
29
+ # @return [Google::Protobuf::Duration]
30
+ # The duration between asset discovery run start and end
31
+ class RunAssetDiscoveryResponse
32
+ include Google::Protobuf::MessageExts
33
+ extend Google::Protobuf::MessageExts::ClassMethods
34
+
35
+ # The state of an asset discovery run.
36
+ module State
37
+ # Asset discovery run state was unspecified.
38
+ STATE_UNSPECIFIED = 0
39
+
40
+ # Asset discovery run completed successfully.
41
+ COMPLETED = 1
42
+
43
+ # Asset discovery run was cancelled with tasks still pending, as another
44
+ # run for the same organization was started with a higher priority.
45
+ SUPERSEDED = 2
46
+
47
+ # Asset discovery run was killed and terminated.
48
+ TERMINATED = 3
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,61 @@
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
+ # 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
27
+ # proper permissions on the organization.
28
+ # @!attribute [rw] name
29
+ # @return [String]
30
+ # The relative resource name of the SecurityMarks. See:
31
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
32
+ # Examples:
33
+ # "organizations/\\{organization_id}/assets/\\{asset_id}/securityMarks"
34
+ # "organizations/\\{organization_id}/sources/\\{source_id}/findings/\\{finding_id}/securityMarks".
35
+ # @!attribute [rw] marks
36
+ # @return [Google::Protobuf::Map{String => String}]
37
+ # Mutable user specified security marks belonging to the parent resource.
38
+ # Constraints are as follows:
39
+ #
40
+ # * Keys and values are treated as case insensitive
41
+ # * Keys must be between 1 - 256 characters (inclusive)
42
+ # * Keys must be letters, numbers, underscores, or dashes
43
+ # * Values have leading and trailing whitespace trimmed, remaining
44
+ # characters must be between 1 - 4096 characters (inclusive)
45
+ class SecurityMarks
46
+ include Google::Protobuf::MessageExts
47
+ extend Google::Protobuf::MessageExts::ClassMethods
48
+
49
+ # @!attribute [rw] key
50
+ # @return [String]
51
+ # @!attribute [rw] value
52
+ # @return [String]
53
+ class MarksEntry
54
+ include Google::Protobuf::MessageExts
55
+ extend Google::Protobuf::MessageExts::ClassMethods
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end