google-cloud-cloud_security_compliance-v1 0.4.0 → 0.5.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/README.md +1 -1
- data/lib/google/cloud/cloud_security_compliance/v1/audit/client.rb +2 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/operations.rb +2 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/client.rb +2 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb +31 -0
- data/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb +16 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/client.rb +2 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/client.rb +2 -0
- data/lib/google/cloud/cloud_security_compliance/v1/config/client.rb +41 -16
- data/lib/google/cloud/cloud_security_compliance/v1/config/paths.rb +81 -16
- data/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb +41 -16
- data/lib/google/cloud/cloud_security_compliance/v1/config/rest/service_stub.rb +74 -0
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb +20 -7
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/operations.rb +2 -0
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/paths.rb +124 -16
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb +20 -7
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/operations.rb +31 -0
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/service_stub.rb +43 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb +8 -2
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb +8 -2
- data/lib/google/cloud/cloud_security_compliance/v1/version.rb +1 -1
- data/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb +3 -1
- data/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb +1 -1
- data/lib/google/cloud/cloudsecuritycompliance/v1/deployment_pb.rb +1 -1
- data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb +4 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb +154 -13
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb +39 -16
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb +34 -12
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb +42 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6bf8480a847cc2dabd118a2bc809ae8d77721f026053fb54a950bc5c120fa2b3
|
|
4
|
+
data.tar.gz: de4909348cb57324856c69b9352950bbbbcefee0583fca0e665f28b83e9a3682
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 306ff42fd4d40868be54c94507eac608837e8a62e2a30e75d0032390c80069a120889b0f0ae24b830c495550e105c05435d8c813e982a1a28fd426cdc3f627f9
|
|
7
|
+
data.tar.gz: 1939121a3c71e7df34fbba29659a8bda709add1617cdb3e8448b103c7ee8327a8944e75e79d43e800b3d6bc0bdf08f13588661819151c2154d1aeebf69aa6324
|
data/README.md
CHANGED
|
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
|
86
86
|
|
|
87
87
|
## Supported Ruby Versions
|
|
88
88
|
|
|
89
|
-
This library is supported on Ruby 3.
|
|
89
|
+
This library is supported on Ruby 3.2+.
|
|
90
90
|
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
@@ -728,6 +728,7 @@ module Google
|
|
|
728
728
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
729
729
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
730
730
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
731
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
731
732
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
732
733
|
# trigger a retry.
|
|
733
734
|
# @return [::Hash]
|
|
@@ -811,6 +812,7 @@ module Google
|
|
|
811
812
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
812
813
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
813
814
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
815
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
814
816
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
815
817
|
# trigger a retry.
|
|
816
818
|
#
|
|
@@ -703,6 +703,7 @@ module Google
|
|
|
703
703
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
704
704
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
705
705
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
706
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
706
707
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
707
708
|
# trigger a retry.
|
|
708
709
|
# @return [::Hash]
|
|
@@ -786,6 +787,7 @@ module Google
|
|
|
786
787
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
787
788
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
788
789
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
790
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
789
791
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
790
792
|
# trigger a retry.
|
|
791
793
|
#
|
|
@@ -668,6 +668,7 @@ module Google
|
|
|
668
668
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
669
669
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
670
670
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
671
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
671
672
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
672
673
|
# trigger a retry.
|
|
673
674
|
# @return [::Hash]
|
|
@@ -747,6 +748,7 @@ module Google
|
|
|
747
748
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
748
749
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
749
750
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
751
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
750
752
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
751
753
|
# trigger a retry.
|
|
752
754
|
#
|
|
@@ -541,6 +541,7 @@ module Google
|
|
|
541
541
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
542
542
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
543
543
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
544
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
544
545
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
545
546
|
# trigger a retry.
|
|
546
547
|
# @return [::Hash]
|
|
@@ -613,6 +614,7 @@ module Google
|
|
|
613
614
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
614
615
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
615
616
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
617
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
616
618
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
617
619
|
# trigger a retry.
|
|
618
620
|
#
|
|
@@ -850,6 +852,13 @@ module Google
|
|
|
850
852
|
["name", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
|
851
853
|
]
|
|
852
854
|
)
|
|
855
|
+
.with_bindings(
|
|
856
|
+
uri_method: :get,
|
|
857
|
+
uri_template: "/v1/{name}/operations",
|
|
858
|
+
matches: [
|
|
859
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
860
|
+
]
|
|
861
|
+
)
|
|
853
862
|
transcoder.transcode request_pb
|
|
854
863
|
end
|
|
855
864
|
|
|
@@ -871,6 +880,13 @@ module Google
|
|
|
871
880
|
["name", %r{^organizations/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
|
|
872
881
|
]
|
|
873
882
|
)
|
|
883
|
+
.with_bindings(
|
|
884
|
+
uri_method: :get,
|
|
885
|
+
uri_template: "/v1/{name}",
|
|
886
|
+
matches: [
|
|
887
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
|
|
888
|
+
]
|
|
889
|
+
)
|
|
874
890
|
transcoder.transcode request_pb
|
|
875
891
|
end
|
|
876
892
|
|
|
@@ -892,6 +908,13 @@ module Google
|
|
|
892
908
|
["name", %r{^organizations/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
|
|
893
909
|
]
|
|
894
910
|
)
|
|
911
|
+
.with_bindings(
|
|
912
|
+
uri_method: :delete,
|
|
913
|
+
uri_template: "/v1/{name}",
|
|
914
|
+
matches: [
|
|
915
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
|
|
916
|
+
]
|
|
917
|
+
)
|
|
895
918
|
transcoder.transcode request_pb
|
|
896
919
|
end
|
|
897
920
|
|
|
@@ -914,6 +937,14 @@ module Google
|
|
|
914
937
|
["name", %r{^organizations/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
|
|
915
938
|
]
|
|
916
939
|
)
|
|
940
|
+
.with_bindings(
|
|
941
|
+
uri_method: :post,
|
|
942
|
+
uri_template: "/v1/{name}:cancel",
|
|
943
|
+
body: "*",
|
|
944
|
+
matches: [
|
|
945
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
|
|
946
|
+
]
|
|
947
|
+
)
|
|
917
948
|
transcoder.transcode request_pb
|
|
918
949
|
end
|
|
919
950
|
end
|
|
@@ -51,6 +51,14 @@ module Google
|
|
|
51
51
|
["name", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
|
52
52
|
],
|
|
53
53
|
body: nil
|
|
54
|
+
),
|
|
55
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
|
56
|
+
uri_method: :get,
|
|
57
|
+
uri_template: "/v1/{name}",
|
|
58
|
+
matches: [
|
|
59
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
60
|
+
],
|
|
61
|
+
body: nil
|
|
54
62
|
)
|
|
55
63
|
]
|
|
56
64
|
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
|
@@ -62,6 +70,14 @@ module Google
|
|
|
62
70
|
["name", %r{^organizations/[^/]+/?$}, false]
|
|
63
71
|
],
|
|
64
72
|
body: nil
|
|
73
|
+
),
|
|
74
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
|
75
|
+
uri_method: :get,
|
|
76
|
+
uri_template: "/v1/{name}/locations",
|
|
77
|
+
matches: [
|
|
78
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
|
79
|
+
],
|
|
80
|
+
body: nil
|
|
65
81
|
)
|
|
66
82
|
]
|
|
67
83
|
default_config
|
|
@@ -491,6 +491,7 @@ module Google
|
|
|
491
491
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
492
492
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
493
493
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
494
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
494
495
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
495
496
|
# trigger a retry.
|
|
496
497
|
# @return [::Hash]
|
|
@@ -574,6 +575,7 @@ module Google
|
|
|
574
575
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
575
576
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
576
577
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
578
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
577
579
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
578
580
|
# trigger a retry.
|
|
579
581
|
#
|
|
@@ -445,6 +445,7 @@ module Google
|
|
|
445
445
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
446
446
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
447
447
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
448
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
448
449
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
449
450
|
# trigger a retry.
|
|
450
451
|
# @return [::Hash]
|
|
@@ -524,6 +525,7 @@ module Google
|
|
|
524
525
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
525
526
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
526
527
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
528
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
527
529
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
528
530
|
# trigger a retry.
|
|
529
531
|
#
|
|
@@ -254,8 +254,10 @@ module Google
|
|
|
254
254
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
255
255
|
#
|
|
256
256
|
# @param parent [::String]
|
|
257
|
-
# Required. The parent resource name, in the
|
|
258
|
-
# `organizations/{organization}/locations/{location}
|
|
257
|
+
# Required. The parent resource name, in one of the following formats:
|
|
258
|
+
# - `organizations/{organization}/locations/{location}`
|
|
259
|
+
# - `projects/{project}/locations/{location}`.
|
|
260
|
+
#
|
|
259
261
|
# The only supported location is `global`.
|
|
260
262
|
# @param page_size [::Integer]
|
|
261
263
|
# Optional. The maximum number of frameworks to return. The default value is
|
|
@@ -360,8 +362,12 @@ module Google
|
|
|
360
362
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
361
363
|
#
|
|
362
364
|
# @param name [::String]
|
|
363
|
-
# Required. The name of the framework to retrieve, in the
|
|
364
|
-
#
|
|
365
|
+
# Required. The name of the framework to retrieve, in one of the following
|
|
366
|
+
# formats:
|
|
367
|
+
# `organizations/{organization}/locations/{location}/frameworks/{framework}`
|
|
368
|
+
# or
|
|
369
|
+
# `projects/{project}/locations/{location}/frameworks/{framework}`.
|
|
370
|
+
#
|
|
365
371
|
# The only supported location is `global`.
|
|
366
372
|
# @param major_revision_id [::Integer]
|
|
367
373
|
# Optional. The framework major version to retrieve. If not specified, the
|
|
@@ -452,8 +458,10 @@ module Google
|
|
|
452
458
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
453
459
|
#
|
|
454
460
|
# @param parent [::String]
|
|
455
|
-
# Required. The parent resource name, in the
|
|
456
|
-
# `organizations/{organization}/locations/{location}
|
|
461
|
+
# Required. The parent resource name, in one of the following formats:
|
|
462
|
+
# - `organizations/{organization}/locations/{location}`
|
|
463
|
+
# - `projects/{project}/locations/{location}`.
|
|
464
|
+
#
|
|
457
465
|
# The only supported location is `global`.
|
|
458
466
|
# @param framework_id [::String]
|
|
459
467
|
# Required. The identifier (ID) of the framework. The ID is not the full name
|
|
@@ -654,8 +662,11 @@ module Google
|
|
|
654
662
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
655
663
|
#
|
|
656
664
|
# @param name [::String]
|
|
657
|
-
# Required. The name of the resource, in the
|
|
658
|
-
# `organizations/{organization}/locations/{location}/frameworks/{framework}
|
|
665
|
+
# Required. The name of the resource, in one of the following formats:
|
|
666
|
+
# `organizations/{organization}/locations/{location}/frameworks/{framework}`
|
|
667
|
+
# or
|
|
668
|
+
# `projects/{project}/locations/{location}/frameworks/{framework}`.
|
|
669
|
+
#
|
|
659
670
|
# The only supported location is `global`.
|
|
660
671
|
#
|
|
661
672
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
@@ -744,8 +755,10 @@ module Google
|
|
|
744
755
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
745
756
|
#
|
|
746
757
|
# @param parent [::String]
|
|
747
|
-
# Required. The parent resource name, in the
|
|
748
|
-
# `organizations/{organization}/locations/{location}
|
|
758
|
+
# Required. The parent resource name, in one of the following formats:
|
|
759
|
+
# - `organizations/{organization}/locations/{location}`
|
|
760
|
+
# - `projects/{project}/locations/{location}`.
|
|
761
|
+
#
|
|
749
762
|
# The only supported location is `global`.
|
|
750
763
|
# @param page_size [::Integer]
|
|
751
764
|
# Optional. The maximum number of cloud controls to return. The default value
|
|
@@ -857,8 +870,12 @@ module Google
|
|
|
857
870
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
858
871
|
#
|
|
859
872
|
# @param name [::String]
|
|
860
|
-
# Required. The name of the cloud control to retrieve, in the
|
|
861
|
-
#
|
|
873
|
+
# Required. The name of the cloud control to retrieve, in one of the
|
|
874
|
+
# following formats:
|
|
875
|
+
# `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
|
|
876
|
+
# or
|
|
877
|
+
# `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
|
|
878
|
+
#
|
|
862
879
|
# The only supported location is `global`.
|
|
863
880
|
# @param major_revision_id [::Integer]
|
|
864
881
|
# Optional. The major version of the cloud control to retrieve. If not
|
|
@@ -950,8 +967,10 @@ module Google
|
|
|
950
967
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
951
968
|
#
|
|
952
969
|
# @param parent [::String]
|
|
953
|
-
# Required. The parent resource name, in the
|
|
954
|
-
# `organizations/{organization}/locations/{location}`.
|
|
970
|
+
# Required. The parent resource name, in one of the following formats:
|
|
971
|
+
# - `organizations/{organization}/locations/{location}`.
|
|
972
|
+
# - `projects/{project}/locations/{location}`.
|
|
973
|
+
#
|
|
955
974
|
# The only supported location is `global`.
|
|
956
975
|
# @param cloud_control_id [::String]
|
|
957
976
|
# Required. The identifier for the cloud control, which is the last segment
|
|
@@ -1161,8 +1180,12 @@ module Google
|
|
|
1161
1180
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1162
1181
|
#
|
|
1163
1182
|
# @param name [::String]
|
|
1164
|
-
# Required. The name of the cloud control to delete, in the
|
|
1165
|
-
#
|
|
1183
|
+
# Required. The name of the cloud control to delete, in one of the following
|
|
1184
|
+
# formats:
|
|
1185
|
+
# `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
|
|
1186
|
+
# or
|
|
1187
|
+
# `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
|
|
1188
|
+
#
|
|
1166
1189
|
# The only supported location is `global`.
|
|
1167
1190
|
#
|
|
1168
1191
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
@@ -1325,6 +1348,7 @@ module Google
|
|
|
1325
1348
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1326
1349
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1327
1350
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1351
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1328
1352
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1329
1353
|
# trigger a retry.
|
|
1330
1354
|
# @return [::Hash]
|
|
@@ -1408,6 +1432,7 @@ module Google
|
|
|
1408
1432
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1409
1433
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1410
1434
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1435
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1411
1436
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1412
1437
|
# trigger a retry.
|
|
1413
1438
|
#
|
|
@@ -27,39 +27,104 @@ module Google
|
|
|
27
27
|
##
|
|
28
28
|
# Create a fully-qualified CloudControl resource string.
|
|
29
29
|
#
|
|
30
|
-
#
|
|
30
|
+
# @overload cloud_control_path(organization:, location:, cloud_control:)
|
|
31
|
+
# The resource will be in the following format:
|
|
31
32
|
#
|
|
32
|
-
#
|
|
33
|
+
# `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
|
|
33
34
|
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
35
|
+
# @param organization [String]
|
|
36
|
+
# @param location [String]
|
|
37
|
+
# @param cloud_control [String]
|
|
38
|
+
#
|
|
39
|
+
# @overload cloud_control_path(project:, location:, cloud_control:)
|
|
40
|
+
# The resource will be in the following format:
|
|
41
|
+
#
|
|
42
|
+
# `projects/{project}/locations/{location}/cloudControls/{cloud_control}`
|
|
43
|
+
#
|
|
44
|
+
# @param project [String]
|
|
45
|
+
# @param location [String]
|
|
46
|
+
# @param cloud_control [String]
|
|
37
47
|
#
|
|
38
48
|
# @return [::String]
|
|
39
|
-
def cloud_control_path
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
def cloud_control_path **args
|
|
50
|
+
resources = {
|
|
51
|
+
"cloud_control:location:organization" => (proc do |organization:, location:, cloud_control:|
|
|
52
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
|
53
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
42
54
|
|
|
43
|
-
|
|
55
|
+
"organizations/#{organization}/locations/#{location}/cloudControls/#{cloud_control}"
|
|
56
|
+
end),
|
|
57
|
+
"cloud_control:location:project" => (proc do |project:, location:, cloud_control:|
|
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
59
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
60
|
+
|
|
61
|
+
"projects/#{project}/locations/#{location}/cloudControls/#{cloud_control}"
|
|
62
|
+
end)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
resource = resources[args.keys.sort.join(":")]
|
|
66
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
|
67
|
+
resource.call(**args)
|
|
44
68
|
end
|
|
45
69
|
|
|
46
70
|
##
|
|
47
71
|
# Create a fully-qualified Framework resource string.
|
|
48
72
|
#
|
|
73
|
+
# @overload framework_path(organization:, location:, framework:)
|
|
74
|
+
# The resource will be in the following format:
|
|
75
|
+
#
|
|
76
|
+
# `organizations/{organization}/locations/{location}/frameworks/{framework}`
|
|
77
|
+
#
|
|
78
|
+
# @param organization [String]
|
|
79
|
+
# @param location [String]
|
|
80
|
+
# @param framework [String]
|
|
81
|
+
#
|
|
82
|
+
# @overload framework_path(project:, location:, framework:)
|
|
83
|
+
# The resource will be in the following format:
|
|
84
|
+
#
|
|
85
|
+
# `projects/{project}/locations/{location}/frameworks/{framework}`
|
|
86
|
+
#
|
|
87
|
+
# @param project [String]
|
|
88
|
+
# @param location [String]
|
|
89
|
+
# @param framework [String]
|
|
90
|
+
#
|
|
91
|
+
# @return [::String]
|
|
92
|
+
def framework_path **args
|
|
93
|
+
resources = {
|
|
94
|
+
"framework:location:organization" => (proc do |organization:, location:, framework:|
|
|
95
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
|
96
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
97
|
+
|
|
98
|
+
"organizations/#{organization}/locations/#{location}/frameworks/#{framework}"
|
|
99
|
+
end),
|
|
100
|
+
"framework:location:project" => (proc do |project:, location:, framework:|
|
|
101
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
102
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
103
|
+
|
|
104
|
+
"projects/#{project}/locations/#{location}/frameworks/#{framework}"
|
|
105
|
+
end)
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
resource = resources[args.keys.sort.join(":")]
|
|
109
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
|
110
|
+
resource.call(**args)
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
##
|
|
114
|
+
# Create a fully-qualified Location resource string.
|
|
115
|
+
#
|
|
49
116
|
# The resource will be in the following format:
|
|
50
117
|
#
|
|
51
|
-
# `
|
|
118
|
+
# `projects/{project}/locations/{location}`
|
|
52
119
|
#
|
|
53
|
-
# @param
|
|
120
|
+
# @param project [String]
|
|
54
121
|
# @param location [String]
|
|
55
|
-
# @param framework [String]
|
|
56
122
|
#
|
|
57
123
|
# @return [::String]
|
|
58
|
-
def
|
|
59
|
-
raise ::ArgumentError, "
|
|
60
|
-
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
124
|
+
def location_path project:, location:
|
|
125
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
61
126
|
|
|
62
|
-
"
|
|
127
|
+
"projects/#{project}/locations/#{location}"
|
|
63
128
|
end
|
|
64
129
|
|
|
65
130
|
##
|
|
@@ -248,8 +248,10 @@ module Google
|
|
|
248
248
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
249
249
|
#
|
|
250
250
|
# @param parent [::String]
|
|
251
|
-
# Required. The parent resource name, in the
|
|
252
|
-
# `organizations/{organization}/locations/{location}
|
|
251
|
+
# Required. The parent resource name, in one of the following formats:
|
|
252
|
+
# - `organizations/{organization}/locations/{location}`
|
|
253
|
+
# - `projects/{project}/locations/{location}`.
|
|
254
|
+
#
|
|
253
255
|
# The only supported location is `global`.
|
|
254
256
|
# @param page_size [::Integer]
|
|
255
257
|
# Optional. The maximum number of frameworks to return. The default value is
|
|
@@ -347,8 +349,12 @@ module Google
|
|
|
347
349
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
348
350
|
#
|
|
349
351
|
# @param name [::String]
|
|
350
|
-
# Required. The name of the framework to retrieve, in the
|
|
351
|
-
#
|
|
352
|
+
# Required. The name of the framework to retrieve, in one of the following
|
|
353
|
+
# formats:
|
|
354
|
+
# `organizations/{organization}/locations/{location}/frameworks/{framework}`
|
|
355
|
+
# or
|
|
356
|
+
# `projects/{project}/locations/{location}/frameworks/{framework}`.
|
|
357
|
+
#
|
|
352
358
|
# The only supported location is `global`.
|
|
353
359
|
# @param major_revision_id [::Integer]
|
|
354
360
|
# Optional. The framework major version to retrieve. If not specified, the
|
|
@@ -432,8 +438,10 @@ module Google
|
|
|
432
438
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
433
439
|
#
|
|
434
440
|
# @param parent [::String]
|
|
435
|
-
# Required. The parent resource name, in the
|
|
436
|
-
# `organizations/{organization}/locations/{location}
|
|
441
|
+
# Required. The parent resource name, in one of the following formats:
|
|
442
|
+
# - `organizations/{organization}/locations/{location}`
|
|
443
|
+
# - `projects/{project}/locations/{location}`.
|
|
444
|
+
#
|
|
437
445
|
# The only supported location is `global`.
|
|
438
446
|
# @param framework_id [::String]
|
|
439
447
|
# Required. The identifier (ID) of the framework. The ID is not the full name
|
|
@@ -620,8 +628,11 @@ module Google
|
|
|
620
628
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
621
629
|
#
|
|
622
630
|
# @param name [::String]
|
|
623
|
-
# Required. The name of the resource, in the
|
|
624
|
-
# `organizations/{organization}/locations/{location}/frameworks/{framework}
|
|
631
|
+
# Required. The name of the resource, in one of the following formats:
|
|
632
|
+
# `organizations/{organization}/locations/{location}/frameworks/{framework}`
|
|
633
|
+
# or
|
|
634
|
+
# `projects/{project}/locations/{location}/frameworks/{framework}`.
|
|
635
|
+
#
|
|
625
636
|
# The only supported location is `global`.
|
|
626
637
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
627
638
|
# @yieldparam result [::Google::Protobuf::Empty]
|
|
@@ -703,8 +714,10 @@ module Google
|
|
|
703
714
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
704
715
|
#
|
|
705
716
|
# @param parent [::String]
|
|
706
|
-
# Required. The parent resource name, in the
|
|
707
|
-
# `organizations/{organization}/locations/{location}
|
|
717
|
+
# Required. The parent resource name, in one of the following formats:
|
|
718
|
+
# - `organizations/{organization}/locations/{location}`
|
|
719
|
+
# - `projects/{project}/locations/{location}`.
|
|
720
|
+
#
|
|
708
721
|
# The only supported location is `global`.
|
|
709
722
|
# @param page_size [::Integer]
|
|
710
723
|
# Optional. The maximum number of cloud controls to return. The default value
|
|
@@ -809,8 +822,12 @@ module Google
|
|
|
809
822
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
810
823
|
#
|
|
811
824
|
# @param name [::String]
|
|
812
|
-
# Required. The name of the cloud control to retrieve, in the
|
|
813
|
-
#
|
|
825
|
+
# Required. The name of the cloud control to retrieve, in one of the
|
|
826
|
+
# following formats:
|
|
827
|
+
# `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
|
|
828
|
+
# or
|
|
829
|
+
# `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
|
|
830
|
+
#
|
|
814
831
|
# The only supported location is `global`.
|
|
815
832
|
# @param major_revision_id [::Integer]
|
|
816
833
|
# Optional. The major version of the cloud control to retrieve. If not
|
|
@@ -895,8 +912,10 @@ module Google
|
|
|
895
912
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
896
913
|
#
|
|
897
914
|
# @param parent [::String]
|
|
898
|
-
# Required. The parent resource name, in the
|
|
899
|
-
# `organizations/{organization}/locations/{location}`.
|
|
915
|
+
# Required. The parent resource name, in one of the following formats:
|
|
916
|
+
# - `organizations/{organization}/locations/{location}`.
|
|
917
|
+
# - `projects/{project}/locations/{location}`.
|
|
918
|
+
#
|
|
900
919
|
# The only supported location is `global`.
|
|
901
920
|
# @param cloud_control_id [::String]
|
|
902
921
|
# Required. The identifier for the cloud control, which is the last segment
|
|
@@ -1092,8 +1111,12 @@ module Google
|
|
|
1092
1111
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1093
1112
|
#
|
|
1094
1113
|
# @param name [::String]
|
|
1095
|
-
# Required. The name of the cloud control to delete, in the
|
|
1096
|
-
#
|
|
1114
|
+
# Required. The name of the cloud control to delete, in one of the following
|
|
1115
|
+
# formats:
|
|
1116
|
+
# `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
|
|
1117
|
+
# or
|
|
1118
|
+
# `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
|
|
1119
|
+
#
|
|
1097
1120
|
# The only supported location is `global`.
|
|
1098
1121
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1099
1122
|
# @yieldparam result [::Google::Protobuf::Empty]
|
|
@@ -1223,6 +1246,7 @@ module Google
|
|
|
1223
1246
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1224
1247
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1225
1248
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1249
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1226
1250
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1227
1251
|
# trigger a retry.
|
|
1228
1252
|
# @return [::Hash]
|
|
@@ -1302,6 +1326,7 @@ module Google
|
|
|
1302
1326
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1303
1327
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1304
1328
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1329
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1305
1330
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1306
1331
|
# trigger a retry.
|
|
1307
1332
|
#
|