Example #1
0
 def delete(self, section, option):
     """
     ---
     summary: Delete option
     description: Delete an option of a section.
     tags:
       - Config
     parameters:
     - name: section
       in: path
       description: The section.
       schema:
         type: string
       style: simple
     - name: option
       in: path
       description: The option of the section.
       schema:
         type: string
       style: simple
     responses:
       200:
         description: OK
       401:
         description: Invalid Auth Token
     """
     config.remove_option(section=section,
                          option=option,
                          issuer=request.environ.get('issuer'),
                          vo=request.environ.get('vo'))
     return '', 200
Example #2
0
    def delete(self, section, option):
        """
        Delete an option.

        .. :quickref: OptionGetDel; delete an option.

        :status 200: OK.
        :status 401: Invalid Auth Token.
        :status 500: Internal Error.
        """

        config.remove_option(section=section,
                             option=option,
                             issuer=request.environ.get('issuer'))
Example #3
0
    def DELETE(self, section, option):
        """
        Delete an option.

        HTTP Success:
            200 OK

        HTTP Error:
            401 Unauthorized

        :param Rucio-Auth-Account: Account identifier.
        :param Rucio-Auth-Token: 32 character hex string.
        """

        config.remove_option(section=section, option=option, issuer=ctx.env.get('issuer'))
Example #4
0
    def DELETE(self, section, option):
        """
        Delete an option.

        HTTP Success:
            200 OK

        HTTP Error:
            401 Unauthorized

        :param Rucio-Auth-Account: Account identifier.
        :param Rucio-Auth-Token: 32 character hex string.
        """

        config.remove_option(section=section, option=option, issuer=ctx.env.get('issuer'))