google-apis-eventarc_v1 0.53.0 → 0.55.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/CHANGELOG.md +9 -0
- data/lib/google/apis/eventarc_v1/classes.rb +1001 -3
- data/lib/google/apis/eventarc_v1/gem_version.rb +3 -3
- data/lib/google/apis/eventarc_v1/representations.rb +385 -0
- data/lib/google/apis/eventarc_v1/service.rb +1400 -41
- metadata +4 -4
@@ -765,6 +765,1035 @@ module Google
|
|
765
765
|
execute_or_queue_command(command, &block)
|
766
766
|
end
|
767
767
|
|
768
|
+
# Create a new Enrollment in a particular project and location.
|
769
|
+
# @param [String] parent
|
770
|
+
# Required. The parent collection in which to add this enrollment.
|
771
|
+
# @param [Google::Apis::EventarcV1::Enrollment] enrollment_object
|
772
|
+
# @param [String] enrollment_id
|
773
|
+
# Required. The user-provided ID to be assigned to the Enrollment. It should
|
774
|
+
# match the format (^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$).
|
775
|
+
# @param [Boolean] validate_only
|
776
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
777
|
+
# it.
|
778
|
+
# @param [String] fields
|
779
|
+
# Selector specifying which fields to include in a partial response.
|
780
|
+
# @param [String] quota_user
|
781
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
782
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
783
|
+
# @param [Google::Apis::RequestOptions] options
|
784
|
+
# Request-specific options
|
785
|
+
#
|
786
|
+
# @yield [result, err] Result & error if block supplied
|
787
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
788
|
+
# @yieldparam err [StandardError] error object if request failed
|
789
|
+
#
|
790
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
791
|
+
#
|
792
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
793
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
794
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
795
|
+
def create_project_location_enrollment(parent, enrollment_object = nil, enrollment_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
796
|
+
command = make_simple_command(:post, 'v1/{+parent}/enrollments', options)
|
797
|
+
command.request_representation = Google::Apis::EventarcV1::Enrollment::Representation
|
798
|
+
command.request_object = enrollment_object
|
799
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
800
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
801
|
+
command.params['parent'] = parent unless parent.nil?
|
802
|
+
command.query['enrollmentId'] = enrollment_id unless enrollment_id.nil?
|
803
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
804
|
+
command.query['fields'] = fields unless fields.nil?
|
805
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
806
|
+
execute_or_queue_command(command, &block)
|
807
|
+
end
|
808
|
+
|
809
|
+
# Delete a single Enrollment.
|
810
|
+
# @param [String] name
|
811
|
+
# Required. The name of the Enrollment to be deleted.
|
812
|
+
# @param [Boolean] allow_missing
|
813
|
+
# Optional. If set to true, and the Enrollment is not found, the request will
|
814
|
+
# succeed but no action will be taken on the server.
|
815
|
+
# @param [String] etag
|
816
|
+
# Optional. If provided, the Enrollment will only be deleted if the etag matches
|
817
|
+
# the current etag on the resource.
|
818
|
+
# @param [Boolean] validate_only
|
819
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
820
|
+
# it.
|
821
|
+
# @param [String] fields
|
822
|
+
# Selector specifying which fields to include in a partial response.
|
823
|
+
# @param [String] quota_user
|
824
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
825
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
826
|
+
# @param [Google::Apis::RequestOptions] options
|
827
|
+
# Request-specific options
|
828
|
+
#
|
829
|
+
# @yield [result, err] Result & error if block supplied
|
830
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
831
|
+
# @yieldparam err [StandardError] error object if request failed
|
832
|
+
#
|
833
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
834
|
+
#
|
835
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
836
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
837
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
838
|
+
def delete_project_location_enrollment(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
839
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
840
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
841
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
842
|
+
command.params['name'] = name unless name.nil?
|
843
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
844
|
+
command.query['etag'] = etag unless etag.nil?
|
845
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
846
|
+
command.query['fields'] = fields unless fields.nil?
|
847
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
848
|
+
execute_or_queue_command(command, &block)
|
849
|
+
end
|
850
|
+
|
851
|
+
# Get a single Enrollment.
|
852
|
+
# @param [String] name
|
853
|
+
# Required. The name of the Enrollment to get.
|
854
|
+
# @param [String] fields
|
855
|
+
# Selector specifying which fields to include in a partial response.
|
856
|
+
# @param [String] quota_user
|
857
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
858
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
859
|
+
# @param [Google::Apis::RequestOptions] options
|
860
|
+
# Request-specific options
|
861
|
+
#
|
862
|
+
# @yield [result, err] Result & error if block supplied
|
863
|
+
# @yieldparam result [Google::Apis::EventarcV1::Enrollment] parsed result object
|
864
|
+
# @yieldparam err [StandardError] error object if request failed
|
865
|
+
#
|
866
|
+
# @return [Google::Apis::EventarcV1::Enrollment]
|
867
|
+
#
|
868
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
869
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
870
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
871
|
+
def get_project_location_enrollment(name, fields: nil, quota_user: nil, options: nil, &block)
|
872
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
873
|
+
command.response_representation = Google::Apis::EventarcV1::Enrollment::Representation
|
874
|
+
command.response_class = Google::Apis::EventarcV1::Enrollment
|
875
|
+
command.params['name'] = name unless name.nil?
|
876
|
+
command.query['fields'] = fields unless fields.nil?
|
877
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
878
|
+
execute_or_queue_command(command, &block)
|
879
|
+
end
|
880
|
+
|
881
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
882
|
+
# resource exists and does not have a policy set.
|
883
|
+
# @param [String] resource
|
884
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
885
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
886
|
+
# appropriate value for this field.
|
887
|
+
# @param [Fixnum] options_requested_policy_version
|
888
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
889
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
890
|
+
# rejected. Requests for policies with any conditional role bindings must
|
891
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
892
|
+
# valid value or leave the field unset. The policy in the response might use the
|
893
|
+
# policy version that you specified, or it might use a lower policy version. For
|
894
|
+
# example, if you specify version 3, but the policy has no conditional role
|
895
|
+
# bindings, the response uses version 1. To learn which resources support
|
896
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
897
|
+
# google.com/iam/help/conditions/resource-policies).
|
898
|
+
# @param [String] fields
|
899
|
+
# Selector specifying which fields to include in a partial response.
|
900
|
+
# @param [String] quota_user
|
901
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
902
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
903
|
+
# @param [Google::Apis::RequestOptions] options
|
904
|
+
# Request-specific options
|
905
|
+
#
|
906
|
+
# @yield [result, err] Result & error if block supplied
|
907
|
+
# @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
|
908
|
+
# @yieldparam err [StandardError] error object if request failed
|
909
|
+
#
|
910
|
+
# @return [Google::Apis::EventarcV1::Policy]
|
911
|
+
#
|
912
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
913
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
914
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
915
|
+
def get_project_location_enrollment_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
916
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
917
|
+
command.response_representation = Google::Apis::EventarcV1::Policy::Representation
|
918
|
+
command.response_class = Google::Apis::EventarcV1::Policy
|
919
|
+
command.params['resource'] = resource unless resource.nil?
|
920
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
921
|
+
command.query['fields'] = fields unless fields.nil?
|
922
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
923
|
+
execute_or_queue_command(command, &block)
|
924
|
+
end
|
925
|
+
|
926
|
+
# List Enrollments.
|
927
|
+
# @param [String] parent
|
928
|
+
# Required. The parent collection to list triggers on.
|
929
|
+
# @param [String] filter
|
930
|
+
# Optional. The filter field that the list request will filter on. Possible
|
931
|
+
# filtersare described in https://google.aip.dev/160.
|
932
|
+
# @param [String] order_by
|
933
|
+
# Optional. The sorting order of the resources returned. Value should be a comma-
|
934
|
+
# separated list of fields. The default sorting order is ascending. To specify
|
935
|
+
# descending order for a field, append a `desc` suffix; for example: `name desc,
|
936
|
+
# update_time`.
|
937
|
+
# @param [Fixnum] page_size
|
938
|
+
# Optional. The maximum number of results to return on each page. Note: The
|
939
|
+
# service may send fewer.
|
940
|
+
# @param [String] page_token
|
941
|
+
# Optional. The page token; provide the value from the `next_page_token` field
|
942
|
+
# in a previous call to retrieve the subsequent page. When paginating, all other
|
943
|
+
# parameters provided must match the previous call that provided the page token.
|
944
|
+
# @param [String] fields
|
945
|
+
# Selector specifying which fields to include in a partial response.
|
946
|
+
# @param [String] quota_user
|
947
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
948
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
949
|
+
# @param [Google::Apis::RequestOptions] options
|
950
|
+
# Request-specific options
|
951
|
+
#
|
952
|
+
# @yield [result, err] Result & error if block supplied
|
953
|
+
# @yieldparam result [Google::Apis::EventarcV1::ListEnrollmentsResponse] parsed result object
|
954
|
+
# @yieldparam err [StandardError] error object if request failed
|
955
|
+
#
|
956
|
+
# @return [Google::Apis::EventarcV1::ListEnrollmentsResponse]
|
957
|
+
#
|
958
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
959
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
960
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
961
|
+
def list_project_location_enrollments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
962
|
+
command = make_simple_command(:get, 'v1/{+parent}/enrollments', options)
|
963
|
+
command.response_representation = Google::Apis::EventarcV1::ListEnrollmentsResponse::Representation
|
964
|
+
command.response_class = Google::Apis::EventarcV1::ListEnrollmentsResponse
|
965
|
+
command.params['parent'] = parent unless parent.nil?
|
966
|
+
command.query['filter'] = filter unless filter.nil?
|
967
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
968
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
969
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
970
|
+
command.query['fields'] = fields unless fields.nil?
|
971
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
972
|
+
execute_or_queue_command(command, &block)
|
973
|
+
end
|
974
|
+
|
975
|
+
# Update a single Enrollment.
|
976
|
+
# @param [String] name
|
977
|
+
# Identifier. Resource name of the form projects/`project`/locations/`location`/
|
978
|
+
# enrollments/`enrollment`
|
979
|
+
# @param [Google::Apis::EventarcV1::Enrollment] enrollment_object
|
980
|
+
# @param [Boolean] allow_missing
|
981
|
+
# Optional. If set to true, and the Enrollment is not found, a new Enrollment
|
982
|
+
# will be created. In this situation, `update_mask` is ignored.
|
983
|
+
# @param [String] update_mask
|
984
|
+
# Optional. The fields to be updated; only fields explicitly provided are
|
985
|
+
# updated. If no field mask is provided, all provided fields in the request are
|
986
|
+
# updated. To update all fields, provide a field mask of "*".
|
987
|
+
# @param [Boolean] validate_only
|
988
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
989
|
+
# it.
|
990
|
+
# @param [String] fields
|
991
|
+
# Selector specifying which fields to include in a partial response.
|
992
|
+
# @param [String] quota_user
|
993
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
994
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
995
|
+
# @param [Google::Apis::RequestOptions] options
|
996
|
+
# Request-specific options
|
997
|
+
#
|
998
|
+
# @yield [result, err] Result & error if block supplied
|
999
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
1000
|
+
# @yieldparam err [StandardError] error object if request failed
|
1001
|
+
#
|
1002
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
1003
|
+
#
|
1004
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1005
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1006
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1007
|
+
def patch_project_location_enrollment(name, enrollment_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1008
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1009
|
+
command.request_representation = Google::Apis::EventarcV1::Enrollment::Representation
|
1010
|
+
command.request_object = enrollment_object
|
1011
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
1012
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
1013
|
+
command.params['name'] = name unless name.nil?
|
1014
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
1015
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1016
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1017
|
+
command.query['fields'] = fields unless fields.nil?
|
1018
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1019
|
+
execute_or_queue_command(command, &block)
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1023
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1024
|
+
# PERMISSION_DENIED` errors.
|
1025
|
+
# @param [String] resource
|
1026
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1027
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1028
|
+
# appropriate value for this field.
|
1029
|
+
# @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1030
|
+
# @param [String] fields
|
1031
|
+
# Selector specifying which fields to include in a partial response.
|
1032
|
+
# @param [String] quota_user
|
1033
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1034
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1035
|
+
# @param [Google::Apis::RequestOptions] options
|
1036
|
+
# Request-specific options
|
1037
|
+
#
|
1038
|
+
# @yield [result, err] Result & error if block supplied
|
1039
|
+
# @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
|
1040
|
+
# @yieldparam err [StandardError] error object if request failed
|
1041
|
+
#
|
1042
|
+
# @return [Google::Apis::EventarcV1::Policy]
|
1043
|
+
#
|
1044
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1045
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1046
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1047
|
+
def set_enrollment_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1048
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1049
|
+
command.request_representation = Google::Apis::EventarcV1::SetIamPolicyRequest::Representation
|
1050
|
+
command.request_object = set_iam_policy_request_object
|
1051
|
+
command.response_representation = Google::Apis::EventarcV1::Policy::Representation
|
1052
|
+
command.response_class = Google::Apis::EventarcV1::Policy
|
1053
|
+
command.params['resource'] = resource unless resource.nil?
|
1054
|
+
command.query['fields'] = fields unless fields.nil?
|
1055
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1056
|
+
execute_or_queue_command(command, &block)
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1060
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1061
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1062
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1063
|
+
# This operation may "fail open" without warning.
|
1064
|
+
# @param [String] resource
|
1065
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1066
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1067
|
+
# appropriate value for this field.
|
1068
|
+
# @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1069
|
+
# @param [String] fields
|
1070
|
+
# Selector specifying which fields to include in a partial response.
|
1071
|
+
# @param [String] quota_user
|
1072
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1073
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1074
|
+
# @param [Google::Apis::RequestOptions] options
|
1075
|
+
# Request-specific options
|
1076
|
+
#
|
1077
|
+
# @yield [result, err] Result & error if block supplied
|
1078
|
+
# @yieldparam result [Google::Apis::EventarcV1::TestIamPermissionsResponse] parsed result object
|
1079
|
+
# @yieldparam err [StandardError] error object if request failed
|
1080
|
+
#
|
1081
|
+
# @return [Google::Apis::EventarcV1::TestIamPermissionsResponse]
|
1082
|
+
#
|
1083
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1084
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1085
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1086
|
+
def test_enrollment_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1087
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1088
|
+
command.request_representation = Google::Apis::EventarcV1::TestIamPermissionsRequest::Representation
|
1089
|
+
command.request_object = test_iam_permissions_request_object
|
1090
|
+
command.response_representation = Google::Apis::EventarcV1::TestIamPermissionsResponse::Representation
|
1091
|
+
command.response_class = Google::Apis::EventarcV1::TestIamPermissionsResponse
|
1092
|
+
command.params['resource'] = resource unless resource.nil?
|
1093
|
+
command.query['fields'] = fields unless fields.nil?
|
1094
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1095
|
+
execute_or_queue_command(command, &block)
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
# Create a new GoogleApiSource in a particular project and location.
|
1099
|
+
# @param [String] parent
|
1100
|
+
# Required. The parent collection in which to add this google api source.
|
1101
|
+
# @param [Google::Apis::EventarcV1::GoogleApiSource] google_api_source_object
|
1102
|
+
# @param [String] google_api_source_id
|
1103
|
+
# Required. The user-provided ID to be assigned to the GoogleApiSource. It
|
1104
|
+
# should match the format (^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$).
|
1105
|
+
# @param [Boolean] validate_only
|
1106
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
1107
|
+
# it.
|
1108
|
+
# @param [String] fields
|
1109
|
+
# Selector specifying which fields to include in a partial response.
|
1110
|
+
# @param [String] quota_user
|
1111
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1112
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1113
|
+
# @param [Google::Apis::RequestOptions] options
|
1114
|
+
# Request-specific options
|
1115
|
+
#
|
1116
|
+
# @yield [result, err] Result & error if block supplied
|
1117
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
1118
|
+
# @yieldparam err [StandardError] error object if request failed
|
1119
|
+
#
|
1120
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
1121
|
+
#
|
1122
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1123
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1124
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1125
|
+
def create_project_location_google_api_source(parent, google_api_source_object = nil, google_api_source_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1126
|
+
command = make_simple_command(:post, 'v1/{+parent}/googleApiSources', options)
|
1127
|
+
command.request_representation = Google::Apis::EventarcV1::GoogleApiSource::Representation
|
1128
|
+
command.request_object = google_api_source_object
|
1129
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
1130
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
1131
|
+
command.params['parent'] = parent unless parent.nil?
|
1132
|
+
command.query['googleApiSourceId'] = google_api_source_id unless google_api_source_id.nil?
|
1133
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1134
|
+
command.query['fields'] = fields unless fields.nil?
|
1135
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1136
|
+
execute_or_queue_command(command, &block)
|
1137
|
+
end
|
1138
|
+
|
1139
|
+
# Delete a single GoogleApiSource.
|
1140
|
+
# @param [String] name
|
1141
|
+
# Required. The name of the GoogleApiSource to be deleted.
|
1142
|
+
# @param [Boolean] allow_missing
|
1143
|
+
# Optional. If set to true, and the MessageBus is not found, the request will
|
1144
|
+
# succeed but no action will be taken on the server.
|
1145
|
+
# @param [String] etag
|
1146
|
+
# Optional. If provided, the MessageBus will only be deleted if the etag matches
|
1147
|
+
# the current etag on the resource.
|
1148
|
+
# @param [Boolean] validate_only
|
1149
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
1150
|
+
# it.
|
1151
|
+
# @param [String] fields
|
1152
|
+
# Selector specifying which fields to include in a partial response.
|
1153
|
+
# @param [String] quota_user
|
1154
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1155
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1156
|
+
# @param [Google::Apis::RequestOptions] options
|
1157
|
+
# Request-specific options
|
1158
|
+
#
|
1159
|
+
# @yield [result, err] Result & error if block supplied
|
1160
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
1161
|
+
# @yieldparam err [StandardError] error object if request failed
|
1162
|
+
#
|
1163
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
1164
|
+
#
|
1165
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1166
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1167
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1168
|
+
def delete_project_location_google_api_source(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1169
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1170
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
1171
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
1172
|
+
command.params['name'] = name unless name.nil?
|
1173
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
1174
|
+
command.query['etag'] = etag unless etag.nil?
|
1175
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1176
|
+
command.query['fields'] = fields unless fields.nil?
|
1177
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1178
|
+
execute_or_queue_command(command, &block)
|
1179
|
+
end
|
1180
|
+
|
1181
|
+
# Get a single GoogleApiSource.
|
1182
|
+
# @param [String] name
|
1183
|
+
# Required. The name of the google api source to get.
|
1184
|
+
# @param [String] fields
|
1185
|
+
# Selector specifying which fields to include in a partial response.
|
1186
|
+
# @param [String] quota_user
|
1187
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1188
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1189
|
+
# @param [Google::Apis::RequestOptions] options
|
1190
|
+
# Request-specific options
|
1191
|
+
#
|
1192
|
+
# @yield [result, err] Result & error if block supplied
|
1193
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleApiSource] parsed result object
|
1194
|
+
# @yieldparam err [StandardError] error object if request failed
|
1195
|
+
#
|
1196
|
+
# @return [Google::Apis::EventarcV1::GoogleApiSource]
|
1197
|
+
#
|
1198
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1199
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1200
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1201
|
+
def get_project_location_google_api_source(name, fields: nil, quota_user: nil, options: nil, &block)
|
1202
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1203
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleApiSource::Representation
|
1204
|
+
command.response_class = Google::Apis::EventarcV1::GoogleApiSource
|
1205
|
+
command.params['name'] = name unless name.nil?
|
1206
|
+
command.query['fields'] = fields unless fields.nil?
|
1207
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1208
|
+
execute_or_queue_command(command, &block)
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1212
|
+
# resource exists and does not have a policy set.
|
1213
|
+
# @param [String] resource
|
1214
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1215
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1216
|
+
# appropriate value for this field.
|
1217
|
+
# @param [Fixnum] options_requested_policy_version
|
1218
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1219
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1220
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1221
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1222
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1223
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1224
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1225
|
+
# bindings, the response uses version 1. To learn which resources support
|
1226
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1227
|
+
# google.com/iam/help/conditions/resource-policies).
|
1228
|
+
# @param [String] fields
|
1229
|
+
# Selector specifying which fields to include in a partial response.
|
1230
|
+
# @param [String] quota_user
|
1231
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1232
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1233
|
+
# @param [Google::Apis::RequestOptions] options
|
1234
|
+
# Request-specific options
|
1235
|
+
#
|
1236
|
+
# @yield [result, err] Result & error if block supplied
|
1237
|
+
# @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
|
1238
|
+
# @yieldparam err [StandardError] error object if request failed
|
1239
|
+
#
|
1240
|
+
# @return [Google::Apis::EventarcV1::Policy]
|
1241
|
+
#
|
1242
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1243
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1244
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1245
|
+
def get_project_location_google_api_source_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1246
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1247
|
+
command.response_representation = Google::Apis::EventarcV1::Policy::Representation
|
1248
|
+
command.response_class = Google::Apis::EventarcV1::Policy
|
1249
|
+
command.params['resource'] = resource unless resource.nil?
|
1250
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1251
|
+
command.query['fields'] = fields unless fields.nil?
|
1252
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1253
|
+
execute_or_queue_command(command, &block)
|
1254
|
+
end
|
1255
|
+
|
1256
|
+
# List GoogleApiSources.
|
1257
|
+
# @param [String] parent
|
1258
|
+
# Required. The parent collection to list GoogleApiSources on.
|
1259
|
+
# @param [String] filter
|
1260
|
+
# Optional. The filter field that the list request will filter on. Possible
|
1261
|
+
# filtersare described in https://google.aip.dev/160.
|
1262
|
+
# @param [String] order_by
|
1263
|
+
# Optional. The sorting order of the resources returned. Value should be a comma-
|
1264
|
+
# separated list of fields. The default sorting order is ascending. To specify
|
1265
|
+
# descending order for a field, append a `desc` suffix; for example: `name desc,
|
1266
|
+
# update_time`.
|
1267
|
+
# @param [Fixnum] page_size
|
1268
|
+
# Optional. The maximum number of results to return on each page. Note: The
|
1269
|
+
# service may send fewer.
|
1270
|
+
# @param [String] page_token
|
1271
|
+
# Optional. The page token; provide the value from the `next_page_token` field
|
1272
|
+
# in a previous call to retrieve the subsequent page. When paginating, all other
|
1273
|
+
# parameters provided must match the previous call that provided the page token.
|
1274
|
+
# @param [String] fields
|
1275
|
+
# Selector specifying which fields to include in a partial response.
|
1276
|
+
# @param [String] quota_user
|
1277
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1278
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1279
|
+
# @param [Google::Apis::RequestOptions] options
|
1280
|
+
# Request-specific options
|
1281
|
+
#
|
1282
|
+
# @yield [result, err] Result & error if block supplied
|
1283
|
+
# @yieldparam result [Google::Apis::EventarcV1::ListGoogleApiSourcesResponse] parsed result object
|
1284
|
+
# @yieldparam err [StandardError] error object if request failed
|
1285
|
+
#
|
1286
|
+
# @return [Google::Apis::EventarcV1::ListGoogleApiSourcesResponse]
|
1287
|
+
#
|
1288
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1289
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1290
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1291
|
+
def list_project_location_google_api_sources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1292
|
+
command = make_simple_command(:get, 'v1/{+parent}/googleApiSources', options)
|
1293
|
+
command.response_representation = Google::Apis::EventarcV1::ListGoogleApiSourcesResponse::Representation
|
1294
|
+
command.response_class = Google::Apis::EventarcV1::ListGoogleApiSourcesResponse
|
1295
|
+
command.params['parent'] = parent unless parent.nil?
|
1296
|
+
command.query['filter'] = filter unless filter.nil?
|
1297
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1298
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1299
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1300
|
+
command.query['fields'] = fields unless fields.nil?
|
1301
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1302
|
+
execute_or_queue_command(command, &block)
|
1303
|
+
end
|
1304
|
+
|
1305
|
+
# Update a single GoogleApiSource.
|
1306
|
+
# @param [String] name
|
1307
|
+
# Identifier. Resource name of the form projects/`project`/locations/`location`/
|
1308
|
+
# googleApiSources/`google_api_source`
|
1309
|
+
# @param [Google::Apis::EventarcV1::GoogleApiSource] google_api_source_object
|
1310
|
+
# @param [Boolean] allow_missing
|
1311
|
+
# Optional. If set to true, and the GoogleApiSource is not found, a new
|
1312
|
+
# GoogleApiSource will be created. In this situation, `update_mask` is ignored.
|
1313
|
+
# @param [String] update_mask
|
1314
|
+
# Optional. The fields to be updated; only fields explicitly provided are
|
1315
|
+
# updated. If no field mask is provided, all provided fields in the request are
|
1316
|
+
# updated. To update all fields, provide a field mask of "*".
|
1317
|
+
# @param [Boolean] validate_only
|
1318
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
1319
|
+
# it.
|
1320
|
+
# @param [String] fields
|
1321
|
+
# Selector specifying which fields to include in a partial response.
|
1322
|
+
# @param [String] quota_user
|
1323
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1324
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1325
|
+
# @param [Google::Apis::RequestOptions] options
|
1326
|
+
# Request-specific options
|
1327
|
+
#
|
1328
|
+
# @yield [result, err] Result & error if block supplied
|
1329
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
1330
|
+
# @yieldparam err [StandardError] error object if request failed
|
1331
|
+
#
|
1332
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
1333
|
+
#
|
1334
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1335
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1336
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1337
|
+
def patch_project_location_google_api_source(name, google_api_source_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1338
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1339
|
+
command.request_representation = Google::Apis::EventarcV1::GoogleApiSource::Representation
|
1340
|
+
command.request_object = google_api_source_object
|
1341
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
1342
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
1343
|
+
command.params['name'] = name unless name.nil?
|
1344
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
1345
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1346
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1347
|
+
command.query['fields'] = fields unless fields.nil?
|
1348
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1349
|
+
execute_or_queue_command(command, &block)
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1353
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1354
|
+
# PERMISSION_DENIED` errors.
|
1355
|
+
# @param [String] resource
|
1356
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1357
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1358
|
+
# appropriate value for this field.
|
1359
|
+
# @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1360
|
+
# @param [String] fields
|
1361
|
+
# Selector specifying which fields to include in a partial response.
|
1362
|
+
# @param [String] quota_user
|
1363
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1364
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1365
|
+
# @param [Google::Apis::RequestOptions] options
|
1366
|
+
# Request-specific options
|
1367
|
+
#
|
1368
|
+
# @yield [result, err] Result & error if block supplied
|
1369
|
+
# @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
|
1370
|
+
# @yieldparam err [StandardError] error object if request failed
|
1371
|
+
#
|
1372
|
+
# @return [Google::Apis::EventarcV1::Policy]
|
1373
|
+
#
|
1374
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1375
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1376
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1377
|
+
def set_google_api_source_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1378
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1379
|
+
command.request_representation = Google::Apis::EventarcV1::SetIamPolicyRequest::Representation
|
1380
|
+
command.request_object = set_iam_policy_request_object
|
1381
|
+
command.response_representation = Google::Apis::EventarcV1::Policy::Representation
|
1382
|
+
command.response_class = Google::Apis::EventarcV1::Policy
|
1383
|
+
command.params['resource'] = resource unless resource.nil?
|
1384
|
+
command.query['fields'] = fields unless fields.nil?
|
1385
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1386
|
+
execute_or_queue_command(command, &block)
|
1387
|
+
end
|
1388
|
+
|
1389
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1390
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1391
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1392
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1393
|
+
# This operation may "fail open" without warning.
|
1394
|
+
# @param [String] resource
|
1395
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1396
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1397
|
+
# appropriate value for this field.
|
1398
|
+
# @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1399
|
+
# @param [String] fields
|
1400
|
+
# Selector specifying which fields to include in a partial response.
|
1401
|
+
# @param [String] quota_user
|
1402
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1403
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1404
|
+
# @param [Google::Apis::RequestOptions] options
|
1405
|
+
# Request-specific options
|
1406
|
+
#
|
1407
|
+
# @yield [result, err] Result & error if block supplied
|
1408
|
+
# @yieldparam result [Google::Apis::EventarcV1::TestIamPermissionsResponse] parsed result object
|
1409
|
+
# @yieldparam err [StandardError] error object if request failed
|
1410
|
+
#
|
1411
|
+
# @return [Google::Apis::EventarcV1::TestIamPermissionsResponse]
|
1412
|
+
#
|
1413
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1414
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1415
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1416
|
+
def test_google_api_source_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1417
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1418
|
+
command.request_representation = Google::Apis::EventarcV1::TestIamPermissionsRequest::Representation
|
1419
|
+
command.request_object = test_iam_permissions_request_object
|
1420
|
+
command.response_representation = Google::Apis::EventarcV1::TestIamPermissionsResponse::Representation
|
1421
|
+
command.response_class = Google::Apis::EventarcV1::TestIamPermissionsResponse
|
1422
|
+
command.params['resource'] = resource unless resource.nil?
|
1423
|
+
command.query['fields'] = fields unless fields.nil?
|
1424
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1425
|
+
execute_or_queue_command(command, &block)
|
1426
|
+
end
|
1427
|
+
|
1428
|
+
# Create a new MessageBus in a particular project and location.
|
1429
|
+
# @param [String] parent
|
1430
|
+
# Required. The parent collection in which to add this message bus.
|
1431
|
+
# @param [Google::Apis::EventarcV1::MessageBus] message_bus_object
|
1432
|
+
# @param [String] message_bus_id
|
1433
|
+
# Required. The user-provided ID to be assigned to the MessageBus. It should
|
1434
|
+
# match the format (^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$)
|
1435
|
+
# @param [Boolean] validate_only
|
1436
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
1437
|
+
# it.
|
1438
|
+
# @param [String] fields
|
1439
|
+
# Selector specifying which fields to include in a partial response.
|
1440
|
+
# @param [String] quota_user
|
1441
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1442
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1443
|
+
# @param [Google::Apis::RequestOptions] options
|
1444
|
+
# Request-specific options
|
1445
|
+
#
|
1446
|
+
# @yield [result, err] Result & error if block supplied
|
1447
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
1448
|
+
# @yieldparam err [StandardError] error object if request failed
|
1449
|
+
#
|
1450
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
1451
|
+
#
|
1452
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1453
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1454
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1455
|
+
def create_project_location_message_bus(parent, message_bus_object = nil, message_bus_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1456
|
+
command = make_simple_command(:post, 'v1/{+parent}/messageBuses', options)
|
1457
|
+
command.request_representation = Google::Apis::EventarcV1::MessageBus::Representation
|
1458
|
+
command.request_object = message_bus_object
|
1459
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
1460
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
1461
|
+
command.params['parent'] = parent unless parent.nil?
|
1462
|
+
command.query['messageBusId'] = message_bus_id unless message_bus_id.nil?
|
1463
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1464
|
+
command.query['fields'] = fields unless fields.nil?
|
1465
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1466
|
+
execute_or_queue_command(command, &block)
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
# Delete a single message bus.
|
1470
|
+
# @param [String] name
|
1471
|
+
# Required. The name of the MessageBus to be deleted.
|
1472
|
+
# @param [Boolean] allow_missing
|
1473
|
+
# Optional. If set to true, and the MessageBus is not found, the request will
|
1474
|
+
# succeed but no action will be taken on the server.
|
1475
|
+
# @param [String] etag
|
1476
|
+
# Optional. If provided, the MessageBus will only be deleted if the etag matches
|
1477
|
+
# the current etag on the resource.
|
1478
|
+
# @param [Boolean] validate_only
|
1479
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
1480
|
+
# it.
|
1481
|
+
# @param [String] fields
|
1482
|
+
# Selector specifying which fields to include in a partial response.
|
1483
|
+
# @param [String] quota_user
|
1484
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1485
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1486
|
+
# @param [Google::Apis::RequestOptions] options
|
1487
|
+
# Request-specific options
|
1488
|
+
#
|
1489
|
+
# @yield [result, err] Result & error if block supplied
|
1490
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
1491
|
+
# @yieldparam err [StandardError] error object if request failed
|
1492
|
+
#
|
1493
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
1494
|
+
#
|
1495
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1496
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1497
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1498
|
+
def delete_project_location_message_bus(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1499
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1500
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
1501
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
1502
|
+
command.params['name'] = name unless name.nil?
|
1503
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
1504
|
+
command.query['etag'] = etag unless etag.nil?
|
1505
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1506
|
+
command.query['fields'] = fields unless fields.nil?
|
1507
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1508
|
+
execute_or_queue_command(command, &block)
|
1509
|
+
end
|
1510
|
+
|
1511
|
+
# Get a single MessageBus.
|
1512
|
+
# @param [String] name
|
1513
|
+
# Required. The name of the message bus to get.
|
1514
|
+
# @param [String] fields
|
1515
|
+
# Selector specifying which fields to include in a partial response.
|
1516
|
+
# @param [String] quota_user
|
1517
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1518
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1519
|
+
# @param [Google::Apis::RequestOptions] options
|
1520
|
+
# Request-specific options
|
1521
|
+
#
|
1522
|
+
# @yield [result, err] Result & error if block supplied
|
1523
|
+
# @yieldparam result [Google::Apis::EventarcV1::MessageBus] parsed result object
|
1524
|
+
# @yieldparam err [StandardError] error object if request failed
|
1525
|
+
#
|
1526
|
+
# @return [Google::Apis::EventarcV1::MessageBus]
|
1527
|
+
#
|
1528
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1529
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1530
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1531
|
+
def get_project_location_message_bus(name, fields: nil, quota_user: nil, options: nil, &block)
|
1532
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1533
|
+
command.response_representation = Google::Apis::EventarcV1::MessageBus::Representation
|
1534
|
+
command.response_class = Google::Apis::EventarcV1::MessageBus
|
1535
|
+
command.params['name'] = name unless name.nil?
|
1536
|
+
command.query['fields'] = fields unless fields.nil?
|
1537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1538
|
+
execute_or_queue_command(command, &block)
|
1539
|
+
end
|
1540
|
+
|
1541
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
1542
|
+
# resource exists and does not have a policy set.
|
1543
|
+
# @param [String] resource
|
1544
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1545
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1546
|
+
# appropriate value for this field.
|
1547
|
+
# @param [Fixnum] options_requested_policy_version
|
1548
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1549
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1550
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1551
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1552
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1553
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1554
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1555
|
+
# bindings, the response uses version 1. To learn which resources support
|
1556
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1557
|
+
# google.com/iam/help/conditions/resource-policies).
|
1558
|
+
# @param [String] fields
|
1559
|
+
# Selector specifying which fields to include in a partial response.
|
1560
|
+
# @param [String] quota_user
|
1561
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1562
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1563
|
+
# @param [Google::Apis::RequestOptions] options
|
1564
|
+
# Request-specific options
|
1565
|
+
#
|
1566
|
+
# @yield [result, err] Result & error if block supplied
|
1567
|
+
# @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
|
1568
|
+
# @yieldparam err [StandardError] error object if request failed
|
1569
|
+
#
|
1570
|
+
# @return [Google::Apis::EventarcV1::Policy]
|
1571
|
+
#
|
1572
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1573
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1574
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1575
|
+
def get_project_location_message_bus_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1576
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1577
|
+
command.response_representation = Google::Apis::EventarcV1::Policy::Representation
|
1578
|
+
command.response_class = Google::Apis::EventarcV1::Policy
|
1579
|
+
command.params['resource'] = resource unless resource.nil?
|
1580
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1581
|
+
command.query['fields'] = fields unless fields.nil?
|
1582
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1583
|
+
execute_or_queue_command(command, &block)
|
1584
|
+
end
|
1585
|
+
|
1586
|
+
# List message buses.
|
1587
|
+
# @param [String] parent
|
1588
|
+
# Required. The parent collection to list triggers on.
|
1589
|
+
# @param [String] filter
|
1590
|
+
# Optional. The filter field that the list request will filter on. Possible
|
1591
|
+
# filtersare described in https://google.aip.dev/160.
|
1592
|
+
# @param [String] order_by
|
1593
|
+
# Optional. The sorting order of the resources returned. Value should be a comma-
|
1594
|
+
# separated list of fields. The default sorting order is ascending. To specify
|
1595
|
+
# descending order for a field, append a `desc` suffix; for example: `name desc,
|
1596
|
+
# update_time`.
|
1597
|
+
# @param [Fixnum] page_size
|
1598
|
+
# Optional. The maximum number of results to return on each page. Note: The
|
1599
|
+
# service may send fewer.
|
1600
|
+
# @param [String] page_token
|
1601
|
+
# Optional. The page token; provide the value from the `next_page_token` field
|
1602
|
+
# in a previous call to retrieve the subsequent page. When paginating, all other
|
1603
|
+
# parameters provided must match the previous call that provided the page token.
|
1604
|
+
# @param [String] fields
|
1605
|
+
# Selector specifying which fields to include in a partial response.
|
1606
|
+
# @param [String] quota_user
|
1607
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1608
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1609
|
+
# @param [Google::Apis::RequestOptions] options
|
1610
|
+
# Request-specific options
|
1611
|
+
#
|
1612
|
+
# @yield [result, err] Result & error if block supplied
|
1613
|
+
# @yieldparam result [Google::Apis::EventarcV1::ListMessageBusesResponse] parsed result object
|
1614
|
+
# @yieldparam err [StandardError] error object if request failed
|
1615
|
+
#
|
1616
|
+
# @return [Google::Apis::EventarcV1::ListMessageBusesResponse]
|
1617
|
+
#
|
1618
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1619
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1620
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1621
|
+
def list_project_location_message_buses(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1622
|
+
command = make_simple_command(:get, 'v1/{+parent}/messageBuses', options)
|
1623
|
+
command.response_representation = Google::Apis::EventarcV1::ListMessageBusesResponse::Representation
|
1624
|
+
command.response_class = Google::Apis::EventarcV1::ListMessageBusesResponse
|
1625
|
+
command.params['parent'] = parent unless parent.nil?
|
1626
|
+
command.query['filter'] = filter unless filter.nil?
|
1627
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1628
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1629
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1630
|
+
command.query['fields'] = fields unless fields.nil?
|
1631
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1632
|
+
execute_or_queue_command(command, &block)
|
1633
|
+
end
|
1634
|
+
|
1635
|
+
# List message bus enrollments.
|
1636
|
+
# @param [String] parent
|
1637
|
+
# Required. The parent message bus to list enrollments on.
|
1638
|
+
# @param [Fixnum] page_size
|
1639
|
+
# Optional. The maximum number of results to return on each page. Note: The
|
1640
|
+
# service may send fewer.
|
1641
|
+
# @param [String] page_token
|
1642
|
+
# Optional. The page token; provide the value from the `next_page_token` field
|
1643
|
+
# in a previous call to retrieve the subsequent page. When paginating, all other
|
1644
|
+
# parameters provided must match the previous call that provided the page token.
|
1645
|
+
# @param [String] fields
|
1646
|
+
# Selector specifying which fields to include in a partial response.
|
1647
|
+
# @param [String] quota_user
|
1648
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1649
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1650
|
+
# @param [Google::Apis::RequestOptions] options
|
1651
|
+
# Request-specific options
|
1652
|
+
#
|
1653
|
+
# @yield [result, err] Result & error if block supplied
|
1654
|
+
# @yieldparam result [Google::Apis::EventarcV1::ListMessageBusEnrollmentsResponse] parsed result object
|
1655
|
+
# @yieldparam err [StandardError] error object if request failed
|
1656
|
+
#
|
1657
|
+
# @return [Google::Apis::EventarcV1::ListMessageBusEnrollmentsResponse]
|
1658
|
+
#
|
1659
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1660
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1661
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1662
|
+
def list_project_location_message_bus_enrollments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1663
|
+
command = make_simple_command(:get, 'v1/{+parent}:listEnrollments', options)
|
1664
|
+
command.response_representation = Google::Apis::EventarcV1::ListMessageBusEnrollmentsResponse::Representation
|
1665
|
+
command.response_class = Google::Apis::EventarcV1::ListMessageBusEnrollmentsResponse
|
1666
|
+
command.params['parent'] = parent unless parent.nil?
|
1667
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1668
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1669
|
+
command.query['fields'] = fields unless fields.nil?
|
1670
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1671
|
+
execute_or_queue_command(command, &block)
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
# Update a single message bus.
|
1675
|
+
# @param [String] name
|
1676
|
+
# Identifier. Resource name of the form projects/`project`/locations/`location`/
|
1677
|
+
# messageBuses/`message_bus`
|
1678
|
+
# @param [Google::Apis::EventarcV1::MessageBus] message_bus_object
|
1679
|
+
# @param [Boolean] allow_missing
|
1680
|
+
# Optional. If set to true, and the MessageBus is not found, a new MessageBus
|
1681
|
+
# will be created. In this situation, `update_mask` is ignored.
|
1682
|
+
# @param [String] update_mask
|
1683
|
+
# Optional. The fields to be updated; only fields explicitly provided are
|
1684
|
+
# updated. If no field mask is provided, all provided fields in the request are
|
1685
|
+
# updated. To update all fields, provide a field mask of "*".
|
1686
|
+
# @param [Boolean] validate_only
|
1687
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
1688
|
+
# it.
|
1689
|
+
# @param [String] fields
|
1690
|
+
# Selector specifying which fields to include in a partial response.
|
1691
|
+
# @param [String] quota_user
|
1692
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1693
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1694
|
+
# @param [Google::Apis::RequestOptions] options
|
1695
|
+
# Request-specific options
|
1696
|
+
#
|
1697
|
+
# @yield [result, err] Result & error if block supplied
|
1698
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
1699
|
+
# @yieldparam err [StandardError] error object if request failed
|
1700
|
+
#
|
1701
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
1702
|
+
#
|
1703
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1704
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1705
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1706
|
+
def patch_project_location_message_bus(name, message_bus_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1707
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1708
|
+
command.request_representation = Google::Apis::EventarcV1::MessageBus::Representation
|
1709
|
+
command.request_object = message_bus_object
|
1710
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
1711
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
1712
|
+
command.params['name'] = name unless name.nil?
|
1713
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
1714
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1715
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1716
|
+
command.query['fields'] = fields unless fields.nil?
|
1717
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1718
|
+
execute_or_queue_command(command, &block)
|
1719
|
+
end
|
1720
|
+
|
1721
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1722
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
1723
|
+
# PERMISSION_DENIED` errors.
|
1724
|
+
# @param [String] resource
|
1725
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1726
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1727
|
+
# appropriate value for this field.
|
1728
|
+
# @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1729
|
+
# @param [String] fields
|
1730
|
+
# Selector specifying which fields to include in a partial response.
|
1731
|
+
# @param [String] quota_user
|
1732
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1733
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1734
|
+
# @param [Google::Apis::RequestOptions] options
|
1735
|
+
# Request-specific options
|
1736
|
+
#
|
1737
|
+
# @yield [result, err] Result & error if block supplied
|
1738
|
+
# @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
|
1739
|
+
# @yieldparam err [StandardError] error object if request failed
|
1740
|
+
#
|
1741
|
+
# @return [Google::Apis::EventarcV1::Policy]
|
1742
|
+
#
|
1743
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1744
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1745
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1746
|
+
def set_message_bus_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1747
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1748
|
+
command.request_representation = Google::Apis::EventarcV1::SetIamPolicyRequest::Representation
|
1749
|
+
command.request_object = set_iam_policy_request_object
|
1750
|
+
command.response_representation = Google::Apis::EventarcV1::Policy::Representation
|
1751
|
+
command.response_class = Google::Apis::EventarcV1::Policy
|
1752
|
+
command.params['resource'] = resource unless resource.nil?
|
1753
|
+
command.query['fields'] = fields unless fields.nil?
|
1754
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1755
|
+
execute_or_queue_command(command, &block)
|
1756
|
+
end
|
1757
|
+
|
1758
|
+
# Returns permissions that a caller has on the specified resource. If the
|
1759
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
1760
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
1761
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
1762
|
+
# This operation may "fail open" without warning.
|
1763
|
+
# @param [String] resource
|
1764
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1765
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1766
|
+
# appropriate value for this field.
|
1767
|
+
# @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1768
|
+
# @param [String] fields
|
1769
|
+
# Selector specifying which fields to include in a partial response.
|
1770
|
+
# @param [String] quota_user
|
1771
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1772
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1773
|
+
# @param [Google::Apis::RequestOptions] options
|
1774
|
+
# Request-specific options
|
1775
|
+
#
|
1776
|
+
# @yield [result, err] Result & error if block supplied
|
1777
|
+
# @yieldparam result [Google::Apis::EventarcV1::TestIamPermissionsResponse] parsed result object
|
1778
|
+
# @yieldparam err [StandardError] error object if request failed
|
1779
|
+
#
|
1780
|
+
# @return [Google::Apis::EventarcV1::TestIamPermissionsResponse]
|
1781
|
+
#
|
1782
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1783
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1784
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1785
|
+
def test_message_bus_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1786
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1787
|
+
command.request_representation = Google::Apis::EventarcV1::TestIamPermissionsRequest::Representation
|
1788
|
+
command.request_object = test_iam_permissions_request_object
|
1789
|
+
command.response_representation = Google::Apis::EventarcV1::TestIamPermissionsResponse::Representation
|
1790
|
+
command.response_class = Google::Apis::EventarcV1::TestIamPermissionsResponse
|
1791
|
+
command.params['resource'] = resource unless resource.nil?
|
1792
|
+
command.query['fields'] = fields unless fields.nil?
|
1793
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1794
|
+
execute_or_queue_command(command, &block)
|
1795
|
+
end
|
1796
|
+
|
768
1797
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
769
1798
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
770
1799
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -774,8 +1803,111 @@ module Google
|
|
774
1803
|
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
775
1804
|
# corresponding to `Code.CANCELLED`.
|
776
1805
|
# @param [String] name
|
777
|
-
# The name of the operation resource to be cancelled.
|
778
|
-
# @param [Google::Apis::EventarcV1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
|
1806
|
+
# The name of the operation resource to be cancelled.
|
1807
|
+
# @param [Google::Apis::EventarcV1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
|
1808
|
+
# @param [String] fields
|
1809
|
+
# Selector specifying which fields to include in a partial response.
|
1810
|
+
# @param [String] quota_user
|
1811
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1812
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1813
|
+
# @param [Google::Apis::RequestOptions] options
|
1814
|
+
# Request-specific options
|
1815
|
+
#
|
1816
|
+
# @yield [result, err] Result & error if block supplied
|
1817
|
+
# @yieldparam result [Google::Apis::EventarcV1::Empty] parsed result object
|
1818
|
+
# @yieldparam err [StandardError] error object if request failed
|
1819
|
+
#
|
1820
|
+
# @return [Google::Apis::EventarcV1::Empty]
|
1821
|
+
#
|
1822
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1823
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1824
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1825
|
+
def cancel_project_location_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1826
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
1827
|
+
command.request_representation = Google::Apis::EventarcV1::GoogleLongrunningCancelOperationRequest::Representation
|
1828
|
+
command.request_object = google_longrunning_cancel_operation_request_object
|
1829
|
+
command.response_representation = Google::Apis::EventarcV1::Empty::Representation
|
1830
|
+
command.response_class = Google::Apis::EventarcV1::Empty
|
1831
|
+
command.params['name'] = name unless name.nil?
|
1832
|
+
command.query['fields'] = fields unless fields.nil?
|
1833
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1834
|
+
execute_or_queue_command(command, &block)
|
1835
|
+
end
|
1836
|
+
|
1837
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
1838
|
+
# longer interested in the operation result. It does not cancel the operation.
|
1839
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
1840
|
+
# UNIMPLEMENTED`.
|
1841
|
+
# @param [String] name
|
1842
|
+
# The name of the operation resource to be deleted.
|
1843
|
+
# @param [String] fields
|
1844
|
+
# Selector specifying which fields to include in a partial response.
|
1845
|
+
# @param [String] quota_user
|
1846
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1847
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1848
|
+
# @param [Google::Apis::RequestOptions] options
|
1849
|
+
# Request-specific options
|
1850
|
+
#
|
1851
|
+
# @yield [result, err] Result & error if block supplied
|
1852
|
+
# @yieldparam result [Google::Apis::EventarcV1::Empty] parsed result object
|
1853
|
+
# @yieldparam err [StandardError] error object if request failed
|
1854
|
+
#
|
1855
|
+
# @return [Google::Apis::EventarcV1::Empty]
|
1856
|
+
#
|
1857
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1858
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1859
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1860
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1861
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1862
|
+
command.response_representation = Google::Apis::EventarcV1::Empty::Representation
|
1863
|
+
command.response_class = Google::Apis::EventarcV1::Empty
|
1864
|
+
command.params['name'] = name unless name.nil?
|
1865
|
+
command.query['fields'] = fields unless fields.nil?
|
1866
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1867
|
+
execute_or_queue_command(command, &block)
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
1871
|
+
# to poll the operation result at intervals as recommended by the API service.
|
1872
|
+
# @param [String] name
|
1873
|
+
# The name of the operation resource.
|
1874
|
+
# @param [String] fields
|
1875
|
+
# Selector specifying which fields to include in a partial response.
|
1876
|
+
# @param [String] quota_user
|
1877
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1878
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1879
|
+
# @param [Google::Apis::RequestOptions] options
|
1880
|
+
# Request-specific options
|
1881
|
+
#
|
1882
|
+
# @yield [result, err] Result & error if block supplied
|
1883
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
1884
|
+
# @yieldparam err [StandardError] error object if request failed
|
1885
|
+
#
|
1886
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
1887
|
+
#
|
1888
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1889
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1890
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1891
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1892
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1893
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
1894
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
1895
|
+
command.params['name'] = name unless name.nil?
|
1896
|
+
command.query['fields'] = fields unless fields.nil?
|
1897
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1898
|
+
execute_or_queue_command(command, &block)
|
1899
|
+
end
|
1900
|
+
|
1901
|
+
# Lists operations that match the specified filter in the request. If the server
|
1902
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
1903
|
+
# @param [String] name
|
1904
|
+
# The name of the operation's parent resource.
|
1905
|
+
# @param [String] filter
|
1906
|
+
# The standard list filter.
|
1907
|
+
# @param [Fixnum] page_size
|
1908
|
+
# The standard list page size.
|
1909
|
+
# @param [String] page_token
|
1910
|
+
# The standard list page token.
|
779
1911
|
# @param [String] fields
|
780
1912
|
# Selector specifying which fields to include in a partial response.
|
781
1913
|
# @param [String] quota_user
|
@@ -785,32 +1917,36 @@ module Google
|
|
785
1917
|
# Request-specific options
|
786
1918
|
#
|
787
1919
|
# @yield [result, err] Result & error if block supplied
|
788
|
-
# @yieldparam result [Google::Apis::EventarcV1::
|
1920
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningListOperationsResponse] parsed result object
|
789
1921
|
# @yieldparam err [StandardError] error object if request failed
|
790
1922
|
#
|
791
|
-
# @return [Google::Apis::EventarcV1::
|
1923
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningListOperationsResponse]
|
792
1924
|
#
|
793
1925
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
794
1926
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
795
1927
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
796
|
-
def
|
797
|
-
command = make_simple_command(:
|
798
|
-
command.
|
799
|
-
command.
|
800
|
-
command.response_representation = Google::Apis::EventarcV1::Empty::Representation
|
801
|
-
command.response_class = Google::Apis::EventarcV1::Empty
|
1928
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1929
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
1930
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningListOperationsResponse::Representation
|
1931
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningListOperationsResponse
|
802
1932
|
command.params['name'] = name unless name.nil?
|
1933
|
+
command.query['filter'] = filter unless filter.nil?
|
1934
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1935
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
803
1936
|
command.query['fields'] = fields unless fields.nil?
|
804
1937
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
805
1938
|
execute_or_queue_command(command, &block)
|
806
1939
|
end
|
807
1940
|
|
808
|
-
#
|
809
|
-
#
|
810
|
-
#
|
811
|
-
#
|
812
|
-
# @param [String]
|
813
|
-
# The
|
1941
|
+
# Create a new Pipeline in a particular project and location.
|
1942
|
+
# @param [String] parent
|
1943
|
+
# Required. The parent collection in which to add this pipeline.
|
1944
|
+
# @param [Google::Apis::EventarcV1::Pipeline] pipeline_object
|
1945
|
+
# @param [String] pipeline_id
|
1946
|
+
# Required. The user-provided ID to be assigned to the Pipeline.
|
1947
|
+
# @param [Boolean] validate_only
|
1948
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
1949
|
+
# it.
|
814
1950
|
# @param [String] fields
|
815
1951
|
# Selector specifying which fields to include in a partial response.
|
816
1952
|
# @param [String] quota_user
|
@@ -820,28 +1956,40 @@ module Google
|
|
820
1956
|
# Request-specific options
|
821
1957
|
#
|
822
1958
|
# @yield [result, err] Result & error if block supplied
|
823
|
-
# @yieldparam result [Google::Apis::EventarcV1::
|
1959
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
824
1960
|
# @yieldparam err [StandardError] error object if request failed
|
825
1961
|
#
|
826
|
-
# @return [Google::Apis::EventarcV1::
|
1962
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
827
1963
|
#
|
828
1964
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
829
1965
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
830
1966
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
831
|
-
def
|
832
|
-
command = make_simple_command(:
|
833
|
-
command.
|
834
|
-
command.
|
835
|
-
command.
|
1967
|
+
def create_project_location_pipeline(parent, pipeline_object = nil, pipeline_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1968
|
+
command = make_simple_command(:post, 'v1/{+parent}/pipelines', options)
|
1969
|
+
command.request_representation = Google::Apis::EventarcV1::Pipeline::Representation
|
1970
|
+
command.request_object = pipeline_object
|
1971
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
1972
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
1973
|
+
command.params['parent'] = parent unless parent.nil?
|
1974
|
+
command.query['pipelineId'] = pipeline_id unless pipeline_id.nil?
|
1975
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
836
1976
|
command.query['fields'] = fields unless fields.nil?
|
837
1977
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
838
1978
|
execute_or_queue_command(command, &block)
|
839
1979
|
end
|
840
1980
|
|
841
|
-
#
|
842
|
-
# to poll the operation result at intervals as recommended by the API service.
|
1981
|
+
# Delete a single pipeline.
|
843
1982
|
# @param [String] name
|
844
|
-
# The name of the
|
1983
|
+
# Required. The name of the Pipeline to be deleted.
|
1984
|
+
# @param [Boolean] allow_missing
|
1985
|
+
# Optional. If set to true, and the Pipeline is not found, the request will
|
1986
|
+
# succeed but no action will be taken on the server.
|
1987
|
+
# @param [String] etag
|
1988
|
+
# Optional. If provided, the Pipeline will only be deleted if the etag matches
|
1989
|
+
# the current etag on the resource.
|
1990
|
+
# @param [Boolean] validate_only
|
1991
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
1992
|
+
# it.
|
845
1993
|
# @param [String] fields
|
846
1994
|
# Selector specifying which fields to include in a partial response.
|
847
1995
|
# @param [String] quota_user
|
@@ -859,26 +2007,112 @@ module Google
|
|
859
2007
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
860
2008
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
861
2009
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
862
|
-
def
|
863
|
-
command = make_simple_command(:
|
2010
|
+
def delete_project_location_pipeline(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2011
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
864
2012
|
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
865
2013
|
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
866
2014
|
command.params['name'] = name unless name.nil?
|
2015
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
2016
|
+
command.query['etag'] = etag unless etag.nil?
|
2017
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
867
2018
|
command.query['fields'] = fields unless fields.nil?
|
868
2019
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
869
2020
|
execute_or_queue_command(command, &block)
|
870
2021
|
end
|
871
2022
|
|
872
|
-
#
|
873
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
2023
|
+
# Get a single Pipeline.
|
874
2024
|
# @param [String] name
|
875
|
-
# The name of the
|
2025
|
+
# Required. The name of the pipeline to get.
|
2026
|
+
# @param [String] fields
|
2027
|
+
# Selector specifying which fields to include in a partial response.
|
2028
|
+
# @param [String] quota_user
|
2029
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2030
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2031
|
+
# @param [Google::Apis::RequestOptions] options
|
2032
|
+
# Request-specific options
|
2033
|
+
#
|
2034
|
+
# @yield [result, err] Result & error if block supplied
|
2035
|
+
# @yieldparam result [Google::Apis::EventarcV1::Pipeline] parsed result object
|
2036
|
+
# @yieldparam err [StandardError] error object if request failed
|
2037
|
+
#
|
2038
|
+
# @return [Google::Apis::EventarcV1::Pipeline]
|
2039
|
+
#
|
2040
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2041
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2042
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2043
|
+
def get_project_location_pipeline(name, fields: nil, quota_user: nil, options: nil, &block)
|
2044
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
2045
|
+
command.response_representation = Google::Apis::EventarcV1::Pipeline::Representation
|
2046
|
+
command.response_class = Google::Apis::EventarcV1::Pipeline
|
2047
|
+
command.params['name'] = name unless name.nil?
|
2048
|
+
command.query['fields'] = fields unless fields.nil?
|
2049
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2050
|
+
execute_or_queue_command(command, &block)
|
2051
|
+
end
|
2052
|
+
|
2053
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
2054
|
+
# resource exists and does not have a policy set.
|
2055
|
+
# @param [String] resource
|
2056
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
2057
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2058
|
+
# appropriate value for this field.
|
2059
|
+
# @param [Fixnum] options_requested_policy_version
|
2060
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
2061
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
2062
|
+
# rejected. Requests for policies with any conditional role bindings must
|
2063
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
2064
|
+
# valid value or leave the field unset. The policy in the response might use the
|
2065
|
+
# policy version that you specified, or it might use a lower policy version. For
|
2066
|
+
# example, if you specify version 3, but the policy has no conditional role
|
2067
|
+
# bindings, the response uses version 1. To learn which resources support
|
2068
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2069
|
+
# google.com/iam/help/conditions/resource-policies).
|
2070
|
+
# @param [String] fields
|
2071
|
+
# Selector specifying which fields to include in a partial response.
|
2072
|
+
# @param [String] quota_user
|
2073
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2074
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2075
|
+
# @param [Google::Apis::RequestOptions] options
|
2076
|
+
# Request-specific options
|
2077
|
+
#
|
2078
|
+
# @yield [result, err] Result & error if block supplied
|
2079
|
+
# @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
|
2080
|
+
# @yieldparam err [StandardError] error object if request failed
|
2081
|
+
#
|
2082
|
+
# @return [Google::Apis::EventarcV1::Policy]
|
2083
|
+
#
|
2084
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2085
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2086
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2087
|
+
def get_project_location_pipeline_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2088
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
2089
|
+
command.response_representation = Google::Apis::EventarcV1::Policy::Representation
|
2090
|
+
command.response_class = Google::Apis::EventarcV1::Policy
|
2091
|
+
command.params['resource'] = resource unless resource.nil?
|
2092
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
2093
|
+
command.query['fields'] = fields unless fields.nil?
|
2094
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2095
|
+
execute_or_queue_command(command, &block)
|
2096
|
+
end
|
2097
|
+
|
2098
|
+
# List pipelines.
|
2099
|
+
# @param [String] parent
|
2100
|
+
# Required. The parent collection to list pipelines on.
|
876
2101
|
# @param [String] filter
|
877
|
-
# The
|
2102
|
+
# Optional. The filter field that the list request will filter on. Possible
|
2103
|
+
# filters are described in https://google.aip.dev/160.
|
2104
|
+
# @param [String] order_by
|
2105
|
+
# Optional. The sorting order of the resources returned. Value should be a comma-
|
2106
|
+
# separated list of fields. The default sorting order is ascending. To specify
|
2107
|
+
# descending order for a field, append a `desc` suffix; for example: `name desc,
|
2108
|
+
# update_time`.
|
878
2109
|
# @param [Fixnum] page_size
|
879
|
-
# The
|
2110
|
+
# Optional. The maximum number of results to return on each page. Note: The
|
2111
|
+
# service may send fewer.
|
880
2112
|
# @param [String] page_token
|
881
|
-
# The
|
2113
|
+
# Optional. The page token; provide the value from the `next_page_token` field
|
2114
|
+
# in a previous call to retrieve the subsequent page. When paginating, all other
|
2115
|
+
# parameters provided must match the previous call that provided the page token.
|
882
2116
|
# @param [String] fields
|
883
2117
|
# Selector specifying which fields to include in a partial response.
|
884
2118
|
# @param [String] quota_user
|
@@ -888,20 +2122,21 @@ module Google
|
|
888
2122
|
# Request-specific options
|
889
2123
|
#
|
890
2124
|
# @yield [result, err] Result & error if block supplied
|
891
|
-
# @yieldparam result [Google::Apis::EventarcV1::
|
2125
|
+
# @yieldparam result [Google::Apis::EventarcV1::ListPipelinesResponse] parsed result object
|
892
2126
|
# @yieldparam err [StandardError] error object if request failed
|
893
2127
|
#
|
894
|
-
# @return [Google::Apis::EventarcV1::
|
2128
|
+
# @return [Google::Apis::EventarcV1::ListPipelinesResponse]
|
895
2129
|
#
|
896
2130
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
897
2131
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
898
2132
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
899
|
-
def
|
900
|
-
command = make_simple_command(:get, 'v1/{+
|
901
|
-
command.response_representation = Google::Apis::EventarcV1::
|
902
|
-
command.response_class = Google::Apis::EventarcV1::
|
903
|
-
command.params['
|
2133
|
+
def list_project_location_pipelines(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2134
|
+
command = make_simple_command(:get, 'v1/{+parent}/pipelines', options)
|
2135
|
+
command.response_representation = Google::Apis::EventarcV1::ListPipelinesResponse::Representation
|
2136
|
+
command.response_class = Google::Apis::EventarcV1::ListPipelinesResponse
|
2137
|
+
command.params['parent'] = parent unless parent.nil?
|
904
2138
|
command.query['filter'] = filter unless filter.nil?
|
2139
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
905
2140
|
command.query['pageSize'] = page_size unless page_size.nil?
|
906
2141
|
command.query['pageToken'] = page_token unless page_token.nil?
|
907
2142
|
command.query['fields'] = fields unless fields.nil?
|
@@ -909,6 +2144,130 @@ module Google
|
|
909
2144
|
execute_or_queue_command(command, &block)
|
910
2145
|
end
|
911
2146
|
|
2147
|
+
# Update a single pipeline.
|
2148
|
+
# @param [String] name
|
2149
|
+
# Identifier. The resource name of the Pipeline. Must be unique within the
|
2150
|
+
# location of the project and must be in `projects/`project`/locations/`location`
|
2151
|
+
# /pipelines/`pipeline`` format.
|
2152
|
+
# @param [Google::Apis::EventarcV1::Pipeline] pipeline_object
|
2153
|
+
# @param [Boolean] allow_missing
|
2154
|
+
# Optional. If set to true, and the Pipeline is not found, a new Pipeline will
|
2155
|
+
# be created. In this situation, `update_mask` is ignored.
|
2156
|
+
# @param [String] update_mask
|
2157
|
+
# Optional. The fields to be updated; only fields explicitly provided are
|
2158
|
+
# updated. If no field mask is provided, all provided fields in the request are
|
2159
|
+
# updated. To update all fields, provide a field mask of "*".
|
2160
|
+
# @param [Boolean] validate_only
|
2161
|
+
# Optional. If set, validate the request and preview the review, but do not post
|
2162
|
+
# it.
|
2163
|
+
# @param [String] fields
|
2164
|
+
# Selector specifying which fields to include in a partial response.
|
2165
|
+
# @param [String] quota_user
|
2166
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2167
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2168
|
+
# @param [Google::Apis::RequestOptions] options
|
2169
|
+
# Request-specific options
|
2170
|
+
#
|
2171
|
+
# @yield [result, err] Result & error if block supplied
|
2172
|
+
# @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
|
2173
|
+
# @yieldparam err [StandardError] error object if request failed
|
2174
|
+
#
|
2175
|
+
# @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
|
2176
|
+
#
|
2177
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2178
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2179
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2180
|
+
def patch_project_location_pipeline(name, pipeline_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2181
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
2182
|
+
command.request_representation = Google::Apis::EventarcV1::Pipeline::Representation
|
2183
|
+
command.request_object = pipeline_object
|
2184
|
+
command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
|
2185
|
+
command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
|
2186
|
+
command.params['name'] = name unless name.nil?
|
2187
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
2188
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2189
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
2190
|
+
command.query['fields'] = fields unless fields.nil?
|
2191
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2192
|
+
execute_or_queue_command(command, &block)
|
2193
|
+
end
|
2194
|
+
|
2195
|
+
# Sets the access control policy on the specified resource. Replaces any
|
2196
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
2197
|
+
# PERMISSION_DENIED` errors.
|
2198
|
+
# @param [String] resource
|
2199
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
2200
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
2201
|
+
# appropriate value for this field.
|
2202
|
+
# @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
|
2203
|
+
# @param [String] fields
|
2204
|
+
# Selector specifying which fields to include in a partial response.
|
2205
|
+
# @param [String] quota_user
|
2206
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2207
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2208
|
+
# @param [Google::Apis::RequestOptions] options
|
2209
|
+
# Request-specific options
|
2210
|
+
#
|
2211
|
+
# @yield [result, err] Result & error if block supplied
|
2212
|
+
# @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
|
2213
|
+
# @yieldparam err [StandardError] error object if request failed
|
2214
|
+
#
|
2215
|
+
# @return [Google::Apis::EventarcV1::Policy]
|
2216
|
+
#
|
2217
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2218
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2219
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2220
|
+
def set_pipeline_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2221
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
2222
|
+
command.request_representation = Google::Apis::EventarcV1::SetIamPolicyRequest::Representation
|
2223
|
+
command.request_object = set_iam_policy_request_object
|
2224
|
+
command.response_representation = Google::Apis::EventarcV1::Policy::Representation
|
2225
|
+
command.response_class = Google::Apis::EventarcV1::Policy
|
2226
|
+
command.params['resource'] = resource unless resource.nil?
|
2227
|
+
command.query['fields'] = fields unless fields.nil?
|
2228
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2229
|
+
execute_or_queue_command(command, &block)
|
2230
|
+
end
|
2231
|
+
|
2232
|
+
# Returns permissions that a caller has on the specified resource. If the
|
2233
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
2234
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
2235
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
2236
|
+
# This operation may "fail open" without warning.
|
2237
|
+
# @param [String] resource
|
2238
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
2239
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
2240
|
+
# appropriate value for this field.
|
2241
|
+
# @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
2242
|
+
# @param [String] fields
|
2243
|
+
# Selector specifying which fields to include in a partial response.
|
2244
|
+
# @param [String] quota_user
|
2245
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2246
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2247
|
+
# @param [Google::Apis::RequestOptions] options
|
2248
|
+
# Request-specific options
|
2249
|
+
#
|
2250
|
+
# @yield [result, err] Result & error if block supplied
|
2251
|
+
# @yieldparam result [Google::Apis::EventarcV1::TestIamPermissionsResponse] parsed result object
|
2252
|
+
# @yieldparam err [StandardError] error object if request failed
|
2253
|
+
#
|
2254
|
+
# @return [Google::Apis::EventarcV1::TestIamPermissionsResponse]
|
2255
|
+
#
|
2256
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2257
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2258
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2259
|
+
def test_pipeline_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2260
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
2261
|
+
command.request_representation = Google::Apis::EventarcV1::TestIamPermissionsRequest::Representation
|
2262
|
+
command.request_object = test_iam_permissions_request_object
|
2263
|
+
command.response_representation = Google::Apis::EventarcV1::TestIamPermissionsResponse::Representation
|
2264
|
+
command.response_class = Google::Apis::EventarcV1::TestIamPermissionsResponse
|
2265
|
+
command.params['resource'] = resource unless resource.nil?
|
2266
|
+
command.query['fields'] = fields unless fields.nil?
|
2267
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2268
|
+
execute_or_queue_command(command, &block)
|
2269
|
+
end
|
2270
|
+
|
912
2271
|
# Get a single Provider.
|
913
2272
|
# @param [String] name
|
914
2273
|
# Required. The name of the provider to get.
|