generated/google-apis-firebaserules_v1/lib/google/apis/firebaserules_v1/service.rb
# Create a `Release`. Release names should reflect the developer's deployment
# practices. For example, the release name may include the environment name,
# application name, application version, or any other name meaningful to the
# developer. Once a `Release` refers to a `Ruleset`, the rules can be enforced
# by Firebase Rules-enabled services. More than one `Release` may be 'live'
# concurrently. Consider the following three `Release` names for `projects/foo`
# and the `Ruleset` to which they refer. Release Name -> Ruleset Name * projects/
# foo/releases/prod -> projects/foo/rulesets/uuid123 * projects/foo/releases/
# prod/beta -> projects/foo/rulesets/uuid123 * projects/foo/releases/prod/v23 ->
# projects/foo/rulesets/uuid456 The relationships reflect a `Ruleset` rollout in
# progress. The `prod` and `prod/beta` releases refer to the same `Ruleset`.
# However, `prod/v23` refers to a new `Ruleset`. The `Ruleset` reference for a `
# Release` may be updated using the UpdateRelease method.
# @param [String] name
#   Required. Resource name for the project which owns this `Release`. Format: `
#   projects/`project_id``
# @param [Google::Apis::FirebaserulesV1::Release] release_object
# @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::FirebaserulesV1::Release] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebaserulesV1::Release]
#
# @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 `Release`. Release names should reflect the developer's deployment
practices. For example, the release name may include the environment name,
application name, application version, or any other name meaningful to the
developer. Once a `Release` refers to a `Ruleset`, the rules can be enforced
by Firebase Rules-enabled services. More than one `Release` may be 'live'
concurrently.
Create a ` Release ` . Release names should reflect the developer ' s deployment practices . For example the release name may include the environment name application name application version or any other name meaningful to the developer . Once a ` Release ` refers to a ` Ruleset ` the rules can be enforced by Firebase Rules - enabled services . More than one ` Release ` may be ' live ' concurrently .
def create_project_release(name, release_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v1/{+name}/releases', options)
          command.request_representation = Google::Apis::FirebaserulesV1::Release::Representation
          command.request_object = release_object
          command.response_representation = Google::Apis::FirebaserulesV1::Release::Representation
          command.response_class = Google::Apis::FirebaserulesV1::Release
          command.params['name'] = name unless name.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_release ( name , release_object = nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :post , 'v1/{+name}/releases' , options ) command . request_representation = Google :: Apis :: FirebaserulesV1 :: Release :: Representation command . request_object = release_object command . response_representation = Google :: Apis :: FirebaserulesV1 :: Release :: Representation command . response_class = Google :: Apis :: FirebaserulesV1 :: Release command . params [ 'name' ] = name unless name . 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 `Release`.
Create a ` Release ` .
None
Google::Apis::FirebaserulesV1::Release
[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
name
release_object
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed