generated/google-apis-baremetalsolution_v1alpha1/lib/google/apis/baremetalsolution_v1alpha1/service.rb
# Create a new SSH key registration in the specified project.
# @param [String] parent
#   Required. The parent project containing the SSH keys.
# @param [Google::Apis::BaremetalsolutionV1alpha1::SshKey] ssh_key_object
# @param [String] ssh_key_id
#   Required. The ID to use for the key, which will become the final component of
#   the key's resource name. This value should be match the regex: [a-zA-Z0-9@.\-_]
#   `1,64`
# @param [String] fields
#   Selector specifying which fields to include in a partial response.
# @param [String] quota_user
#   Available to use for quota purposes for server-side applications. Can be any
#   arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
#   Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BaremetalsolutionV1alpha1::SshKey] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BaremetalsolutionV1alpha1::SshKey]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
Create a new SSH key registration in the specified project.
Create a new SSH key registration in the specified project .
def create_project_ssh_key(parent, ssh_key_object = nil, ssh_key_id: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1alpha1/{+parent}/sshKeys', options)
          command.request_representation = Google::Apis::BaremetalsolutionV1alpha1::SshKey::Representation
          command.request_object = ssh_key_object
          command.response_representation = Google::Apis::BaremetalsolutionV1alpha1::SshKey::Representation
          command.response_class = Google::Apis::BaremetalsolutionV1alpha1::SshKey
          command.params['parent'] = parent unless parent.nil?
          command.query['sshKeyId'] = ssh_key_id unless ssh_key_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
def create_project_ssh_key ( parent , ssh_key_object = nil , ssh_key_id : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :post , 'v1alpha1/{+parent}/sshKeys' , options ) command . request_representation = Google :: Apis :: BaremetalsolutionV1alpha1 :: SshKey :: Representation command . request_object = ssh_key_object command . response_representation = Google :: Apis :: BaremetalsolutionV1alpha1 :: SshKey :: Representation command . response_class = Google :: Apis :: BaremetalsolutionV1alpha1 :: SshKey command . params [ 'parent' ] = parent unless parent . nil? command . query [ 'sshKeyId' ] = ssh_key_id unless ssh_key_id . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Create a new SSH key registration in the specified project.
Create a new SSH key registration in the specified project .
None
Google::Apis::BaremetalsolutionV1alpha1::SshKey
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
parent
<not_specific>
ssh_key_object
<not_specific>
ssh_key_id
<not_specific>
fields
<not_specific>
quota_user
<not_specific>
options
<not_specific>
block
<not_specific>
<not_specific>
options Request-specific options
options Request - specific options
]
<not_specific>
Result & error if block supplied
Result & error if block supplied
result
<not_specific>
parsed result object
parsed result object
err
<not_specific>
error object if request failed
error object if request failed