@@ -2569,6 +2569,66 @@ def patch_inbound_sso_assignment(name, inbound_sso_assignment_object = nil, upda
25692569 execute_or_queue_command ( command , &block )
25702570 end
25712571
2572+ # Create a policy.
2573+ # @param [Google::Apis::CloudidentityV1::Policy] policy_object
2574+ # @param [String] fields
2575+ # Selector specifying which fields to include in a partial response.
2576+ # @param [String] quota_user
2577+ # Available to use for quota purposes for server-side applications. Can be any
2578+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2579+ # @param [Google::Apis::RequestOptions] options
2580+ # Request-specific options
2581+ #
2582+ # @yield [result, err] Result & error if block supplied
2583+ # @yieldparam result [Google::Apis::CloudidentityV1::Operation] parsed result object
2584+ # @yieldparam err [StandardError] error object if request failed
2585+ #
2586+ # @return [Google::Apis::CloudidentityV1::Operation]
2587+ #
2588+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2589+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2590+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2591+ def create_policy ( policy_object = nil , fields : nil , quota_user : nil , options : nil , &block )
2592+ command = make_simple_command ( :post , 'v1/policies' , options )
2593+ command . request_representation = Google ::Apis ::CloudidentityV1 ::Policy ::Representation
2594+ command . request_object = policy_object
2595+ command . response_representation = Google ::Apis ::CloudidentityV1 ::Operation ::Representation
2596+ command . response_class = Google ::Apis ::CloudidentityV1 ::Operation
2597+ command . query [ 'fields' ] = fields unless fields . nil?
2598+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
2599+ execute_or_queue_command ( command , &block )
2600+ end
2601+
2602+ # Delete a policy.
2603+ # @param [String] name
2604+ # Required. The name of the policy to delete. Format: `policies/`policy``.
2605+ # @param [String] fields
2606+ # Selector specifying which fields to include in a partial response.
2607+ # @param [String] quota_user
2608+ # Available to use for quota purposes for server-side applications. Can be any
2609+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2610+ # @param [Google::Apis::RequestOptions] options
2611+ # Request-specific options
2612+ #
2613+ # @yield [result, err] Result & error if block supplied
2614+ # @yieldparam result [Google::Apis::CloudidentityV1::Operation] parsed result object
2615+ # @yieldparam err [StandardError] error object if request failed
2616+ #
2617+ # @return [Google::Apis::CloudidentityV1::Operation]
2618+ #
2619+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2620+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2621+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2622+ def delete_policy ( name , fields : nil , quota_user : nil , options : nil , &block )
2623+ command = make_simple_command ( :delete , 'v1/{+name}' , options )
2624+ command . response_representation = Google ::Apis ::CloudidentityV1 ::Operation ::Representation
2625+ command . response_class = Google ::Apis ::CloudidentityV1 ::Operation
2626+ command . params [ 'name' ] = name unless name . nil?
2627+ command . query [ 'fields' ] = fields unless fields . nil?
2628+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
2629+ execute_or_queue_command ( command , &block )
2630+ end
2631+
25722632 # Get a policy.
25732633 # @param [String] name
25742634 # Required. The name of the policy to retrieve. Format: `policies/`policy``.
@@ -2651,6 +2711,40 @@ def list_policies(filter: nil, page_size: nil, page_token: nil, fields: nil, quo
26512711 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
26522712 execute_or_queue_command ( command , &block )
26532713 end
2714+
2715+ # Update a policy.
2716+ # @param [String] name
2717+ # Output only. Identifier. The [resource name](https://cloud.google.com/apis/
2718+ # design/resource_names) of the Policy. Format: policies/`policy`.
2719+ # @param [Google::Apis::CloudidentityV1::Policy] policy_object
2720+ # @param [String] fields
2721+ # Selector specifying which fields to include in a partial response.
2722+ # @param [String] quota_user
2723+ # Available to use for quota purposes for server-side applications. Can be any
2724+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2725+ # @param [Google::Apis::RequestOptions] options
2726+ # Request-specific options
2727+ #
2728+ # @yield [result, err] Result & error if block supplied
2729+ # @yieldparam result [Google::Apis::CloudidentityV1::Operation] parsed result object
2730+ # @yieldparam err [StandardError] error object if request failed
2731+ #
2732+ # @return [Google::Apis::CloudidentityV1::Operation]
2733+ #
2734+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2735+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2736+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2737+ def patch_policy ( name , policy_object = nil , fields : nil , quota_user : nil , options : nil , &block )
2738+ command = make_simple_command ( :patch , 'v1/{+name}' , options )
2739+ command . request_representation = Google ::Apis ::CloudidentityV1 ::Policy ::Representation
2740+ command . request_object = policy_object
2741+ command . response_representation = Google ::Apis ::CloudidentityV1 ::Operation ::Representation
2742+ command . response_class = Google ::Apis ::CloudidentityV1 ::Operation
2743+ command . params [ 'name' ] = name unless name . nil?
2744+ command . query [ 'fields' ] = fields unless fields . nil?
2745+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
2746+ execute_or_queue_command ( command , &block )
2747+ end
26542748
26552749 protected
26562750
0 commit comments