google-cloud-security_center-v1 0.1.0 → 0.1.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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/security_center/v1.rb +1 -1
  5. data/lib/google/cloud/security_center/v1/security_center.rb +1 -1
  6. data/lib/google/cloud/security_center/v1/security_center/client.rb +458 -458
  7. data/lib/google/cloud/security_center/v1/security_center/credentials.rb +1 -1
  8. data/lib/google/cloud/security_center/v1/security_center/operations.rb +100 -100
  9. data/lib/google/cloud/security_center/v1/security_center/paths.rb +16 -16
  10. data/lib/google/cloud/security_center/v1/version.rb +1 -1
  11. data/proto_docs/google/api/resource.rb +12 -12
  12. data/proto_docs/google/cloud/securitycenter/v1/asset.rb +26 -26
  13. data/proto_docs/google/cloud/securitycenter/v1/finding.rb +16 -16
  14. data/proto_docs/google/cloud/securitycenter/v1/notification_config.rb +10 -10
  15. data/proto_docs/google/cloud/securitycenter/v1/notification_message.rb +4 -4
  16. data/proto_docs/google/cloud/securitycenter/v1/organization_settings.rb +9 -9
  17. data/proto_docs/google/cloud/securitycenter/v1/run_asset_discovery_response.rb +4 -4
  18. data/proto_docs/google/cloud/securitycenter/v1/security_marks.rb +8 -8
  19. data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +159 -159
  20. data/proto_docs/google/cloud/securitycenter/v1/source.rb +5 -5
  21. data/proto_docs/google/iam/v1/iam_policy.rb +15 -15
  22. data/proto_docs/google/iam/v1/options.rb +3 -3
  23. data/proto_docs/google/iam/v1/policy.rb +26 -26
  24. data/proto_docs/google/longrunning/operations.rb +30 -30
  25. data/proto_docs/google/protobuf/any.rb +4 -4
  26. data/proto_docs/google/protobuf/duration.rb +4 -4
  27. data/proto_docs/google/protobuf/empty.rb +2 -2
  28. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  29. data/proto_docs/google/protobuf/struct.rb +18 -18
  30. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  31. data/proto_docs/google/rpc/status.rb +6 -6
  32. data/proto_docs/google/type/expr.rb +6 -6
  33. metadata +2 -2
@@ -26,20 +26,20 @@ module Google
26
26
  # container of findings that come from the same scanner, logger, monitor, and
27
27
  # other tools.
28
28
  # @!attribute [rw] name
29
- # @return [String]
29
+ # @return [::String]
30
30
  # The relative resource name of this source. See:
31
31
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
32
32
  # Example:
33
33
  # "organizations/\\{organization_id}/sources/\\{source_id}"
34
34
  # @!attribute [rw] display_name
35
- # @return [String]
35
+ # @return [::String]
36
36
  # The source's display name.
37
37
  # A source's display name must be unique amongst its siblings, for example,
38
38
  # two sources with the same parent can't share the same display name.
39
39
  # The display name must have a length between 1 and 64 characters
40
40
  # (inclusive).
41
41
  # @!attribute [rw] description
42
- # @return [String]
42
+ # @return [::String]
43
43
  # The description of the source (max of 1024 characters).
44
44
  # Example:
45
45
  # "Web Security Scanner is a web security scanner for common
@@ -48,8 +48,8 @@ module Google
48
48
  # (XSS), Flash injection, mixed content (HTTP in HTTPS), and
49
49
  # outdated or insecure libraries."
50
50
  class Source
51
- include Google::Protobuf::MessageExts
52
- extend Google::Protobuf::MessageExts::ClassMethods
51
+ include ::Google::Protobuf::MessageExts
52
+ extend ::Google::Protobuf::MessageExts::ClassMethods
53
53
  end
54
54
  end
55
55
  end
@@ -22,58 +22,58 @@ module Google
22
22
  module V1
23
23
  # Request message for `SetIamPolicy` method.
24
24
  # @!attribute [rw] resource
25
- # @return [String]
25
+ # @return [::String]
26
26
  # REQUIRED: The resource for which the policy is being specified.
27
27
  # See the operation documentation for the appropriate value for this field.
28
28
  # @!attribute [rw] policy
29
- # @return [Google::Iam::V1::Policy]
29
+ # @return [::Google::Iam::V1::Policy]
30
30
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
31
31
  # the policy is limited to a few 10s of KB. An empty policy is a
32
32
  # valid policy but certain Cloud Platform services (such as Projects)
33
33
  # might reject them.
34
34
  class SetIamPolicyRequest
35
- include Google::Protobuf::MessageExts
36
- extend Google::Protobuf::MessageExts::ClassMethods
35
+ include ::Google::Protobuf::MessageExts
36
+ extend ::Google::Protobuf::MessageExts::ClassMethods
37
37
  end
38
38
 
39
39
  # Request message for `GetIamPolicy` method.
40
40
  # @!attribute [rw] resource
41
- # @return [String]
41
+ # @return [::String]
42
42
  # REQUIRED: The resource for which the policy is being requested.
43
43
  # See the operation documentation for the appropriate value for this field.
44
44
  # @!attribute [rw] options
45
- # @return [Google::Iam::V1::GetPolicyOptions]
45
+ # @return [::Google::Iam::V1::GetPolicyOptions]
46
46
  # OPTIONAL: A `GetPolicyOptions` object for specifying options to
47
47
  # `GetIamPolicy`. This field is only used by Cloud IAM.
48
48
  class GetIamPolicyRequest
49
- include Google::Protobuf::MessageExts
50
- extend Google::Protobuf::MessageExts::ClassMethods
49
+ include ::Google::Protobuf::MessageExts
50
+ extend ::Google::Protobuf::MessageExts::ClassMethods
51
51
  end
52
52
 
53
53
  # Request message for `TestIamPermissions` method.
54
54
  # @!attribute [rw] resource
55
- # @return [String]
55
+ # @return [::String]
56
56
  # REQUIRED: The resource for which the policy detail is being requested.
57
57
  # See the operation documentation for the appropriate value for this field.
58
58
  # @!attribute [rw] permissions
59
- # @return [Array<String>]
59
+ # @return [::Array<::String>]
60
60
  # The set of permissions to check for the `resource`. Permissions with
61
61
  # wildcards (such as '*' or 'storage.*') are not allowed. For more
62
62
  # information see
63
63
  # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
64
64
  class TestIamPermissionsRequest
65
- include Google::Protobuf::MessageExts
66
- extend Google::Protobuf::MessageExts::ClassMethods
65
+ include ::Google::Protobuf::MessageExts
66
+ extend ::Google::Protobuf::MessageExts::ClassMethods
67
67
  end
68
68
 
69
69
  # Response message for `TestIamPermissions` method.
70
70
  # @!attribute [rw] permissions
71
- # @return [Array<String>]
71
+ # @return [::Array<::String>]
72
72
  # A subset of `TestPermissionsRequest.permissions` that the caller is
73
73
  # allowed.
74
74
  class TestIamPermissionsResponse
75
- include Google::Protobuf::MessageExts
76
- extend Google::Protobuf::MessageExts::ClassMethods
75
+ include ::Google::Protobuf::MessageExts
76
+ extend ::Google::Protobuf::MessageExts::ClassMethods
77
77
  end
78
78
  end
79
79
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module V1
23
23
  # Encapsulates settings provided to GetIamPolicy.
24
24
  # @!attribute [rw] requested_policy_version
25
- # @return [Integer]
25
+ # @return [::Integer]
26
26
  # Optional. The policy format version to be returned.
27
27
  #
28
28
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -32,8 +32,8 @@ module Google
32
32
  # Policies without any conditional bindings may specify any valid value or
33
33
  # leave the field unset.
34
34
  class GetPolicyOptions
35
- include Google::Protobuf::MessageExts
36
- extend Google::Protobuf::MessageExts::ClassMethods
35
+ include ::Google::Protobuf::MessageExts
36
+ extend ::Google::Protobuf::MessageExts::ClassMethods
37
37
  end
38
38
  end
39
39
  end
@@ -78,7 +78,7 @@ module Google
78
78
  # For a description of IAM and its features, see the
79
79
  # [IAM developer's guide](https://cloud.google.com/iam/docs).
80
80
  # @!attribute [rw] version
81
- # @return [Integer]
81
+ # @return [::Integer]
82
82
  # Specifies the format of the policy.
83
83
  #
84
84
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
@@ -94,12 +94,12 @@ module Google
94
94
  # If no etag is provided in the call to `setIamPolicy`, version compliance
95
95
  # checks against the stored policy is skipped.
96
96
  # @!attribute [rw] bindings
97
- # @return [Array<Google::Iam::V1::Binding>]
97
+ # @return [::Array<::Google::Iam::V1::Binding>]
98
98
  # Associates a list of `members` to a `role`. Optionally may specify a
99
99
  # `condition` that determines when binding is in effect.
100
100
  # `bindings` with no members will result in an error.
101
101
  # @!attribute [rw] etag
102
- # @return [String]
102
+ # @return [::String]
103
103
  # `etag` is used for optimistic concurrency control as a way to help
104
104
  # prevent simultaneous updates of a policy from overwriting each other.
105
105
  # It is strongly suggested that systems make use of the `etag` in the
@@ -113,17 +113,17 @@ module Google
113
113
  # 'setIamPolicy' will not fail even if the incoming policy version does not
114
114
  # meet the requirements for modifying the stored policy.
115
115
  class Policy
116
- include Google::Protobuf::MessageExts
117
- extend Google::Protobuf::MessageExts::ClassMethods
116
+ include ::Google::Protobuf::MessageExts
117
+ extend ::Google::Protobuf::MessageExts::ClassMethods
118
118
  end
119
119
 
120
120
  # Associates `members` with a `role`.
121
121
  # @!attribute [rw] role
122
- # @return [String]
122
+ # @return [::String]
123
123
  # Role that is assigned to `members`.
124
124
  # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
125
125
  # @!attribute [rw] members
126
- # @return [Array<String>]
126
+ # @return [::Array<::String>]
127
127
  # Specifies the identities requesting access for a Cloud Platform resource.
128
128
  # `members` can have the following values:
129
129
  #
@@ -147,50 +147,50 @@ module Google
147
147
  # * `domain:{domain}`: The G Suite domain (primary) that represents all the
148
148
  # users of that domain. For example, `google.com` or `example.com`.
149
149
  # @!attribute [rw] condition
150
- # @return [Google::Type::Expr]
150
+ # @return [::Google::Type::Expr]
151
151
  # The condition that is associated with this binding.
152
152
  # NOTE: An unsatisfied condition will not allow user access via current
153
153
  # binding. Different bindings, including their conditions, are examined
154
154
  # independently.
155
155
  class Binding
156
- include Google::Protobuf::MessageExts
157
- extend Google::Protobuf::MessageExts::ClassMethods
156
+ include ::Google::Protobuf::MessageExts
157
+ extend ::Google::Protobuf::MessageExts::ClassMethods
158
158
  end
159
159
 
160
160
  # The difference delta between two policies.
161
161
  # @!attribute [rw] binding_deltas
162
- # @return [Array<Google::Iam::V1::BindingDelta>]
162
+ # @return [::Array<::Google::Iam::V1::BindingDelta>]
163
163
  # The delta for Bindings between two policies.
164
164
  # @!attribute [rw] audit_config_deltas
165
- # @return [Array<Google::Iam::V1::AuditConfigDelta>]
165
+ # @return [::Array<::Google::Iam::V1::AuditConfigDelta>]
166
166
  # The delta for AuditConfigs between two policies.
167
167
  class PolicyDelta
168
- include Google::Protobuf::MessageExts
169
- extend Google::Protobuf::MessageExts::ClassMethods
168
+ include ::Google::Protobuf::MessageExts
169
+ extend ::Google::Protobuf::MessageExts::ClassMethods
170
170
  end
171
171
 
172
172
  # One delta entry for Binding. Each individual change (only one member in each
173
173
  # entry) to a binding will be a separate entry.
174
174
  # @!attribute [rw] action
175
- # @return [Google::Iam::V1::BindingDelta::Action]
175
+ # @return [::Google::Iam::V1::BindingDelta::Action]
176
176
  # The action that was performed on a Binding.
177
177
  # Required
178
178
  # @!attribute [rw] role
179
- # @return [String]
179
+ # @return [::String]
180
180
  # Role that is assigned to `members`.
181
181
  # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
182
182
  # Required
183
183
  # @!attribute [rw] member
184
- # @return [String]
184
+ # @return [::String]
185
185
  # A single identity requesting access for a Cloud Platform resource.
186
186
  # Follows the same format of Binding.members.
187
187
  # Required
188
188
  # @!attribute [rw] condition
189
- # @return [Google::Type::Expr]
189
+ # @return [::Google::Type::Expr]
190
190
  # The condition that is associated with this binding.
191
191
  class BindingDelta
192
- include Google::Protobuf::MessageExts
193
- extend Google::Protobuf::MessageExts::ClassMethods
192
+ include ::Google::Protobuf::MessageExts
193
+ extend ::Google::Protobuf::MessageExts::ClassMethods
194
194
 
195
195
  # The type of action performed on a Binding in a policy.
196
196
  module Action
@@ -208,28 +208,28 @@ module Google
208
208
  # One delta entry for AuditConfig. Each individual change (only one
209
209
  # exempted_member in each entry) to a AuditConfig will be a separate entry.
210
210
  # @!attribute [rw] action
211
- # @return [Google::Iam::V1::AuditConfigDelta::Action]
211
+ # @return [::Google::Iam::V1::AuditConfigDelta::Action]
212
212
  # The action that was performed on an audit configuration in a policy.
213
213
  # Required
214
214
  # @!attribute [rw] service
215
- # @return [String]
215
+ # @return [::String]
216
216
  # Specifies a service that was configured for Cloud Audit Logging.
217
217
  # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
218
218
  # `allServices` is a special value that covers all services.
219
219
  # Required
220
220
  # @!attribute [rw] exempted_member
221
- # @return [String]
221
+ # @return [::String]
222
222
  # A single identity that is exempted from "data access" audit
223
223
  # logging for the `service` specified above.
224
224
  # Follows the same format of Binding.members.
225
225
  # @!attribute [rw] log_type
226
- # @return [String]
226
+ # @return [::String]
227
227
  # Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
228
228
  # enabled, and cannot be configured.
229
229
  # Required
230
230
  class AuditConfigDelta
231
- include Google::Protobuf::MessageExts
232
- extend Google::Protobuf::MessageExts::ClassMethods
231
+ include ::Google::Protobuf::MessageExts
232
+ extend ::Google::Protobuf::MessageExts::ClassMethods
233
233
 
234
234
  # The type of action performed on an audit configuration in a policy.
235
235
  module Action
@@ -22,26 +22,26 @@ module Google
22
22
  # This resource represents a long-running operation that is the result of a
23
23
  # network API call.
24
24
  # @!attribute [rw] name
25
- # @return [String]
25
+ # @return [::String]
26
26
  # The server-assigned name, which is only unique within the same service that
27
27
  # originally returns it. If you use the default HTTP mapping, the
28
28
  # `name` should have the format of `operations/some/unique/name`.
29
29
  # @!attribute [rw] metadata
30
- # @return [Google::Protobuf::Any]
30
+ # @return [::Google::Protobuf::Any]
31
31
  # Service-specific metadata associated with the operation. It typically
32
32
  # contains progress information and common metadata such as create time.
33
33
  # Some services might not provide such metadata. Any method that returns a
34
34
  # long-running operation should document the metadata type, if any.
35
35
  # @!attribute [rw] done
36
- # @return [Boolean]
36
+ # @return [::Boolean]
37
37
  # If the value is `false`, it means the operation is still in progress.
38
38
  # If true, the operation is completed, and either `error` or `response` is
39
39
  # available.
40
40
  # @!attribute [rw] error
41
- # @return [Google::Rpc::Status]
41
+ # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
43
  # @!attribute [rw] response
44
- # @return [Google::Protobuf::Any]
44
+ # @return [::Google::Protobuf::Any]
45
45
  # The normal response of the operation in case of success. If the original
46
46
  # method returns no data on success, such as `Delete`, the response is
47
47
  # `google.protobuf.Empty`. If the original method is standard
@@ -51,65 +51,65 @@ module Google
51
51
  # is `TakeSnapshot()`, the inferred response type is
52
52
  # `TakeSnapshotResponse`.
53
53
  class Operation
54
- include Google::Protobuf::MessageExts
55
- extend Google::Protobuf::MessageExts::ClassMethods
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
56
  end
57
57
 
58
58
  # The request message for Operations.GetOperation.
59
59
  # @!attribute [rw] name
60
- # @return [String]
60
+ # @return [::String]
61
61
  # The name of the operation resource.
62
62
  class GetOperationRequest
63
- include Google::Protobuf::MessageExts
64
- extend Google::Protobuf::MessageExts::ClassMethods
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
65
  end
66
66
 
67
67
  # The request message for Operations.ListOperations.
68
68
  # @!attribute [rw] name
69
- # @return [String]
69
+ # @return [::String]
70
70
  # The name of the operation collection.
71
71
  # @!attribute [rw] filter
72
- # @return [String]
72
+ # @return [::String]
73
73
  # The standard list filter.
74
74
  # @!attribute [rw] page_size
75
- # @return [Integer]
75
+ # @return [::Integer]
76
76
  # The standard list page size.
77
77
  # @!attribute [rw] page_token
78
- # @return [String]
78
+ # @return [::String]
79
79
  # The standard list page token.
80
80
  class ListOperationsRequest
81
- include Google::Protobuf::MessageExts
82
- extend Google::Protobuf::MessageExts::ClassMethods
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
83
  end
84
84
 
85
85
  # The response message for Operations.ListOperations.
86
86
  # @!attribute [rw] operations
87
- # @return [Array<Google::Longrunning::Operation>]
87
+ # @return [::Array<::Google::Longrunning::Operation>]
88
88
  # A list of operations that matches the specified filter in the request.
89
89
  # @!attribute [rw] next_page_token
90
- # @return [String]
90
+ # @return [::String]
91
91
  # The standard List next-page token.
92
92
  class ListOperationsResponse
93
- include Google::Protobuf::MessageExts
94
- extend Google::Protobuf::MessageExts::ClassMethods
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
95
  end
96
96
 
97
97
  # The request message for Operations.CancelOperation.
98
98
  # @!attribute [rw] name
99
- # @return [String]
99
+ # @return [::String]
100
100
  # The name of the operation resource to be cancelled.
101
101
  class CancelOperationRequest
102
- include Google::Protobuf::MessageExts
103
- extend Google::Protobuf::MessageExts::ClassMethods
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
104
  end
105
105
 
106
106
  # The request message for Operations.DeleteOperation.
107
107
  # @!attribute [rw] name
108
- # @return [String]
108
+ # @return [::String]
109
109
  # The name of the operation resource to be deleted.
110
110
  class DeleteOperationRequest
111
- include Google::Protobuf::MessageExts
112
- extend Google::Protobuf::MessageExts::ClassMethods
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
113
  end
114
114
 
115
115
  # A message representing the message types used by a long-running operation.
@@ -124,7 +124,7 @@ module Google
124
124
  # };
125
125
  # }
126
126
  # @!attribute [rw] response_type
127
- # @return [String]
127
+ # @return [::String]
128
128
  # Required. The message name of the primary return type for this
129
129
  # long-running operation.
130
130
  # This type will be used to deserialize the LRO's response.
@@ -134,7 +134,7 @@ module Google
134
134
  #
135
135
  # Note: Altering this value constitutes a breaking change.
136
136
  # @!attribute [rw] metadata_type
137
- # @return [String]
137
+ # @return [::String]
138
138
  # Required. The message name of the metadata type for this long-running
139
139
  # operation.
140
140
  #
@@ -143,8 +143,8 @@ module Google
143
143
  #
144
144
  # Note: Altering this value constitutes a breaking change.
145
145
  class OperationInfo
146
- include Google::Protobuf::MessageExts
147
- extend Google::Protobuf::MessageExts::ClassMethods
146
+ include ::Google::Protobuf::MessageExts
147
+ extend ::Google::Protobuf::MessageExts::ClassMethods
148
148
  end
149
149
  end
150
150
  end
@@ -99,7 +99,7 @@ module Google
99
99
  # "value": "1.212s"
100
100
  # }
101
101
  # @!attribute [rw] type_url
102
- # @return [String]
102
+ # @return [::String]
103
103
  # A URL/resource name that uniquely identifies the type of the serialized
104
104
  # protocol buffer message. This string must contain at least
105
105
  # one "/" character. The last segment of the URL's path must represent
@@ -128,11 +128,11 @@ module Google
128
128
  # Schemes other than `http`, `https` (or the empty scheme) might be
129
129
  # used with implementation specific semantics.
130
130
  # @!attribute [rw] value
131
- # @return [String]
131
+ # @return [::String]
132
132
  # Must be a valid serialized protocol buffer of the above specified type.
133
133
  class Any
134
- include Google::Protobuf::MessageExts
135
- extend Google::Protobuf::MessageExts::ClassMethods
134
+ include ::Google::Protobuf::MessageExts
135
+ extend ::Google::Protobuf::MessageExts::ClassMethods
136
136
  end
137
137
  end
138
138
  end
@@ -78,12 +78,12 @@ module Google
78
78
  # be expressed in JSON format as "3.000000001s", and 3 seconds and 1
79
79
  # microsecond should be expressed in JSON format as "3.000001s".
80
80
  # @!attribute [rw] seconds
81
- # @return [Integer]
81
+ # @return [::Integer]
82
82
  # Signed seconds of the span of time. Must be from -315,576,000,000
83
83
  # to +315,576,000,000 inclusive. Note: these bounds are computed from:
84
84
  # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
85
85
  # @!attribute [rw] nanos
86
- # @return [Integer]
86
+ # @return [::Integer]
87
87
  # Signed fractions of a second at nanosecond resolution of the span
88
88
  # of time. Durations less than one second are represented with a 0
89
89
  # `seconds` field and a positive or negative `nanos` field. For durations
@@ -91,8 +91,8 @@ module Google
91
91
  # of the same sign as the `seconds` field. Must be from -999,999,999
92
92
  # to +999,999,999 inclusive.
93
93
  class Duration
94
- include Google::Protobuf::MessageExts
95
- extend Google::Protobuf::MessageExts::ClassMethods
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
96
  end
97
97
  end
98
98
  end