google-apis-gkehub_v1beta 0.38.0 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -592,6 +592,544 @@ module Google
592
592
  execute_or_queue_command(command, &block)
593
593
  end
594
594
 
595
+ # Creates a MembershipBinding.
596
+ # @param [String] parent
597
+ # Required. The parent (project and location) where the MembershipBinding will
598
+ # be created. Specified in the format `projects/*/locations/*/memberships/*`.
599
+ # @param [Google::Apis::GkehubV1beta::MembershipBinding] membership_binding_object
600
+ # @param [String] membership_binding_id
601
+ # Required. The ID to use for the MembershipBinding.
602
+ # @param [String] fields
603
+ # Selector specifying which fields to include in a partial response.
604
+ # @param [String] quota_user
605
+ # Available to use for quota purposes for server-side applications. Can be any
606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
607
+ # @param [Google::Apis::RequestOptions] options
608
+ # Request-specific options
609
+ #
610
+ # @yield [result, err] Result & error if block supplied
611
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
612
+ # @yieldparam err [StandardError] error object if request failed
613
+ #
614
+ # @return [Google::Apis::GkehubV1beta::Operation]
615
+ #
616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
619
+ def create_project_location_membership_binding(parent, membership_binding_object = nil, membership_binding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
620
+ command = make_simple_command(:post, 'v1beta/{+parent}/bindings', options)
621
+ command.request_representation = Google::Apis::GkehubV1beta::MembershipBinding::Representation
622
+ command.request_object = membership_binding_object
623
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
624
+ command.response_class = Google::Apis::GkehubV1beta::Operation
625
+ command.params['parent'] = parent unless parent.nil?
626
+ command.query['membershipBindingId'] = membership_binding_id unless membership_binding_id.nil?
627
+ command.query['fields'] = fields unless fields.nil?
628
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
629
+ execute_or_queue_command(command, &block)
630
+ end
631
+
632
+ # Deletes a MembershipBinding.
633
+ # @param [String] name
634
+ # Required. The MembershipBinding resource name in the format `projects/*/
635
+ # locations/*/memberships/*/bindings/*`.
636
+ # @param [String] fields
637
+ # Selector specifying which fields to include in a partial response.
638
+ # @param [String] quota_user
639
+ # Available to use for quota purposes for server-side applications. Can be any
640
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
641
+ # @param [Google::Apis::RequestOptions] options
642
+ # Request-specific options
643
+ #
644
+ # @yield [result, err] Result & error if block supplied
645
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
646
+ # @yieldparam err [StandardError] error object if request failed
647
+ #
648
+ # @return [Google::Apis::GkehubV1beta::Operation]
649
+ #
650
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
651
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
652
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
653
+ def delete_project_location_membership_binding(name, fields: nil, quota_user: nil, options: nil, &block)
654
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
655
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
656
+ command.response_class = Google::Apis::GkehubV1beta::Operation
657
+ command.params['name'] = name unless name.nil?
658
+ command.query['fields'] = fields unless fields.nil?
659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
660
+ execute_or_queue_command(command, &block)
661
+ end
662
+
663
+ # Returns the details of a MembershipBinding.
664
+ # @param [String] name
665
+ # Required. The MembershipBinding resource name in the format `projects/*/
666
+ # locations/*/memberships/*/bindings/*`.
667
+ # @param [String] fields
668
+ # Selector specifying which fields to include in a partial response.
669
+ # @param [String] quota_user
670
+ # Available to use for quota purposes for server-side applications. Can be any
671
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
672
+ # @param [Google::Apis::RequestOptions] options
673
+ # Request-specific options
674
+ #
675
+ # @yield [result, err] Result & error if block supplied
676
+ # @yieldparam result [Google::Apis::GkehubV1beta::MembershipBinding] parsed result object
677
+ # @yieldparam err [StandardError] error object if request failed
678
+ #
679
+ # @return [Google::Apis::GkehubV1beta::MembershipBinding]
680
+ #
681
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
682
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
683
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
684
+ def get_project_location_membership_binding(name, fields: nil, quota_user: nil, options: nil, &block)
685
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
686
+ command.response_representation = Google::Apis::GkehubV1beta::MembershipBinding::Representation
687
+ command.response_class = Google::Apis::GkehubV1beta::MembershipBinding
688
+ command.params['name'] = name unless name.nil?
689
+ command.query['fields'] = fields unless fields.nil?
690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
691
+ execute_or_queue_command(command, &block)
692
+ end
693
+
694
+ # Lists MembershipBindings.
695
+ # @param [String] parent
696
+ # Required. The parent Membership for which the MembershipBindings will be
697
+ # listed. Specified in the format `projects/*/locations/*/memberships/*`.
698
+ # @param [Fixnum] page_size
699
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
700
+ # of resources to return. If unspecified or set to 0, all resources will be
701
+ # returned.
702
+ # @param [String] page_token
703
+ # Optional. Token returned by previous call to `ListMembershipBindings` which
704
+ # specifies the position in the list from where to continue listing the
705
+ # resources.
706
+ # @param [String] fields
707
+ # Selector specifying which fields to include in a partial response.
708
+ # @param [String] quota_user
709
+ # Available to use for quota purposes for server-side applications. Can be any
710
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
711
+ # @param [Google::Apis::RequestOptions] options
712
+ # Request-specific options
713
+ #
714
+ # @yield [result, err] Result & error if block supplied
715
+ # @yieldparam result [Google::Apis::GkehubV1beta::ListMembershipBindingsResponse] parsed result object
716
+ # @yieldparam err [StandardError] error object if request failed
717
+ #
718
+ # @return [Google::Apis::GkehubV1beta::ListMembershipBindingsResponse]
719
+ #
720
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
721
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
722
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
723
+ def list_project_location_membership_bindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
724
+ command = make_simple_command(:get, 'v1beta/{+parent}/bindings', options)
725
+ command.response_representation = Google::Apis::GkehubV1beta::ListMembershipBindingsResponse::Representation
726
+ command.response_class = Google::Apis::GkehubV1beta::ListMembershipBindingsResponse
727
+ command.params['parent'] = parent unless parent.nil?
728
+ command.query['pageSize'] = page_size unless page_size.nil?
729
+ command.query['pageToken'] = page_token unless page_token.nil?
730
+ command.query['fields'] = fields unless fields.nil?
731
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
732
+ execute_or_queue_command(command, &block)
733
+ end
734
+
735
+ # Updates a MembershipBinding.
736
+ # @param [String] name
737
+ # The resource name for the membershipbinding itself `projects/`project`/
738
+ # locations/`location`/memberships/`membership`/bindings/`membershipbinding``
739
+ # @param [Google::Apis::GkehubV1beta::MembershipBinding] membership_binding_object
740
+ # @param [String] update_mask
741
+ # Required. The fields to be updated.
742
+ # @param [String] fields
743
+ # Selector specifying which fields to include in a partial response.
744
+ # @param [String] quota_user
745
+ # Available to use for quota purposes for server-side applications. Can be any
746
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
747
+ # @param [Google::Apis::RequestOptions] options
748
+ # Request-specific options
749
+ #
750
+ # @yield [result, err] Result & error if block supplied
751
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
752
+ # @yieldparam err [StandardError] error object if request failed
753
+ #
754
+ # @return [Google::Apis::GkehubV1beta::Operation]
755
+ #
756
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
757
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
758
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
759
+ def patch_project_location_membership_binding(name, membership_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
760
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
761
+ command.request_representation = Google::Apis::GkehubV1beta::MembershipBinding::Representation
762
+ command.request_object = membership_binding_object
763
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
764
+ command.response_class = Google::Apis::GkehubV1beta::Operation
765
+ command.params['name'] = name unless name.nil?
766
+ command.query['updateMask'] = update_mask unless update_mask.nil?
767
+ command.query['fields'] = fields unless fields.nil?
768
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
769
+ execute_or_queue_command(command, &block)
770
+ end
771
+
772
+ # Creates a fleet namespace.
773
+ # @param [String] parent
774
+ # Required. The parent (project and location) where the Namespace will be
775
+ # created. Specified in the format `projects/*/locations/*`.
776
+ # @param [Google::Apis::GkehubV1beta::Namespace] namespace_object
777
+ # @param [String] namespace_id
778
+ # Required. Client chosen ID for the Namespace. `namespace_id` must be a valid
779
+ # RFC 1123 compliant DNS label: 1. At most 63 characters in length 2. It must
780
+ # consist of lower case alphanumeric characters or `-` 3. It must start and end
781
+ # with an alphanumeric character Which can be expressed as the regex: `[a-z0-9]([
782
+ # -a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
783
+ # @param [String] fields
784
+ # Selector specifying which fields to include in a partial response.
785
+ # @param [String] quota_user
786
+ # Available to use for quota purposes for server-side applications. Can be any
787
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
788
+ # @param [Google::Apis::RequestOptions] options
789
+ # Request-specific options
790
+ #
791
+ # @yield [result, err] Result & error if block supplied
792
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
793
+ # @yieldparam err [StandardError] error object if request failed
794
+ #
795
+ # @return [Google::Apis::GkehubV1beta::Operation]
796
+ #
797
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
798
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
799
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
800
+ def create_project_location_namespace(parent, namespace_object = nil, namespace_id: nil, fields: nil, quota_user: nil, options: nil, &block)
801
+ command = make_simple_command(:post, 'v1beta/{+parent}/namespaces', options)
802
+ command.request_representation = Google::Apis::GkehubV1beta::Namespace::Representation
803
+ command.request_object = namespace_object
804
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
805
+ command.response_class = Google::Apis::GkehubV1beta::Operation
806
+ command.params['parent'] = parent unless parent.nil?
807
+ command.query['namespaceId'] = namespace_id unless namespace_id.nil?
808
+ command.query['fields'] = fields unless fields.nil?
809
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
810
+ execute_or_queue_command(command, &block)
811
+ end
812
+
813
+ # Deletes a fleet namespace.
814
+ # @param [String] name
815
+ # Required. The Namespace resource name in the format `projects/*/locations/*/
816
+ # namespaces/*`.
817
+ # @param [String] fields
818
+ # Selector specifying which fields to include in a partial response.
819
+ # @param [String] quota_user
820
+ # Available to use for quota purposes for server-side applications. Can be any
821
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
822
+ # @param [Google::Apis::RequestOptions] options
823
+ # Request-specific options
824
+ #
825
+ # @yield [result, err] Result & error if block supplied
826
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
827
+ # @yieldparam err [StandardError] error object if request failed
828
+ #
829
+ # @return [Google::Apis::GkehubV1beta::Operation]
830
+ #
831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
834
+ def delete_project_location_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
835
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
836
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
837
+ command.response_class = Google::Apis::GkehubV1beta::Operation
838
+ command.params['name'] = name unless name.nil?
839
+ command.query['fields'] = fields unless fields.nil?
840
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
841
+ execute_or_queue_command(command, &block)
842
+ end
843
+
844
+ # Returns the details of a fleet namespace.
845
+ # @param [String] name
846
+ # Required. The Namespace resource name in the format `projects/*/locations/*/
847
+ # namespaces/*`.
848
+ # @param [String] fields
849
+ # Selector specifying which fields to include in a partial response.
850
+ # @param [String] quota_user
851
+ # Available to use for quota purposes for server-side applications. Can be any
852
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
853
+ # @param [Google::Apis::RequestOptions] options
854
+ # Request-specific options
855
+ #
856
+ # @yield [result, err] Result & error if block supplied
857
+ # @yieldparam result [Google::Apis::GkehubV1beta::Namespace] parsed result object
858
+ # @yieldparam err [StandardError] error object if request failed
859
+ #
860
+ # @return [Google::Apis::GkehubV1beta::Namespace]
861
+ #
862
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
863
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
864
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
865
+ def get_project_location_namespace(name, fields: nil, quota_user: nil, options: nil, &block)
866
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
867
+ command.response_representation = Google::Apis::GkehubV1beta::Namespace::Representation
868
+ command.response_class = Google::Apis::GkehubV1beta::Namespace
869
+ command.params['name'] = name unless name.nil?
870
+ command.query['fields'] = fields unless fields.nil?
871
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
872
+ execute_or_queue_command(command, &block)
873
+ end
874
+
875
+ # Lists fleet namespaces.
876
+ # @param [String] parent
877
+ # Required. The parent (project and location) where the Features will be listed.
878
+ # Specified in the format `projects/*/locations/*`.
879
+ # @param [Fixnum] page_size
880
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
881
+ # of resources to return. If unspecified or set to 0, all resources will be
882
+ # returned.
883
+ # @param [String] page_token
884
+ # Optional. Token returned by previous call to `ListFeatures` which specifies
885
+ # the position in the list from where to continue listing the resources.
886
+ # @param [String] fields
887
+ # Selector specifying which fields to include in a partial response.
888
+ # @param [String] quota_user
889
+ # Available to use for quota purposes for server-side applications. Can be any
890
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
891
+ # @param [Google::Apis::RequestOptions] options
892
+ # Request-specific options
893
+ #
894
+ # @yield [result, err] Result & error if block supplied
895
+ # @yieldparam result [Google::Apis::GkehubV1beta::ListNamespacesResponse] parsed result object
896
+ # @yieldparam err [StandardError] error object if request failed
897
+ #
898
+ # @return [Google::Apis::GkehubV1beta::ListNamespacesResponse]
899
+ #
900
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
901
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
902
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
903
+ def list_project_location_namespaces(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
904
+ command = make_simple_command(:get, 'v1beta/{+parent}/namespaces', options)
905
+ command.response_representation = Google::Apis::GkehubV1beta::ListNamespacesResponse::Representation
906
+ command.response_class = Google::Apis::GkehubV1beta::ListNamespacesResponse
907
+ command.params['parent'] = parent unless parent.nil?
908
+ command.query['pageSize'] = page_size unless page_size.nil?
909
+ command.query['pageToken'] = page_token unless page_token.nil?
910
+ command.query['fields'] = fields unless fields.nil?
911
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
912
+ execute_or_queue_command(command, &block)
913
+ end
914
+
915
+ # Updates a fleet namespace.
916
+ # @param [String] name
917
+ # The resource name for the namespace `projects/`project`/locations/`location`/
918
+ # namespaces/`namespace``
919
+ # @param [Google::Apis::GkehubV1beta::Namespace] namespace_object
920
+ # @param [String] update_mask
921
+ # Required. The fields to be updated.
922
+ # @param [String] fields
923
+ # Selector specifying which fields to include in a partial response.
924
+ # @param [String] quota_user
925
+ # Available to use for quota purposes for server-side applications. Can be any
926
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
927
+ # @param [Google::Apis::RequestOptions] options
928
+ # Request-specific options
929
+ #
930
+ # @yield [result, err] Result & error if block supplied
931
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
932
+ # @yieldparam err [StandardError] error object if request failed
933
+ #
934
+ # @return [Google::Apis::GkehubV1beta::Operation]
935
+ #
936
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
937
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
938
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
939
+ def patch_project_location_namespace(name, namespace_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
940
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
941
+ command.request_representation = Google::Apis::GkehubV1beta::Namespace::Representation
942
+ command.request_object = namespace_object
943
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
944
+ command.response_class = Google::Apis::GkehubV1beta::Operation
945
+ command.params['name'] = name unless name.nil?
946
+ command.query['updateMask'] = update_mask unless update_mask.nil?
947
+ command.query['fields'] = fields unless fields.nil?
948
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
949
+ execute_or_queue_command(command, &block)
950
+ end
951
+
952
+ # Creates a RBACRoleBinding.
953
+ # @param [String] parent
954
+ # Required. The parent (project and location) where the RBACRoleBinding will be
955
+ # created. Specified in the format `projects/*/locations/*/namespaces/*`.
956
+ # @param [Google::Apis::GkehubV1beta::RbacRoleBinding] rbac_role_binding_object
957
+ # @param [String] rbacrolebinding_id
958
+ # Required. Client chosen ID for the RBACRoleBinding. `rbacrolebinding_id` must
959
+ # be a valid RFC 1123 compliant DNS label: 1. At most 63 characters in length 2.
960
+ # It must consist of lower case alphanumeric characters or `-` 3. It must start
961
+ # and end with an alphanumeric character Which can be expressed as the regex: `[
962
+ # a-z0-9]([-a-z0-9]*[a-z0-9])?`, with a maximum length of 63 characters.
963
+ # @param [String] fields
964
+ # Selector specifying which fields to include in a partial response.
965
+ # @param [String] quota_user
966
+ # Available to use for quota purposes for server-side applications. Can be any
967
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
968
+ # @param [Google::Apis::RequestOptions] options
969
+ # Request-specific options
970
+ #
971
+ # @yield [result, err] Result & error if block supplied
972
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
973
+ # @yieldparam err [StandardError] error object if request failed
974
+ #
975
+ # @return [Google::Apis::GkehubV1beta::Operation]
976
+ #
977
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
978
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
979
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
980
+ def create_project_location_namespace_rbacrolebinding(parent, rbac_role_binding_object = nil, rbacrolebinding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
981
+ command = make_simple_command(:post, 'v1beta/{+parent}/rbacrolebindings', options)
982
+ command.request_representation = Google::Apis::GkehubV1beta::RbacRoleBinding::Representation
983
+ command.request_object = rbac_role_binding_object
984
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
985
+ command.response_class = Google::Apis::GkehubV1beta::Operation
986
+ command.params['parent'] = parent unless parent.nil?
987
+ command.query['rbacrolebindingId'] = rbacrolebinding_id unless rbacrolebinding_id.nil?
988
+ command.query['fields'] = fields unless fields.nil?
989
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
990
+ execute_or_queue_command(command, &block)
991
+ end
992
+
993
+ # Deletes a RBACRoleBinding.
994
+ # @param [String] name
995
+ # Required. The RBACRoleBinding resource name in the format `projects/*/
996
+ # locations/*/namespaces/*/rbacrolebindings/*`.
997
+ # @param [String] fields
998
+ # Selector specifying which fields to include in a partial response.
999
+ # @param [String] quota_user
1000
+ # Available to use for quota purposes for server-side applications. Can be any
1001
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1002
+ # @param [Google::Apis::RequestOptions] options
1003
+ # Request-specific options
1004
+ #
1005
+ # @yield [result, err] Result & error if block supplied
1006
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
1007
+ # @yieldparam err [StandardError] error object if request failed
1008
+ #
1009
+ # @return [Google::Apis::GkehubV1beta::Operation]
1010
+ #
1011
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1012
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1013
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1014
+ def delete_project_location_namespace_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
1015
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
1016
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
1017
+ command.response_class = Google::Apis::GkehubV1beta::Operation
1018
+ command.params['name'] = name unless name.nil?
1019
+ command.query['fields'] = fields unless fields.nil?
1020
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1021
+ execute_or_queue_command(command, &block)
1022
+ end
1023
+
1024
+ # Returns the details of a RBACRoleBinding.
1025
+ # @param [String] name
1026
+ # Required. The RBACRoleBinding resource name in the format `projects/*/
1027
+ # locations/*/namespaces/*/rbacrolebindings/*`.
1028
+ # @param [String] fields
1029
+ # Selector specifying which fields to include in a partial response.
1030
+ # @param [String] quota_user
1031
+ # Available to use for quota purposes for server-side applications. Can be any
1032
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1033
+ # @param [Google::Apis::RequestOptions] options
1034
+ # Request-specific options
1035
+ #
1036
+ # @yield [result, err] Result & error if block supplied
1037
+ # @yieldparam result [Google::Apis::GkehubV1beta::RbacRoleBinding] parsed result object
1038
+ # @yieldparam err [StandardError] error object if request failed
1039
+ #
1040
+ # @return [Google::Apis::GkehubV1beta::RbacRoleBinding]
1041
+ #
1042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1045
+ def get_project_location_namespace_rbacrolebinding(name, fields: nil, quota_user: nil, options: nil, &block)
1046
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
1047
+ command.response_representation = Google::Apis::GkehubV1beta::RbacRoleBinding::Representation
1048
+ command.response_class = Google::Apis::GkehubV1beta::RbacRoleBinding
1049
+ command.params['name'] = name unless name.nil?
1050
+ command.query['fields'] = fields unless fields.nil?
1051
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1052
+ execute_or_queue_command(command, &block)
1053
+ end
1054
+
1055
+ # Lists RBACRoleBinding.
1056
+ # @param [String] parent
1057
+ # Required. The parent (project and location) where the Features will be listed.
1058
+ # Specified in the format `projects/*/locations/*/namespaces/*`.
1059
+ # @param [Fixnum] page_size
1060
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
1061
+ # of resources to return. If unspecified or set to 0, all resources will be
1062
+ # returned.
1063
+ # @param [String] page_token
1064
+ # Optional. Token returned by previous call to `ListRBACRoleBindings` which
1065
+ # specifies the position in the list from where to continue listing the
1066
+ # resources.
1067
+ # @param [String] fields
1068
+ # Selector specifying which fields to include in a partial response.
1069
+ # @param [String] quota_user
1070
+ # Available to use for quota purposes for server-side applications. Can be any
1071
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1072
+ # @param [Google::Apis::RequestOptions] options
1073
+ # Request-specific options
1074
+ #
1075
+ # @yield [result, err] Result & error if block supplied
1076
+ # @yieldparam result [Google::Apis::GkehubV1beta::ListRbacRoleBindingsResponse] parsed result object
1077
+ # @yieldparam err [StandardError] error object if request failed
1078
+ #
1079
+ # @return [Google::Apis::GkehubV1beta::ListRbacRoleBindingsResponse]
1080
+ #
1081
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1082
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1083
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1084
+ def list_project_location_namespace_rbacrolebindings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1085
+ command = make_simple_command(:get, 'v1beta/{+parent}/rbacrolebindings', options)
1086
+ command.response_representation = Google::Apis::GkehubV1beta::ListRbacRoleBindingsResponse::Representation
1087
+ command.response_class = Google::Apis::GkehubV1beta::ListRbacRoleBindingsResponse
1088
+ command.params['parent'] = parent unless parent.nil?
1089
+ command.query['pageSize'] = page_size unless page_size.nil?
1090
+ command.query['pageToken'] = page_token unless page_token.nil?
1091
+ command.query['fields'] = fields unless fields.nil?
1092
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1093
+ execute_or_queue_command(command, &block)
1094
+ end
1095
+
1096
+ # Updates a RBACRoleBinding.
1097
+ # @param [String] name
1098
+ # The resource name for the rbacrolebinding `projects/`project`/locations/`
1099
+ # location`/namespaces/`namespace`/rbacrolebindings/`rbacrolebinding``
1100
+ # @param [Google::Apis::GkehubV1beta::RbacRoleBinding] rbac_role_binding_object
1101
+ # @param [String] update_mask
1102
+ # Required. The fields to be updated.
1103
+ # @param [String] fields
1104
+ # Selector specifying which fields to include in a partial response.
1105
+ # @param [String] quota_user
1106
+ # Available to use for quota purposes for server-side applications. Can be any
1107
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1108
+ # @param [Google::Apis::RequestOptions] options
1109
+ # Request-specific options
1110
+ #
1111
+ # @yield [result, err] Result & error if block supplied
1112
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
1113
+ # @yieldparam err [StandardError] error object if request failed
1114
+ #
1115
+ # @return [Google::Apis::GkehubV1beta::Operation]
1116
+ #
1117
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1118
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1119
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1120
+ def patch_project_location_namespace_rbacrolebinding(name, rbac_role_binding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1121
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
1122
+ command.request_representation = Google::Apis::GkehubV1beta::RbacRoleBinding::Representation
1123
+ command.request_object = rbac_role_binding_object
1124
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
1125
+ command.response_class = Google::Apis::GkehubV1beta::Operation
1126
+ command.params['name'] = name unless name.nil?
1127
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1128
+ command.query['fields'] = fields unless fields.nil?
1129
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1130
+ execute_or_queue_command(command, &block)
1131
+ end
1132
+
595
1133
  # Starts asynchronous cancellation on a long-running operation. The server makes
596
1134
  # a best effort to cancel the operation, but success is not guaranteed. If the
597
1135
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -741,6 +1279,182 @@ module Google
741
1279
  command.query['quotaUser'] = quota_user unless quota_user.nil?
742
1280
  execute_or_queue_command(command, &block)
743
1281
  end
1282
+
1283
+ # Creates a Scope.
1284
+ # @param [String] parent
1285
+ # Required. The parent (project and location) where the Scope will be created.
1286
+ # Specified in the format `projects/*/locations/*`.
1287
+ # @param [Google::Apis::GkehubV1beta::Scope] scope_object
1288
+ # @param [String] scope_id
1289
+ # Required. Client chosen ID for the Scope. `scope_id` must be a ????
1290
+ # @param [String] fields
1291
+ # Selector specifying which fields to include in a partial response.
1292
+ # @param [String] quota_user
1293
+ # Available to use for quota purposes for server-side applications. Can be any
1294
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1295
+ # @param [Google::Apis::RequestOptions] options
1296
+ # Request-specific options
1297
+ #
1298
+ # @yield [result, err] Result & error if block supplied
1299
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
1300
+ # @yieldparam err [StandardError] error object if request failed
1301
+ #
1302
+ # @return [Google::Apis::GkehubV1beta::Operation]
1303
+ #
1304
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1305
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1306
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1307
+ def create_project_location_scope(parent, scope_object = nil, scope_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1308
+ command = make_simple_command(:post, 'v1beta/{+parent}/scopes', options)
1309
+ command.request_representation = Google::Apis::GkehubV1beta::Scope::Representation
1310
+ command.request_object = scope_object
1311
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
1312
+ command.response_class = Google::Apis::GkehubV1beta::Operation
1313
+ command.params['parent'] = parent unless parent.nil?
1314
+ command.query['scopeId'] = scope_id unless scope_id.nil?
1315
+ command.query['fields'] = fields unless fields.nil?
1316
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1317
+ execute_or_queue_command(command, &block)
1318
+ end
1319
+
1320
+ # Deletes a Scope.
1321
+ # @param [String] name
1322
+ # Required. The Scope resource name in the format `projects/*/locations/*/scopes/
1323
+ # *`.
1324
+ # @param [String] fields
1325
+ # Selector specifying which fields to include in a partial response.
1326
+ # @param [String] quota_user
1327
+ # Available to use for quota purposes for server-side applications. Can be any
1328
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1329
+ # @param [Google::Apis::RequestOptions] options
1330
+ # Request-specific options
1331
+ #
1332
+ # @yield [result, err] Result & error if block supplied
1333
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
1334
+ # @yieldparam err [StandardError] error object if request failed
1335
+ #
1336
+ # @return [Google::Apis::GkehubV1beta::Operation]
1337
+ #
1338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1341
+ def delete_project_location_scope(name, fields: nil, quota_user: nil, options: nil, &block)
1342
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
1343
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
1344
+ command.response_class = Google::Apis::GkehubV1beta::Operation
1345
+ command.params['name'] = name unless name.nil?
1346
+ command.query['fields'] = fields unless fields.nil?
1347
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1348
+ execute_or_queue_command(command, &block)
1349
+ end
1350
+
1351
+ # Returns the details of a Scope.
1352
+ # @param [String] name
1353
+ # Required. The Scope resource name in the format `projects/*/locations/*/scopes/
1354
+ # *`.
1355
+ # @param [String] fields
1356
+ # Selector specifying which fields to include in a partial response.
1357
+ # @param [String] quota_user
1358
+ # Available to use for quota purposes for server-side applications. Can be any
1359
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1360
+ # @param [Google::Apis::RequestOptions] options
1361
+ # Request-specific options
1362
+ #
1363
+ # @yield [result, err] Result & error if block supplied
1364
+ # @yieldparam result [Google::Apis::GkehubV1beta::Scope] parsed result object
1365
+ # @yieldparam err [StandardError] error object if request failed
1366
+ #
1367
+ # @return [Google::Apis::GkehubV1beta::Scope]
1368
+ #
1369
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1370
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1371
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1372
+ def get_project_location_scope(name, fields: nil, quota_user: nil, options: nil, &block)
1373
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
1374
+ command.response_representation = Google::Apis::GkehubV1beta::Scope::Representation
1375
+ command.response_class = Google::Apis::GkehubV1beta::Scope
1376
+ command.params['name'] = name unless name.nil?
1377
+ command.query['fields'] = fields unless fields.nil?
1378
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1379
+ execute_or_queue_command(command, &block)
1380
+ end
1381
+
1382
+ # Lists Scopes.
1383
+ # @param [String] parent
1384
+ # Required. The parent (project and location) where the Scope will be listed.
1385
+ # Specified in the format `projects/*/locations/*`.
1386
+ # @param [Fixnum] page_size
1387
+ # Optional. When requesting a 'page' of resources, `page_size` specifies number
1388
+ # of resources to return. If unspecified or set to 0, all resources will be
1389
+ # returned.
1390
+ # @param [String] page_token
1391
+ # Optional. Token returned by previous call to `ListScopes` which specifies the
1392
+ # position in the list from where to continue listing the resources.
1393
+ # @param [String] fields
1394
+ # Selector specifying which fields to include in a partial response.
1395
+ # @param [String] quota_user
1396
+ # Available to use for quota purposes for server-side applications. Can be any
1397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1398
+ # @param [Google::Apis::RequestOptions] options
1399
+ # Request-specific options
1400
+ #
1401
+ # @yield [result, err] Result & error if block supplied
1402
+ # @yieldparam result [Google::Apis::GkehubV1beta::ListScopesResponse] parsed result object
1403
+ # @yieldparam err [StandardError] error object if request failed
1404
+ #
1405
+ # @return [Google::Apis::GkehubV1beta::ListScopesResponse]
1406
+ #
1407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1410
+ def list_project_location_scopes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1411
+ command = make_simple_command(:get, 'v1beta/{+parent}/scopes', options)
1412
+ command.response_representation = Google::Apis::GkehubV1beta::ListScopesResponse::Representation
1413
+ command.response_class = Google::Apis::GkehubV1beta::ListScopesResponse
1414
+ command.params['parent'] = parent unless parent.nil?
1415
+ command.query['pageSize'] = page_size unless page_size.nil?
1416
+ command.query['pageToken'] = page_token unless page_token.nil?
1417
+ command.query['fields'] = fields unless fields.nil?
1418
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1419
+ execute_or_queue_command(command, &block)
1420
+ end
1421
+
1422
+ # Updates a scopes.
1423
+ # @param [String] name
1424
+ # The resource name for the scope `projects/`project`/locations/`location`/
1425
+ # scopes/`scope``
1426
+ # @param [Google::Apis::GkehubV1beta::Scope] scope_object
1427
+ # @param [String] update_mask
1428
+ # Required. The fields to be updated.
1429
+ # @param [String] fields
1430
+ # Selector specifying which fields to include in a partial response.
1431
+ # @param [String] quota_user
1432
+ # Available to use for quota purposes for server-side applications. Can be any
1433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1434
+ # @param [Google::Apis::RequestOptions] options
1435
+ # Request-specific options
1436
+ #
1437
+ # @yield [result, err] Result & error if block supplied
1438
+ # @yieldparam result [Google::Apis::GkehubV1beta::Operation] parsed result object
1439
+ # @yieldparam err [StandardError] error object if request failed
1440
+ #
1441
+ # @return [Google::Apis::GkehubV1beta::Operation]
1442
+ #
1443
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1444
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1445
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1446
+ def patch_project_location_scope(name, scope_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1447
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
1448
+ command.request_representation = Google::Apis::GkehubV1beta::Scope::Representation
1449
+ command.request_object = scope_object
1450
+ command.response_representation = Google::Apis::GkehubV1beta::Operation::Representation
1451
+ command.response_class = Google::Apis::GkehubV1beta::Operation
1452
+ command.params['name'] = name unless name.nil?
1453
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1454
+ command.query['fields'] = fields unless fields.nil?
1455
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1456
+ execute_or_queue_command(command, &block)
1457
+ end
744
1458
 
745
1459
  protected
746
1460