@@ -8618,6 +8618,37 @@ def create_organization_environment_security_action(parent, google_cloud_apigee_
8618
8618
execute_or_queue_command(command, &block)
8619
8619
end
8620
8620
8621
+ # Delete a SecurityAction.
8622
+ # @param [String] name
8623
+ # Required. The name of the security monitoring condition to delete. Format: `
8624
+ # organizations/`org`/environment/`env`/securityActions/`security_action``
8625
+ # @param [String] fields
8626
+ # Selector specifying which fields to include in a partial response.
8627
+ # @param [String] quota_user
8628
+ # Available to use for quota purposes for server-side applications. Can be any
8629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8630
+ # @param [Google::Apis::RequestOptions] options
8631
+ # Request-specific options
8632
+ #
8633
+ # @yield [result, err] Result & error if block supplied
8634
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleProtobufEmpty] parsed result object
8635
+ # @yieldparam err [StandardError] error object if request failed
8636
+ #
8637
+ # @return [Google::Apis::ApigeeV1::GoogleProtobufEmpty]
8638
+ #
8639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8642
+ def delete_organization_environment_security_action(name, fields: nil, quota_user: nil, options: nil, &block)
8643
+ command = make_simple_command(:delete, 'v1/{+name}', options)
8644
+ command.response_representation = Google::Apis::ApigeeV1::GoogleProtobufEmpty::Representation
8645
+ command.response_class = Google::Apis::ApigeeV1::GoogleProtobufEmpty
8646
+ command.params['name'] = name unless name.nil?
8647
+ command.query['fields'] = fields unless fields.nil?
8648
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8649
+ execute_or_queue_command(command, &block)
8650
+ end
8651
+
8621
8652
# Disable a SecurityAction. The `state` of the SecurityAction after disabling is
8622
8653
# `DISABLED`. `DisableSecurityAction` can be called on SecurityActions in the
8623
8654
# state `ENABLED`; SecurityActions in a different state (including `DISABLED`)
@@ -8772,6 +8803,47 @@ def list_organization_environment_security_actions(parent, filter: nil, page_siz
8772
8803
execute_or_queue_command(command, &block)
8773
8804
end
8774
8805
8806
+ # Update a SecurityAction.
8807
+ # @param [String] name
8808
+ # Immutable. This field is ignored during creation as per AIP-133. Please set
8809
+ # the `security_action_id` field in the CreateSecurityActionRequest when
8810
+ # creating a new SecurityAction. Format: organizations/`org`/environments/`env`/
8811
+ # securityActions/`security_action`
8812
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction] google_cloud_apigee_v1_security_action_object
8813
+ # @param [String] update_mask
8814
+ # Optional. The list of fields to update. Valid fields to update are `
8815
+ # description`, `state`, `allow`, `deny`, and `flag`, `expire_time`, and `ttl`, `
8816
+ # api_proxies`, and `condition_config`.
8817
+ # @param [String] fields
8818
+ # Selector specifying which fields to include in a partial response.
8819
+ # @param [String] quota_user
8820
+ # Available to use for quota purposes for server-side applications. Can be any
8821
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8822
+ # @param [Google::Apis::RequestOptions] options
8823
+ # Request-specific options
8824
+ #
8825
+ # @yield [result, err] Result & error if block supplied
8826
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction] parsed result object
8827
+ # @yieldparam err [StandardError] error object if request failed
8828
+ #
8829
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction]
8830
+ #
8831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8834
+ def patch_organization_environment_security_action(name, google_cloud_apigee_v1_security_action_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
8835
+ command = make_simple_command(:patch, 'v1/{+name}', options)
8836
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction::Representation
8837
+ command.request_object = google_cloud_apigee_v1_security_action_object
8838
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction::Representation
8839
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAction
8840
+ command.params['name'] = name unless name.nil?
8841
+ command.query['updateMask'] = update_mask unless update_mask.nil?
8842
+ command.query['fields'] = fields unless fields.nil?
8843
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8844
+ execute_or_queue_command(command, &block)
8845
+ end
8846
+
8775
8847
# BatchUpdateSecurityIncident updates multiple existing security incidents.
8776
8848
# @param [String] parent
8777
8849
# Optional. The parent resource shared by all security incidents being updated.
0 commit comments