@@ -2592,6 +2592,66 @@ def move_org_membership(name, move_org_membership_request_object = nil, fields:
25922592 execute_or_queue_command ( command , &block )
25932593 end
25942594
2595+ # Create a policy.
2596+ # @param [Google::Apis::CloudidentityV1beta1::Policy] policy_object
2597+ # @param [String] fields
2598+ # Selector specifying which fields to include in a partial response.
2599+ # @param [String] quota_user
2600+ # Available to use for quota purposes for server-side applications. Can be any
2601+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2602+ # @param [Google::Apis::RequestOptions] options
2603+ # Request-specific options
2604+ #
2605+ # @yield [result, err] Result & error if block supplied
2606+ # @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object
2607+ # @yieldparam err [StandardError] error object if request failed
2608+ #
2609+ # @return [Google::Apis::CloudidentityV1beta1::Operation]
2610+ #
2611+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2612+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2613+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2614+ def create_policy ( policy_object = nil , fields : nil , quota_user : nil , options : nil , &block )
2615+ command = make_simple_command ( :post , 'v1beta1/policies' , options )
2616+ command . request_representation = Google ::Apis ::CloudidentityV1beta1 ::Policy ::Representation
2617+ command . request_object = policy_object
2618+ command . response_representation = Google ::Apis ::CloudidentityV1beta1 ::Operation ::Representation
2619+ command . response_class = Google ::Apis ::CloudidentityV1beta1 ::Operation
2620+ command . query [ 'fields' ] = fields unless fields . nil?
2621+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
2622+ execute_or_queue_command ( command , &block )
2623+ end
2624+
2625+ # Delete a policy.
2626+ # @param [String] name
2627+ # Required. The name of the policy to retrieve. Format: "policies/`policy`".
2628+ # @param [String] fields
2629+ # Selector specifying which fields to include in a partial response.
2630+ # @param [String] quota_user
2631+ # Available to use for quota purposes for server-side applications. Can be any
2632+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2633+ # @param [Google::Apis::RequestOptions] options
2634+ # Request-specific options
2635+ #
2636+ # @yield [result, err] Result & error if block supplied
2637+ # @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object
2638+ # @yieldparam err [StandardError] error object if request failed
2639+ #
2640+ # @return [Google::Apis::CloudidentityV1beta1::Operation]
2641+ #
2642+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2643+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2644+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2645+ def delete_policy ( name , fields : nil , quota_user : nil , options : nil , &block )
2646+ command = make_simple_command ( :delete , 'v1beta1/{+name}' , options )
2647+ command . response_representation = Google ::Apis ::CloudidentityV1beta1 ::Operation ::Representation
2648+ command . response_class = Google ::Apis ::CloudidentityV1beta1 ::Operation
2649+ command . params [ 'name' ] = name unless name . nil?
2650+ command . query [ 'fields' ] = fields unless fields . nil?
2651+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
2652+ execute_or_queue_command ( command , &block )
2653+ end
2654+
25952655 # Get a policy.
25962656 # @param [String] name
25972657 # Required. The name of the policy to retrieve. Format: "policies/`policy`".
@@ -2674,6 +2734,40 @@ def list_policies(filter: nil, page_size: nil, page_token: nil, fields: nil, quo
26742734 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
26752735 execute_or_queue_command ( command , &block )
26762736 end
2737+
2738+ # Update a policy.
2739+ # @param [String] name
2740+ # Output only. Identifier. The [resource name](https://cloud.google.com/apis/
2741+ # design/resource_names) of the Policy. Format: policies/`policy`.
2742+ # @param [Google::Apis::CloudidentityV1beta1::Policy] policy_object
2743+ # @param [String] fields
2744+ # Selector specifying which fields to include in a partial response.
2745+ # @param [String] quota_user
2746+ # Available to use for quota purposes for server-side applications. Can be any
2747+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2748+ # @param [Google::Apis::RequestOptions] options
2749+ # Request-specific options
2750+ #
2751+ # @yield [result, err] Result & error if block supplied
2752+ # @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object
2753+ # @yieldparam err [StandardError] error object if request failed
2754+ #
2755+ # @return [Google::Apis::CloudidentityV1beta1::Operation]
2756+ #
2757+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2758+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2759+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2760+ def patch_policy ( name , policy_object = nil , fields : nil , quota_user : nil , options : nil , &block )
2761+ command = make_simple_command ( :patch , 'v1beta1/{+name}' , options )
2762+ command . request_representation = Google ::Apis ::CloudidentityV1beta1 ::Policy ::Representation
2763+ command . request_object = policy_object
2764+ command . response_representation = Google ::Apis ::CloudidentityV1beta1 ::Operation ::Representation
2765+ command . response_class = Google ::Apis ::CloudidentityV1beta1 ::Operation
2766+ command . params [ 'name' ] = name unless name . nil?
2767+ command . query [ 'fields' ] = fields unless fields . nil?
2768+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
2769+ execute_or_queue_command ( command , &block )
2770+ end
26772771
26782772 protected
26792773
0 commit comments