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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +4 -4
  4. data/lib/google/cloud/cloud_security_compliance/v1/audit/client.rb +859 -0
  5. data/lib/google/cloud/cloud_security_compliance/v1/audit/credentials.rb +47 -0
  6. data/lib/google/cloud/cloud_security_compliance/v1/audit/operations.rb +841 -0
  7. data/lib/google/cloud/cloud_security_compliance/v1/audit/paths.rb +110 -0
  8. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/client.rb +796 -0
  9. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb +925 -0
  10. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/service_stub.rb +387 -0
  11. data/lib/google/cloud/cloud_security_compliance/v1/audit/rest.rb +54 -0
  12. data/lib/google/cloud/cloud_security_compliance/v1/audit.rb +56 -0
  13. data/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb +1 -1
  14. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/client.rb +608 -0
  15. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/credentials.rb +47 -0
  16. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/paths.rb +72 -0
  17. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/client.rb +559 -0
  18. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/service_stub.rb +234 -0
  19. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest.rb +54 -0
  20. data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service.rb +56 -0
  21. data/lib/google/cloud/cloud_security_compliance/v1/config/client.rb +133 -102
  22. data/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb +113 -99
  23. data/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb +80 -41
  24. data/lib/google/cloud/cloud_security_compliance/v1/deployment/operations.rb +20 -3
  25. data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb +60 -38
  26. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb +940 -0
  27. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/credentials.rb +47 -0
  28. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/paths.rb +142 -0
  29. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb +870 -0
  30. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/service_stub.rb +456 -0
  31. data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest.rb +53 -0
  32. data/lib/google/cloud/cloud_security_compliance/v1/monitoring.rb +55 -0
  33. data/lib/google/cloud/cloud_security_compliance/v1/rest.rb +4 -1
  34. data/lib/google/cloud/cloud_security_compliance/v1/version.rb +1 -1
  35. data/lib/google/cloud/cloud_security_compliance/v1.rb +5 -2
  36. data/lib/google/cloud/cloudsecuritycompliance/v1/audit_pb.rb +70 -0
  37. data/lib/google/cloud/cloudsecuritycompliance/v1/audit_services_pb.rb +51 -0
  38. data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_pb.rb +54 -0
  39. data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_services_pb.rb +54 -0
  40. data/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb +4 -1
  41. data/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb +1 -1
  42. data/lib/google/cloud/cloudsecuritycompliance/v1/config_services_pb.rb +58 -55
  43. data/lib/google/cloud/cloudsecuritycompliance/v1/deployment_services_pb.rb +9 -6
  44. data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb +74 -0
  45. data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_services_pb.rb +53 -0
  46. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/audit.rb +413 -0
  47. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.rb +108 -0
  48. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb +210 -181
  49. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb +69 -57
  50. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb +180 -139
  51. data/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb +527 -0
  52. data/proto_docs/google/type/interval.rb +45 -0
  53. metadata +34 -1
@@ -233,9 +233,10 @@ module Google
233
233
  # Service calls
234
234
 
235
235
  ##
236
- # Lists all Frameworks (both Built-in and Custom) available within a given
237
- # parent resource. This method supports pagination.
238
- # The latest major version of each Framework is returned.
236
+ # Lists the frameworks (both built-in and custom) that are available within
237
+ # the parent resource. The latest major version of each framework is
238
+ # returned.
239
+ # This method supports pagination.
239
240
  #
240
241
  # @overload list_frameworks(request, options = nil)
241
242
  # Pass arguments to `list_frameworks` via a request object, either of type
@@ -255,7 +256,7 @@ module Google
255
256
  # @param parent [::String]
256
257
  # Required. The parent resource name, in the format
257
258
  # `organizations/{organization}/locations/{location}`.
258
- # Only global location is supported.
259
+ # The only supported location is `global`.
259
260
  # @param page_size [::Integer]
260
261
  # Optional. The maximum number of frameworks to return. The default value is
261
262
  # `500`.
@@ -337,13 +338,11 @@ module Google
337
338
  end
338
339
 
339
340
  ##
340
- # Gets details of a single Framework.
341
- # This method retrieves a Framework resource, which can be either Built-in or
342
- # Custom, identified by its name.
341
+ # Gets details about a framework.
342
+ # This method retrieves the latest major version of the framework.
343
343
  #
344
- # By default, the latest major version of the Framework is returned.
345
- # A specific major version can be retrieved by specifying the
346
- # `major_revision_id` in the request.
344
+ # To retrieve a specific major version, include `major_revision_id` in
345
+ # the request.
347
346
  #
348
347
  # @overload get_framework(request, options = nil)
349
348
  # Pass arguments to `get_framework` via a request object, either of type
@@ -361,12 +360,12 @@ module Google
361
360
  # the default parameter values, pass an empty Hash as a request object (see above).
362
361
  #
363
362
  # @param name [::String]
364
- # Required. The name of the framework to retrieve.
365
- # Format:
366
- # organizations/\\{organization}/locations/\\{location}/frameworks/\\{framework_id}
363
+ # Required. The name of the framework to retrieve, in the format
364
+ # `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
365
+ # The only supported location is `global`.
367
366
  # @param major_revision_id [::Integer]
368
- # Optional. The Framework major version to retrieve. If not specified, the
369
- # most recently updated revision_id is retrieved.
367
+ # Optional. The framework major version to retrieve. If not specified, the
368
+ # most recently updated `revision_id` is retrieved.
370
369
  #
371
370
  # @yield [response, operation] Access the result along with the RPC operation
372
371
  # @yieldparam response [::Google::Cloud::CloudSecurityCompliance::V1::Framework]
@@ -433,9 +432,9 @@ module Google
433
432
  end
434
433
 
435
434
  ##
436
- # Creates a new Framework with type `Custom` under a given parent resource.
437
- # Frameworks with type `Built-in` are managed by Google and cannot be created
438
- # through this API.
435
+ # Creates a custom framework in a given parent resource.
436
+ # You can't create built-in frameworks because those are managed by
437
+ # Google.
439
438
  #
440
439
  # @overload create_framework(request, options = nil)
441
440
  # Pass arguments to `create_framework` via a request object, either of type
@@ -455,12 +454,12 @@ module Google
455
454
  # @param parent [::String]
456
455
  # Required. The parent resource name, in the format
457
456
  # `organizations/{organization}/locations/{location}`.
457
+ # The only supported location is `global`.
458
458
  # @param framework_id [::String]
459
- # Required. ID of the framework.
460
- # This is not the full name of the framework.
461
- # This is the last part of the full name of the framework.
459
+ # Required. The identifier (ID) of the framework. The ID is not the full name
460
+ # of the framework; it's the last part of the full name of the framework.
462
461
  # @param framework [::Google::Cloud::CloudSecurityCompliance::V1::Framework, ::Hash]
463
- # Required. The resource being created
462
+ # Required. The resource being created.
464
463
  #
465
464
  # @yield [response, operation] Access the result along with the RPC operation
466
465
  # @yieldparam response [::Google::Cloud::CloudSecurityCompliance::V1::Framework]
@@ -527,17 +526,18 @@ module Google
527
526
  end
528
527
 
529
528
  ##
530
- # Updates a single Framework.
531
- # This method allows for partial updates of a Framework resource. The fields
532
- # to be updated are specified using the `update_mask`.
529
+ # Updates a custom framework.
530
+ # This method allows for partial updates of a framework. Use the
531
+ # `update_mask` to specify which fields to update. Consider the following:
533
532
  #
534
- # - If an `update_mask` is provided, only the fields specified in the mask
535
- # will be updated.
536
- # - If no `update_mask` is provided, all fields present in the request's
537
- # `framework` body will be used to overwrite the existing resource.
533
+ # - If you provide an `update_mask`, only the fields that are specified
534
+ # in the mask are updated.
535
+ # - If you don't provide an `update_mask`, all the fields that are present
536
+ # in the request's `framework` body are used to overwrite the existing
537
+ # resource.
538
538
  #
539
- # This operation can only be performed on Frameworks with type `CUSTOM`.
540
- # A successful update will result in a new version of the Framework.
539
+ # You can only update frameworks with the `CUSTOM` type.
540
+ # A successful update creates a new version of the framework.
541
541
  #
542
542
  # @overload update_framework(request, options = nil)
543
543
  # Pass arguments to `update_framework` via a request object, either of type
@@ -555,14 +555,13 @@ module Google
555
555
  # the default parameter values, pass an empty Hash as a request object (see above).
556
556
  #
557
557
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
558
- # Optional. Field mask is used to specify the fields to be overwritten in the
559
- # Framework resource by the update.
560
- # The fields specified in the update_mask are relative to the resource, not
561
- # the full request. A field will be overwritten if it is in the mask. If the
562
- # user does not provide a mask then all fields present in the request will be
563
- # overwritten.
558
+ # Optional. A field mask is used to specify the fields to be overwritten in
559
+ # the framework resource by the update. The fields specified in the
560
+ # `update_mask` are relative to the resource, not the full request. A field
561
+ # is overwritten if it is in the mask. If you don't provide a mask then all
562
+ # fields present in the request will be overwritten.
564
563
  # @param framework [::Google::Cloud::CloudSecurityCompliance::V1::Framework, ::Hash]
565
- # Required. The resource being updated
564
+ # Required. The resource that is being updated.
566
565
  # @param major_revision_id [::Integer]
567
566
  # Optional. The major version ID of the framework to update.
568
567
  #
@@ -631,14 +630,13 @@ module Google
631
630
  end
632
631
 
633
632
  ##
634
- # Deletes a single Custom Framework, including all its minor and
635
- # minor revisions.
633
+ # Deletes a custom framework, including all its major and
634
+ # minor revisions. Consider the following:
636
635
  #
637
- # - This operation can only be performed on Frameworks with type `CUSTOM`.
638
- # Built-in Frameworks cannot be deleted.
639
- # - The Framework cannot be deleted if it is currently deployed on any
640
- # resource.
641
- # - This action is permanent and cannot be undone.
636
+ # - You can't delete built-in frameworks. You can only delete frameworks
637
+ # with type `CUSTOM`.
638
+ # - You can't delete frameworks that are deployed to a resource.
639
+ # - You can't restore a deleted framework. This action is permanent.
642
640
  #
643
641
  # @overload delete_framework(request, options = nil)
644
642
  # Pass arguments to `delete_framework` via a request object, either of type
@@ -656,8 +654,9 @@ module Google
656
654
  # the default parameter values, pass an empty Hash as a request object (see above).
657
655
  #
658
656
  # @param name [::String]
659
- # Required. Name of the resource, in the format
657
+ # Required. The name of the resource, in the format
660
658
  # `organizations/{organization}/locations/{location}/frameworks/{framework}`.
659
+ # The only supported location is `global`.
661
660
  #
662
661
  # @yield [response, operation] Access the result along with the RPC operation
663
662
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -724,9 +723,10 @@ module Google
724
723
  end
725
724
 
726
725
  ##
727
- # Lists all CloudControls (both Built-in and Custom) available within a given
728
- # parent resource. This method supports pagination.
729
- # The latest major version of each CloudControl is returned.
726
+ # Lists the cloud controls (both built-in and custom) that are available
727
+ # in a given parent resource. The latest major version of each cloud control
728
+ # is returned.
729
+ # This method supports pagination.
730
730
  #
731
731
  # @overload list_cloud_controls(request, options = nil)
732
732
  # Pass arguments to `list_cloud_controls` via a request object, either of type
@@ -746,19 +746,21 @@ module Google
746
746
  # @param parent [::String]
747
747
  # Required. The parent resource name, in the format
748
748
  # `organizations/{organization}/locations/{location}`.
749
+ # The only supported location is `global`.
749
750
  # @param page_size [::Integer]
750
- # Optional. The maximum number of CloudControls to return. The default value
751
+ # Optional. The maximum number of cloud controls to return. The default value
751
752
  # is `500`.
752
753
  #
753
754
  # If you exceed the maximum value of `1000`, then the service uses the
754
755
  # maximum value.
755
756
  # @param page_token [::String]
756
- # Optional. A pagination token returned from a previous request to list
757
- # CloudControls. Provide this token to retrieve the next page of results.
757
+ # Optional. A pagination token that's returned from a previous request to
758
+ # list cloud controls. Provide this token to retrieve the next page of
759
+ # results.
758
760
  #
759
- # When paginating, parent provided to
760
- # ListCloudControls request must match the call that provided the page
761
- # token.
761
+ # When paginating, the parent that you provide to the
762
+ # {::Google::Cloud::CloudSecurityCompliance::V1::Config::Client#list_cloud_controls ListCloudControls}
763
+ # request must match the call that provided the page token.
762
764
  #
763
765
  # @yield [response, operation] Access the result along with the RPC operation
764
766
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::CloudControl>]
@@ -831,13 +833,13 @@ module Google
831
833
  end
832
834
 
833
835
  ##
834
- # Gets details of a single CloudControl.
835
- # This method retrieves a CloudControl resource, which can be either Built-in
836
- # or Custom, identified by its name.
836
+ # Gets details about a cloud control.
837
+ # This method retrieves the latest major version of a cloud control that
838
+ # you identify by name.
837
839
  #
838
- # By default, the latest major version of the CloudControl is returned.
839
- # A specific major version can be retrieved by specifying the
840
- # `major_revision_id` in the request.
840
+ # By default, the latest major version of the cloud control is returned.
841
+ # To retrieve a specific major version, include `major_revision_id` in
842
+ # the request.
841
843
  #
842
844
  # @overload get_cloud_control(request, options = nil)
843
845
  # Pass arguments to `get_cloud_control` via a request object, either of type
@@ -849,14 +851,18 @@ module Google
849
851
  # @param options [::Gapic::CallOptions, ::Hash]
850
852
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
851
853
  #
852
- # @overload get_cloud_control(name: nil)
854
+ # @overload get_cloud_control(name: nil, major_revision_id: nil)
853
855
  # Pass arguments to `get_cloud_control` via keyword arguments. Note that at
854
856
  # least one keyword argument is required. To specify no parameters, or to keep all
855
857
  # the default parameter values, pass an empty Hash as a request object (see above).
856
858
  #
857
859
  # @param name [::String]
858
- # Required. The name of the cloudcontrol to retrieve in the format:
859
- # organizations/\\{organization}/locations/\\{location}/cloudControls/\\{cloud_control}
860
+ # Required. The name of the cloud control to retrieve, in the format
861
+ # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
862
+ # The only supported location is `global`.
863
+ # @param major_revision_id [::Integer]
864
+ # Optional. The major version of the cloud control to retrieve. If not
865
+ # specified, the most recently updated `revision_id` is retrieved.
860
866
  #
861
867
  # @yield [response, operation] Access the result along with the RPC operation
862
868
  # @yieldparam response [::Google::Cloud::CloudSecurityCompliance::V1::CloudControl]
@@ -923,9 +929,10 @@ module Google
923
929
  end
924
930
 
925
931
  ##
926
- # Creates a new CloudControl with type `Custom` under a given parent
927
- # resource. `Built-in` CloudControls are managed by Google and cannot be
928
- # created through this API.
932
+ # Creates a custom cloud control in a given parent
933
+ # resource.
934
+ # You can't create built-in cloud controls because those are managed by
935
+ # Google.
929
936
  #
930
937
  # @overload create_cloud_control(request, options = nil)
931
938
  # Pass arguments to `create_cloud_control` via a request object, either of type
@@ -945,12 +952,13 @@ module Google
945
952
  # @param parent [::String]
946
953
  # Required. The parent resource name, in the format
947
954
  # `organizations/{organization}/locations/{location}`.
955
+ # The only supported location is `global`.
948
956
  # @param cloud_control_id [::String]
949
- # Required. ID of the CloudControl.
950
- # This is the last segment of the CloudControl resource name.
951
- # Format: `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
957
+ # Required. The identifier for the cloud control, which is the last segment
958
+ # of the cloud control name. The format is
959
+ # `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`.
952
960
  # @param cloud_control [::Google::Cloud::CloudSecurityCompliance::V1::CloudControl, ::Hash]
953
- # Required. The resource being created
961
+ # Required. The cloud control that's being created.
954
962
  #
955
963
  # @yield [response, operation] Access the result along with the RPC operation
956
964
  # @yieldparam response [::Google::Cloud::CloudSecurityCompliance::V1::CloudControl]
@@ -1017,16 +1025,18 @@ module Google
1017
1025
  end
1018
1026
 
1019
1027
  ##
1020
- # Updates a single CloudControl.
1021
- # This method allows for partial updates of a Custom CloudControl resource.
1022
- # Built-in CloudControls cannot be updated.
1028
+ # Updates a custom cloud control.
1029
+ # This method allows for partial updates of a cloud control. Use the
1030
+ # `update_mask` to specify which fields to update. Consider the following:
1023
1031
  #
1024
- # - If an `update_mask` is provided, only the fields specified in the mask
1025
- # will be updated.
1026
- # - If no `update_mask` is provided, all fields present in the request's
1027
- # `cloud_control` body will be used to overwrite the existing resource.
1032
+ # - If you provide an `update_mask`, only the fields that are specified
1033
+ # in the mask are updated.
1034
+ # - If you don't provide an `update_mask`, all the fields that are present
1035
+ # in the request's `cloud_control` body are used to overwrite the existing
1036
+ # resource.
1028
1037
  #
1029
- # A successful update will result in a new version of the CloudControl.
1038
+ # You can only update cloud controls with the `CUSTOM` type.
1039
+ # A successful update creates a new version of the cloud control.
1030
1040
  #
1031
1041
  # @overload update_cloud_control(request, options = nil)
1032
1042
  # Pass arguments to `update_cloud_control` via a request object, either of type
@@ -1044,19 +1054,22 @@ module Google
1044
1054
  # the default parameter values, pass an empty Hash as a request object (see above).
1045
1055
  #
1046
1056
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1047
- # Optional. Field mask is used to specify the fields to be overwritten in the
1048
- # CloudControl resource by the update.
1049
- # The fields specified in the update_mask are relative to the resource, not
1050
- # the full request. A field will be overwritten if it is in the mask. If the
1051
- # user does not provide a mask then all fields present in the request will be
1052
- # overwritten. The fields that can be updated are:
1053
- # 1. Display_name
1054
- # 2. Description
1055
- # 3. Parameters
1056
- # 4. Rules
1057
- # 5. ParameterSpec.
1057
+ # Optional. Use a field mask to specify the fields to be overwritten in the
1058
+ # cloud control during the update.
1059
+ # The fields that you specify in the `update_mask` are relative to the
1060
+ # cloud control, not the full request. A field is overwritten if it is in
1061
+ # the mask. If you don't provide a mask, all fields in the request
1062
+ # are updated.
1063
+ #
1064
+ # You can update the following fields:
1065
+ #
1066
+ # - Display name
1067
+ # - Description
1068
+ # - Parameters
1069
+ # - Rules
1070
+ # - Parameter specification
1058
1071
  # @param cloud_control [::Google::Cloud::CloudSecurityCompliance::V1::CloudControl, ::Hash]
1059
- # Required. The resource being updated
1072
+ # Required. The cloud control that you're updating.
1060
1073
  #
1061
1074
  # @yield [response, operation] Access the result along with the RPC operation
1062
1075
  # @yieldparam response [::Google::Cloud::CloudSecurityCompliance::V1::CloudControl]
@@ -1123,14 +1136,14 @@ module Google
1123
1136
  end
1124
1137
 
1125
1138
  ##
1126
- # Deletes a single Custom CloudControl, including all its
1127
- # major and minor revisions.
1139
+ # Deletes a custom cloud control, including all its
1140
+ # major and minor revisions. Consider the following:
1128
1141
  #
1129
- # - This operation can only be performed on CloudControls with type `CUSTOM`.
1130
- # Built-in CloudControls cannot be deleted.
1131
- # - The CloudControl cannot be deleted if any of its revisions are currently
1132
- # referenced by any Framework.
1133
- # - This action is permanent and cannot be undone.
1142
+ # - You can't delete built-in cloud controls. You can only delete cloud
1143
+ # controls with type `CUSTOM`.
1144
+ # - You can't delete cloud controls if any of the versions are referenced
1145
+ # by a framework.
1146
+ # - You can't restore a deleted cloud control. This action is permanent.
1134
1147
  #
1135
1148
  # @overload delete_cloud_control(request, options = nil)
1136
1149
  # Pass arguments to `delete_cloud_control` via a request object, either of type
@@ -1148,8 +1161,9 @@ module Google
1148
1161
  # the default parameter values, pass an empty Hash as a request object (see above).
1149
1162
  #
1150
1163
  # @param name [::String]
1151
- # Required. Name of the resource, in the format
1164
+ # Required. The name of the cloud control to delete, in the format
1152
1165
  # `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
1166
+ # The only supported location is `global`.
1153
1167
  #
1154
1168
  # @yield [response, operation] Access the result along with the RPC operation
1155
1169
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -1250,8 +1264,6 @@ module Google
1250
1264
  # @return [::String,nil]
1251
1265
  # @!attribute [rw] credentials
1252
1266
  # Credentials to send with calls. You may provide any of the following types:
1253
- # * (`String`) The path to a service account key file in JSON format
1254
- # * (`Hash`) A service account key as a Hash
1255
1267
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1256
1268
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1257
1269
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1260,7 +1272,26 @@ module Google
1260
1272
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1261
1273
  # * (`nil`) indicating no credentials
1262
1274
  #
1263
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1275
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1276
+ # is deprecated. Providing an unvalidated credential configuration to
1277
+ # Google APIs can compromise the security of your systems and data.
1278
+ #
1279
+ # @example
1280
+ #
1281
+ # # The recommended way to provide credentials is to use the `make_creds` method
1282
+ # # on the appropriate credentials class for your environment.
1283
+ #
1284
+ # require "googleauth"
1285
+ #
1286
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1287
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1288
+ # )
1289
+ #
1290
+ # client = ::Google::Cloud::CloudSecurityCompliance::V1::Config::Client.new do |config|
1291
+ # config.credentials = credentials
1292
+ # end
1293
+ #
1294
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1264
1295
  # external source for authentication to Google Cloud, you must validate it before
1265
1296
  # providing it to a Google API client library. Providing an unvalidated credential
1266
1297
  # configuration to Google APIs can compromise the security of your systems and data.