google-cloud-cloud_security_compliance-v1 0.1.0 → 0.2.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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +4 -4
- data/lib/google/cloud/cloud_security_compliance/v1/audit/client.rb +859 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/credentials.rb +47 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/operations.rb +841 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/paths.rb +110 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/client.rb +796 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb +925 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/service_stub.rb +387 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/rest.rb +54 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit.rb +56 -0
- data/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb +1 -1
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/client.rb +608 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/credentials.rb +47 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/paths.rb +72 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/client.rb +559 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/service_stub.rb +234 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest.rb +54 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service.rb +56 -0
- data/lib/google/cloud/cloud_security_compliance/v1/config/client.rb +133 -102
- data/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb +113 -99
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb +80 -41
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/operations.rb +20 -3
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb +60 -38
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb +940 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/credentials.rb +47 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/paths.rb +142 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb +870 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/service_stub.rb +456 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest.rb +53 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring.rb +55 -0
- data/lib/google/cloud/cloud_security_compliance/v1/rest.rb +4 -1
- data/lib/google/cloud/cloud_security_compliance/v1/version.rb +1 -1
- data/lib/google/cloud/cloud_security_compliance/v1.rb +5 -2
- data/lib/google/cloud/cloudsecuritycompliance/v1/audit_pb.rb +70 -0
- data/lib/google/cloud/cloudsecuritycompliance/v1/audit_services_pb.rb +51 -0
- data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_pb.rb +54 -0
- data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_services_pb.rb +54 -0
- data/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb +4 -1
- data/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb +1 -1
- data/lib/google/cloud/cloudsecuritycompliance/v1/config_services_pb.rb +58 -55
- data/lib/google/cloud/cloudsecuritycompliance/v1/deployment_services_pb.rb +9 -6
- data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb +74 -0
- data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_services_pb.rb +53 -0
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/audit.rb +413 -0
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.rb +108 -0
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb +210 -181
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb +69 -57
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb +180 -139
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb +527 -0
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +34 -1
|
@@ -642,8 +642,6 @@ module Google
|
|
|
642
642
|
# @return [::String,nil]
|
|
643
643
|
# @!attribute [rw] credentials
|
|
644
644
|
# Credentials to send with calls. You may provide any of the following types:
|
|
645
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
646
|
-
# * (`Hash`) A service account key as a Hash
|
|
647
645
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
648
646
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
649
647
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -652,7 +650,26 @@ module Google
|
|
|
652
650
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
653
651
|
# * (`nil`) indicating no credentials
|
|
654
652
|
#
|
|
655
|
-
# Warning:
|
|
653
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
654
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
655
|
+
# Google APIs can compromise the security of your systems and data.
|
|
656
|
+
#
|
|
657
|
+
# @example
|
|
658
|
+
#
|
|
659
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
660
|
+
# # on the appropriate credentials class for your environment.
|
|
661
|
+
#
|
|
662
|
+
# require "googleauth"
|
|
663
|
+
#
|
|
664
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
665
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
666
|
+
# )
|
|
667
|
+
#
|
|
668
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
|
669
|
+
# config.credentials = credentials
|
|
670
|
+
# end
|
|
671
|
+
#
|
|
672
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
656
673
|
# external source for authentication to Google Cloud, you must validate it before
|
|
657
674
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
658
675
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -233,7 +233,10 @@ module Google
|
|
|
233
233
|
# Service calls
|
|
234
234
|
|
|
235
235
|
##
|
|
236
|
-
# Creates a
|
|
236
|
+
# Creates a framework deployment in a given parent resource. A
|
|
237
|
+
# framework deployment lets you assign a particular framework version to an
|
|
238
|
+
# organization, folder, or project so that you can control and monitor
|
|
239
|
+
# those resources using the framework's cloud controls.
|
|
237
240
|
#
|
|
238
241
|
# @overload create_framework_deployment(request, options = nil)
|
|
239
242
|
# Pass arguments to `create_framework_deployment` via a request object, either of type
|
|
@@ -251,15 +254,15 @@ module Google
|
|
|
251
254
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
252
255
|
#
|
|
253
256
|
# @param parent [::String]
|
|
254
|
-
# Required. The parent resource of the
|
|
255
|
-
# organizations
|
|
256
|
-
# Only global location is supported.
|
|
257
|
+
# Required. The parent resource of the framework deployment in the format
|
|
258
|
+
# `organizations/{organization}/locations/{location}`.
|
|
259
|
+
# Only the global location is supported.
|
|
257
260
|
# @param framework_deployment_id [::String]
|
|
258
|
-
# Optional.
|
|
259
|
-
# parent.
|
|
261
|
+
# Optional. An identifier for the framework deployment that's unique in scope
|
|
262
|
+
# of the parent. If you don't specify a value, then a random UUID is
|
|
260
263
|
# generated.
|
|
261
264
|
# @param framework_deployment [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkDeployment, ::Hash]
|
|
262
|
-
# Required. The
|
|
265
|
+
# Required. The framework deployment that you're creating.
|
|
263
266
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
264
267
|
# @yieldparam result [::Gapic::Operation]
|
|
265
268
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -328,7 +331,7 @@ module Google
|
|
|
328
331
|
end
|
|
329
332
|
|
|
330
333
|
##
|
|
331
|
-
# Deletes a
|
|
334
|
+
# Deletes a framework deployment.
|
|
332
335
|
#
|
|
333
336
|
# @overload delete_framework_deployment(request, options = nil)
|
|
334
337
|
# Pass arguments to `delete_framework_deployment` via a request object, either of type
|
|
@@ -346,15 +349,16 @@ module Google
|
|
|
346
349
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
347
350
|
#
|
|
348
351
|
# @param name [::String]
|
|
349
|
-
# Required. name of the
|
|
350
|
-
# format
|
|
351
|
-
# organizations
|
|
352
|
+
# Required. The name of the framework deployment that you want to delete,
|
|
353
|
+
# in the format
|
|
354
|
+
# `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
|
|
355
|
+
# The only supported location is `global`.
|
|
352
356
|
# @param etag [::String]
|
|
353
357
|
# Optional. An opaque identifier for the current version of the resource.
|
|
354
358
|
#
|
|
355
359
|
# If you provide this value, then it must match the existing value. If the
|
|
356
360
|
# values don't match, then the request fails with an
|
|
357
|
-
# [ABORTED][google.rpc.Code.ABORTED] error.
|
|
361
|
+
# [`ABORTED`][google.rpc.Code.ABORTED] error.
|
|
358
362
|
#
|
|
359
363
|
# If you omit this value, then the resource is deleted regardless of its
|
|
360
364
|
# current `etag` value.
|
|
@@ -426,7 +430,7 @@ module Google
|
|
|
426
430
|
end
|
|
427
431
|
|
|
428
432
|
##
|
|
429
|
-
# Gets details
|
|
433
|
+
# Gets details about a framework deployment.
|
|
430
434
|
#
|
|
431
435
|
# @overload get_framework_deployment(request, options = nil)
|
|
432
436
|
# Pass arguments to `get_framework_deployment` via a request object, either of type
|
|
@@ -444,8 +448,9 @@ module Google
|
|
|
444
448
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
445
449
|
#
|
|
446
450
|
# @param name [::String]
|
|
447
|
-
# Required.
|
|
448
|
-
# organizations
|
|
451
|
+
# Required. The name of the framework deployment, in the format
|
|
452
|
+
# `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
|
|
453
|
+
# The only supported location is `global`.
|
|
449
454
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
450
455
|
# @yieldparam result [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkDeployment]
|
|
451
456
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -505,7 +510,7 @@ module Google
|
|
|
505
510
|
end
|
|
506
511
|
|
|
507
512
|
##
|
|
508
|
-
# Lists
|
|
513
|
+
# Lists the framework deployments in a given parent resource.
|
|
509
514
|
#
|
|
510
515
|
# @overload list_framework_deployments(request, options = nil)
|
|
511
516
|
# Pass arguments to `list_framework_deployments` via a request object, either of type
|
|
@@ -523,19 +528,27 @@ module Google
|
|
|
523
528
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
524
529
|
#
|
|
525
530
|
# @param parent [::String]
|
|
526
|
-
# Required. parent resource of the
|
|
527
|
-
# organizations
|
|
528
|
-
#
|
|
531
|
+
# Required. The parent resource of the framework deployment, in the format
|
|
532
|
+
# `organizations/{organization}/locations/{location}`.
|
|
533
|
+
# The only supported location is `global`.
|
|
529
534
|
# @param page_size [::Integer]
|
|
530
|
-
# Optional.
|
|
531
|
-
# requested.
|
|
535
|
+
# Optional. The requested page size. The server might return fewer items than
|
|
536
|
+
# requested.
|
|
537
|
+
# If unspecified, the server picks an appropriate default.
|
|
532
538
|
# @param page_token [::String]
|
|
533
|
-
# Optional. A token
|
|
539
|
+
# Optional. A token that identifies a page of results the server should
|
|
540
|
+
# return.
|
|
534
541
|
# @param filter [::String]
|
|
535
|
-
# Optional.
|
|
536
|
-
# https://google.aip.dev/
|
|
542
|
+
# Optional. The filter to be applied on the resource, as defined by
|
|
543
|
+
# [AIP-160: Filtering](https://google.aip.dev/160).
|
|
537
544
|
# @param order_by [::String]
|
|
538
|
-
# Optional.
|
|
545
|
+
# Optional. The sort order for the results. The following values are
|
|
546
|
+
# supported:
|
|
547
|
+
#
|
|
548
|
+
# * `name`
|
|
549
|
+
# * `name desc`
|
|
550
|
+
#
|
|
551
|
+
# If you do not specify a value, then the results are not sorted.
|
|
539
552
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
540
553
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::FrameworkDeployment>]
|
|
541
554
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -601,7 +614,7 @@ module Google
|
|
|
601
614
|
end
|
|
602
615
|
|
|
603
616
|
##
|
|
604
|
-
# Gets details
|
|
617
|
+
# Gets details about a cloud control deployment.
|
|
605
618
|
#
|
|
606
619
|
# @overload get_cloud_control_deployment(request, options = nil)
|
|
607
620
|
# Pass arguments to `get_cloud_control_deployment` via a request object, either of type
|
|
@@ -619,8 +632,9 @@ module Google
|
|
|
619
632
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
620
633
|
#
|
|
621
634
|
# @param name [::String]
|
|
622
|
-
# Required.
|
|
623
|
-
# organizations
|
|
635
|
+
# Required. The name for the cloud control deployment, in the format
|
|
636
|
+
# `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
|
|
637
|
+
# The only supported location is `global`.
|
|
624
638
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
625
639
|
# @yieldparam result [::Google::Cloud::CloudSecurityCompliance::V1::CloudControlDeployment]
|
|
626
640
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -680,7 +694,7 @@ module Google
|
|
|
680
694
|
end
|
|
681
695
|
|
|
682
696
|
##
|
|
683
|
-
# Lists
|
|
697
|
+
# Lists the cloud conrol deployments in a given parent resource.
|
|
684
698
|
#
|
|
685
699
|
# @overload list_cloud_control_deployments(request, options = nil)
|
|
686
700
|
# Pass arguments to `list_cloud_control_deployments` via a request object, either of type
|
|
@@ -698,19 +712,27 @@ module Google
|
|
|
698
712
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
699
713
|
#
|
|
700
714
|
# @param parent [::String]
|
|
701
|
-
# Required. parent resource
|
|
702
|
-
# organizations
|
|
703
|
-
#
|
|
715
|
+
# Required. The parent resource for the cloud control deployment, in the
|
|
716
|
+
# format `organizations/{organization}/locations/{location}`. The only
|
|
717
|
+
# supported location is `global`.
|
|
704
718
|
# @param page_size [::Integer]
|
|
705
|
-
# Optional.
|
|
706
|
-
# requested.
|
|
719
|
+
# Optional. The requested page size. The server might return fewer items than
|
|
720
|
+
# you requested.
|
|
721
|
+
# If unspecified, the server picks an appropriate default.
|
|
707
722
|
# @param page_token [::String]
|
|
708
|
-
# Optional. A token
|
|
723
|
+
# Optional. A token that identifies the page of results that the server
|
|
724
|
+
# should return.
|
|
709
725
|
# @param filter [::String]
|
|
710
|
-
# Optional.
|
|
711
|
-
# https://google.aip.dev/
|
|
726
|
+
# Optional. The filter to apply on the resource, as defined by
|
|
727
|
+
# [AIP-160: Filtering](https://google.aip.dev/160).
|
|
712
728
|
# @param order_by [::String]
|
|
713
|
-
# Optional.
|
|
729
|
+
# Optional. The sort order for the results. The following values are
|
|
730
|
+
# supported:
|
|
731
|
+
#
|
|
732
|
+
# * `name`
|
|
733
|
+
# * `name desc`
|
|
734
|
+
#
|
|
735
|
+
# If you do not specify a value, then the results are not sorted.
|
|
714
736
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
715
737
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::CloudControlDeployment>]
|
|
716
738
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|