google-cloud-cloud_security_compliance-v1 0.4.0 → 0.4.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 (25) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb +29 -0
  3. data/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb +16 -0
  4. data/lib/google/cloud/cloud_security_compliance/v1/config/client.rb +39 -16
  5. data/lib/google/cloud/cloud_security_compliance/v1/config/paths.rb +81 -16
  6. data/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb +39 -16
  7. data/lib/google/cloud/cloud_security_compliance/v1/config/rest/service_stub.rb +74 -0
  8. data/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb +18 -7
  9. data/lib/google/cloud/cloud_security_compliance/v1/deployment/paths.rb +124 -16
  10. data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb +18 -7
  11. data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/operations.rb +29 -0
  12. data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/service_stub.rb +43 -0
  13. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb +6 -2
  14. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb +6 -2
  15. data/lib/google/cloud/cloud_security_compliance/v1/version.rb +1 -1
  16. data/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb +3 -1
  17. data/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb +1 -1
  18. data/lib/google/cloud/cloudsecuritycompliance/v1/deployment_pb.rb +1 -1
  19. data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb +4 -1
  20. data/proto_docs/google/api/client.rb +4 -0
  21. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb +154 -13
  22. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb +39 -16
  23. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb +34 -12
  24. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb +42 -0
  25. metadata +1 -1
@@ -27,7 +27,9 @@ module Google
27
27
  # @!attribute [rw] name
28
28
  # @return [::String]
29
29
  # Identifier. The name of the framework deployment, in the format
30
- # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
30
+ # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
31
+ # or
32
+ # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
31
33
  # The only supported location is `global`.
32
34
  # @!attribute [rw] target_resource_config
33
35
  # @return [::Google::Cloud::CloudSecurityCompliance::V1::TargetResourceConfig]
@@ -103,7 +105,9 @@ module Google
103
105
  # @!attribute [rw] name
104
106
  # @return [::String]
105
107
  # Identifier. The name for the cloud control deployment, in the format
106
- # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
108
+ # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
109
+ # or
110
+ # `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
107
111
  # The only supported location is `global`.
108
112
  # @!attribute [rw] target_resource_config
109
113
  # @return [::Google::Cloud::CloudSecurityCompliance::V1::TargetResourceConfig]
@@ -241,7 +245,9 @@ module Google
241
245
  # @!attribute [rw] parent
242
246
  # @return [::String]
243
247
  # Required. The parent resource of the framework deployment in the format
244
- # `organizations/{organization}/locations/{location}`.
248
+ # `organizations/{organization}/locations/{location}`
249
+ # or
250
+ # `projects/{project}/locations/{location}`.
245
251
  # Only the global location is supported.
246
252
  # @!attribute [rw] framework_deployment_id
247
253
  # @return [::String]
@@ -261,7 +267,9 @@ module Google
261
267
  # @return [::String]
262
268
  # Required. The name of the framework deployment that you want to delete,
263
269
  # in the format
264
- # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
270
+ # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
271
+ # or
272
+ # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
265
273
  # The only supported location is `global`.
266
274
  # @!attribute [rw] etag
267
275
  # @return [::String]
@@ -282,7 +290,9 @@ module Google
282
290
  # @!attribute [rw] name
283
291
  # @return [::String]
284
292
  # Required. The name of the framework deployment, in the format
285
- # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
293
+ # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
294
+ # or
295
+ # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
286
296
  # The only supported location is `global`.
287
297
  class GetFrameworkDeploymentRequest
288
298
  include ::Google::Protobuf::MessageExts
@@ -293,7 +303,9 @@ module Google
293
303
  # @!attribute [rw] parent
294
304
  # @return [::String]
295
305
  # Required. The parent resource of the framework deployment, in the format
296
- # `organizations/{organization}/locations/{location}`.
306
+ # `organizations/{organization}/locations/{location}`
307
+ # or
308
+ # `projects/{project}/locations/{location}`.
297
309
  # The only supported location is `global`.
298
310
  # @!attribute [rw] page_size
299
311
  # @return [::Integer]
@@ -339,7 +351,9 @@ module Google
339
351
  # @!attribute [rw] name
340
352
  # @return [::String]
341
353
  # Required. The name for the cloud control deployment, in the format
342
- # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
354
+ # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
355
+ # or
356
+ # `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
343
357
  # The only supported location is `global`.
344
358
  class GetCloudControlDeploymentRequest
345
359
  include ::Google::Protobuf::MessageExts
@@ -350,8 +364,9 @@ module Google
350
364
  # @!attribute [rw] parent
351
365
  # @return [::String]
352
366
  # Required. The parent resource for the cloud control deployment, in the
353
- # format `organizations/{organization}/locations/{location}`. The only
354
- # supported location is `global`.
367
+ # format `organizations/{organization}/locations/{location}` or
368
+ # `projects/{project}/locations/{location}`.
369
+ # The only supported location is `global`.
355
370
  # @!attribute [rw] page_size
356
371
  # @return [::Integer]
357
372
  # Optional. The requested page size. The server might return fewer items than
@@ -396,7 +411,9 @@ module Google
396
411
  # @!attribute [r] cloud_control_deployment
397
412
  # @return [::String]
398
413
  # Output only. The name of the CloudControlDeployment. The format is
399
- # `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
414
+ # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
415
+ # or
416
+ # `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
400
417
  # The only supported location is `global`.
401
418
  class CloudControlDeploymentReference
402
419
  include ::Google::Protobuf::MessageExts
@@ -407,7 +424,9 @@ module Google
407
424
  # @!attribute [r] framework_deployment
408
425
  # @return [::String]
409
426
  # Output only. The name of the framework deployment, in the format
410
- # `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
427
+ # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
428
+ # or
429
+ # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
411
430
  # The only supported location is `global`.
412
431
  # @!attribute [rw] framework_reference
413
432
  # @return [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkReference]
@@ -417,7 +436,7 @@ module Google
417
436
  # ```
418
437
  # {
419
438
  # framework:
420
- # "organizations/\\{org}/locations/\\{location}/frameworks/\\{framework}",
439
+ # "organizations/\\{organization}/locations/\\{location}/frameworks/\\{framework}",
421
440
  # major_revision_id: 1
422
441
  # }
423
442
  # ```
@@ -446,6 +465,9 @@ module Google
446
465
  # Deployment is being deleted.
447
466
  DEPLOYMENT_STATE_DELETING = 3
448
467
 
468
+ # Deployment is being updated.
469
+ DEPLOYMENT_STATE_UPDATING = 8
470
+
449
471
  # Deployment has failed. All the changes made by the deployment were
450
472
  # successfully rolled back. You can retry or delete a deployment that's
451
473
  # in this state.
@@ -37,6 +37,9 @@ module Google
37
37
  # @!attribute [rw] filter
38
38
  # @return [::String]
39
39
  # Optional. The filtering results.
40
+ # @!attribute [rw] view
41
+ # @return [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceSummaryView]
42
+ # Optional. Specifies the level of detail to return in the response.
40
43
  class ListFrameworkComplianceSummariesRequest
41
44
  include ::Google::Protobuf::MessageExts
42
45
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -104,6 +107,9 @@ module Google
104
107
  # @!attribute [rw] end_time
105
108
  # @return [::Google::Protobuf::Timestamp]
106
109
  # Optional. The end time of the report.
110
+ # @!attribute [rw] filter
111
+ # @return [::String]
112
+ # Optional. The filtering results.
107
113
  class FetchFrameworkComplianceReportRequest
108
114
  include ::Google::Protobuf::MessageExts
109
115
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -260,6 +266,12 @@ module Google
260
266
  # @!attribute [rw] target_resource_details
261
267
  # @return [::Array<::Google::Cloud::CloudSecurityCompliance::V1::TargetResourceDetails>]
262
268
  # The target resource details for the framework.
269
+ # @!attribute [r] finding_count
270
+ # @return [::Integer]
271
+ # Output only. The count of the findings generated against the framework.
272
+ # @!attribute [r] controls_passing_trend
273
+ # @return [::Google::Cloud::CloudSecurityCompliance::V1::Trend]
274
+ # Output only. The trend of controls that are passing for the given duration.
263
275
  class FrameworkComplianceSummary
264
276
  include ::Google::Protobuf::MessageExts
265
277
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -467,6 +479,19 @@ module Google
467
479
  extend ::Google::Protobuf::MessageExts::ClassMethods
468
480
  end
469
481
 
482
+ # The trend of a compliance metric.
483
+ # @!attribute [r] duration
484
+ # @return [::Google::Protobuf::Duration]
485
+ # Output only. The duration for the trend.
486
+ # @!attribute [r] value_percent
487
+ # @return [::Float]
488
+ # Output only. The trend value as a percentage. The value can be positive or
489
+ # negative.
490
+ class Trend
491
+ include ::Google::Protobuf::MessageExts
492
+ extend ::Google::Protobuf::MessageExts::ClassMethods
493
+ end
494
+
470
495
  # The evaluation state of the control.
471
496
  module EvaluationState
472
497
  # Default value. This value is unused.
@@ -521,6 +546,23 @@ module Google
521
546
  # converge, based on attack path simulations (APS).
522
547
  CHOKEPOINT = 9
523
548
  end
549
+
550
+ # Specifies the view of the framework compliance summary to be returned.
551
+ # New values may be added in the future.
552
+ module FrameworkComplianceSummaryView
553
+ # The default / unset value. The API will default to the BASIC view.
554
+ FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED = 0
555
+
556
+ # Includes basic compliance metadata, but omits trend data.
557
+ FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC = 1
558
+
559
+ # Includes all information, including
560
+ # [finding_count][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.finding_count]
561
+ # and
562
+ # [controls_passing_trend][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.controls_passing_trend].
563
+ # Trend data is provided for the last 30 days.
564
+ FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL = 2
565
+ end
524
566
  end
525
567
  end
526
568
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-cloud_security_compliance-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC