From 8db4d8c3021fc21baa606b87eaad0e476bb7f624f76cb37b6a1819bdb5f04b43 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Mon, 22 Jul 2024 10:28:35 +0200 Subject: [PATCH] . --- bots-common/Makefile | 6 - bots-common/obs.api.yaml | 47545 ------------------------------------ bots-common/obs.cfg.yaml | 5 - bots-common/obs.go | 5 - bots-common/obs/client.go | 40550 ------------------------------ 5 files changed, 88111 deletions(-) delete mode 100644 bots-common/obs.api.yaml delete mode 100644 bots-common/obs.cfg.yaml delete mode 100644 bots-common/obs.go delete mode 100644 bots-common/obs/client.go diff --git a/bots-common/Makefile b/bots-common/Makefile index bdec7dc..207b769 100644 --- a/bots-common/Makefile +++ b/bots-common/Makefile @@ -3,12 +3,6 @@ all: build api.json: curl -o api.json https://src.opensuse.org/swagger.v1.json -obs.api.json: - curl -o obs.api.yaml https://api.opensuse.org/apidocs/OBS-v2.10.50.yaml - -client.gen.go:: obs.api.json - go generate - gitea-generated/client/gitea_api_client.go:: api.json [ -d gitea-generated ] || mkdir gitea-generated podman run --rm -v $$(pwd):/api ghcr.io/go-swagger/go-swagger generate client -f /api/api.json -t /api/gitea-generated diff --git a/bots-common/obs.api.yaml b/bots-common/obs.api.yaml deleted file mode 100644 index a5578e7..0000000 --- a/bots-common/obs.api.yaml +++ /dev/null @@ -1,47545 +0,0 @@ ---- -openapi: 3.0.0 -servers: -- url: "/" -tags: -- name: Announcements -- name: Attribute Namespaces -- name: Attributes -- name: Build -- name: Comments -- name: Configuration -- name: Distributions -- name: General Information -- name: Groups -- name: Issue Trackers -- name: Notifications -- name: Person -- name: Published Binaries -- name: Requests -- name: Search - description: | - All endpoints besides the owner search listed in the search group use Xpath expressions. The `match` query parameter is used - to pass the Xpath predicate. The individual endpoints refer to different objects like Packages, Projects, Issues and more... - Please refer to the documentation of the individual search endpoints to know which attributes can be accessed through the predicate, - and which extra query parameters are supported or might be required in order to run the search. - - - These functions can be used with the predicates: `boolean`, `contains`, `not`, `starts_with`, `ends_with`. - - _Example_: - - For a list of all projects where the name starts with "OBS:". - - `/search/project?match=starts_with(@name,'OBS:')` - - - More than one predicate can be combined with the following operators: `eq`, `and`, `or`, `neq`, `gt`, `lt`, `gteq`, `lteq`. - - _Example_: - - To receive details about the package "obs-server" that is part of the project "OBS:Server:Unstable". - - `/search/package?match=@name='obs-server'+and+@project='OBS:Server:Unstable'` -- name: Sources -- name: Sources - Projects -- name: Sources - Packages -- name: Sources - Files -- name: Staging Workflow -- name: Statistics -- name: Status Messages -- name: Status Project -- name: Status Reports -- name: Status Reports - Required Checks -- name: Trigger -- name: Workers -info: - description: | - The _Open Build Service API_ is an XML API. To make sure you are querying the API and not the Web User Interface, provide the `Accept: application/xml; charset=utf-8` header in your API requests. - - To authenticate, use [HTTP basic authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) by passing the _Authorization_ header in the form of `Authorization: Basic `. - - There is no API versioning, since there is no need for it right now. - - Only rudimentary rate limiting is implemented, so please be gentle when using the API concurrently, especially with potentially expensive operations. - - Your OBS Admin might have implemented other authentication schemes or stricter rate limiting in front of the application. Check the [site main page](/) for details. - - For command-line users, we recommend using [osc](https://github.com/openSUSE/osc) with its _api_ command to interact with the API. - It's as simple as this example: `osc api /about` (_about_ is one of the endpoints documented below) - - In order to make sure that the XML that is send in a requests body is in the expected format, the API validates it. - Either against a XML Schema Definition (`.xsd`) or a RELAX NG Schema (`.rng`). The schemas are mentioned - in the endpoint documentation. If there is no schema file mentioned, no validation of the XML is done. - In case the XML is not valid, a validation error is reported. - - The legacy API documentation is reachable [here](https://api.opensuse.org/apidocs-old/index). - version: 2.10.50 - title: Open Build Service API - contact: - url: https://openbuildservice.org/ - name: Open Build Service - license: - url: https://github.com/openSUSE/open-build-service/blob/master/COPYING - name: GNU General Public License v2.0 -paths: - "/about": - get: - summary: Get information about API. - description: Get generic information about the API. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [about.xsd](../schema/about.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - required: - - title - - description - - revision - properties: - title: - type: string - example: Open Build Service API - description: - type: string - example: API to the Open Build Service - revision: - type: string - example: 2.11~alpha.20201110T101235.7b5d82e614 - last_deployment: - type: string - example: '2020-11-10 15:07:02 +0000' - commit: - type: string - example: 7b5d82e6143442a8eb8459f35cc94d2fbe263ebe - xml: - name: about - tags: - - General Information - "/announcements": - get: - deprecated: true - summary: List all announcements. - description: List all messages from type announcement. - security: - - basic_authentication: [] - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - status_message: - type: array - items: - type: object - properties: - id: - type: integer - xml: - attribute: true - message: - type: string - user: - type: string - severity: - type: string - scope: - type: string - created_at: - type: string - xml: - name: status_message - count: - type: integer - xml: - attribute: true - xml: - name: status_messages - example: - count: 2 - status_message: - - id: 2 - message: OBS 3.0 is released! - user: Iggy - severity: announcement - scope: all_users - created_at: 2021-10-15 13:28:22 UTC - - id: 1 - message: Feature number 42 was implemented! - user: Iggy - severity: announcement - scope: all_users - created_at: 2021-10-12 11:18:12 UTC - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Announcements - post: - deprecated: true - summary: Create an announcement. - description: | - Create an announcement. - - This is only for users with roles "Admin" or "Staff". - security: - - basic_authentication: [] - requestBody: - description: Announcement definition. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - title: - type: string - content: - type: string - xml: - name: announcement - example: - title: OBS 3.0 released! - content: We are glad to announce that OBS 3.0 is released. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Invalid Announcement. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - message_cant_be_blank: - summary: Message can't be blank - value: - code: invalid_announcement - summary: '["Message can''t be blank"]' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Announcements - "/announcements/{announcement_id}": - get: - deprecated: true - summary: Show an announcement. - description: Show the content of an announcement. - security: - - basic_authentication: [] - parameters: - - in: path - name: announcement_id - schema: - type: integer - required: true - description: The id of the announcement. - example: 16 - responses: - '200': - description: OK. The request has succeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - xml: - attribute: true - message: - type: string - user: - type: string - severity: - type: string - scope: - type: string - created_at: - type: string - xml: - name: status_message - example: - id: 16 - message: Feature number 42 was implemented! - user: Iggy - severity: announcement - scope: all_users - created_at: 2021-10-12 11:18:12 UTC - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find StatusMessage with 'id'=0 [WHERE `status_messages`.`severity` - = ?] - tags: - - Announcements - put: - deprecated: true - summary: Update an announcement. - description: | - Update the content of an announcement. - - This is only for users with roles "Admin" or "Staff". - security: - - basic_authentication: [] - parameters: - - in: path - name: announcement_id - schema: - type: integer - required: true - description: The id of the announcement. - example: 16 - requestBody: - description: Announcement definition. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - title: - type: string - content: - type: string - xml: - name: announcement - examples: - update_title: - summary: Update only the title - value: - title: New title! - update_title_and_content: - summary: Update title and content - value: - title: New title! - content: New content. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Invalid Announcement. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - message_cant_be_blank: - summary: Message can't be blank - value: - code: invalid_announcement - summary: '["Message can''t be blank"]' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find StatusMessage with 'id'=0 [WHERE `status_messages`.`severity` - = ?] - tags: - - Announcements - delete: - deprecated: true - summary: Delete an announcement. - description: | - Delete an announcement. - - This is only for users with roles "Admin" or "Staff". - security: - - basic_authentication: [] - parameters: - - in: path - name: announcement_id - schema: - type: integer - required: true - description: The id of the announcement. - example: 16 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find StatusMessage with 'id'=0 [WHERE `status_messages`.`severity` - = ?] - tags: - - Announcements - "/architectures": - get: - summary: List all known architectures. - description: | - Get a list of all known architectures known to OBS in general. - This is not the list of architectures provided by this instance. Check the - schedulers element from the `/configuration` route for this. - security: - - basic_authentication: [] - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - count: '4' - entry: - - name: aarch64 - - name: armv7l - - name: s390x - - name: x86_64 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - General Information - "/architectures/{architecture_name}": - get: - summary: Show one architecture. - description: Show information about one architecture. - security: - - basic_authentication: [] - parameters: - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - xml: - attribute: true - xml: - name: architecture - example: - name: x86_64 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: unknown_architecture - summary: 'Architecture does not exist: x999' - tags: - - General Information - "/attribute": - get: - summary: List all attribute namespaces. - description: List all attribute namespaces. - security: - - basic_authentication: [] - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [directory.xsd](../schema/directory.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - count: '2' - entry: - - name: OBS - - name: openSUSE - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Attribute Namespaces - "/attribute/{namespace}": - get: - summary: List all attributes below a namespace. - description: List all attributes under a given attribute namespace. - security: - - basic_authentication: [] - parameters: - - in: path - name: namespace - schema: - type: string - required: true - description: The namespace - example: OBS_TEST - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [directory.xsd](../schema/directory.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - count: '2' - entry: - - name: AutoCleanup - - name: OwnerRootProject - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find AttribNamespace - tags: - - Attributes - delete: - summary: Delete an attribute namespace and all attributes below. - description: | - Delete an attribute namespace and all attributes below. - - This operation is the same as the one defined with [DELETE /attribute/{namespace}/_meta](#/Attributes/delete_attribute__namespace___meta). - security: - - basic_authentication: [] - parameters: - - in: path - name: namespace - schema: - type: string - required: true - description: The namespace - example: OBS_TEST - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Attribute Namespaces - "/attribute/{namespace}/_meta": - get: - summary: Show attribute namespace. - description: Shows attribute namespace. - security: - - basic_authentication: [] - parameters: - - in: path - name: namespace - schema: - type: string - required: true - description: The namespace - example: OBS_TEST - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [attribute_namespace_meta.xsd](../schema/attribute_namespace_meta.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: OBS_TEST - xml: - attribute: true - modifiable_by: - type: array - items: - type: object - properties: - user: - type: string - example: user_login_name - xml: - attribute: true - xml: - name: namespace - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find AttribNamespace - tags: - - Attribute Namespaces - post: - summary: Change attribute namespace. Create an attribute namespace if it doesn't - exist. - description: | - This endpoint can be used for both, creating an attribute namespace and updating it: - * If the attribute namespace passed as parameter doesn't exist, it will create the attribute namespace. - * If the attribute namespace passed as parameter already exists, it will update the namespace attribute. - - This operation is the same as the one defined with [PUT](#/Attributes/put_attribute__namespace___meta). - security: - - basic_authentication: [] - parameters: - - in: path - name: namespace - schema: - type: string - required: true - description: The namespace - example: OBS_TEST - requestBody: - description: | - Attribute namespace definition. - - XML Schema used for body validation: [attribute_namespace_meta.xsd](../schema/attribute_namespace_meta.xsd) - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: OBS_TEST - xml: - attribute: true - modifiable_by: - type: array - items: - type: object - properties: - user: - type: string - example: user_login_name - xml: - attribute: true - xml: - name: namespace - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Validation Failed. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - empty_body: - value: - code: validation_failed - summary: Document is empty, not allowed for attribute_namespace_meta - summary: Validation Failed (Empty Body) - wrong_xml_element: - value: - code: validation_failed - summary: 'attribute_namespace_meta validation error: 1:0: ERROR: - Element ''foo'': No matching global declaration available for - the validation root.' - summary: Validation Failed (Wrong XML Element) - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - namespace: - value: - code: not_found - summary: Couldn't find AttribNamespace - summary: Not Found (Namespace) - user: - value: - code: not_found - summary: Couldn't find User with login = user_login_name - summary: Not Found (User) - tags: - - Attribute Namespaces - put: - summary: Change attribute namespace. Create an attribute namespace if it doesn't - exist. - description: | - This endpoint can be used for both, creating an attribute namespace and updating it: - * If the attribute namespace passed as parameter doesn't exist, it will create the attribute namespace. - * If the attribute namespace passed as parameter already exists, it will update the namespace attribute. - - This operation is the same as the one defined with [POST](#/Attributes/post_attribute__namespace___meta). - security: - - basic_authentication: [] - parameters: - - in: path - name: namespace - schema: - type: string - required: true - description: The namespace - example: OBS_TEST - requestBody: - description: | - Attribute namespace definition. - - XML Schema used for body validation: [attribute_namespace_meta.xsd](../schema/attribute_namespace_meta.xsd) - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: OBS_TEST - xml: - attribute: true - modifiable_by: - type: array - items: - type: object - properties: - user: - type: string - example: user_login_name - xml: - attribute: true - xml: - name: namespace - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Validation Failed. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - empty_body: - value: - code: validation_failed - summary: Document is empty, not allowed for attribute_namespace_meta - summary: Validation Failed (Empty Body) - wrong_xml_element: - value: - code: validation_failed - summary: 'attribute_namespace_meta validation error: 1:0: ERROR: - Element ''foo'': No matching global declaration available for - the validation root.' - summary: Validation Failed (Wrong XML Element) - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - namespace: - value: - code: not_found - summary: Couldn't find AttribNamespace - summary: Not Found (Namespace) - user: - value: - code: not_found - summary: Couldn't find User with login = user_login_name - summary: Not Found (User) - tags: - - Attribute Namespaces - delete: - summary: Delete an attribute namespace and all attributes below. - description: | - Delete an attribute namespace and all attributes below. - - This operation is the same as the one defined with [DELETE /attribute/{namespace}](#/Attributes/delete_attribute__namespace_). - security: - - basic_authentication: [] - parameters: - - in: path - name: namespace - schema: - type: string - required: true - description: The namespace - example: OBS_TEST - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Attribute Namespaces - "/attribute/{namespace}/{attribute_name}": - delete: - summary: Delete an attribute and all its values in projects or packages. - description: | - Delete an attribute and all its values in projects or packages. - - This operation is the same as the one defined with [DELETE /attribute/{namespace}/{attribute_name}/_meta](#/Attributes/delete_attribute__namespace___attribute_name___meta) - security: - - basic_authentication: [] - parameters: - - in: path - name: namespace - schema: - type: string - required: true - description: The namespace - example: OBS_TEST - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - namespace: - value: - code: not_found - summary: Couldn't find AttribNamespace - summary: Not Found (Namespace) - tags: - - Attributes - "/attribute/{namespace}/{attribute_name}/_meta": - get: - summary: Shows attribute. - description: Shows attribute. - security: - - basic_authentication: [] - parameters: - - in: path - name: namespace - schema: - type: string - required: true - description: The namespace - example: OBS_TEST - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: OBS_TEST - xml: - attribute: true - namespace: - type: string - example: OwnerRootProjectTest - xml: - attribute: true - description: - type: string - example: An example description for an attribute. - allowed: - type: object - properties: - value: - type: array - items: - type: string - example: - - DisableDevelTest - - BugownerOnlyTest - count: - type: integer - example: 0 - modifiable_by: - type: array - items: - type: object - properties: - user: - type: string - example: user_login_name - xml: - attribute: true - xml: - name: definition - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - namespace: - value: - code: not_found - summary: Couldn't find AttribNamespace - summary: Not Found (Namespace) - unknown_attribute: - value: - code: unknown_attribute - summary: Unknown attribute 'OBS_TEST':'OwnerRootProjectTest' - summary: Unknown Attribute - tags: - - Attributes - post: - summary: Change attribute data. Create an attribute if it doesn't exist. - description: | - This endpoint can be used for both, creating an attribute and updating it: - * If the attribute passed as parameter doesn't exist, it will create the attribute. - * If the attribute passed as parameter already exists, it will update the attribute. - - This operation is the same as the one defined with [PUT](#/Attributes/put_attribute__namespace___attribute_name___meta). - security: - - basic_authentication: [] - parameters: - - in: path - name: namespace - schema: - type: string - required: true - description: The namespace - example: OBS_TEST - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - requestBody: - description: Attribute definition. - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: OBS_TEST - xml: - attribute: true - namespace: - type: string - example: OwnerRootProjectTest - xml: - attribute: true - description: - type: string - example: An example description for an attribute. - allowed: - type: object - properties: - value: - type: array - items: - type: string - example: - - DisableDevelTest - - BugownerOnlyTest - count: - type: integer - example: 0 - modifiable_by: - type: array - items: - type: object - properties: - user: - type: string - example: user_login_name - xml: - attribute: true - xml: - name: definition - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Validation Failed. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - empty_body: - value: - code: validation_failed - summary: Document is empty, not allowed for attrib_type - summary: Validation Failed (Empty Body) - wrong_xml_element: - value: - code: validation_failed - summary: 'attrib_type validation error: 1:0: ERROR: Element definition - failed to validate attributes' - summary: Validation Failed (Wrong XML Attributes) - illegal_request: - value: - code: illegal_request - summary: 'Illegal request: PUT/POST /attribute/OBS_TEST/OwnerRootProjectTest/_meta: - path does not match content' - summary: Illegal Request - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - namespace: - value: - code: not_found - summary: Couldn't find AttribNamespace - summary: Not Found (Namespace) - unknown_attribute: - value: - code: unknown_attribute - summary: Unknown attribute 'OBS_TEST':'OwnerRootProjectTest' - summary: Unknown Attribute - tags: - - Attributes - put: - summary: Change attribute data. Create an attribute if it doesn't exist. - description: | - This endpoint can be used for both, creating an attribute and updating it: - * If the attribute passed as parameter doesn't exist, it will create the attribute. - * If the attribute passed as parameter already exists, it will update the attribute. - - This operation is the same as the one defined with [POST](#/Attributes/post_attribute__namespace___attribute_name___meta). - security: - - basic_authentication: [] - parameters: - - in: path - name: namespace - schema: - type: string - required: true - description: The namespace - example: OBS_TEST - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - requestBody: - description: Attribute definition. - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: OBS_TEST - xml: - attribute: true - namespace: - type: string - example: OwnerRootProjectTest - xml: - attribute: true - description: - type: string - example: An example description for an attribute. - allowed: - type: object - properties: - value: - type: array - items: - type: string - example: - - DisableDevelTest - - BugownerOnlyTest - count: - type: integer - example: 0 - modifiable_by: - type: array - items: - type: object - properties: - user: - type: string - example: user_login_name - xml: - attribute: true - xml: - name: definition - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Validation Failed. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - empty_body: - value: - code: validation_failed - summary: Document is empty, not allowed for attrib_type - summary: Validation Failed (Empty Body) - wrong_xml_element: - value: - code: validation_failed - summary: 'attrib_type validation error: 1:0: ERROR: Element definition - failed to validate attributes' - summary: Validation Failed (Wrong XML Attributes) - illegal_request: - value: - code: illegal_request - summary: 'Illegal request: PUT/POST /attribute/OBS_TEST/OwnerRootProjectTest/_meta: - path does not match content' - summary: Illegal Request - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - namespace: - value: - code: not_found - summary: Couldn't find AttribNamespace - summary: Not Found (Namespace) - unknown_attribute: - value: - code: unknown_attribute - summary: Unknown attribute 'OBS_TEST':'OwnerRootProjectTest' - summary: Unknown Attribute - tags: - - Attributes - delete: - summary: Delete an attribute and all its values in projects or packages. - description: | - Delete an attribute and all its values in projects or packages. - - This operation is the same as the one defined with [DELETE /attribute/{namespace}/{attribute_name}](#/Attributes/delete_attribute__namespace___attribute_name_) - security: - - basic_authentication: [] - parameters: - - in: path - name: namespace - schema: - type: string - required: true - description: The namespace - example: OBS_TEST - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - namespace: - value: - code: not_found - summary: Couldn't find AttribNamespace - summary: Not Found (Namespace) - tags: - - Attributes - "/build": - get: - summary: Get a simple directory listing of all projects - description: Get a simple directory listing of all projects - security: - - basic_authentication: [] - responses: - '200': - description: | - OK - - XML Schema used for body validation: [directory.xsd](../schema/directory.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - entry: - - name: openSUSE:Leap:15.1 - - name: openSUSE:Leap:15.2 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Build - "/build/_workerstatus": - get: - deprecated: true - summary: Lists status of workers, jobs, backend services and general statistics. - description: | - Lists status of workers, running jobs, waiting jobs, status of the backend services and general statistics. - - This endpoint is exactly the same as `GET /worker/_status`, please use that one. - security: - - basic_authentication: [] - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - clients: - type: integer - xml: - attribute: true - idle: - type: array - items: - type: object - properties: - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - building: - type: array - items: - type: object - properties: - repository: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - starttime: - type: string - xml: - attribute: true - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - down: - type: array - items: - type: object - properties: - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - waiting: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - jobs: - type: string - xml: - attribute: true - blocked: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - jobs: - type: string - xml: - attribute: true - buildavg: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - buildavg: - type: string - xml: - attribute: true - partition: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - daemon: - type: array - items: - type: object - properties: - type: - type: string - xml: - attribute: true - state: - type: string - xml: - attribute: true - starttime: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - queue: - type: object - properties: - high: - type: string - xml: - attribute: true - med: - type: string - xml: - attribute: true - low: - type: string - xml: - attribute: true - next: - type: string - xml: - attribute: true - xml: - name: workerstatus - example: - clients: '2' - idle: - - workerid: 1a1f67b948b6:1 - hostarch: x86_64 - building: - - repository: openSUSE_11.3_Update - arch: x86_64 - project: home:enzokiel - package: android-sdk - starttime: '1289838671' - workerid: 1a1f67b948b6:2 - hostarch: x86_64 - down: - - workerid: armbuild03:1 - hostarch: aarch64 - waiting: - - arch: i586 - jobs: '0' - - arch: x86_64 - jobs: '0' - blocked: - - arch: i586 - jobs: '0' - - arch: x86_64 - jobs: '0' - buildavg: - - arch: i586 - buildavg: '1200' - - arch: x86_64 - buildavg: '1200' - partition: - - daemon: - - type: srcserver - state: running - starttime: '1617711138' - - type: servicedispatch - state: running - starttime: '1617711144' - - type: service - state: running - starttime: '1617711144' - - type: clouduploadserver - state: running - starttime: '1617711145' - - type: clouduploadworker - state: running - starttime: '1617711144' - - type: scheduler - arch: i586 - state: running - starttime: '1617711145' - queue: - high: '0' - med: '0' - low: '11' - next: '0' - - type: scheduler - arch: x86_64 - state: running - starttime: '1617711145' - queue: - high: '0' - med: '0' - low: '11' - next: '0' - - type: repserver - state: running - starttime: '1617711143' - - type: dispatcher - state: running - starttime: '1617711144' - - type: publisher - state: running - starttime: '1617711145' - - type: signer - state: running - starttime: '1617711146' - - name: back-main - daemon: - - type: scheduler - arch: aarch64 - state: running - starttime: '1617148925' - queue: - high: '0' - med: '1' - low: '4' - next: '22' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Build - "/build/{project_name}": - get: - summary: Get a simple directory listing of all repositories for the specified - project - description: Get a simple directory listing of all repositories for the specified - project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: | - OK - - XML Schema used for body validation: [directory.xsd](../schema/directory.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - entry: - - name: openSUSE_Tumbleweed - - name: openSUSE_Leap_15.3 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Build - post: - summary: Apply different actions on builds/build processes of the specified - project - description: Apply different actions on builds/build processes of the specified - project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: package - schema: - type: string - description: Name of the package. Scope the commands to the specified package. - example: firefox - - in: query - name: arch - schema: - type: string - description: Name of the build architecture. Scope the commands to the specified - architectures. - example: x86_64 - - in: query - name: repository - schema: - type: string - description: Name of the repository. Scope the commands to the specified repository. - example: openSUSE_Leap_15.2 - - in: query - name: cmd - required: true - schema: - type: string - enum: - - wipe - - restartbuild - - killbuild - - abortbuild - - rebuild - - unpublish - - sendsysrq - description: | - **NOTE**: All commands described below, can be scoped to a package within the project by setting the `package` - parameter. - - * `wipe`: Delete all binaries build by the project. - * `restartbuild`: Restart all running build processes inside the project. - * `rebuild`: Trigger a rebuild of all packages inside the project. - * `abortbuild`: Abort all running build processes for the specified project, marking them as failed. - * `killbuild`: Alias for `abortbuild`. - * `unpublish`: Delete all published package binaries, for the specified project, from the download repository. - * `sendsysrq`: Send a single sysrq character to the kernel of a running build. Character need to be specified - through the `sysrq` parameter. Only a subset of debugging requests are supported (eg. 9, t or w). - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Illegal request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Illegal Request: - value: - code: illegal_request - summary: unsupported POST command '' to . - '403': - description: | - Execute command no permission. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Execute cmd no permission: - value: - code: execute_cmd_no_permission - summary: No permission to execute command on package - in project - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Build - "/build/{project_name}/_result": - get: - summary: Get the build results for packages, architectures and repositories - of the specified project. - description: Get the build results for packages, architectures and repositories - of the specified project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: view - schema: - type: string - enum: - - status - - summary - - binarylist - default: status - description: | - Specify which sections should be included in the result list. - - * `status`: Include detailed infos about the build status. - * `summary`: Include the summary of the status values. - * `binarylist`: Include a list of generated binary files. - - in: query - name: package - schema: - type: string - description: Name of the package. Limit results to the specified package. - example: obs-server - - in: query - name: arch - schema: - type: string - description: Name of the build architecture. Limit results to the specified - build architecture. - example: x86_64 - - in: query - name: repository - schema: - type: string - description: Name of the repository. Limit results to the specified repository. - example: openSUSE_Leap_15.2 - - in: query - name: lastbuild - schema: - type: string - description: Set to `1` to show the last build result (excludes current building - job states). - enum: - - 0 - - 1 - default: 0 - example: 1 - - in: query - name: locallink - schema: - type: string - description: Set to `1` to include build results from packages with project - local links. - enum: - - 0 - - 1 - default: 0 - example: 1 - - in: query - name: multibuild - schema: - type: string - description: Set to `1` to include build results from _multibuild definitions. - enum: - - 0 - - 1 - default: 0 - example: 1 - responses: - '200': - description: | - OK. - - XML Schema used for body validation: [buildresult.rng](../schema/buildresult.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - state: - type: string - example: e096d16554264fa553ca0aa3226cf189 - xml: - attribute: true - result: - type: array - items: - type: object - properties: - project: - type: string - example: home:foo - xml: - attribute: true - repository: - type: string - example: openSUSE_Leap_15.3 - xml: - attribute: true - arch: - type: string - example: x86_64 - xml: - attribute: true - code: - type: string - example: published - xml: - attribute: true - state: - type: string - example: published - xml: - attribute: true - status: - type: array - items: - type: object - properties: - package: - type: string - example: ctris - xml: - attribute: true - code: - type: string - example: succeeded - xml: - attribute: true - details: - type: string - example: package whitelist - binarylist: - type: array - items: - type: object - properties: - package: - type: string - example: ctris - xml: - attribute: true - binary: - type: array - items: - type: object - properties: - filename: - type: string - example: hello-2.10-3.1.x86_64.rpm - xml: - attribute: true - size: - type: string - example: '58352' - xml: - attribute: true - mtime: - type: string - example: '1617270174' - xml: - attribute: true - summary: - type: object - properties: - statuscount: - type: array - items: - type: object - properties: - code: - type: string - example: disabled - xml: - attribute: true - count: - type: string - example: '2' - xml: - attribute: true - xml: - name: resultlist - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Boolean: - description: Passing a value different than `0` or `1` to `multibuild`, - for example. - value: - code: 400 - summary: not boolean - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Build - "/build/{project_name}/{repository_name}": - get: - summary: List of all architectures the specified project builds against a given - repository. - description: List of all architectures the specified project builds against - a given repository. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - responses: - '200': - description: | - OK - - XML Schema used for body validation: [directory.xsd](../schema/directory.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - entry: - - name: x86_64 - - name: i586 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: 404 - summary: project '' has no repository '' - details: 404 project '' has no repository '' - tags: - - Build - "/build/{project_name}/{repository_name}/_buildconfig": - get: - summary: Show the build configuration for the specified repository. - description: | - Show the build configuration for the specified repository. Includes all base package - requirements, mappings and macros. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - responses: - '200': - description: OK - content: - text/plain: - example: | - %define _project home:Admin - - ### from openSUSE.org:openSUSE:Leap:15.2 - %define _repository standard - - Macros: - %vendor obs://build.some.where/home:Admin - %_project home:Admin - - ### from openSUSE.org:openSUSE:Leap:15.2 - - %_repository standard - :Macros - - - Release: . spec:lp152.. - %define gcc_version 7 - - # testing new cycle algorithm - BuildFlags: genmetaalgo:1 - - # abort the build if the log file didn't move in an hour (seen in libreoffice builds) - BuildFlags: logidlelimit:3600 - - PublishFlags: ympdist:openSUSE%20Leap%2015.2 - - # Help with the switch to the gcc7 provided libs - Prefer: -libstdc++6-gcc7 -libtsan0-gcc7 -libgomp1-gcc7 -libgcc_s1-gcc7 -libatomic1-gcc7 -libcilkrts5-gcc7 -libitm1-gcc7 - Prefer: -liblsan0-gcc7 -libmpx2-gcc7 -libubsan0-gcc7 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/_builddepinfo": - get: - summary: Show the build dependencies of packages that are part of the project. - description: | - Show the build dependencies of packages that are part of the project, - for a given repository and architecture. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: query - name: package - schema: - type: string - description: Name of the package. Limit results to the specified package. - example: obs-server - - in: query - name: view - schema: - type: string - enum: - - pkgnames - - revpkgnames - - order - description: | - * `pkgnames`: Show whole package dependencies, instead of individual binaries. - * `revpkgnames`: Show which packages depend on the provided project/package for - the given repository/architecture, and therefore a rebuild gets triggered on change. - * `order`: Show packages ordered by dependencies. - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - package: - type: array - items: - type: object - properties: - name: - type: string - example: memcached - xml: - attribute: true - source: - type: string - example: memcached - pkgdep: - type: array - items: - type: string - example: - - gzip - - obs-server - subpkg: - type: array - items: - type: string - example: - - memcached-devel - - memcached-debugsource - xml: - name: builddepinfo - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Build - post: - deprecated: true - summary: Show the build dependencies of packages that are part of the project. - description: | - This endpoint is exactly the same as - `GET /build/{project_name}/{repository_name}/{architecture_name}/{package_name}/_builddepinfo`, please use that one. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/_jobhistory": - get: - summary: Get the build log of all finished builds. - description: Get the build log of all finished builds, for a given project, - repository and architecture. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: query - name: code - schema: - type: string - description: 'Filter results by finished build code: `failed`, `succeeded`, - `unchanged`.' - example: succeeded - - in: query - name: endtime_end - schema: - type: integer - description: Show builds which finished before given time. - example: 1714135617 - - in: query - name: endtime_start - schema: - type: integer - description: Show builds which finished after given time. - example: 1714130617 - - in: query - name: limit - schema: - type: integer - description: Limit the number of retrieved results elements to the specified - number. - example: 10 - - in: query - name: package - schema: - type: string - description: Name of the package. Limit results to the specified package. - example: obs-server - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - package: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - versrel: - type: string - xml: - attribute: true - bcnt: - type: integer - xml: - attribute: true - readytime: - type: integer - xml: - attribute: true - starttime: - type: integer - xml: - attribute: true - endtime: - type: integer - xml: - attribute: true - code: - type: string - xml: - attribute: true - uri: - type: string - xml: - attribute: true - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - reason: - type: string - xml: - attribute: true - verifymd5: - type: string - xml: - attribute: true - xml: - name: jobhist - xml: - wrapped: true - name: jobhistlist - example: - - package: obs-server - rev: 17367 - srcmd5: e2fc6b9e014441f3f8a33beb62446215 - versrel: 2.11~alpha.20240426T143809.ab0551f7-16803 - bcnt: 1 - readytime: 1714135430 - starttime: 1714135490 - endtime: 1714135617 - code: succeeded - uri: http://192.168.2.130:42344 - workerid: i02-ch1d:21 - hostarch: x86_64 - reason: source change - verifymd5: 518a4d1c0e95fe3c04117aafba722a1f - - package: obs-server:obs-bundled-gems - rev: 17368 - srcmd5: feac17ca9cf334d57d719f3ba52a300f - versrel: 2.11~alpha.20240426T150958.ca259016-16804 - bcnt: 1 - readytime: 1714137054 - starttime: 1714137078 - endtime: 1714137296 - code: succeeded - uri: http://192.168.2.130:42344 - workerid: i04-ch4d:9 - hostarch: x86_64 - reason: source change - verifymd5: f81504abf10aaca978a8acea9eaa5bf5 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/_repository": - get: - summary: List all binaries (produced by all packages of the given project). - description: | - List all binaries (produced by all packages of the given project) for the specified - repository and architecture. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - responses: - '200': - description: OK. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - binary: - type: array - items: - type: object - properties: - filename: - type: string - example: hello-2.10-3.1.x86_64.rpm - xml: - attribute: true - size: - type: string - example: '58352' - xml: - attribute: true - mtime: - type: string - example: '1617270174' - xml: - attribute: true - xml: - name: binarylist - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/{package_name}": - get: - summary: List binaries built by the sources of the specified package. - description: List binaries built by the sources of the specified package. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - responses: - '200': - description: OK. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - binary: - type: array - items: - type: object - properties: - filename: - type: string - example: hello-2.10-3.1.x86_64.rpm - xml: - attribute: true - size: - type: string - example: '58352' - xml: - attribute: true - mtime: - type: string - example: '1617270174' - xml: - attribute: true - xml: - name: binarylist - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/{package_name}/_buildenv": - get: - summary: Return the environment information for the last performed build. - description: Get specifics of the environment information for the last performed - build. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - project: - type: string - example: home:Admin - xml: - attribute: true - repository: - type: string - example: openSUSE_Tumbleweed - xml: - attribute: true - package: - type: string - example: ctris - xml: - attribute: true - arch: - type: string - example: i586 - srcmd5: - type: string - example: 6b7c8d9cb5c5d36453c1dc8e102016b1 - verifymd5: - type: string - example: 6b7c8d9cb5c5d36453c1dc8e102016b1 - versrel: - type: string - example: 0.42.1-3 - bcnt: - type: string - example: '2' - release: - type: string - example: '3.2' - config: - type: string - example: | - %define _project home:enavarro_suse - - ### from openSUSE:Factory - %define _repository ports - - Macros: - %vendor obs://build.opensuse.org/home:enavarro_suse - %_download_url https://download.opensuse.org/repositories - %_project home:enavarro_suse - bdep: - type: object - properties: - name: - type: string - example: liblua5_4-5 - xml: - attribute: true - hdrmd5: - type: string - example: 4f50c1ea427e184620686ded4baa3097 - xml: - attribute: true - project: - type: string - example: openSUSE:Tumbleweed - xml: - attribute: true - repository: - type: string - example: dod - xml: - attribute: true - xml: - name: buildinfo - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Error: Not Found - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: unknown_project - summary: 'Project not found: 1' - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/{package_name}/_buildinfo": - get: - summary: Return build information about a build description would produce. - description: | - Get build information using the default spec file. - - To use other file than the default spec file, use this same endpoint path with the `POST` action. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - name: add - in: query - schema: - type: array - items: - type: string - description: Add a list of build dependencies (`BuildRequires`) to the build. - example: - - less - - vim - - name: debug - in: query - schema: - type: string - description: Set to `1` to add debug information about dependencies. This - information is added inside an `expandeddebug` xml element. - example: 0 - responses: - '200': - description: Returns the artifact building information. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - project: - type: string - example: home:Admin - xml: - attribute: true - repository: - type: string - example: openSUSE_Tumbleweed - xml: - attribute: true - package: - type: string - example: ctris - xml: - attribute: true - arch: - type: string - example: i586 - srcmd5: - type: string - example: 6b7c8d9cb5c5d36453c1dc8e102016b1 - verifymd5: - type: string - example: 6b7c8d9cb5c5d36453c1dc8e102016b1 - rev: - type: integer - example: 3 - specfile: - type: string - example: ctris.spec - file: - type: string - example: ctris.spec - versrel: - type: string - example: 0.42.1-3 - bcnt: - type: string - example: '2' - release: - type: string - example: '3.2' - debuginfo: - type: integer - example: 0 - subpack: - type: string - example: ctris - bdep: - type: object - properties: - name: - type: string - example: liblua5_4-5 - xml: - attribute: true - preinstall: - type: string - example: '1' - xml: - attribute: true - notmeta: - type: string - example: '1' - xml: - attribute: true - version: - type: string - example: 5.4.2 - xml: - attribute: true - release: - type: string - example: '3.1' - xml: - attribute: true - arch: - type: string - example: i586 - xml: - attribute: true - project: - type: string - example: openSUSE.org:openSUSE:Tumbleweed - xml: - attribute: true - repository: - type: string - example: dod - xml: - attribute: true - path: - type: object - properties: - project: - type: string - example: home:Admin - xml: - attribute: true - repository: - type: string - example: openSUSE_Tumbleweed - xml: - attribute: true - url: - type: string - example: https://download.opensuse.org/repositories/home:/enavarro_suse/openSUSE_Tumbleweed/ - xml: - attribute: true - expanddebug: - type: string - example: | - === meta deps expansion - expand args: rpm-build gcc-PIE - added rpm-build@openSUSE:Tumbleweed/dod because of (direct):rpm-build - added gcc-PIE@openSUSE:Tumbleweed/dod because of (direct):gcc-PIE - --- now doing normal dependencies - added glibc@openSUSE:Tumbleweed/dod because of rpm-build:libc.so.6(GLIBC_2.34)(64bit) - added glibc@openSUSE:Tumbleweed/dod because of rpm-build:libc.so.6(GLIBC_2.4)(64bit) - xml: - name: buildinfo - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Error: Not Found - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: unknown_project - summary: 'Project not found: 1' - tags: - - Build - post: - summary: Return build information about a build description would produce. - description: | - Get build information using the file passed in the request body. - - Despite using the method `POST`, this endpoint doesn't alter any data. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: package_name - schema: - type: string - required: true - description: | - Package name. - - It can take the value `_repository`, if the designated package does not exist yet in the server. - This is useful for testing a build locally before committing a package. - examples: - Normal Package Name: - value: ctris - No Package Yet: - value: _repository - - name: add - in: query - schema: - type: array - items: - type: string - description: Add a list of build dependencies (`BuildRequires`) to the build. - example: - - less - - vim - - name: debug - in: query - schema: - type: string - description: Set to `1` to add debug information about dependencies. This - information is added inside an `expandeddebug` xml element. - example: 0 - requestBody: - description: A RPM specfile or a Debian "dsc" file. - required: true - content: - text/plain: - schema: - type: string - example: | - Name: hello_world - Version: 1 - Release: 1 - Summary: Most simple RPM package - License: CC0-1.0 - - %build - cat > hello_world.sh <.' - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/{package_name}/_log": - get: - description: This endpoint returns the last log file for a specific build artifact - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - responses: - '200': - description: This endpoint returns the log file content - content: - text/plain: - example: "[ 0s] Memory limit set to 23077696KB\n[ 0s] Using BUILD_ROOT=/var/cache/obs/worker/root_2\n[ - \ 0s] Using BUILD_ARCH=i586:i486:i386\n[ 0s] \n[ 0s] \n[ 0s] - 5d0262043f4a started \"build ctris.spec\" at Tue Apr 6 12:27:31 UTC - 2021.\n[ 0s] \n[ 0s] Building ctris for project 'home:Admin' - repository 'openSUSE_Tumbleweed' arch 'i586' srcmd5 '6b7c8d9cb5c5d36453c1dc8e102016b1'\n" - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Error: Not Acceptable - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: download_binary_no_permission - summary: No permission to download binaries from package ctris, project - home:Admin - '404': - description: | - Error: Not Found - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: unknown_project - summary: 'Project not found: 1' - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/{package_name}/_reason": - get: - summary: Show the reason for the lastly triggered build. - description: Details about the reason of the lastly triggered build. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - explain: - type: string - example: source change - time: - type: string - example: '1617982407' - oldsource: - type: string - example: da9ebc6a12b6da45f9ead3fc2f924889 - xml: - name: reason - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/{package_name}/_statistics": - get: - summary: Return build statistics from the last performed build. - description: Get specifics of build statistics from the last performed build. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - disk: - type: object - properties: - usage: - type: object - properties: - size: - type: object - properties: - unit: - type: string - xml: - attribute: true - io_requests: - type: string - io_sectors: - type: string - memory: - type: object - properties: - usage: - type: object - properties: - size: - type: object - properties: - unit: - type: string - xml: - attribute: true - times: - type: object - properties: - total: - type: object - properties: - time: - type: object - properties: - unit: - type: string - xml: - attribute: true - preinstall: - type: object - properties: - time: - type: object - properties: - unit: - type: string - xml: - attribute: true - install: - type: object - properties: - time: - type: object - properties: - unit: - type: string - xml: - attribute: true - main: - type: object - properties: - time: - type: object - properties: - unit: - type: string - xml: - attribute: true - postchecks: - type: object - properties: - time: - type: object - properties: - unit: - type: string - xml: - attribute: true - rpmlint: - type: object - properties: - time: - type: object - properties: - unit: - type: string - xml: - attribute: true - buildcmp: - type: object - properties: - time: - type: object - properties: - unit: - type: string - xml: - attribute: true - deltarpms: - type: object - properties: - time: - type: object - properties: - unit: - type: string - xml: - attribute: true - download: - type: object - properties: - time: - type: object - properties: - unit: - type: string - xml: - attribute: true - cpusteal: - type: object - properties: - time: - type: object - properties: - unit: - type: string - xml: - attribute: true - download: - type: object - properties: - size: - type: object - properties: - unit: - type: string - xml: - attribute: true - binaries: - type: string - cachehits: - type: string - xml: - name: buildstatistics - example: - disk: - usage: - size: - unit: M - io_requests: 7750 - io_sectors: 1248010 - memory: - usage: - size: - unit: M - times: - total: - time: - unit: s - preinstall: - time: - unit: s - download: - size: - unit: k - binaries: 5 - cachehits: 131 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Error: Not Found - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: unknown_project - summary: 'Project not found: 1' - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/{package_name}/_status": - get: - description: This endpoint returns the building status for a specific artifact - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - responses: - '200': - description: Returns ok when the build status is ok - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - package: - type: string - example: ctris - xml: - attribute: true - code: - type: string - example: failed - xml: - attribute: true - xml: - name: status - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Error: Not Found - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: unknown_project - summary: 'Project not found: 1' - tags: - - Build - post: - deprecated: true - summary: Return the building status for a specific artifact - description: | - This endpoint is exactly the same as - `GET /build/{project_name}/{repository_name}/{architecture_name}/{package_name}/_status`, please use that one. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/{package_name}/{file_name}": - get: - summary: Return a specific artifact file contents - description: Given a project, repository, architecture and package, retrieve - the given file's content. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: file_name - schema: - type: string - required: true - description: The file name - example: ctris-0.42.1-4.1.x86_64.rpm - responses: - '200': - description: Returns the artifact's actual file contents - content: - application/*: - schema: - type: string - format: binary - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Error: Not Found - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: '404' - summary: project 'home:Admin' has no repository '4' - details: 404 project 'home:Admin' has no repository '4' - tags: - - Build - put: - summary: Update a specific artifact file contents - description: | - Given a project, repository, architecture and package, update the given file's content. - - This is for Admins only. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - name: package_name - in: path - schema: - type: array - items: - type: string - enum: - - _repository - required: true - description: Package name - - in: path - name: file_name - schema: - type: string - required: true - description: The file name - example: ctris-0.42.1-4.1.x86_64.rpm - requestBody: - content: - plain/text: - schema: - type: string - properties: - file: - type: string - format: binary - responses: - '200': - description: Updates the artifact's file contents - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: No permission to upload binaries for this project - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: upload_binary_no_permission - summary: No permission to upload binaries. - '404': - description: | - Error: Not Found - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: '404' - summary: project 'home:Admin' has no repository '4' - details: 404 project 'home:Admin' has no repository '4' - tags: - - Build - delete: - summary: Delete an existing repository artifact - description: | - Given a project, repository and architecture delete the given file in the repository. - - The user needs to have write permissions into the artifact - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - name: package_name - in: path - schema: - type: array - items: - type: string - enum: - - _repository - required: true - description: Package name. '_repository' is the only posible value. - - in: path - name: file_name - schema: - type: string - required: true - description: The file name - example: ctris-0.42.1-4.1.x86_64.rpm - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Operation is not allowed - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: invalid_operation - summary: Delete operation of build results is not allowed - '403': - description: No permission to delete binaries from this project - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: delete_binary_no_permission - summary: No permission to delete binaries from project home:Admin. - '404': - description: | - Error: Not Found - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: '404' - summary: project 'home:Admin' has no repository '4' - tags: - - Build - "/build/{project_name}/{repository_name}/{architecture_name}/{package_name}/{file_name}?view=fileinfo": - get: - summary: This endpoint returns details about an specific artifact - description: Given a project, repository, architecture and package, retrieve - the given artifact's details. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: file_name - schema: - type: string - required: true - description: The file name - example: ctris-0.42.1-4.1.x86_64.rpm - - name: view - in: query - required: true - schema: - type: array - items: - type: string - enum: - - fileinfo - - fileinfo_ext - responses: - '200': - description: Returns details about the artifact - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - filename: - type: string - xml: - attribute: true - name: - type: string - version: - type: string - release: - type: string - arch: - type: string - source: - type: string - summary: - type: string - description: - type: string - size: - type: string - mtime: - type: string - provides: - type: array - items: - type: string - requires: - type: array - items: - type: string - provides_ext: - type: array - items: - type: object - properties: - dep: - type: string - xml: - attribute: true - requires_ext: - type: array - items: - type: object - properties: - dep: - type: string - xml: - attribute: true - provided_by: - type: object - properties: - name: - type: string - xml: - attribute: true - version: - type: string - xml: - attribute: true - release: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - xml: - name: fileinfo - examples: - fileinfo: - summary: view=fileinfo - value: - filename: ctris-0.42.1-4.1.x86_64.rpm - name: ctris - version: 0.42.1 - release: '4.1' - arch: x86_64 - summary: Console based tetris clone - description: ctris is a colorized, small and flexible Tetris(TM)-clone - for the console. Go play! - size: '765725' - mtime: '1617270174' - provides: - - ctris = 0.42.1-6.2 - - ctris(x86-64) = 0.42.1-6.2 - requires: - - libc.so.6()(64bit) - - libc.so.6(GLIBC_2.2.5)(64bit) - fileinfo_ext: - summary: view=fileinfo_ext - value: - filename: ctris-0.42.1-4.2.x86_64.rpm - name: ctris - version: 0.42.1 - release: '4.1' - arch: x86_64 - source: ctris - summary: Console based tetris clone - description: ctris is a colorized, small and flexible Tetris(TM)-clone - for the console. Go play! - size: '765725' - mtime: '1617270174' - provides: - - ctris = 0.42.1-6.2 - - ctris(x86-64) = 0.42.1-6.2 - requires: - - libc.so.6()(64bit) - - libc.so.6(GLIBC_2.2.5)(64bit) - provides_ext: - dep: ctris(x86-64) = 0.42.1-6.2 - requires_ext: - dep: libc.so.6()(64bit) - provided_by: - name: glibc - version: '2.33' - release: '4.1' - arch: x86_64 - project: openSUSE.org:openSUSE:Tumbleweed - repository: dod - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Error: Not Found - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: '404' - summary: project 'home:Admin' has no repository '4' - details: 404 project 'home:Admin' has no repository '4' - tags: - - Build - "/comment/{comment_id}": - delete: - summary: Delete a comment - description: Delete a given comment based on its id. - security: - - basic_authentication: [] - parameters: - - in: path - name: comment_id - schema: - type: integer - required: true - description: Id of the comment. - example: 1124 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: delete_comment_not_authorized - summary: Sorry, you are not authorized to delete this comment - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Comment with id '1124' - tags: - - Comments - "/comment/{comment_id}/history": - get: - summary: List the history of a comment - description: | - List the versions of a edited comment. - - **(Beta/Unstable)** This endpoint is currently behind the `content_moderation` beta flag. - security: - - basic_authentication: [] - parameters: - - in: path - name: comment_id - schema: - type: integer - required: true - description: Id of the comment. - example: 5 - responses: - '200': - description: | - OK. The request has succeeded. - XML Schema used for body validation: [comment_history.rng](../schema/comment_history.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - comment: - type: integer - xml: - attribute: true - xml: - name: comment_history - example: | - - First version of comment - UHH DONT LIKE MY COMMENT - - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: history_comment_not_authorized - summary: Sorry, you are not authorized to history this comment. - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Comment with 'id'=67 - tags: - - Comments - "/comments/user": - get: - summary: List all the logged in user's comments - description: List all the comments for the currently logged in user. - security: - - basic_authentication: [] - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - comment: - type: array - items: - type: object - properties: - id: - type: integer - xml: - attribute: true - who: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - parent: - type: integer - xml: - attribute: true - bsrequest: - type: integer - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - request: - type: integer - xml: - attribute: true - package: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - user: - type: string - xml: - attribute: true - xml: - name: comments - example: | - - This is a pretty cool request! - This is a pretty cool project! - This is a pretty cool package! - - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Comments - "/comments/request/{id}": - get: - summary: List all the request's comments - description: List all the comments for the request. - security: - - basic_authentication: [] - parameters: - - in: path - name: id - schema: - type: integer - required: true - description: Id of the choosen request. - example: 743 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - comment: - type: array - items: - type: object - properties: - id: - type: integer - xml: - attribute: true - who: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - parent: - type: integer - xml: - attribute: true - bsrequest: - type: integer - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - request: - type: integer - xml: - attribute: true - package: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - user: - type: string - xml: - attribute: true - xml: - name: comments - example: | - - This is a pretty cool comment! - - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not_found: - summary: Couldn't find Request with number '1234' - value: - code: not_found - summary: Couldn't find Request with number '1234' - tags: - - Comments - post: - summary: Create a request comment - description: Create a comment for the request. - security: - - basic_authentication: [] - parameters: - - in: path - name: id - schema: - type: integer - required: true - description: Id of the choosen request. - example: 743 - - in: query - name: parent_id - schema: - type: integer - description: Id of the comment to reply to - example: 10401 - requestBody: - description: Content of the comment - required: true - content: - text/plain: - schema: - type: string - example: This is a very valuable comment - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Invalid Comment. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_record: - summary: Parent belongs to different object - value: - code: invalid_record - summary: Parent belongs to different object - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not_found: - summary: Couldn't find Request with number '1234' - value: - code: not_found - summary: Couldn't find Request with number '1234' - tags: - - Comments - "/comments/project/{project_name}": - get: - summary: List all the project's comments - description: List all the comments for the project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - comment: - type: array - items: - type: object - properties: - id: - type: integer - xml: - attribute: true - who: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - parent: - type: integer - xml: - attribute: true - bsrequest: - type: integer - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - request: - type: integer - xml: - attribute: true - package: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - user: - type: string - xml: - attribute: true - xml: - name: comments - example: | - - This is a pretty cool comment! - - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not_found: - summary: 'Project not found: notaproject' - value: - code: not_found - summary: 'Project not found: notaproject' - tags: - - Comments - post: - summary: Create a project comment - description: Create a comment for the project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: parent_id - schema: - type: integer - description: Id of the comment to reply to - example: 10401 - requestBody: - description: Content of the comment - required: true - content: - text/plain: - schema: - type: string - example: This is a very valuable comment - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Invalid Comment. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_record: - summary: Parent belongs to different object - value: - code: invalid_record - summary: Parent belongs to different object - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not_found: - value: - code: not_found - tags: - - Comments - "/comments/package/{project_name}/{package_name}": - get: - summary: List all the package's comments - description: List all the comments for the package. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - comment: - type: array - items: - type: object - properties: - id: - type: integer - xml: - attribute: true - who: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - parent: - type: integer - xml: - attribute: true - bsrequest: - type: integer - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - request: - type: integer - xml: - attribute: true - package: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - user: - type: string - xml: - attribute: true - xml: - name: comments - example: | - - This is a pretty cool comment! - - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not_found: - summary: 'Package not found: home:Admin/notapackage' - value: - code: not_found - summary: 'Package not found: home:Admin/notapackage' - tags: - - Comments - post: - summary: Create a package comment - description: Create a comment for the package. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: parent_id - schema: - type: integer - description: Id of the comment to reply to - example: 10401 - requestBody: - description: Content of the comment - required: true - content: - text/plain: - schema: - type: string - example: This is a very valuable comment - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Invalid Comment. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_record: - summary: Parent belongs to different object - value: - code: invalid_record - summary: Parent belongs to different object - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not_found: - summary: 'Package not found: openSUSE:Factory/eeee' - value: - code: not_found - summary: 'Package not found: openSUSE:Factory/eeee' - tags: - - Comments - "/configuration": - get: - summary: Display the configuration of this Open Build Service instance - description: Display the configuration of this Open Build Service instance. - security: - - basic_authentication: [] - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - title: - type: string - example: Open Build Service - description: - type: string - example: The openSUSE Build Service is the public instance of - the Open Build Service (OBS) - name: - type: string - example: private - download_on_demand: - type: string - example: true - enforce_project_keys: - type: string - example: false - anonymous: - type: string - example: true - registration: - type: string - example: allow - default_access_disabled: - type: string - example: false - allow_user_to_create_home_project: - type: string - example: true - disallow_group_creation: - type: string - example: false - change_password: - type: string - example: true - obs_url: - type: string - example: https://unconfigured.openbuildservice.org - tos_url: - type: string - example: https://en.opensuse.org/Terms_of_site - hide_private_options: - type: string - example: false - gravatar: - type: string - example: true - cleanup_empty_projects: - type: string - example: true - disable_publish_for_branches: - type: string - example: true - admin_email: - type: string - example: unconfigured@openbuildservice.org - unlisted_projects_filter: - type: string - example: "^home:.+" - unlisted_projects_filter_description: - type: string - example: home projects - default_tracker: - type: string - example: bnc - code_of_conduct: - type: string - example: | - This is an example of a "Code of Conduct". - - 1. First point. - - 2. Second point. - schedulers: - type: object - properties: - arch: - type: array - items: - type: string - example: - - armv7l - - i586 - - x86_64 - xml: - name: configuration - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Configuration - put: - summary: Update the configuration of this Open Build Service instance - description: | - Update the configuration of this Open Build Service instance. - - This is for admins only. - security: - - basic_authentication: [] - requestBody: - description: Configuration definition. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - title: - type: string - example: Open Build Service - description: - type: string - example: The openSUSE Build Service is the public instance of the - Open Build Service (OBS) - name: - type: string - example: private - download_on_demand: - type: string - example: true - enforce_project_keys: - type: string - example: false - anonymous: - type: string - example: true - registration: - type: string - example: allow - default_access_disabled: - type: string - example: false - allow_user_to_create_home_project: - type: string - example: true - disallow_group_creation: - type: string - example: false - change_password: - type: string - example: true - obs_url: - type: string - example: https://unconfigured.openbuildservice.org - tos_url: - type: string - example: https://en.opensuse.org/Terms_of_site - hide_private_options: - type: string - example: false - gravatar: - type: string - example: true - cleanup_empty_projects: - type: string - example: true - disable_publish_for_branches: - type: string - example: true - admin_email: - type: string - example: unconfigured@openbuildservice.org - unlisted_projects_filter: - type: string - example: "^home:.+" - unlisted_projects_filter_description: - type: string - example: home projects - default_tracker: - type: string - example: bnc - code_of_conduct: - type: string - example: | - This is an example of a "Code of Conduct". - - 1. First point. - - 2. Second point. - schedulers: - type: object - properties: - arch: - type: array - items: - type: string - example: - - armv7l - - i586 - - x86_64 - xml: - name: configuration - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - title: - type: string - example: Open Build Service - description: - type: string - example: The openSUSE Build Service is the public instance of - the Open Build Service (OBS) - name: - type: string - example: private - download_on_demand: - type: string - example: true - enforce_project_keys: - type: string - example: false - anonymous: - type: string - example: true - registration: - type: string - example: allow - default_access_disabled: - type: string - example: false - allow_user_to_create_home_project: - type: string - example: true - disallow_group_creation: - type: string - example: false - change_password: - type: string - example: true - obs_url: - type: string - example: https://unconfigured.openbuildservice.org - tos_url: - type: string - example: https://en.opensuse.org/Terms_of_site - hide_private_options: - type: string - example: false - gravatar: - type: string - example: true - cleanup_empty_projects: - type: string - example: true - disable_publish_for_branches: - type: string - example: true - admin_email: - type: string - example: unconfigured@openbuildservice.org - unlisted_projects_filter: - type: string - example: "^home:.+" - unlisted_projects_filter_description: - type: string - example: home projects - default_tracker: - type: string - example: bnc - code_of_conduct: - type: string - example: | - This is an example of a "Code of Conduct". - - 1. First point. - - 2. Second point. - schedulers: - type: object - properties: - arch: - type: array - items: - type: string - example: - - armv7l - - i586 - - x86_64 - xml: - name: configuration - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - In the example below, _default_access_disabled_ is one of the possible configuration options which is set in the options.yml file. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: no_permission_to_change - summary: The api has a different value for default_access_disabled - configured in options.yml file. Remove it there first - tags: - - Configuration - "/distributions": - get: - summary: List all distributions. - description: | - List all distributions that can be build against. - This will not list distributions that are available via [interconnect](https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.concepts.html#id-1.5.10.3.5). - Check /distributions/include_remotes for this. - security: - - basic_authentication: [] - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [distributions.rng](../schema/distributions.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - distribution: - type: array - items: - type: object - properties: - id: - type: integer - example: 16626 - xml: - attribute: true - vendor: - type: string - example: opensuse - xml: - attribute: true - version: - type: string - example: Tumbleweed - xml: - attribute: true - name: - type: string - example: openSUSE Tumbleweed - project: - type: string - example: openSUSE:Factory - repository: - type: string - example: snapshot - reponame: - type: string - example: openSUSE_Tumbleweed - link: - type: string - example: http://www.opensuse.org/ - architecture: - type: array - example: - - i586 - - x86_64 - items: - type: string - icon: - type: array - example: - - width: 8 - height: 8 - url: https://static.opensuse.org/distributions/logos/opensuse.png - - width: 16 - height: 16 - url: https://static.opensuse.org/distributions/logos/opensuse.png - items: - type: object - properties: - width: - type: integer - xml: - attribute: true - height: - type: integer - xml: - attribute: true - url: - type: string - xml: - attribute: true - xml: - name: distributions - example: - distribution: - - vendor: opensuse - version: Tumbleweed - id: 16626 - name: openSUSE Tumbleweed - project: openSUSE:Factory - reponame: openSUSE_Tumbleweed - repository: snapshot - link: http://www.opensuse.org/ - icon: - - url: https://static.opensuse.org/distributions/logos/opensuse.png - width: 8 - height: 8 - - url: https://static.opensuse.org/distributions/logos/opensuse.png - width: 16 - height: 16 - architecture: - - i586 - - x86_64 - - vendor: openSUSE - version: '15.3' - id: 16629 - name: openSUSE Leap 15.3 - project: openSUSE:Leap:15.3 - reponame: openSUSE_Leap_15.3 - repository: standard - link: http://www.opensuse.org/ - icon: - - url: https://static.opensuse.org/distributions/logos/opensuse.png - width: 8 - height: 8 - - url: https://static.opensuse.org/distributions/logos/opensuse.png - width: 16 - height: 16 - architecture: x86_64 - - vendor: Fedora - version: '33' - id: 16731 - name: Fedora 33 - project: Fedora:33 - reponame: Fedora_33 - repository: standard - link: http://www.fedoraproject.org/ - icon: - - url: https://static.opensuse.org/distributions/logos/fedora.png - width: 8 - height: 8 - - url: https://static.opensuse.org/distributions/logos/fedora.png - width: 16 - height: 16 - architecture: - - i586 - - x86_64 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Distributions - post: - summary: Create a distribution. - description: | - Create a distribution. - - This is only for admins. - security: - - basic_authentication: [] - requestBody: - description: Distribution definition - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - example: 16626 - xml: - attribute: true - vendor: - type: string - example: opensuse - xml: - attribute: true - version: - type: string - example: Tumbleweed - xml: - attribute: true - name: - type: string - example: openSUSE Tumbleweed - project: - type: string - example: openSUSE:Factory - repository: - type: string - example: snapshot - reponame: - type: string - example: openSUSE_Tumbleweed - link: - type: string - example: http://www.opensuse.org/ - architecture: - type: array - example: - - i586 - - x86_64 - items: - type: string - icon: - type: array - example: - - width: 8 - height: 8 - url: https://static.opensuse.org/distributions/logos/opensuse.png - - width: 16 - height: 16 - url: https://static.opensuse.org/distributions/logos/opensuse.png - items: - type: object - properties: - width: - type: integer - xml: - attribute: true - height: - type: integer - xml: - attribute: true - url: - type: string - xml: - attribute: true - xml: - name: distribution - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [distribution.rng](../schema/distribution.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - example: 16626 - xml: - attribute: true - vendor: - type: string - example: opensuse - xml: - attribute: true - version: - type: string - example: Tumbleweed - xml: - attribute: true - name: - type: string - example: openSUSE Tumbleweed - project: - type: string - example: openSUSE:Factory - repository: - type: string - example: snapshot - reponame: - type: string - example: openSUSE_Tumbleweed - link: - type: string - example: http://www.opensuse.org/ - architecture: - type: array - example: - - i586 - - x86_64 - items: - type: string - icon: - type: array - example: - - width: 8 - height: 8 - url: https://static.opensuse.org/distributions/logos/opensuse.png - - width: 16 - height: 16 - url: https://static.opensuse.org/distributions/logos/opensuse.png - items: - type: object - properties: - width: - type: integer - xml: - attribute: true - height: - type: integer - xml: - attribute: true - url: - type: string - xml: - attribute: true - xml: - name: distribution - example: - distribution: - - vendor: opensuse - version: Tumbleweed - id: 16626 - name: openSUSE Tumbleweed - project: openSUSE:Factory - reponame: openSUSE_Tumbleweed - repository: snapshot - link: http://www.opensuse.org/ - icon: - - url: https://static.opensuse.org/distributions/logos/opensuse.png - width: 8 - height: 8 - - url: https://static.opensuse.org/distributions/logos/opensuse.png - width: 16 - height: 16 - architecture: - - i586 - - x86_64 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Distributions - "/distributions/include_remotes": - get: - summary: List all distributions including remote. - description: List all distributions that can be build against, including the - ones provided by the interconnect. - security: - - basic_authentication: [] - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [distributions.rng](../schema/distributions.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - distribution: - type: array - items: - type: object - properties: - id: - type: integer - example: 16626 - xml: - attribute: true - vendor: - type: string - example: opensuse - xml: - attribute: true - version: - type: string - example: Tumbleweed - xml: - attribute: true - name: - type: string - example: openSUSE Tumbleweed - project: - type: string - example: openSUSE:Factory - repository: - type: string - example: snapshot - reponame: - type: string - example: openSUSE_Tumbleweed - link: - type: string - example: http://www.opensuse.org/ - architecture: - type: array - example: - - i586 - - x86_64 - items: - type: string - icon: - type: array - example: - - width: 8 - height: 8 - url: https://static.opensuse.org/distributions/logos/opensuse.png - - width: 16 - height: 16 - url: https://static.opensuse.org/distributions/logos/opensuse.png - items: - type: object - properties: - width: - type: integer - xml: - attribute: true - height: - type: integer - xml: - attribute: true - url: - type: string - xml: - attribute: true - xml: - name: distributions - example: - distribution: - - vendor: opensuse - version: Tumbleweed - id: 16626 - name: openSUSE Tumbleweed - project: openSUSE:Factory - reponame: openSUSE_Tumbleweed - repository: snapshot - link: http://www.opensuse.org/ - icon: - - url: https://static.opensuse.org/distributions/logos/opensuse.png - width: 8 - height: 8 - - url: https://static.opensuse.org/distributions/logos/opensuse.png - width: 16 - height: 16 - architecture: - - i586 - - x86_64 - - vendor: openSUSE - version: '15.3' - id: 16629 - name: openSUSE Leap 15.3 - project: openSUSE:Leap:15.3 - reponame: openSUSE_Leap_15.3 - repository: standard - link: http://www.opensuse.org/ - icon: - - url: https://static.opensuse.org/distributions/logos/opensuse.png - width: 8 - height: 8 - - url: https://static.opensuse.org/distributions/logos/opensuse.png - width: 16 - height: 16 - architecture: x86_64 - - vendor: Fedora - version: '33' - id: 16731 - name: Fedora 33 - project: Fedora:33 - reponame: Fedora_33 - repository: standard - link: http://www.fedoraproject.org/ - icon: - - url: https://static.opensuse.org/distributions/logos/fedora.png - width: 8 - height: 8 - - url: https://static.opensuse.org/distributions/logos/fedora.png - width: 16 - height: 16 - architecture: - - i586 - - x86_64 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Distributions - "/distributions/{distribution_id}": - get: - summary: Show a distribution. - description: Show a distribution that can be build against. - security: - - basic_authentication: [] - parameters: - - in: path - name: distribution_id - schema: - type: integer - required: true - description: The id of the distribution - example: 16626 - responses: - '200': - description: OK. The request has succeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - example: 16626 - xml: - attribute: true - vendor: - type: string - example: opensuse - xml: - attribute: true - version: - type: string - example: Tumbleweed - xml: - attribute: true - name: - type: string - example: openSUSE Tumbleweed - project: - type: string - example: openSUSE:Factory - repository: - type: string - example: snapshot - reponame: - type: string - example: openSUSE_Tumbleweed - link: - type: string - example: http://www.opensuse.org/ - architecture: - type: array - example: - - i586 - - x86_64 - items: - type: string - icon: - type: array - example: - - width: 8 - height: 8 - url: https://static.opensuse.org/distributions/logos/opensuse.png - - width: 16 - height: 16 - url: https://static.opensuse.org/distributions/logos/opensuse.png - items: - type: object - properties: - width: - type: integer - xml: - attribute: true - height: - type: integer - xml: - attribute: true - url: - type: string - xml: - attribute: true - xml: - name: distribution - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Distribution with 'id'=0 - tags: - - Distributions - put: - summary: Update a distribution. - description: Update the data of a distribution. - security: - - basic_authentication: [] - parameters: - - in: path - name: distribution_id - schema: - type: integer - required: true - description: The id of the distribution - example: 16626 - requestBody: - description: Distribution definition - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - example: 16626 - xml: - attribute: true - vendor: - type: string - example: opensuse - xml: - attribute: true - version: - type: string - example: Tumbleweed - xml: - attribute: true - name: - type: string - example: openSUSE Tumbleweed - project: - type: string - example: openSUSE:Factory - repository: - type: string - example: snapshot - reponame: - type: string - example: openSUSE_Tumbleweed - link: - type: string - example: http://www.opensuse.org/ - architecture: - type: array - example: - - i586 - - x86_64 - items: - type: string - icon: - type: array - example: - - width: 8 - height: 8 - url: https://static.opensuse.org/distributions/logos/opensuse.png - - width: 16 - height: 16 - url: https://static.opensuse.org/distributions/logos/opensuse.png - items: - type: object - properties: - width: - type: integer - xml: - attribute: true - height: - type: integer - xml: - attribute: true - url: - type: string - xml: - attribute: true - xml: - name: distribution - responses: - '200': - description: | - OK. The Request has succeeded. - - XML Schema used for body validation: [distribution.rng](../schema/distribution.rng) - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Distribution with 'id'=0 - tags: - - Distributions - delete: - summary: Delete a distribution. - description: | - Delete a distribution. - - This is only for admins. - security: - - basic_authentication: [] - parameters: - - in: path - name: distribution_id - schema: - type: integer - required: true - description: The id of the distribution - example: 16626 - responses: - '200': - description: OK. The request has succeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Distribution with 'id'=0 - tags: - - Distributions - "/distributions/bulk_replace": - put: - summary: Bulk replace all distributions. - description: | - Bulk replace all distributions. - - This is only for admins. - security: - - basic_authentication: [] - requestBody: - description: Distributions definition - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - distribution: - type: array - items: - type: object - properties: - id: - type: integer - example: 16626 - xml: - attribute: true - vendor: - type: string - example: opensuse - xml: - attribute: true - version: - type: string - example: Tumbleweed - xml: - attribute: true - name: - type: string - example: openSUSE Tumbleweed - project: - type: string - example: openSUSE:Factory - repository: - type: string - example: snapshot - reponame: - type: string - example: openSUSE_Tumbleweed - link: - type: string - example: http://www.opensuse.org/ - architecture: - type: array - example: - - i586 - - x86_64 - items: - type: string - icon: - type: array - example: - - width: 8 - height: 8 - url: https://static.opensuse.org/distributions/logos/opensuse.png - - width: 16 - height: 16 - url: https://static.opensuse.org/distributions/logos/opensuse.png - items: - type: object - properties: - width: - type: integer - xml: - attribute: true - height: - type: integer - xml: - attribute: true - url: - type: string - xml: - attribute: true - xml: - name: distributions - responses: - '200': - description: | - OK. The Request has succeeded. - - XML Schema used for body validation: [distributions.rng](../schema/distributions.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: validation_failed - summary: 'distributions validation error: 40:0: ERROR: Expecting an - element name, got nothing' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Distributions - "/group": - get: - summary: List available groups. - description: List available groups. - security: - - basic_authentication: [] - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [directory.xsd](../schema/directory.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - count: '2' - entry: - - name: group-admin - - name: group-test - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Groups - "/group/{group_title}": - get: - summary: Read group data. - description: Read group data. - security: - - basic_authentication: [] - parameters: - - in: path - name: group_title - schema: - type: string - required: true - description: Group title - example: group-test - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [group.rng](../schema/group.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - title: - type: string - example: group-test - maintainer: - type: array - items: - type: object - properties: - userid: - type: string - example: user-test - xml: - attribute: true - person: - type: array - items: - type: object - properties: - userid: - type: string - example: user-test - xml: - attribute: true - xml: - wrapped: true - xml: - name: group - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Group 'group-testd' - tags: - - Groups - post: - summary: Modify group data. - description: Modify group data. - security: - - basic_authentication: [] - parameters: - - in: path - name: group_title - schema: - type: string - required: true - description: Group title - example: group-test - - in: query - name: cmd - schema: - type: string - enum: - - add_user - - remove_user - - set_email - description: | - Command to be executed. It takes one of these available values: - * `add_user`: add a user to a group. `userid` query parameter must be also used. - * `remove_user`: remove a user from a group. `userid` query parameter must be also used. - * `set_email`: set email adress of group. `email` query parameter must be also used. - - in: query - name: userid - schema: - type: string - description: User login. Used with `cmd=add_user` or `cmd=remove_user`. - - in: query - name: email - schema: - type: string - description: Group email. Used with `cmd=set_email`. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: bad_request - summary: cmd must be set to add_user or remove_user - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - user_not_found: - value: - code: not_found - summary: Couldn't find User with login = user_test - summary: User Not Found - group_not_found: - value: - code: not_found - summary: Couldn't find Group 'group-testd' - summary: Group Not Found - tags: - - Groups - put: - summary: Write group data. - description: Write group data. - security: - - basic_authentication: [] - parameters: - - in: path - name: group_title - schema: - type: string - required: true - description: Group title - example: group-test - requestBody: - description: | - Group definition. - - XML Schema used for body validation: [group.rng](../schema/group.rng) - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - title: - type: string - example: group-test - maintainer: - type: array - items: - type: object - properties: - userid: - type: string - example: user-test - xml: - attribute: true - person: - type: array - items: - type: object - properties: - userid: - type: string - example: user-test - xml: - attribute: true - xml: - wrapped: true - xml: - name: group - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Group 'group-testd' - tags: - - Groups - delete: - summary: Delete a group. - description: Delete a group. - security: - - basic_authentication: [] - parameters: - - in: path - name: group_title - schema: - type: string - required: true - description: Group title - example: group-test - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Group 'group-testd' - tags: - - Groups - "/image_templates": - get: - summary: Get the list of image templates. - description: Get the list of image templates. - security: - - basic_authentication: [] - responses: - '200': - description: List of image templates. - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - image_template_package: - type: array - items: - type: object - properties: - name: - type: string - title: - type: string - description: - type: string - xml: - name: image_template_project - wrapped: true - xml: - name: image_template_projects - wrapped: true - example: - - name: openSUSE:Templates:Images:Tumbleweed - image_template_package: - - name: kiwi-templates-Minimal - title: openSUSE Tumbleweed Minimal Images - description: Images based on Tumbleweed for several platforms. - - name: minimal-container-image - title: Application Container using KIWI - description: | - Starting ground to build a container image for openSUSE:Factory. - - It follows the requirements outlined on https://en.opensuse.org/Building_derived_containers. - - name: OBS:Flatpak:Templates - image_template_package: - - name: FlatpakTemplate - title: Flatpak manifest template - description: This is an example template how to build a Flatpak - app in Open Build Service (OBS) - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - General Information - "/issue_trackers": - get: - summary: Get the list of issue trackers. - description: Get the list of issue trackers. - security: - - basic_authentication: [] - responses: - '200': - description: | - List of issue trackers. - - XML Schema used for body validation: [issue_trackers.rng](../schema/issue_trackers.rng) - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - example: fate - kind: - type: string - example: fate - description: - type: string - example: openSUSE Feature Database - url: - type: string - example: https://features.opensuse.org/ - show-url: - type: string - example: https://features.opensuse.org/@@@ - regex: - type: string - example: "(?:fate|Fate|FATE)\\s*#\\s*(\\d+)" - label: - type: string - example: fate#@@@ - enable-fetch: - type: string - example: 'false' - xml: - name: issue-tracker - xml: - name: issue-trackers - wrapped: true - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Issue Trackers - post: - summary: Create an issue tracker. - description: Create an issue tracker. - security: - - basic_authentication: [] - requestBody: - description: | - Issue tracker definition. - - XML Schema used for body validation: [issue_tracker.rng](../schema/issue_tracker.rng) - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: fate - kind: - type: string - example: fate - description: - type: string - example: openSUSE Feature Database - url: - type: string - example: https://features.opensuse.org/ - show-url: - type: string - example: https://features.opensuse.org/@@@ - regex: - type: string - example: "(?:fate|Fate|FATE)\\s*#\\s*(\\d+)" - label: - type: string - example: fate#@@@ - enable-fetch: - type: string - example: 'false' - xml: - name: issue-tracker - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Validation failed. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - empty_body: - value: - code: validation_failed - summary: Document is empty, not allowed for issue_tracker - summary: Empty Body - wrong_xml_element: - value: - code: validation_failed - summary: 'issue_tracker validation error: 1:0: ERROR: Expecting - element issue-tracker, got foo' - summary: Wrong XML Element - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Issue Trackers - "/issue_trackers/{issue_tracker_name}": - get: - summary: Show an issue tracker. - description: Show an issue tracker. - security: - - basic_authentication: [] - parameters: - - in: path - name: issue_tracker_name - schema: - type: string - required: true - description: Issue tracker name - example: fate - responses: - '200': - description: | - Issue tracker definition. - - XML Schema used for body validation: [issue_tracker.rng](../schema/issue_tracker.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: fate - kind: - type: string - example: fate - description: - type: string - example: openSUSE Feature Database - url: - type: string - example: https://features.opensuse.org/ - show-url: - type: string - example: https://features.opensuse.org/@@@ - regex: - type: string - example: "(?:fate|Fate|FATE)\\s*#\\s*(\\d+)" - label: - type: string - example: fate#@@@ - enable-fetch: - type: string - example: 'false' - xml: - name: issue-tracker - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Unable to find issue tracker 'foo' - tags: - - Issue Trackers - put: - summary: Update or create an issue tracker. - description: Update the issue tracker given as path parameter. If it is not - found, create it. - security: - - basic_authentication: [] - parameters: - - in: path - name: issue_tracker_name - schema: - type: string - required: true - description: Issue tracker name - example: fate - requestBody: - description: | - Issue tracker definition. - - XML Schema used for body validation: [issue_tracker.rng](../schema/issue_tracker.rng) - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: fate - kind: - type: string - example: fate - description: - type: string - example: openSUSE Feature Database - url: - type: string - example: https://features.opensuse.org/ - show-url: - type: string - example: https://features.opensuse.org/@@@ - regex: - type: string - example: "(?:fate|Fate|FATE)\\s*#\\s*(\\d+)" - label: - type: string - example: fate#@@@ - enable-fetch: - type: string - example: 'false' - xml: - name: issue-tracker - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Validation failed. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - empty_body: - value: - code: validation_failed - summary: Document is empty, not allowed for issue_tracker - summary: Empty Body - wrong_xml_element: - value: - code: validation_failed - summary: 'issue_tracker validation error: 1:0: ERROR: Expecting - element issue-tracker, got foo' - summary: Wrong XML Element - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Issue Trackers - delete: - summary: Delete an issue tracker. - description: Delete an issue tracker. - security: - - basic_authentication: [] - parameters: - - in: path - name: issue_tracker_name - schema: - type: string - required: true - description: Issue tracker name - example: fate - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Unable to find issue tracker 'foo' - tags: - - Issue Trackers - "/issue_trackers/{issue_tracker_name}/issues/{issue_name}": - get: - summary: Show an issue of an issue tracker. - description: Show an issue of an issue tracker. - security: - - basic_authentication: [] - parameters: - - in: path - name: issue_tracker_name - schema: - type: string - required: true - description: Issue tracker name - example: fate - - in: path - name: issue_name - schema: - type: string - required: true - description: Issue name. - example: 12345 - responses: - '200': - description: | - Issue definition. - - XML Schema used for body validation: [issue.rng](../schema/issue.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - created_at: - type: string - example: 2021-01-18 19:17:51 UTC - updated_at: - type: string - example: 2021-01-18 19:17:51 UTC - name: - type: string - example: 12345 - tracker: - type: string - example: fate - label: - type: string - example: fate#12345 - url: - type: string - example: https://features.opensuse.org/12345 - state: - type: string - summary: - type: string - owner: - type: object - properties: - login: - type: string - email: - type: string - realname: - type: string - xml: - name: issue - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: issue_tracker_not_found - summary: 'Error: Issue Tracker ''foo'' not found.' - tags: - - Issue Trackers - "/my/notifications": - get: - summary: List the notifications of the authenticated user. - description: | - **(Unstable)** List user's notifications. - - **NOTE:** Available only in OBS Unstable. - security: - - basic_authentication: [] - parameters: - - in: query - name: project - schema: - type: string - - in: query - name: page - schema: - type: integer - - in: query - name: show_maximum - schema: - type: string - example: 1 - - in: query - name: notifications_type - schema: - type: string - enum: - - read - - comments - - requests - - unread - - incoming_requests - - outgoing_requests - - relationships_created - - relationships_deleted - - build_failures - - reports - - workflow_runs - - appealed_decisions - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: string - xml: - attribute: true - total_pages: - type: string - current_page: - type: string - notification: - type: array - items: - type: object - properties: - id: - type: string - xml: - attribute: true - when: - type: string - description: - type: string - title: - type: string - who: - type: string - event_type: - type: string - xml: - name: notifications - example: - count: 2 - total_pages: 1 - current_page: 0 - notification: - - id: 3 - title: test 1 - who: Administrator - state: new - when: 2021-09-30 07:12:02.000000000 +00:00 - event_type: review_wanted - - id: 25 - title: test 2 - who: User 2 - event_type: comment_for_package - when: 2021-09-27 07:16:19.000000000 +00:00 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Notifications - "/my/notifications/{id}": - put: - summary: Mark a notification as read/unread. - description: | - **(Unstable)** If a notification is unread, it will be marked as read. If a notification is read, it will be marked as unread. - - **NOTE:** Available only in OBS Unstable. - security: - - basic_authentication: [] - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '403': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: not_found - summary: Couldn't find Notification with 'id'=213453 - tags: - - Notifications - "/person": - get: - summary: List all people. - description: List all people. - security: - - basic_authentication: [] - parameters: - - in: query - name: prefix - schema: - type: string - required: false - description: A prefix to filter the people to look for - example: Adm - - in: query - name: confirmed - schema: - type: string - required: false - description: List only active users. This parameter is interpreted as `true` - if present, `false` otherwise. - example: 1 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [directory.xsd](../schema/directory.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - count: '9' - entry: - - name: Admin - - name: _nobody_ - - name: Iggy - - name: user_1 - - name: repo-checker - - name: reviewhero - - name: user_2 - - name: user_3 - - name: Requestor - tags: - - Person - post: - summary: Executes a command on the person endpoint. - description: | - Allows executing command on the person endpoint. - - As of now, the only command allowed is 'register'. - parameters: - - in: query - name: cmd - schema: - type: string - enum: - - register - required: true - description: The command to execute - example: register - requestBody: - description: The data for the person to register. - required: true - content: - application/xml: - schema: - type: object - properties: - login: - type: string - example: jane - realname: - type: string - example: Jane Doe - email: - type: string - example: janedoe@example.com - password: - type: string - example: superpassword123 - note: - type: string - example: Jane works in the Engineering team - state: - type: string - example: confirmed - xml: - name: unregisteredperson - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Command: - value: - code: unknown_command - summary: Allowed command is 'register'. - Bad Request: - value: - code: err_register_save - summary: 'Could not save the registration, details: Login is the - name of an already existing user and Password can''t be blank.' - tags: - - Person - "/person/register": - post: - summary: Registers a new person - deprecated: true - description: This endpoint is exactly the same as `POST /person?cmd=register`, - please use that one. - requestBody: - description: Data for the person to register. - required: true - content: - application/xml: - schema: - type: object - properties: - login: - type: string - example: jane - realname: - type: string - example: Jane Doe - email: - type: string - example: janedoe@example.com - password: - type: string - example: superpassword123 - note: - type: string - example: Jane works in the Engineering team - state: - type: string - example: confirmed - xml: - name: unregisteredperson - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: permission_denied - summary: | - User accounts can not be registered via OBS when in LDAP mode. Please refer - to your LDAP server to create new users. - tags: - - Person - "/person/{login}": - get: - summary: Get details about a person - security: - - basic_authentication: [] - parameters: - - in: path - name: login - schema: - type: string - required: true - description: Person login. - example: Admin - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [user.rng](../schema/user.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - login: - type: string - example: user_1 - email: - type: string - example: unconfigured@openbuildservice.org - realname: - type: string - example: User1 - state: - type: string - example: confirmed - globalrole: - type: string - ignore_auth_services: - type: boolean - watchlist: - type: array - items: - type: object - properties: - project: - type: object - properties: - name: - type: string - xml: - attribute: true - package: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - request: - type: object - properties: - number: - type: string - xml: - attribute: true - xml: - name: watchlist - xml: - name: person - example: - login: Admin - email: root@localhost - realname: OBS Instance Superuser - state: confirmed - globalrole: Admin - ignore_auth_services: false - watchlist: - - project: - name: home:Admin - package: - name: ad - project: home:Admin - request: - number: '7' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find User with login = - tags: - - Person - post: - summary: Perform changes on a registered person - security: - - basic_authentication: [] - parameters: - - in: path - name: login - schema: - type: string - required: true - description: Person login. - example: Admin - - in: query - name: cmd - schema: - type: string - enum: - - change_password - - lock - - delete - required: true - description: The command to execute against the provided person. - example: change_password - requestBody: - description: The password in plain text when the cmd param is 'change_password'. - required: false - content: - text/plain: - schema: - type: string - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [api_response.xsd](../schema/api_response.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '400': - description: | - Bad request. - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Command: - value: - code: unknown_command - summary: Allowed commands are ''. - Bad Request: - value: - code: err_register_save - summary: 'Could not save the registration, details: Login is the - name of an already existing user and Password can''t be blank.' - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - update_user_not_authorized: - value: - code: update_user_not_authorized - summary: You are not authorized to update this User. - '404': - description: | - Not found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find User with login = - tags: - - Person - put: - summary: Update person - security: - - basic_authentication: [] - parameters: - - in: path - name: login - schema: - type: string - required: true - description: Person login. - example: Admin - requestBody: - description: The new data for the person referred in the login parameter. - required: true - content: - application/xml: - schema: - type: object - properties: - login: - type: string - example: jane - realname: - type: string - example: Jane Doe - email: - type: string - example: janedoe@example.com - password: - type: string - example: superpassword123 - note: - type: string - example: Jane works in the Engineering team - state: - type: string - example: confirmed - xml: - name: unregisteredperson - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Subaccount chaining: - value: - code: subaccount_chaining - summary: A subaccount can not be assigned to subaccount - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Change user info not permitted: - value: - code: change_userinfo_no_permission - summary: no permission to change userinfo for user - '404': - description: | - Not found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: password_empty - summary: Requested non-existing user - tags: - - Person - "/person/{login}/group": - get: - summary: List the groups of a person - description: List the groups the person belongs to. - security: - - basic_authentication: [] - parameters: - - in: path - name: login - schema: - type: string - required: true - description: Person login. - example: Admin - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [directory.xsd](../schema/directory.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - count: '2' - entry: - - name: factory-maintainers - - name: obs-developers - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find User with login = fake - tags: - - Person - "/person/{login}/token": - get: - summary: List the authentication tokens of a person. - description: List the authentication tokens of a person. - security: - - basic_authentication: [] - parameters: - - in: path - name: login - schema: - type: string - required: true - description: Person login. - example: Admin - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [tokenlist.rng](../schema/tokenlist.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - id: - type: string - xml: - attribute: true - description: - type: string - xml: - attribute: true - string: - type: string - xml: - attribute: true - kind: - type: string - xml: - attribute: true - triggered_at: - type: string - format: date-time - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - xml: - name: directory - example: - count: 2 - entry: - - id: 3 - string: FK49K39DKK - kind: rss - triggered_at: 2021-10-28 12:32:18 UTC - - id: 25 - description: Release ghcz - string: 4T04JGI691 - kind: release - triggered_at: 2021-09-21 11:12:18 UTC - project: devel:languages:haskell - package: ghcz - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: view_user_not_authorized - summary: You are not authorized to view this User. - tags: - - Person - post: - summary: Create a new authentication token for a person. - description: | - Create a new authentication token for a person. - - The token may be limited to a specific package. In this case the query parameters - `project` and `package` should be provided. - - With an empty request body, a token of the default kind 'runservice' is created. - security: - - basic_authentication: [] - parameters: - - in: path - name: login - schema: - type: string - required: true - description: Person login. - example: Admin - - in: query - name: description - schema: - type: string - description: 'Token description. It helps to identify a token from the rest - of the tokens of a user. - -' - example: Rebuild gchz - - in: query - name: project - schema: - type: string - description: | - Project name. Should be provided, together with the package query parameter, - to limit the token to a specific package. - example: home:hans - - in: query - name: package - schema: - type: string - description: | - Package name. Should be provided, together with the project query parameter, - to limit the token to a specific package. - example: gchz - - in: query - name: operation - schema: - type: string - enum: - - runservice - - rebuild - - release - description: | - Operation indicates the kind of token that is going to be created. - - When operation is not specified, 'runservice' is the default value. - example: runservice - - in: query - name: scm_token - schema: - type: string - description: | - **(Beta/Unstable)** - - SCM token used in OBS workflows to report back the workflow status, when the operation is workflow. - - It's normally possible to generate SCM tokens directly on the SCM's website like GitHub or GitLab. - example: ghp_fake_token_123 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - - **NOTE:** This is an example of a valid response. It should include the attribute 'name' - in every 'data' tag, which is missing in the example using the schema. - ``` - - Ok - i6iF4M5cn - 5 - - ``` - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - data: - - i6iF4M5cn - - 5 - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: invalid_token - summary: 'Failed to create token: Name is too long (maximum is 64 - characters).' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: update_user_not_authorized - summary: You are not authorized to update this User. - tags: - - Person - "/person/{login}/token/{id}": - delete: - summary: Delete a token of a person. - description: Delete a token of the specified person. - security: - - basic_authentication: [] - parameters: - - in: path - name: login - schema: - type: string - required: true - description: Person login. - example: Admin - - in: path - name: id - schema: - type: string - required: true - description: Id of the token to be removed. - example: 3 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: update_user_not_authorized - summary: You are not authorized to update this User. - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Token with 'id'=33 - tags: - - Person - "/person/{login}/watchlist": - get: - summary: Get details about watchlist - security: - - basic_authentication: [] - parameters: - - in: path - name: login - schema: - type: string - required: true - description: Person login. - example: Admin - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - project: - type: object - properties: - name: - type: string - xml: - attribute: true - package: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - request: - type: object - properties: - number: - type: string - xml: - attribute: true - xml: - name: watchlist - example: - - project: - name: home:Admin - package: - name: ad - project: home:Admin - request: - number: '7' - '404': - description: | - Not found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: password_empty - summary: Requested non-existing user - tags: - - Person - put: - summary: Update watchlist - security: - - basic_authentication: [] - parameters: - - in: path - name: login - schema: - type: string - required: true - description: Person login. - example: Admin - requestBody: - description: The new data for the person referred in the login parameter. - required: true - content: - application/xml: - schema: - type: array - items: - type: object - properties: - project: - type: object - properties: - name: - type: string - xml: - attribute: true - package: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - request: - type: object - properties: - number: - type: string - xml: - attribute: true - xml: - name: watchlist - example: - - project: - name: home:Admin - package: - name: ad - project: home:Admin - request: - number: '7' - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '404': - description: | - Not found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: password_empty - summary: Requested non-existing user - tags: - - Person - "/published": - get: - summary: List all the published projects. - description: Get a list of all the projects, all of them are considered published. - security: - - basic_authentication: [] - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - entry: - - name: OBS:Server:Unstable - - name: devel:languages:ruby - - name: openSUSE:Maintenance:9810 - - name: zypp:plugins - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Published Binaries - "/published/{project_name}": - get: - summary: List the repositories of a project with published binaries - description: Get a list of the repositories of the project that already have - published binaries. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - entry: - - name: SLE_15_SP3 - - name: containers - - name: images - - name: openSUSE_15.2 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: download_binary_no_permission - summary: No permission for binaries from project home:Admin - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Project - tags: - - Published Binaries - "/published/{project_name}/{repository_name}": - get: - summary: List the content of the directory tree where the binaries are published - at the level project/repository. - description: | - Get a list of architectures' directories and other files (.repo, .ymp, etc.) present at the level - project/repository of the directory tree where the published binaries are stored. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - entry: - - name: OBS:Server:Unstable.repo - - name: OBS_Server.ymp - - name: aarch64 - - name: x86_64 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: download_binary_no_permission - summary: No permission for binaries from project home:Admin - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Project - tags: - - Published Binaries - "/published/{project_name}/{repository_name}?view=status": - get: - summary: Present information about the last publication of the pair project - and repository. - description: Get information about the build process (build id, start time, - etc.) for the pair project and repository. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: query - name: view - schema: - type: string - enum: - - status - description: Set this parameter to status in order to get details about the - last publication. - example: status - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - example: succeeded - xml: - attribute: true - starttime: - type: integer - example: 1617574611 - endtime: - type: integer - example: 1617574611 - buildid: - type: integer - example: 1569496563 - xml: - name: status - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: download_binary_no_permission - summary: No permission for binaries from project home:Admin - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - project: - code: not_found - summary: Couldn't find Project - unknown: - value: - code: unknown - tags: - - Published Binaries - "/published/{project_name}/{repository_name}/{architecture_name}": - get: - summary: List the content of the directory tree where the binaries are published - at the level project/repository/architecture. - description: | - Get a list of binaries and other files present at the level project/repository/architecture of the directory - tree as a result of successful building and publishing processes. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - entry: - - name: apache2-mod_auth_memcookie-1.1.1-lp152.2.1.x86_64.rpm - - name: obs-api-testsuite-rspec-2.11~alpha.20200618T200341.d42d8310aa-lp152.10515.1.x86_64.rpm - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: download_binary_no_permission - summary: No permission for binaries from project home:Admin - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Project - tags: - - Published Binaries - "/published/{project_name}/{repository_name}/{architecture_name}/{binary_filename}": - get: - summary: Return the binary file itself. - description: | - Allow to download the binary file that was published and stored under the directory - given by project/repository/architecture/. - - Can response with Media Types like application/x-rpm, text/xml, etc. - - NOTE: Use this only if you absolutely have to, as it doesn't use the redirector. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: binary_filename - schema: - type: string - required: true - description: Binary filename - example: ctris-0.42.1-8.1.x86_64.rpm - responses: - '200': - description: OK - content: - application/*: - schema: - type: string - format: binary - text/xml: - schema: - type: string - format: binary - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: download_binary_no_permission - summary: No permission for binaries from project home:Admin - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - NotFound: - value: - code: not_found - summary: Couldn't find Project - NoSuchFile: - value: - code: 404 - summary: no such file - details: 404 no such file - tags: - - Published Binaries - "/published/{project_name}/{repository_name}/{architecture_name}/{binary_filename}?view=ymp": - get: - summary: Generate a ymp pattern that includes the needed repositories to install - the given binary. - description: | - Generate a ymp pattern, which contains the list of packages needed for intalling certain software without having to - create dependencies between them. - - Read more about patterns [in this tutorial](https://en.opensuse.org/openSUSE:Build_Service_Tutorial#Create_Patterns). - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - description: Architecture name - example: x86_64 - - in: path - name: binary_filename - schema: - type: string - required: true - description: Binary filename - example: ctris-0.42.1-8.1.x86_64.rpm - responses: - '200': - description: OK. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - group: - type: object - properties: - repositories: - type: object - properties: - repository: - type: array - items: - type: object - properties: - recommended: - type: string - xml: - attribute: true - name: - type: string - summary: - type: string - description: - type: string - url: - type: string - software: - type: object - properties: - item: - type: object - properties: - name: - type: string - summary: - type: string - description: - type: string - distversion: - type: string - xml: - attribute: true - xmlns:os: - type: string - xml: - attribute: true - example: http://opensuse.org/Standards/One_Click_Install - xmlns: - type: string - xml: - attribute: true - example: http://opensuse.org/Standards/One_Click_Install - xml: - name: metapackage - example: - group: - repositories: - repository: - - recommended: true - name: OBS:Server:Unstable - summary: Developer versions of the Open Build Service Server - description: These are the developer versions of the tools for - the Open Build Service project - url: https://download.opensuse.org/repositories/OBS:/Server:/Unstable/openSUSE_15.2 - - recommended: false - name: openSUSE:Leap:15.2 - summary: openSUSE Leap 15.2 - description: openSUSE Leap borrows packages from SLE for the - base system - url: http://download.opensuse.org/distribution/leap/15.2/repo/oss - software: - item: - name: virt-v2v-debuginfo - summary: Debug information for package virt-v2v - description: This package provides debug information for package - virt-v2v - distversion: openSUSEsLeap 15.2 - xmlns:os: http://opensuse.org/Standards/One_Click_Install - xmlns: http://opensuse.org/Standards/One_Click_Install - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: download_binary_no_permission - summary: No permission for binaries from project home:Admin - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find Project - tags: - - Published Binaries - "/request": - get: - summary: Get a simple directory listing of all requests - description: Get a simple directory listing of all requests - security: - - basic_authentication: [] - responses: - '200': - description: | - OK - - XML Schema used for body validation: [directory.xsd](../schema/directory.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - entry: - - name: 122 - - name: 123 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Requests - post: - summary: Create a request - description: Create a request - security: - - basic_authentication: [] - parameters: - - in: query - name: cmd - required: true - schema: - type: string - enum: - - create - description: This endpoint will refuse the creation of a new request if this - parameter is not set. - - in: query - name: addrevision - schema: - type: string - enum: - - 1 - description: Ask the server to add revisions of the current sources to the - request. - - in: query - name: ignore_delegate - schema: - type: string - enum: - - 1 - description: Enforce a new package instance in a project which has OBS:DelegateRequestTarget - set - - in: query - name: ignore_build_state - schema: - type: string - enum: - - 1 - description: Skip the build state check - requestBody: - description: | - Request XML - - **NOTE:** You cannot pass the request id in the xml. You can pass the history in the xml, but it will be simply ignored. - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - creator: - type: string - example: foo-user - xml: - attribute: true - action: - type: object - properties: - type: - type: string - example: submit - xml: - attribute: true - source: - type: object - properties: - project: - type: string - example: home:foo-user - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - rev: - type: integer - example: 521 - xml: - attribute: true - target: - type: object - properties: - project: - type: string - example: OBS:Unstable - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - options: - type: object - properties: - sourceupdate: - type: string - example: cleanup - state: - type: object - properties: - name: - type: string - example: accepted - xml: - attribute: true - who: - type: string - example: bar-user - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - comment: - type: string - example: allright - review: - type: array - items: - type: object - properties: - state: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - by_user: - type: string - xml: - attribute: true - by_group: - type: string - xml: - attribute: true - by_project: - type: string - xml: - attribute: true - by_package: - type: string - xml: - attribute: true - comment: - type: string - history: - type: object - properties: - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - description: - type: string - example: - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_user: obs-maintainer - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_group: obs-group - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_project: OBS:Unstable - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_package: obs-server - history: - type: array - items: - type: object - properties: - who: - type: string - example: foo - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - description: - type: string - example: Request created - comment: - type: string - example: Please review sources - description: - type: string - example: A little version update - xml: - name: request - responses: - '200': - description: | - OK. - - XML Schema used for body validation: [request.rng](../schema/request.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - creator: - type: string - example: foo-user - xml: - attribute: true - action: - type: object - properties: - type: - type: string - example: submit - xml: - attribute: true - source: - type: object - properties: - project: - type: string - example: home:foo-user - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - rev: - type: integer - example: 521 - xml: - attribute: true - target: - type: object - properties: - project: - type: string - example: OBS:Unstable - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - options: - type: object - properties: - sourceupdate: - type: string - example: cleanup - state: - type: object - properties: - name: - type: string - example: accepted - xml: - attribute: true - who: - type: string - example: bar-user - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - comment: - type: string - example: allright - review: - type: array - items: - type: object - properties: - state: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - by_user: - type: string - xml: - attribute: true - by_group: - type: string - xml: - attribute: true - by_project: - type: string - xml: - attribute: true - by_package: - type: string - xml: - attribute: true - comment: - type: string - history: - type: object - properties: - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - description: - type: string - example: - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_user: obs-maintainer - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_group: obs-group - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_project: OBS:Unstable - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_package: obs-server - history: - type: array - items: - type: object - properties: - who: - type: string - example: foo - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - description: - type: string - example: Request created - comment: - type: string - example: Please review sources - description: - type: string - example: A little version update - xml: - name: request - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: expand_error - summary: The source of package test-project/test-package for revision - 2 is broken - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: create_bs_request_not_authorized - summary: You are not authorized to create this Bs request. - tags: - - Requests - "/request?view=collection": - get: - summary: Get a collection of requests for a specified target. - description: | - Get a collection of requests for a specified target. - - **NOTE:** You need to set at least one of the following parameters in order to use this endpoint: - - * `user` - * `group` - * `project` - * `package` - * `states` - * `reviewstates` - * `types` - * `ids` - security: - - basic_authentication: [] - parameters: - - in: query - name: user - schema: - type: string - description: | - Filter the results of requests and open reviews for a certain user. If no other parameters are - applied, it will include requests where the user is maintainer of the target or the creator of - the request. - example: hans - - in: query - name: group - schema: - type: string - description: Filter the results of requests and open reviews for a certain - group. - example: obs-group - - in: query - name: project - schema: - type: string - description: | - Limit the results to requests with this project as source or target, - or requests which were assigned to be reviewed by the maintainers of this project. - example: home:hans - - in: query - name: package - schema: - type: string - description: | - Limit the results to requests with this package as source or target, - or requests which were assigned to be reviewed by the maintainers of this package. - example: ruby - - in: query - name: states - schema: - type: string - description: Limit results to a given request state. Multiple states can be - provided as a comma separated list. - example: new,review - - in: query - name: reviewstates - schema: - type: string - description: Limit results to a given review state. Multiple states can be - provided as a comma separated list. - example: new,declined,accepted,superseded,obsoleted - - in: query - name: types - schema: - type: string - description: Limit the results to certain action types. Multiple types can - be provided as a comma separated list. - example: add_role,submit - - in: query - name: roles - schema: - type: string - description: Limit the results to a given role. Multiple roles can be provided - as a comma separated list. - example: creator,maintainer,reviewer,source,target - - in: query - name: withhistory - schema: - type: string - description: Include the request history in the results. - example: 1 - - in: query - name: withfullhistory - schema: - type: string - description: Includes both, request and review history in the results. - example: 1 - - in: query - name: limit - schema: - type: integer - description: Limit the results by the specified amount of requests. - example: 7 - - in: query - name: offset - schema: - type: integer - description: Offset the results by the specified amount of requests. - example: 7 - - in: query - name: ids - schema: - type: string - description: Limit the result to specified request id's. Multiple id's can - be provided as a comma separated list. - example: 151923 - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: string - example: 7 - xml: - attribute: true - request: - type: array - items: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - creator: - type: string - example: foo-user - xml: - attribute: true - action: - type: object - properties: - type: - type: string - example: submit - xml: - attribute: true - source: - type: object - properties: - project: - type: string - example: home:foo-user - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - rev: - type: integer - example: 521 - xml: - attribute: true - target: - type: object - properties: - project: - type: string - example: OBS:Unstable - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - options: - type: object - properties: - sourceupdate: - type: string - example: cleanup - state: - type: object - properties: - name: - type: string - example: accepted - xml: - attribute: true - who: - type: string - example: bar-user - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - comment: - type: string - example: allright - review: - type: array - items: - type: object - properties: - state: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - by_user: - type: string - xml: - attribute: true - by_group: - type: string - xml: - attribute: true - by_project: - type: string - xml: - attribute: true - by_package: - type: string - xml: - attribute: true - comment: - type: string - history: - type: object - properties: - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - description: - type: string - example: - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_user: obs-maintainer - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_group: obs-group - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_project: OBS:Unstable - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_package: obs-server - history: - type: array - items: - type: object - properties: - who: - type: string - example: foo - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - description: - type: string - example: Request created - comment: - type: string - example: Please review sources - description: - type: string - example: A little version update - xml: - name: request - xml: - name: collection - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Require Filter: - value: - code: require_filter - summary: This call requires at least one filter, either by user, - project or package or states or types or reviewstates - Not Found: - value: - code: not_found - summary: Couldn't find User with login = foo - tags: - - Requests - "/request/{id}": - get: - summary: Show details about a specified request. - description: Show details about a specified request. - security: - - basic_authentication: [] - parameters: - - in: path - name: id - schema: - type: integer - required: true - description: Id of the choosen request. - example: 743 - - in: query - name: withhistory - schema: - type: string - description: Include the request history in the results. - example: 1 - - in: query - name: withfullhistory - schema: - type: string - description: Includes both, request and review history in the results. - example: 1 - responses: - '200': - description: | - OK. - - XML Schema used for body validation: [request.rng](../schema/request.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - creator: - type: string - example: foo-user - xml: - attribute: true - action: - type: object - properties: - type: - type: string - example: submit - xml: - attribute: true - source: - type: object - properties: - project: - type: string - example: home:foo-user - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - rev: - type: integer - example: 521 - xml: - attribute: true - target: - type: object - properties: - project: - type: string - example: OBS:Unstable - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - options: - type: object - properties: - sourceupdate: - type: string - example: cleanup - state: - type: object - properties: - name: - type: string - example: accepted - xml: - attribute: true - who: - type: string - example: bar-user - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - comment: - type: string - example: allright - review: - type: array - items: - type: object - properties: - state: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - by_user: - type: string - xml: - attribute: true - by_group: - type: string - xml: - attribute: true - by_project: - type: string - xml: - attribute: true - by_package: - type: string - xml: - attribute: true - comment: - type: string - history: - type: object - properties: - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - description: - type: string - example: - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_user: obs-maintainer - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_group: obs-group - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_project: OBS:Unstable - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_package: obs-server - history: - type: array - items: - type: object - properties: - who: - type: string - example: foo - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - description: - type: string - example: Request created - comment: - type: string - example: Please review sources - description: - type: string - example: A little version update - xml: - name: request - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find request with id '5' - tags: - - Requests - post: - summary: Apply certain actions on a specified request. - description: Apply certain actions on a specified request. - security: - - basic_authentication: [] - parameters: - - in: path - name: id - schema: - type: integer - required: true - description: Id of the choosen request. - example: 743 - - in: query - name: cmd - description: | - - `addreview`: - Add a review to a request. **NOTE:** You need to specify who has to address - the review by providing an additional paramter. Possible options are: - * by_user - * by_group - * by_project - - - `assignreview`: - Accept a review for a given group and assign a new review to a specific user. - **NOTE:** You need to pass the group name in the `by_group` parameter - and the new reviewer in the `reviewer` parameter. - - - `changestate`: Modify the state of a given request. - **NOTE:** You need to pass the new state through the `newstate` parameter. Changing - from one state to another is in certain cases not allowed. You can still force - the operation by using the `force` parameter. - - To supersede the given request with another request, pass the ID of the other request - in the `superseded_by` parameter, in addition to `newstate=superseded`. - - - `changereviewstate`: - Change the state of a review inside a given request. - - - `setpriority`: - Change the priority of a given request. You have to pass the choosen priority through - the `priority` parameter. Possible values are: - * low - * moderate - * important - * critical - - - `setincident`: Change the target incident for maintenance_incident actions - **NOTE:** You need to provide the incident number through the `incident` - parameter. - - - `setacceptat`: Set or modify the accept_at time. Either specified by the `time` - parameter or by default set to now. - - - `approve`: Pre-approve a request in the review state. It will turn into state `accepted` - after the last review. - - - `cancelapproval`: Reset the approval of a request - schema: - type: string - style: form - explode: false - examples: - addreview: - value: cmd=addreview&by_group=heroes - assignreview: - value: cmd=assignreview&by_group=heroes&reviewer=foo - assignreview with revert: - value: cmd=assignreview&by_group=heroes&reviewer=foo&revert=1 - changestate: - value: cmd=changestate&newstate=accepted - changestate (superseded): - value: cmd=changestate&newstate=superseded&superseded_by=173 - changereviewstate: - value: cmd=changereviewstate&by_group=heroes&newstate=new&comment=reopened - setpriority: - value: cmd=setpriority&priority=low&comment=notsoimportant - setincident: - value: cmd=setincident&incident=12 - setacceptat: - value: cmd=setacceptat&time='2020-12-01%2000:00:00%20UTC' - approve: - value: cmd=approve - cancelapproval: - value: cmd=cancelapproval - - in: query - name: newstate - schema: - type: string - description: Define the new state - - in: query - name: superseded_by - schema: - type: string - description: Required and used only with the combination of the `changestate` - command and the `newstate=superseded` parameter - Supersede the given request - with another request by passing its ID in this parameter - - in: query - name: priority - schema: - type: string - description: Define the new priority - - in: query - name: by_user - schema: - type: string - description: Specify the user of a new review - - in: query - name: by_group - schema: - type: string - description: Specify the group of the new review - - in: query - name: by_project - schema: - type: string - description: Specify the project of the new review - - in: query - name: by_package - schema: - type: string - description: Specify the package of the new review - - in: query - name: force - schema: - type: string - allowEmptyValue: true - description: Pass this parameter with an empty value to force the `changestate` - command. - - in: query - name: incident - schema: - type: string - description: Specify the incident number for `setincident` - - in: query - name: revert - schema: - type: string - description: Revert an assignreview command to assign review back to group - - in: query - name: time - schema: - type: string - description: Specify the time for `setacceptat` - - in: query - name: comment - schema: - type: string - description: Add a comment to one of the actions - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: no_maintenance_release_target - summary: | - Maintenance incident request contains release target project test_maintenance_project with - invalid project kind "standard" (should be "maintenance_release") for package package01 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Request Not Modifiable: - value: - code: request_not_modifiable - summary: request is not in review state - Not Found: - value: - code: not_found - summary: Couldn't find request with id '120' - tags: - - Requests - put: - summary: Modify a given request. - description: | - Modify a given request. - - **NOTE:** Certain parts of a request can only be changed by admins. - security: - - basic_authentication: [] - parameters: - - in: path - name: id - schema: - type: integer - required: true - description: Id of the choosen request. - example: 743 - requestBody: - description: | - Request XML - - **NOTE:** You cannot pass the request id in the xml. You can pass the history in the xml, but it will be simply ignored. - - XML Schema used for body validation: [request.rng](../schema/request.rng) - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - creator: - type: string - example: foo-user - xml: - attribute: true - action: - type: object - properties: - type: - type: string - example: submit - xml: - attribute: true - source: - type: object - properties: - project: - type: string - example: home:foo-user - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - rev: - type: integer - example: 521 - xml: - attribute: true - target: - type: object - properties: - project: - type: string - example: OBS:Unstable - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - options: - type: object - properties: - sourceupdate: - type: string - example: cleanup - state: - type: object - properties: - name: - type: string - example: accepted - xml: - attribute: true - who: - type: string - example: bar-user - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - comment: - type: string - example: allright - review: - type: array - items: - type: object - properties: - state: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - by_user: - type: string - xml: - attribute: true - by_group: - type: string - xml: - attribute: true - by_project: - type: string - xml: - attribute: true - by_package: - type: string - xml: - attribute: true - comment: - type: string - history: - type: object - properties: - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - description: - type: string - example: - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_user: obs-maintainer - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_group: obs-group - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_project: OBS:Unstable - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_package: obs-server - history: - type: array - items: - type: object - properties: - who: - type: string - example: foo - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - description: - type: string - example: Request created - comment: - type: string - example: Please review sources - description: - type: string - example: A little version update - xml: - name: request - responses: - '200': - description: | - OK. - - XML Schema used for body validation: [request.rng](../schema/request.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - creator: - type: string - example: foo-user - xml: - attribute: true - action: - type: object - properties: - type: - type: string - example: submit - xml: - attribute: true - source: - type: object - properties: - project: - type: string - example: home:foo-user - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - rev: - type: integer - example: 521 - xml: - attribute: true - target: - type: object - properties: - project: - type: string - example: OBS:Unstable - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - options: - type: object - properties: - sourceupdate: - type: string - example: cleanup - state: - type: object - properties: - name: - type: string - example: accepted - xml: - attribute: true - who: - type: string - example: bar-user - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - comment: - type: string - example: allright - review: - type: array - items: - type: object - properties: - state: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - by_user: - type: string - xml: - attribute: true - by_group: - type: string - xml: - attribute: true - by_project: - type: string - xml: - attribute: true - by_package: - type: string - xml: - attribute: true - comment: - type: string - history: - type: object - properties: - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - description: - type: string - example: - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_user: obs-maintainer - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_group: obs-group - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_project: OBS:Unstable - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_package: obs-server - history: - type: array - items: - type: object - properties: - who: - type: string - example: foo - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - description: - type: string - example: Request created - comment: - type: string - example: Please review sources - description: - type: string - example: A little version update - xml: - name: request - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: request_save_error - summary: Auto accept time is in the past - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find request with id '10' - tags: - - Requests - delete: - summary: Delete a given request. - description: Delete a given request. - security: - - basic_authentication: [] - parameters: - - in: path - name: id - schema: - type: integer - required: true - description: Id of the choosen request. - example: 743 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find request with id '10' - tags: - - Requests - "/request/{id}?cmd=diff": - post: - summary: Get the diff for all packages affected by the request. - description: Get the diff for all packages affected by the request. - security: - - basic_authentication: [] - parameters: - - in: path - name: id - schema: - type: integer - required: true - description: Id of the choosen request. - example: 743 - - in: query - name: diff_to_superseded - schema: - type: integer - description: 'Diff relative to a given superseded request. State the id of - the corresponding superseded request. - -' - example: 10401 - - in: query - name: view - schema: - type: string - enum: - - xml - description: Set this parameter to xml in order to receive a structured diff - instead of plain text. - - in: query - name: withissues - schema: - type: string - enum: - - true - - 1 - description: Include parsed issues from referenced sources - - in: query - name: withdescriptionissues - schema: - type: string - description: Include parsed issues from request description - responses: - '200': - description: OK - content: - text/plain; charset=utf-8: - schema: - type: string - example: | - spec files: - ----------- - --- test.spec - +++ test.spec - @@ -0,0 +1 @@ - +# NEW COMMENT - \ No newline at end of file - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: string - example: 12 - xml: - attribute: true - actions: - type: string - example: 0 - xml: - attribute: true - action: - type: object - properties: - type: - type: string - example: submit - xml: - attribute: true - source: - type: object - properties: - project: - type: string - example: home:Iggy:branches:home:Admin - xml: - attribute: true - package: - type: string - example: ruby - xml: - attribute: true - rev: - type: string - example: 3 - xml: - attribute: true - target: - type: object - properties: - project: - type: string - example: home:Admin - xml: - attribute: true - package: - type: string - example: ruby - xml: - attribute: true - options: - type: object - properties: - sourceupdate: - example: cleanup - type: string - sourcediff: - type: object - properties: - key: - type: string - example: 9dbe9eb1767c5e12c69839af893dc239 - xml: - attribute: true - old: &1 - type: object - properties: - project: - type: string - example: home:Iggy:branches:home:Admin - xml: - attribute: true - package: - type: string - example: ruby - xml: - attribute: true - rev: - type: string - example: 3 - xml: - attribute: true - srcmd5: - type: string - example: 59300f4ba65f53334b2e2a39f87ba3a0 - xml: - attribute: true - new: *1 - files: - type: array - items: - type: object - properties: - file: - type: object - properties: - state: - type: string - example: changed - xml: - attribute: true - old: &2 - type: object - properties: - name: - type: string - example: ruby.spec - xml: - attribute: true - md5: - type: string - example: d4f573d2bf9a0e306f87dad7eee0cf56 - xml: - attribute: true - size: - type: string - example: 70 - xml: - attribute: true - new: *2 - diff: - type: string - example: | - spec files: - ----------- - --- test.spec - +++ test.spec - @@ -0,0 +1 @@ - +# NEW COMMENT - \ No newline at end of file - issues: - type: array - items: - type: object - properties: - issue: - type: object - properties: - state: - type: string - example: added - xml: - attribute: true - tracker: - type: string - example: bnc - xml: - attribute: true - name: - type: string - example: 922894 - xml: - attribute: true - label: - type: string - example: boo#944302 - xml: - attribute: true - url: - type: string - example: https://bugzilla.opensuse.org/show_bug.cgi?id=944302 - xml: - attribute: true - components: - schemas: - NewOldDestination: *1 - OldNewFile: *2 - xml: - name: diff - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: not_found - summary: Couldn't find request with id '355' - tags: - - Requests - "/search": - get: - summary: Search in projects or in packages. - description: Get a list of projects or a list of packages that match a XPath - expression, passed in the query parameter `match`. - security: - - basic_authentication: [] - parameters: - - in: query - name: in - required: true - schema: - type: string - enum: - - projects - - packages - example: projects - description: | - Where to search and apply a XPath expression: either the list of projects or the list of packages. - - Example of a result when `projects` is selected: - ``` - - - - - - - - x86_64 - - - - x86_64 - - - - Standard OBS instance at build.opensuse.org - This instance delivers the default build targets for OBS. - https://api.opensuse.org/public - - - ``` - - Example of a result when `packages` is selected: - ``` - - - - - - - ``` - - in: query - name: match - required: true - schema: - type: string - description: XPath expression used to filter the results. - examples: - non_empty_element: - summary: Non empty element - value: repository/arch - non_empty_attribute: - summary: Non empty attribute - value: repository/name - element_content: - summary: Element content - value: repository/arch='x86_64' - attribute_content: - summary: Attribute content - value: repository/name='openSUSE_Tumbleweed' - compound_condition: - summary: Compound condition - value: name='OBS:Server:Unstable'+and+repository/arch='x86_64' - - in: query - name: return - schema: - type: string - example: repository/name - description: | - XPath expression that defines which values will be returned. - - Instead of returning a collection of projects or packages, the result will be a collection of: - - contents of elements, when that XPath expression match elements, or, - - values of atttributes, when that XPath expression match atttributes. - - Example of result, for a query string like `?in=projects&match=repository/arch='x86_64'&return=repository/name`: - ``` - - openSUSE_Tumbleweed - 15.3 - - ``` - - in: query - name: values - schema: - type: string - example: 1 - description: | - When set to `1`, return a list of values, instead of returning a list of projects or packages. - - The result will be a collection of: - - contents of elements, when the expression defined in the `match` query parameter match elements. - For example: `match=repository/arch`. - - values of atttributes, when the expression defined in the `match` query parameter match atttributes. - For example: `match=repository/name`. - - Example of result, for a query string like `?in=projects&match=repository/path/project&values=1`: - ``` - - openSUSE.org:openSUSE:Factory - openSUSE.org:openSUSE:Leap:15.3 - - ``` - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - oneOf: - - type: object - properties: - matches: - type: integer - xml: - attribute: true - project: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - title: - type: string - description: - type: string - person: - type: object - properties: - userid: - type: string - xml: - attribute: true - role: - type: string - xml: - attribute: true - xml: - name: collection - - type: object - properties: - matches: - type: integer - xml: - attribute: true - package: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - title: - type: string - description: - type: string - xml: - name: collection - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_in_parameter: - summary: Invalid in parameter - value: - code: 400 - origin: backend - summary: "'in' parameter needs to be either 'projects' or 'packages'" - missing_match_parameter: - summary: Missing match parameter - value: - code: 400 - origin: backend - summary: parameter 'match' is missing - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: Search in projects or in packages. - description: This endpoint is exactly the same as `GET /search`, please use - that one. - tags: - - Search - "/search/channel": - get: - summary: List channel objects that match a XPath condition. - description: Return a collection of channel objects with release informations - that match a XPath condition. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - required: true - description: | - Expression based in XPath. - - Providing a value of `*` will return all channels. - - Available predicates are: - - General fields: `@package` and `@project` - - Binary fields: `binary/@name`, `binary/@binaryarch`, `binary/@package` and `binary/@supportstatus` - - Target fields: `target/disabled`, `target/updatefor/@project` and `target/updatefor/@product` - examples: - all: - summary: All - value: "*" - package: - summary: Name of the package that contains the `_channel` xml - value: "@package=openSUSE_Channels" - function_contains: - summary: Function contains - value: starts_with(@project,'open') - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: string - example: 1 - xml: - attribute: true - channel: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - binary: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - supportstatus: - type: string - xml: - attribute: true - target: - type: object - properties: - project: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - updatefor: - type: object - properties: - project: - type: string - xml: - attribute: true - product: - type: string - xml: - attribute: true - baseversion: - type: string - xml: - attribute: true - version: - type: string - xml: - attribute: true - patchlevel: - type: string - xml: - attribute: true - xml: - name: channel - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - one_result: - summary: One matching result - value: - matches: 1 - channel: - - project: openSUSE:Channels - package: openSUSE:Leap_15_2_x86 - binary: - name: Mesa - project: openSUSE:Leap:15.2:Update - package: Mesa - supportstatus: l3 - target: - project: openSUSE:Updates:Leap:15.2:x86 - repository: update - updatefor: - project: openSUSE:Leap:15.2:Update - product: Leap - baseversion: 15 - version: 2 - patchlevel: 2 - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'channels' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List channel objects that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/channel`, please - use that one. - tags: - - Search - "/search/channel/binary": - get: - summary: List channel objects that match a XPath condition. - description: | - Return a collection of channel objects with release informations that match a XPath condition. - - This operation is the same as the one defined with `GET /search/channel/binary/id` with the exception of the results returned. - While the former operation only returns a list of channel objects with the channel definition related to the binary, this one returns a list of channel - objects with release information. - See example values of a succeeded request below. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - required: true - description: | - Expression based in XPath. - - Providing a value of `*` will return all channels. - - Available predicates are: - - General fields: `@name`, `@binaryarch`, `@package`, `@project` and `@supportstatus` - - Target fields: `target/disabled` - - Updatefor fields: `updatefor/@product` and `updatefor/@product` - examples: - all: - summary: All - value: "*" - package: - summary: Name of the package that contains the `_channel` xml - value: "@name=Mesa-debuginfo" - function_contains: - summary: Function contains - value: starts_with(@project,'open') - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: string - example: 1 - xml: - attribute: true - channel: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - binary: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - supportstatus: - type: string - xml: - attribute: true - target: - type: object - properties: - project: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - updatefor: - type: object - properties: - project: - type: string - xml: - attribute: true - product: - type: string - xml: - attribute: true - baseversion: - type: string - xml: - attribute: true - version: - type: string - xml: - attribute: true - patchlevel: - type: string - xml: - attribute: true - xml: - name: channel - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - one_result: - summary: One matching result - value: - matches: 1 - channel: - - project: openSUSE:Channels - package: openSUSE:Leap_15_2_x86 - binary: - name: Mesa - project: openSUSE:Leap:15.2:Update - package: Mesa - supportstatus: l3 - target: - project: openSUSE:Updates:Leap:15.2:x86 - repository: update - updatefor: - project: openSUSE:Leap:15.2:Update - product: Leap - baseversion: 15 - version: 2 - patchlevel: 2 - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'channel_binaries' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List channel objects that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/channel/binary`, - please use that one. - tags: - - Search - "/search/channel/binary/id": - get: - summary: List channel objects that match a XPath condition. - description: | - Return a collection of channel objects that match a XPath condition. - - This operation is the same as the one defined with `GET /search/channel/binary` with the exception of the results returned. - While the former operation returns a list of channel objects with release information, this one only returns a list of channel - objects with the channel definition related to the binary. - See example values of a succeeded request below. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - description: | - Expression based in XPath. - - Not providing a value or providing a value of `*` will return all released binaries. - - Available predicates are: - - General fields: `@name`, `@binaryarch`, `@package`, `@project` and `@supportstatus` - - Target fields: `target/disabled` - - Updatefor fields: `updatefor/@product` and `updatefor/@product` - examples: - all: - summary: All - value: "*" - package: - summary: Name of the package that contains the `_channel` xml - value: "@name=Mesa-debuginfo" - function_contains: - summary: Function contains - value: starts_with(@project,'open') - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: string - example: 1 - xml: - attribute: true - channel: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - binary: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - supportstatus: - type: string - xml: - attribute: true - target: - type: object - properties: - project: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - updatefor: - type: object - properties: - project: - type: string - xml: - attribute: true - product: - type: string - xml: - attribute: true - baseversion: - type: string - xml: - attribute: true - version: - type: string - xml: - attribute: true - patchlevel: - type: string - xml: - attribute: true - xml: - name: channel - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - one_result: - summary: One matching result - value: - matches: 1 - channel: - - project: openSUSE:Channels - package: openSUSE:Leap_15_2_x86 - binary: - name: Mesa - project: openSUSE:Leap:15.2:Update - package: Mesa - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'channel_binaries' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List channel objects that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/channel/binary/id`, - please use that one. - tags: - - Search - "/search/issue": - get: - summary: List issues that match a XPath condition. - description: Return a collection of issue objects that match a XPath condition. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - required: true - description: | - Expression based in XPath. - - Providing a value of `*` will return all issues. - - Available predicates are: - - Issue fields: `@name`, `@state`, and `@tracker`. - - Issue owner fields: `owner/@email`, and `owner/@login`. - examples: - all: - summary: All - value: "*" - name: - summary: Issue name - value: "@name='5021'" - function_contains: - summary: Funcion contains - value: contains(owner/@email,'my-domain.org') - combination: - summary: Tracker and state - value: "@tracker='bnc' and @state='CLOSED'" - - in: query - name: limit - schema: - type: integer - description: Limit the number of results. - example: 20 - - in: query - name: offset - schema: - type: integer - description: Return results starting from the element specified by offset. - example: 10 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - issue: - type: array - items: - type: object - properties: - created_at: - type: string - example: 2021-01-18 19:17:51 UTC - updated_at: - type: string - example: 2021-01-18 19:17:51 UTC - name: - type: string - example: 12345 - tracker: - type: string - example: fate - label: - type: string - example: fate#12345 - url: - type: string - example: https://features.opensuse.org/12345 - state: - type: string - summary: - type: string - owner: - type: object - properties: - login: - type: string - email: - type: string - realname: - type: string - xml: - name: issue - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - two_results: - summary: Two matching results - value: - matches: 2 - issue: - - name: 941384 - created_at: 2015-08-12 06:11:00 UTC - updated_at: 2020-01-09 10:58:33 UTC - tracker: bnc - label: boo#941384 - url: https://opensusebugzilla-next.opensuse.org/show_bug.cgi?id=941384 - state: CLOSED - summary: vmware-guest-kmp is not built for SLE_11_SP3 - owner: - login: user_1 - email: user_1@example.com - realname: - - name: 4883 - created_at: 2018-12-11 03:22:54 UTC - updated_at: 2018-12-11 03:22:54 UTC - tracker: boost - label: boost#4883 - url: https://svn.boost.demo/trac/boost/ticket/4883 - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'issues' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List issues that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/issue`, please - use that one. - tags: - - Search - "/search/missing_owner": - get: - summary: | - Search for packages that miss the definition for a by default - responsible person or group. - security: - - basic_authentication: [] - parameters: - - in: query - name: project - schema: - type: string - description: Only return results for a given project. - - in: query - name: filter - schema: - type: string - description: | - A comma separated list of role names that should be - taken into account in the result. - example: bugowner,maintainer - - in: query - name: attribute - schema: - type: string - description: | - Choose the attribute name that marks the rootproject which defines the - owner's for all corresponding subprojects and limit the returned results - to those. The default value is `OBS:OwnerRootProject`. - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - missing_owner: - type: array - items: - type: object - properties: - rootproject: - type: string - example: openSUSE - xml: - attribute: true - project: - type: string - example: openSUSE:Factory - xml: - attribute: true - package: - type: string - example: yast2-branding-openSUSE - xml: - attribute: true - xml: - name: collection - '400': - description: Bad request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: invalid_attribute - summary: 'Attribute ''foo'' must be in the $NAMESPACE:$NAME style - -' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: unknown_project - summary: 'Project not found: bla' - tags: - - Search - post: - deprecated: true - summary: | - Search for packages that miss the definition for a by default - responsible person or group. - description: This endpoint is exactly the same as `GET /search/missing_owner`, - please use that one. - tags: - - Search - "/search/owner": - get: - summary: Search for the users or groups who are the owners of a project or package. - description: | - The owners are users/groups with the maintainer or bugowner roles in the given project/package. - - By default the owner search will get results from projects (and their sub-projects) that have the - OBS:OwnerRootProject attribute. - - You can search for the package name, a user login, a group title or a binary package name. - If you don't want to search the default projects, you can provide another project to search in. - security: - - basic_authentication: [] - parameters: - - in: query - name: package - schema: - type: string - description: The name of the package whose owners you want to search. - - in: query - name: binary - schema: - type: string - description: 'The name of a binary package whose owners you want to search. - -' - - in: query - name: user - schema: - type: string - description: 'Search what this user is owner of. - -' - - in: query - name: group - schema: - type: string - description: 'The title of a group. Search what this group is owner of. - -' - - in: query - name: limit - schema: - type: string - description: | - Limit the number of returned results. This is only available for - the search with the `binary` parameter. The default is set to `1`, - use `0` to receive all results or `-1` for the deepest match. - - in: query - name: devel - schema: - type: string - enum: - - true - - false - - 1 - - 0 - description: Include/exclude devel packages in the result. - - in: query - name: project - schema: - type: string - description: | - By default the owner search will get results from projects (and their sub-projects) that have the OBS:OwnerRootProject attribute. - Use this parameter to overwrite the default and search in this project (and it's sub-projects). - - in: query - name: filter - schema: - type: string - description: | - A comma separated list of role names that should be - taken into account in the result. - example: bugowner,maintainer - - in: query - name: attribute - schema: - type: string - description: | - Choose the attribute name that marks the rootproject which defines the - owner's for all corresponding subprojects and limit the returned results - to those. The default value is `OBS:OwnerRootProject`. - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - owner: - type: array - items: - type: object - properties: - rootproject: - type: string - example: openSUSE - xml: - attribute: true - project: - type: string - example: openSUSE:Factory - xml: - attribute: true - package: - type: string - example: yast2-branding-openSUSE - xml: - attribute: true - person: - type: array - items: - type: object - properties: - name: - type: string - example: foo - xml: - attribute: true - role: - type: string - example: bugowner - xml: - attribute: true - group: - type: array - items: - type: object - properties: - name: - type: string - example: bar - xml: - attribute: true - role: - type: string - example: maintainer - xml: - attribute: true - xml: - name: collection - examples: - only package: - summary: Search by package name - description: Search by package name 'aaa_base' only. - value: - owner: - - rootproject: '' - project: Base:System - package: aaa_base - person: - name: user_1 - role: maintainer - - rootproject: '' - project: Base:System - person: - name: user_1 - role: maintainer - group: - name: factory-maintainers - role: maintainer - - rootproject: '' - project: Base - person: - name: user_2 - role: maintainer - only project: - summary: Search by project name - description: Search by project name 'openSUSE:Factory' only. - value: - owner: - - rootproject: '' - project: openSUSE:Factory - person: - name: user_1 - role: maintainer - group: - name: factory-maintainers - role: maintainer - - rootproject: '' - project: openSUSE - group: - name: factory-maintainers - role: maintainer - only binary: - summary: Search by binary name - description: Search by binary name 'aaa_base' only. - value: - owner: - rootproject: openSUSE - project: Base:System - package: aaa_base - person: - - name: user_1 - role: maintainer - - name: user_2 - role: maintainer - group and project: - summary: Search by group and project - description: Search by group title 'factory-maintainers' and project - name 'openSUSE:Leap:42.3'. - value: - owner: - rootproject: openSUSE:Leap:42.3 - project: openSUSE:Leap:42.3 - '400': - description: Bad request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - without expected parameters: - summary: Without the expected parameters - description: One or a combination of the parameters package, user, - group, binay and project is required. - value: - code: no_binary - summary: 'The search needs at least a ''binary'', ''package'' - or ''user'' parameter - -' - search root not set: - summary: Search root is not set - description: At least one of the projects in your instance should - contain the OBS:OwnerRootProject attribute. - value: - summary: 'The attribute OBS:OwnerRootProject is not set to define - default projects. - -' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: unknown_project - summary: 'Project not found: bla' - Group Not Found: - value: - code: not_found - summary: Couldn't find Group 'fake' - tags: - - Search - post: - deprecated: true - summary: Search for the users or groups who are the owners of a project or package. - description: This endpoint is exactly the same as `GET /search/owner`, please - use that one. - tags: - - Search - "/search/package": - get: - summary: List package objects that match a XPath condition. - description: | - Return a collection of package objects that match a XPath condition. - - This operation is the same as the one defined with [GET /search/package/id](#/Search/get_search_package_id) with the exception of the results returned. - While the former operation returns a list of package names, this one return a list of package objects. See example values of a succeeded request below. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - required: true - description: | - Expression based in XPath. - - Providing a value of `*` will return all packages. - - Available predicates are: - - Package fields: `@name`, `title`, `description`, `scmsync`, and `kind`. - - `@project`: name of the project of the package. - - Devel package fields: - - `devel/@project`: name of the devel project of the package. - - `devel/@package`: name of the devel package of the package. - - Issue fields: `issue/@state`, `issue/@name`, `issue/@tracker`, and `issue/@change`. - - Issue owner fields: `issue/owner/@email`, and `issue/owner/@login`. - - Fields of attributes of an issue: `attribute_issue/@state`, `attribute_issue/@name`, and `attribute_issue/@tracker`. - - Fields of owners of an attribute of an issue: `attribute_issue/owner/@email` and `attribute_issue/owner/@login`. - - Users and groups: - - `person/@userid`: login of a user related to this package. - - `person/@role`: name of the role which a user could be related with this package. - - `group/@groupid`: name (title) of a group related to this package. - - `group/@role`: name of the role which a group could be related with this package. - - `attribute/@name`: name of an attribute of the package. - - `project/attribute/@name`: name of an attribute of the project of the package. - examples: - all: - summary: All - value: "*" - project_name_and_package_name: - summary: Project name and package name - value: "@project='my:project:name' and @name='my_package_name'" - function_contains: - summary: Function contains - value: contains(description,'editor') - combination: - summary: User and role - value: person/@userid='iggy' and person/@role='reviewer' - - in: query - name: limit - schema: - type: integer - description: Limit the number of results. - example: 20 - - in: query - name: offset - schema: - type: integer - description: Return results starting from the element specified by offset. - example: 10 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - package: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - title: - type: string - description: - type: string - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - two_results: - summary: Two matching results - value: - matches: 2 - package: - - project: home:Admin - name: ruby - title: A Glass of Blessings - description: Qui quod nostrum laudantium. - - project: home:Admin:branch:home:Admin - name: ruby - title: To Your Scattered Bodies Go - description: Quasi reiciendis qui ut. - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'packages' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List packages that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/package`, please - use that one. - tags: - - Search - "/search/package/id": - get: - summary: List packages that match a XPath condition. - description: | - Return a collection of package names that match a XPath condition. - - This operation is the same as the one defined with [GET /search/package](#/Search/get_search_package) with the exception of the results returned. - While the former operation returns a list of package objects, this one return a list of package names. See example values of a succeeded request below. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - description: | - Expression based in XPath. - - Not providing a value or providing a value of `*` will return all packages. - - Available predicates are: - - Package fields: `@name`, `title`, `description`, `scysync`, and `kind`. - - `@project`: name of the project of the package. - - Devel package fields: - - `devel/@project`: name of the devel project of the package. - - `devel/@package`: name of the devel package of the package. - - Issue fields: `issue/@state`, `issue/@name`, `issue/@tracker`, and `issue/@change`. - - Issue owner fields: `issue/owner/@email`, and `issue/owner/@login`. - - Fields of attributes of an issue: `attribute_issue/@state`, `attribute_issue/@name`, and `attribute_issue/@tracker`. - - Fields of owners of an attribute of an issue: `attribute_issue/owner/@email` and `attribute_issue/owner/@login`. - - Users and groups: - - `person/@userid`: login of a user related to this package. - - `person/@role`: name of the role which a user could be related with this package. - - `group/@groupid`: name (title) of a group related to this package. - - `group/@role`: name of the role which a group could be related with this package. - - `attribute/@name`: name of an attribute of the package. - - `project/attribute/@name`: name of an attribute of the project of the package. - examples: - all: - summary: All - value: "*" - project_name_and_package_name: - summary: Project name and package name - value: "@project='my:project:name' and @name='my_package_name'" - function_contains: - summary: Function contains - value: contains(description,'editor') - combination: - summary: User and role - value: person/@userid='iggy' and person/@role='reviewer' - - in: query - name: limit - schema: - type: integer - description: Limit the number of results. - example: 20 - - in: query - name: offset - schema: - type: integer - description: Return results starting from the element specified by offset. - example: 10 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - package: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - title: - type: string - description: - type: string - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - two_results: - summary: Two matching results - value: - matches: 2 - package: - - project: home:Admin - name: ruby - - project: home:Admin:branch:home:Admin - name: ruby - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'packages' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List packages that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/package/id`, - please use that one. - tags: - - Search - "/search/package_id": - get: - deprecated: true - summary: List packages that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/package/id`, - please use that one. - tags: - - Search - post: - deprecated: true - summary: List packages that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/package/id`, - please use that one. - tags: - - Search - "/search/person": - get: - summary: List users that match a XPath condition. - description: Return a collection of users that match a XPath condition. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - required: true - description: | - Expression based in XPath. - - Providing a value of `*` will return all users. - - Available predicates are: `@login`, `@email`, `@realname`, and `@state`. - examples: - all: - summary: All - value: "*" - login: - summary: Login - value: "@login='user_1'" - function_contains: - summary: Function contains - value: contains(@realname,'lee') - combination: - summary: User email and state - value: "@email='iggy@example.com' and @state='confirmed'" - - in: query - name: limit - schema: - type: integer - description: Limit the number of results. - example: 20 - - in: query - name: offset - schema: - type: integer - description: Return results starting from the element specified by offset. - example: 10 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - person: - type: array - items: - type: object - properties: - login: - type: string - email: - type: string - realname: - type: string - state: - type: string - globalrole: - type: string - ignore_auth_services: - type: string - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - two_results: - summary: Two matching results - value: - matches: 2 - person: - - login: Iggy - email: iggy@example.com - realname: Shanta - state: confirmed - - login: superkraig - email: kraig@example.com - realname: Kraig Doe - state: confirmed - globalrole: Admin - ignore_auth_services: false - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate '@foo' for 'users' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List users that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/person`, please - use that one. - tags: - - Search - "/search/project": - get: - summary: List project objects that match a XPath condition. - description: | - Return a collection of projects objects that match a XPath condition. - - This operation is the same as the one defined with [GET /search/project/id](#/Search/get_search_project_id) with the exception of the results returned. - While the former operation returns a list of project names, this one return a list of project objects. See example values of a succeeded request below. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - required: true - description: | - Expression based in XPath. - - Providing a value of `*` will return all projects. - - Available predicates are: - - Project fields: `@name`, `@kind`, `title`, `description`, `scmsync`, `url`, and `remoteurl`. - - `package/@name`: name of the packages of the project. - - `attribute/@name`: name of the attributes of the project. - - Users and groups: - - `person/@userid`: login of a user related to this project. - - `person/@role`: name of the role which a user could be related with this project. - - `group/@groupid`: name (title) of a group related to this project. - - `group/@role`: name of the role which a group could be related with this project. - - More complex predicates are: `maintenance/maintains/@project`, `repository/@name`, - `repository/path/@project`, `repository/releasetarget/@trigger`. - examples: - all: - summary: All - value: "*" - name: - summary: Project name - value: "@name='my:project:name'" - function_contains: - summary: Funcion contains - value: contains(@name,'Test') - combination: - summary: User and role - value: person/@userid='iggy' and person/@role='reviewer' - - in: query - name: limit - schema: - type: integer - description: Limit the number of results. - example: 20 - - in: query - name: offset - schema: - type: integer - description: Return results starting from the element specified by offset. - example: 10 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - project: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - title: - type: string - description: - type: string - person: - type: object - properties: - userid: - type: string - xml: - attribute: true - role: - type: string - xml: - attribute: true - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - two_results: - summary: Two matching results - value: - matches: 2 - project: - - name: home:Iggy - title: - description: - person: - userid: Iggy - role: maintainer - - name: home:Iggy:branches:home:Admin - title: East of Eden - description: - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'projects' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List project objects that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/project`, please - use that one. - tags: - - Search - "/search/project/id": - get: - summary: List projects that match a XPath condition. - description: | - Return a collection of project names that match a XPath condition. - - This operation is the same as the one defined with [GET /search/project](#/Search/get_search_project) with the exception of the results returned. - While the former operation returns a list of project objects, this one return a list of project names. See example values of a succeeded request below. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - description: | - Expression based in XPath. - - Not providing a value or providing a value of `*` will return all projects. - - Available predicates are: - - Project fields: `@name`, `@kind`, `title`, `description`, `scmsync`, `url`, and `remoteurl`. - - `package/@name`: name of the packages of the project. - - `attribute/@name`: name of the attributes of the project. - - Users and groups: - - `person/@userid`: login of a user related to this project. - - `person/@role`: name of the role which a user could be related with this project. - - `group/@groupid`: name (title) of a group related to this project. - - `group/@role`: name of the role which a group could be related with this project. - - More complex predicates are: `maintenance/maintains/@project`, `repository/@name`, - `repository/path/@project`, `repository/releasetarget/@trigger`. - examples: - all: - summary: All - value: "*" - name: - summary: Project name - value: "@name='my:project:name'" - function_contains: - summary: Funcion contains - value: contains(@name,'Test') - combination: - summary: User and role - value: person/@userid='iggy' and person/@role='reviewer' - - in: query - name: limit - schema: - type: integer - description: Limit the number of results. - example: 20 - - in: query - name: offset - schema: - type: integer - description: Return results starting from the element specified by offset. - example: 10 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - project: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - title: - type: string - description: - type: string - person: - type: object - properties: - userid: - type: string - xml: - attribute: true - role: - type: string - xml: - attribute: true - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - two_results: - summary: Two matching results - value: - matches: 2 - project: - - name: home:Admin - - name: openSUSE.org - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'projects' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List projects that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/project/id`, - please use that one. - tags: - - Search - "/search/project_id": - get: - deprecated: true - summary: List projects that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/project/id`, - please use that one. - tags: - - Search - post: - deprecated: true - summary: List projects that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/project/id`, - please use that one. - tags: - - Search - "/search/published/binary/id": - get: - summary: Search for currently available binaries in the publish area. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - required: true - description: XPath expression. - example: project='home:foo'+and+name='bar' - - in: query - name: limit - schema: - type: integer - description: Override default maximum value of 1000 entries to be returned. - example: 20 - - in: query - name: withdownloadurl - schema: - type: integer - enum: - - 0 - - 1 - description: | - Add the download url in the results as attribute `downloadurl`. - - A value `0` means without the download url. A value `1` means with the download url. - example: 1 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - limited: - type: boolean - xml: - attribute: true - binary: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - version: - type: string - xml: - attribute: true - release: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - filename: - type: string - xml: - attribute: true - filepath: - type: string - xml: - attribute: true - baseproject: - type: string - xml: - attribute: true - type: - type: string - xml: - attribute: true - downloadurl: - type: string - xml: - attribute: true - xml: - name: collection - wrapped: true - examples: - including_download_urls: - value: - matches: 2 - binary: - - name: package_name - project: home:foo - package: package_name - repository: openSUSE_Tumbleweed - version: 20201220 - release: 3.1 - arch: src - filename: package_name-20201220-3.1.src.rpm - filepath: home:/foo/openSUSE_Tumbleweed/src/package_name-20201220-3.1.src.rpm - baseproject: home:bar - type: rpm - downloadurl: https://server1.myorg.org/repositories/home:/foo/openSUSE_Tumbleweed/src/package_name-20201220-3.1.src.rpm - - name: package_name2 - project: home:foo - package: package_name2 - repository: openSUSE_Tumbleweed - version: 20201220 - release: 3.1 - arch: src - filename: package_name2-20201220-3.1.src.rpm - filepath: home:/foo/openSUSE_Tumbleweed/src/package_name2-20201220-3.1.src.rpm - baseproject: home:bar - type: rpm - downloadurl: https://server1.myorg.org/repositories/home:/foo/openSUSE_Tumbleweed/src/package_name2-20201220-3.1.src.rpm - summary: Including download urls - description: Result after adding the `withdownloadurl=1` parameter/value - pair to the request. - with_limit: - value: - matches: 2 - limited: true - binary: - - name: package_name - project: home:foo - repository: openSUSE_Tumbleweed - package: package_name - version: 20201220 - release: 3.1 - arch: src - filename: package_name-20201220-3.1.src.rpm - filepath: home:/foo/openSUSE_Tumbleweed/src/package_name-20201220-3.1.src.rpm - baseproject: home:bar - type: rpm - - name: package_name2 - project: home:foo - package: package_name2 - repository: openSUSE_Tumbleweed - version: 20201220 - release: 3.1 - arch: src - filename: package_name2-20201220-3.1.src.rpm - filepath: home:/foo/openSUSE_Tumbleweed/src/package_name2-20201220-3.1.src.rpm - baseproject: home:bar - type: rpm - summary: Limiting results - description: Result after adding `limit=2` parameter/value pair - to the request. - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: 400 - summary: missing string terminator - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - project_not_found: - value: - code: 404 - summary: project 'home:foo' does not exist - description: 404 project 'home:foo' does not exist - summary: Not Found - tags: - - Search - post: - deprecated: true - summary: Search for currently available binaries in the publish area. - description: This endpoint is exactly the same as `GET /search/published/binary/id`, - please use that one. - tags: - - Search - "/search/published/pattern/id": - get: - summary: Search for published patterns. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - required: true - description: XPath expression. - example: project='home:foo'+and+name='bar' - - in: query - name: limit - schema: - type: integer - description: Override default maximum value of 1000 entries to be returned. - example: 20 - - in: query - name: withdownloadurl - schema: - type: integer - enum: - - 0 - - 1 - description: | - Add the download url in the results as attribute `downloadurl`. - - A value `0` means without the download url. A value `1` means with the download url. - example: 1 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - limited: - type: boolean - xml: - attribute: true - pattern: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - filename: - type: string - xml: - attribute: true - filepath: - type: string - xml: - attribute: true - baseproject: - type: string - xml: - attribute: true - type: - type: string - xml: - attribute: true - downloadurl: - type: string - xml: - attribute: true - xml: - name: collection - wrapped: true - examples: - including_download_urls: - value: - matches: 1 - pattern: - - name: OBS_Server - project: OBS:Server:Unstable - repository: SLE_12_SP4 - filename: OBS_Server.ymp - filepath: OBS:/Server:/Unstable/SLE_12_SP4/OBS_Server.ymp - baseproject: SUSE:SLE-12:SLE-Module-Adv-Systems-Management - type: ymp - downloadurl: https://download.opensuse.org/repositories/OBS:/Server:/Unstable/SLE_12_SP4/SLE_12_SP4/OBS_Server.ymp - summary: Including download urls - description: Result after adding the `withdownloadurl=1` parameter/value - pair to the request. - with_limit: - value: - matches: 9 - limited: true - pattern: - - name: OBS_Server - project: OBS:Server:Unstable - repository: 15.3 - filename: OBS_Server.ymp - filepath: OBS:/Server:/Unstable/15.3/OBS_Server.ymp - baseproject: SUSE:SLE-15:GA - type: ymp - - name: OBS_Server - project: OBS:Server:Unstable - repository: SLE_12_SP4 - filename: OBS_Server.ymp - filepath: OBS:/Server:/Unstable/SLE_12_SP4/OBS_Server.ymp - baseproject: SUSE:SLE-12:SLE-Module-Adv-Systems-Management - type: ymp - summary: Limiting results - description: Result after adding `limit=2` parameter/value pair - to the request. - without_matches: - value: - matches: 0 - summary: No matches - description: 'Empty result, when there is no matches. For example: - `?match=project=''home:bs-team:OBS''`. - -' - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: 400 - summary: missing string terminator - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: Search for published patterns. - description: This endpoint is exactly the same as `GET /search/published/pattern/id`, - please use that one. - tags: - - Search - "/search/published/repoinfo/id": - get: - summary: Search for currently available repositories in the publish area. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - required: true - description: XPath expression. - example: project='home:foo' - - in: query - name: limit - schema: - type: integer - description: Override default maximum value of 1000 entries to be returned. - example: 20 - - in: query - name: withdownloadurl - schema: - type: integer - enum: - - 0 - - 1 - description: | - Add the download url in the results as attribute `downloadurl`. - - A value `0` means without the download url. A value `1` means with the download url. - example: 1 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - limited: - type: boolean - xml: - attribute: true - repoinfo: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - xml: - name: collection - wrapped: true - examples: - including_download_urls: - value: - matches: 1 - repoinfo: - - project: OBS:Server:Unstable - repository: SLE_12_SP4 - downloadurl: https://download.opensuse.org/repositories/OBS:/Server:/Unstable/SLE_12_SP4/SLE_12_SP4/OBS_Server.ymp - summary: Including download urls - description: Result after adding the `withdownloadurl=1` parameter/value - pair to the request. - with_limit: - value: - matches: 2 - limited: true - repoinfo: - - project: OBS:Server:Unstable - repository: SLE_12_SP4 - - project: OBS:Server:Unstable - repository: SLE_12_SP5 - summary: Limiting results - description: Result after adding `limit=2` parameter/value pair - to the request. - without_matches: - value: - matches: 0 - summary: No matches - description: 'Empty result, when there is no matches. For example: - `?match=project=''home:bs-team:OBS''`. - -' - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: 400 - summary: missing string terminator - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: Search for currently available repositories in the publish area. - description: This endpoint is exactly the same as `GET /search/published/repoinfo/id`, - please use that one. - tags: - - Search - "/search/released/binary": - get: - summary: List released binaries that match a XPath condition. - description: | - Return a collection of released binaries that match a XPath condition. - - Released binaries are binaries published via the release mechanism. Binaries which got removed are also included. - - This operation is the same as the one defined with [GET /search/released/binary/id](#/Search/get_search_released_binary_id) with the exception of the results returned. - While the former operation returns a list of released binaries without details, this one return a list of detailed released binaries. See example values of a succeeded request below. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - required: true - description: | - Expression based in XPath. - - Providing a value of `*` will return all released binaries. - - Available predicates are: - - Released binary fields: `@name`, `disturl`, `@version`, `@release`, `@arch`, `@medium`, `binaryid`, `cpeid`, `supportstatus`, and `operation`. - - Update info fields: `updateinfo/@id` and `updateinfo/@version`. - - Build fields: `build/@time` and `build/@binaryid`. - - Other fields: `modify/@time` and `obsolete/@time`. - - Repository fields: `repository/@project` and `repository/@name`. - - Publish fields: `publish/@time`, `publish/@package` and `publish/@flavor`. - - "Update for" fields: `updatefor/@project`, `updatefor/@arch`, `updatefor/@product`, `updatefor/@baseversion`, `updatefor/@patchlevel`, and `updatefor/@version`. - - Product fields: `product/@project`, `product/@version`, `product/@release`, `product/@baseversion`, `product/@patchlevel`, `product/@name`, `product/@arch`, and `product/@medium`. - examples: - all: - summary: All - value: "*" - example1: - summary: Latest version of given binary in all products - description: Find the latest version of a given `glibc-devel` binary in - all products, skipping old and revoked versions. - value: "@name='glibc-devel'+and+obsolete[not(@time)]" - example2: - summary: Specific version by given updateinfo id - description: Find a specific version by given updateinfo id. This ID is - visible in the update tools to the end user. - value: updateinfo/@id='OBS-2014-42' - example3: - summary: Specific version by given disturl - description: Find a specific version by given disturl. Used to find all - affected products by a certain build of a binary. - value: disturl='obs://...' - example4: - summary: First release of a specific package version - value: "@name='kernel-default'+and+@version='1.0'+and+@release='1'+and+@arch='i586'+and+supportstatus='l3'+and+operation='added'" - example5: - summary: All binaries of a given repository - value: repository/@project='BaseDistro3'+and+repository/@name='BaseDistro3_repo' - example6: - summary: All binaries part of a product release - value: product/@project='openSUSE'+and+product/@name='openSUSE'+and+(product/@arch='x86_64'+or+not(product/@arch)) - example7: - summary: All binaries part of the update repositories of a product - value: updatefor/@project='openSUSE'+and+updatefor/@product='openSUSE'+and+(updatefor/@arch='x86_64'+or+not(updatefor/@arch)) - example8: - summary: All binaries part of the update repositories of a versioned product - value: updatefor/@project='openSUSE'+and+updatefor/@product='openSUSE'+and+updatefor/@version='13.2' - example9: - summary: All binaries part of the update repositories of a versioned product - (enterprise style) - value: updatefor/@project='openSUSE'+and+updatefor/@product='openSUSE'+and+updatefor/@baseversion='12'+and+updatefor/@patchlevel='1' - - in: query - name: limit - schema: - type: integer - description: Limit the number of results. - example: 20 - - in: query - name: offset - schema: - type: integer - description: Return results starting from the element specified by offset. - example: 10 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - binary: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - name: - type: string - xml: - attribute: true - version: - type: string - xml: - attribute: true - release: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - operation: - type: string - publish: - type: object - properties: - package: - type: string - xml: - attribute: true - time: - type: string - xml: - attribute: true - build: - type: object - properties: - time: - type: string - xml: - attribute: true - obsolete: - type: object - properties: - time: - type: string - xml: - attribute: true - disturl: - type: string - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - two_results: - summary: Two matching results - value: - matches: 2 - binary: - - project: home:user_1 - repository: openSUSE_Tumbleweed - name: cowsay - version: 3.03 - release: 5.7 - arch: noarch - operation: added - publish: - package: cowsay - time: 2017-11-22 01:26:25 UTC - build: - time: 2014-11-22 01:26:25 UTC - obsolete: - time: 2018-11-22 01:26:25 UTC - disturl: obs://openSUSE_TEST/home:user_1/openSUSE_Tumbleweed/60a1a1850b9fd0d3b30f3eefa195579b-cowsay - - project: home:user_2:branches:openSUSE.org:Cloud:OpenStack:Pike:venv - repository: SLE_12_SP3 - name: pyhon-Babel - version: 2.3.4 - release: 3.1 - arch: src - operation: added - publish: - package: python-Babel - time: 2018-02-08 12:56:52 UTC - build: - time: 2018-01-08 12:56:52 UTC - obsolete: - time: 2018-02-28 12:56:52 UTC - disturl: obs://openSUSE_TEST/home:user_2:branches:openSUSE.org:Cloud:OpenStack:Pike:venv/SLE_12_SP3/783d831d5cd44b08db0ca95ebe06c6cc-python-Babel - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'released_binaries' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List released binaries that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/released/binary`, - please use that one. - tags: - - Search - "/search/released/binary/id": - get: - summary: List released binaries that match a XPath condition. - description: | - Return a collection of released binaries that match a XPath condition. - - Released binaries are binaries published via the release mechanism. Binaries which got removed are also included. - - This operation is the same as the one defined with [GET /search/released/binary](#/Search/get_search_released_binary) with the exception of the results returned. - While the former operation returns a list of detailed released binaries, this one return a list of released binaries without details. See example values of a succeeded request below. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - description: | - Expression based in XPath. - - Not providing a value or providing a value of `*` will return all released binaries. - - Available predicates are: - - Released binary fields: `@name`, `disturl`, `@version`, `@release`, `@arch`, `@medium`, `binaryid`, `cpeid`, `supportstatus`, and `operation`. - - Update info fields: `updateinfo/@id` and `updateinfo/@version`. - - Build fields: `build/@time` and `build/@binaryid`. - - Other fields: `modify/@time` and `obsolete/@time`. - - Repository fields: `repository/@project` and `repository/@name`. - - Publish fields: `publish/@time`, `publish/@package` and `publish/@flavor`. - - "Update for" fields: `updatefor/@project`, `updatefor/@arch`, `updatefor/@product`, `updatefor/@baseversion`, `updatefor/@patchlevel`, and `updatefor/@version`. - - Product fields: `product/@project`, `product/@version`, `product/@release`, `product/@baseversion`, `product/@patchlevel`, `product/@name`, `product/@arch`, and `product/@medium`. - examples: - all: - summary: All - value: "*" - example1: - summary: Latest version of given binary in all products - description: Find the latest version of a given `glibc-devel` binary in - all products, skipping old and revoked versions. - value: "@name='glibc-devel'+and+obsolete[not(@time)]" - example2: - summary: Specific version by given updateinfo id - description: Find a specific version by given updateinfo id. This ID is - visible in the update tools to the end user. - value: updateinfo/@id='OBS-2014-42' - example3: - summary: Specific version by given disturl - description: Find a specific version by given disturl. Used to find all - affected products by a certain build of a binary. - value: disturl='obs://...' - example4: - summary: First release of a specific package version - value: "@name='kernel-default'+and+@version='1.0'+and+@release='1'+and+@arch='i586'+and+supportstatus='l3'+and+operation='added'" - example5: - summary: All binaries of a given repository - value: repository/@project='BaseDistro3'+and+repository/@name='BaseDistro3_repo' - example6: - summary: All binaries part of a product release - value: product/@project='openSUSE'+and+product/@name='openSUSE'+and+(product/@arch='x86_64'+or+not(product/@arch)) - example7: - summary: All binaries part of the update repositories of a product - value: updatefor/@project='openSUSE'+and+updatefor/@product='openSUSE'+and+(updatefor/@arch='x86_64'+or+not(updatefor/@arch)) - example8: - summary: All binaries part of the update repositories of a versioned product - value: updatefor/@project='openSUSE'+and+updatefor/@product='openSUSE'+and+updatefor/@version='13.2' - example9: - summary: All binaries part of the update repositories of a versioned product - (enterprise style) - value: updatefor/@project='openSUSE'+and+updatefor/@product='openSUSE'+and+updatefor/@baseversion='12'+and+updatefor/@patchlevel='1' - - in: query - name: limit - schema: - type: integer - description: Limit the number of results. - example: 20 - - in: query - name: offset - schema: - type: integer - description: Return results starting from the element specified by offset. - example: 10 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - binary: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - name: - type: string - xml: - attribute: true - version: - type: string - xml: - attribute: true - release: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - operation: - type: string - publish: - type: object - properties: - package: - type: string - xml: - attribute: true - time: - type: string - xml: - attribute: true - build: - type: object - properties: - time: - type: string - xml: - attribute: true - obsolete: - type: object - properties: - time: - type: string - xml: - attribute: true - disturl: - type: string - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - two_results: - summary: Two matching results - value: - matches: 2 - binary: - - project: openSUSE:13.1:Update - repository: standard - name: ImageMagick-extra - version: 6.8.6.9 - release: 2.12.1 - arch: i586 - - project: openSUSE:13.1:Update - repository: standard - name: Mesa - version: 9.2.3 - release: 61.9.1 - arch: i586 - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'released_binaries' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List released binaries that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/released/binary/id`, - please use that one. - tags: - - Search - "/search/repository/id": - get: - summary: List repositories that match a XPath condition. - description: Return a collection of repository names that match a XPath condition. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - description: | - Expression based in XPath. - - Not providing a value or providing a value of `*` will return all projects. - - Available predicates are: - - `@name`: name of the repository. - - `@project`: name of the project of the repository. - - Path fields: `path/@project` and `path/@repository`. - - Target product fields: `targetproduct/@project`, `targetproduct/@arch`, `targetproduct/@name`, - `targetproduct/@baseversion`, `targetproduct/@patchlevel`, and `targetproduct/@version`. - examples: - all: - summary: All - value: "*" - name: - summary: Project name - value: "@project='home:Admin'" - function_contains: - summary: Funcion contains - value: contains(@name,'Tumb') - - in: query - name: limit - schema: - type: integer - description: Limit the number of results. - example: 20 - - in: query - name: offset - schema: - type: integer - description: Return results starting from the element specified by offset. - example: 10 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: integer - xml: - attribute: true - repository: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - two_results: - summary: Two matching results - value: - matches: 2 - repository: - - name: openSUSE_Tumbleweed - project: home:Admin - - name: snapshot - project: openSUSE.org - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'repositories' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List repositories that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/repository/id`, - please use that one. - tags: - - Search - "/search/request": - get: - summary: List request objects that match a XPath condition. - description: | - Return a collection of request objects that match a XPath condition. - - This operation is the same as the one defined with [GET /search/request/id](#/Search/get_search_request_id) with the exception of the results returned. - While the former operation returns a list of request numbers, this one return a list of request objects. See example values of a succeeded request below. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - required: true - description: | - Expression based in XPath. - - Providing a value of `*` will return all requests. - - Available predicates are: - - Request fields: `@id` and `@creator`. - - State fields: `state/@name`, `state/@who`, and `state/@when`. - - Target fields: `target/@project` and `target/@package`. - - Source fields: `source/@project` and `source/@package`. - - Actions fields: `action/@type`, `action/grouped/@id`, `action/target/@project`, `action/target/@package`, `action/source/@project`, and `action/source/@package`. - - Reviews fields: - - General: `review/@when`, `review/@state`. - - Review by: `review/@by_user`, `review/@by_group`, `review/@by_project`, and `review/@by_package`. - - History: `review/history/@when`. - - History fields: `history/@when` and `history/@who`. - examples: - all: - summary: All - value: "*" - id: - summary: Request number - value: "@id=123456" - function_contains: - summary: Function contains - value: contains(@creator,'Igg') - combination: - summary: State name and date - value: state/@name='review' and starts_with(state/@when,'2022-08-22') - - in: query - name: limit - schema: - type: integer - description: Limit the number of results. - example: 20 - - in: query - name: offset - schema: - type: integer - description: Return results starting from the element specified by offset. - example: 10 - - in: query - name: withhistory - schema: - type: string - description: | - Include the request history. - - Without a value or with the value `0` means without the request history. A value `1` means with the request history. - example: 1 - - in: query - name: withfullhistory - schema: - type: string - description: | - Include the request and review history. - - Without a value or with the value `0` means without the request and review history. A value `1` means with the request and review history. - example: 1 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: string - example: 7 - xml: - attribute: true - request: - type: array - items: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - creator: - type: string - example: foo-user - xml: - attribute: true - action: - type: object - properties: - type: - type: string - example: submit - xml: - attribute: true - source: - type: object - properties: - project: - type: string - example: home:foo-user - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - rev: - type: integer - example: 521 - xml: - attribute: true - target: - type: object - properties: - project: - type: string - example: OBS:Unstable - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - options: - type: object - properties: - sourceupdate: - type: string - example: cleanup - state: - type: object - properties: - name: - type: string - example: accepted - xml: - attribute: true - who: - type: string - example: bar-user - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - comment: - type: string - example: allright - review: - type: array - items: - type: object - properties: - state: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - by_user: - type: string - xml: - attribute: true - by_group: - type: string - xml: - attribute: true - by_project: - type: string - xml: - attribute: true - by_package: - type: string - xml: - attribute: true - comment: - type: string - history: - type: object - properties: - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - description: - type: string - example: - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_user: obs-maintainer - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_group: obs-group - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_project: OBS:Unstable - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_package: obs-server - history: - type: array - items: - type: object - properties: - who: - type: string - example: foo - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - description: - type: string - example: Request created - comment: - type: string - example: Please review sources - description: - type: string - example: A little version update - xml: - name: request - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - two_results: - summary: Two matching results - value: - matches: 2 - request: - - id: 2 - creator: Iggy - description: Praesentium in nobis. - action: - type: submit - source: - project: openSUSE:Leap:15.0 - package: apache2 - target: - project: my_organization:Factory - package: inreview - state: - name: review - who: Iggy - when: '2022-08-22T08:06:58' - review: - - state: new - when: '2022-08-22T08:06:58' - by_package: apache2 - by_project: openSUSE:Leap:15.0 - - state: new - when: '2022-08-22T08:06:58' - by_user: repo-checker - - state: accepted - when: '2022-08-22T08:06:58' - who: Admin - by_group: group_1 - - id: 4 - creator: Iggy2 - description: Ut voluptas quibusdam. - action: - type: submit - source: - project: requestor_project - package: package_1661161028_1 - target: - project: my_organization:Admin - package: package_1661161028_1 - state: - name: review - who: Requestor - when: '2022-08-22T09:37:09' - comment: Dolores dolore animi. - review: - - state: new - when: '2022-08-22T09:37:09' - who: Requestor - by_group: dolorum - comment: Aut ipsum accusantium. - - state: accepted - when: '2022-08-22T09:37:09' - who: Requestor - by_group: group_1 - comment: - history: - who: Admin - when: '2022-08-22T09:37:09' - description: Review got accepted - one_result_with_history: - summary: One result with history - value: - matches: 1 - request: - - id: 4 - creator: Iggy2 - description: Ut voluptas quibusdam. - action: - type: submit - source: - project: requestor_project - package: package_1661161028_1 - target: - project: my_organization:Admin - package: package_1661161028_1 - state: - name: review - who: Requestor - when: '2022-08-22T09:37:09' - comment: Dolores dolore animi. - review: - - state: new - when: '2022-08-22T09:37:09' - who: Requestor - by_group: dolorum - comment: Aut ipsum accusantium. - - state: accepted - when: '2022-08-22T09:37:09' - who: Admin - by_group: group_1 - comment: - history: - who: Admin - when: '2022-08-22T09:37:09' - description: Review got accepted - history: - - who: Iggy - when: '2022-08-22T09:37:09' - description: Request created - comment: Praesentium in nobis. Tempore omnis error. - one_result_with_full_history: - summary: One result with full history - value: - matches: 1 - request: - - id: 4 - creator: Iggy2 - description: Ut voluptas quibusdam. - action: - type: submit - source: - project: requestor_project - package: package_1661161028_1 - target: - project: my_organization:Admin - package: package_1661161028_1 - state: - name: review - who: Requestor - when: '2022-08-22T09:37:09' - comment: Dolores dolore animi. - review: - - state: new - when: '2022-08-22T09:37:09' - who: Requestor - by_group: dolorum - comment: Aut ipsum accusantium. - - state: accepted - when: '2022-08-22T09:37:09' - who: Admin - by_group: group_1 - comment: - history: - who: Admin - when: '2022-08-22T09:37:09' - description: Review got accepted - history: - - who: Iggy - when: '2022-08-22T09:37:09' - description: Request created - comment: Praesentium in nobis. Tempore omnis error. - - who: Admin - when: '2022-08-22T09:37:09' - description: Request got accepted - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'requests' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: search_results_exceed_configured_limit - summary: | - The number of results returned by the performed search exceeds the configured limit. - - You can: - - retrieve only the ids by using an '/search/.../id' API endpoint, or - - reduce the number of matches of your search: - - paginating your results, through the 'limit' and 'offset' parameters, or - - adjusting your `match` expression. - tags: - - Search - post: - deprecated: true - summary: List requests objects that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/request`, please - use that one. - tags: - - Search - "/search/request/id": - get: - summary: List request numbers that match a XPath condition. - description: | - Return a collection of request numbers that match a XPath condition. - - This operation is the same as the one defined with [GET /search/request](#/Search/get_search_request) with the exception of the results returned. - While the former operation returns a list of request objects, this one return a list of request numbers. See example values of a succeeded request below. - security: - - basic_authentication: [] - parameters: - - in: query - name: match - schema: - type: string - description: | - Expression based in XPath. - - Not providing a value or providing a value of `*` will return all requests. - - Available predicates are: - - Request fields: `@id` and `@creator`. - - State fields: `state/@name`, `state/@who`, and `state/@when`. - - Target fields: `target/@project` and `target/@package`. - - Source fields: `source/@project` and `source/@package`. - - Actions fields: `action/@type`, `action/grouped/@id`, `action/target/@project`, `action/target/@package`, `action/source/@project`, and `action/source/@package`. - - Reviews fields: - - General: `review/@when`, `review/@state`. - - Review by: `review/@by_user`, `review/@by_group`, `review/@by_project`, and `review/@by_package`. - - History: `review/history/@when`. - - History fields: `history/@when` and `history/@who`. - examples: - all: - summary: All - value: "*" - id: - summary: Request number - value: "@id=123456" - function_contains: - summary: Function contains - value: contains(@creator,'Igg') - combination: - summary: State name and date - value: "/search/request?match=state/@name='review' and starts_with(state/@when,'2022-08-22')" - - in: query - name: limit - schema: - type: integer - description: Limit the number of results. - example: 20 - - in: query - name: offset - schema: - type: integer - description: Return results starting from the element specified by offset. - example: 10 - - in: query - name: withhistory - schema: - type: string - description: | - Include the request history. - - Without a value or with the value `0` means without the request history. A value `1` means with the request history. - example: 1 - - in: query - name: withfullhistory - schema: - type: string - description: | - Include the request and review history. - - Without a value or with the value `0` means without the request and review history. A value `1` means with the request and review history. - example: 1 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - matches: - type: string - example: 7 - xml: - attribute: true - request: - type: array - items: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - creator: - type: string - example: foo-user - xml: - attribute: true - action: - type: object - properties: - type: - type: string - example: submit - xml: - attribute: true - source: - type: object - properties: - project: - type: string - example: home:foo-user - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - rev: - type: integer - example: 521 - xml: - attribute: true - target: - type: object - properties: - project: - type: string - example: OBS:Unstable - xml: - attribute: true - package: - type: string - example: obs-server - xml: - attribute: true - options: - type: object - properties: - sourceupdate: - type: string - example: cleanup - state: - type: object - properties: - name: - type: string - example: accepted - xml: - attribute: true - who: - type: string - example: bar-user - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - comment: - type: string - example: allright - review: - type: array - items: - type: object - properties: - state: - type: string - xml: - attribute: true - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - by_user: - type: string - xml: - attribute: true - by_group: - type: string - xml: - attribute: true - by_project: - type: string - xml: - attribute: true - by_package: - type: string - xml: - attribute: true - comment: - type: string - history: - type: object - properties: - when: - type: string - xml: - attribute: true - who: - type: string - xml: - attribute: true - description: - type: string - example: - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_user: obs-maintainer - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_group: obs-group - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_project: OBS:Unstable - - state: accepted - when: '2021-01-15T15:49:32' - who: obs-maintainer - by_package: obs-server - history: - type: array - items: - type: object - properties: - who: - type: string - example: foo - xml: - attribute: true - when: - type: string - example: '2021-01-15T13:39:43' - xml: - attribute: true - description: - type: string - example: Request created - comment: - type: string - example: Please review sources - description: - type: string - example: A little version update - xml: - name: request - xml: - name: collection - examples: - no_results: - summary: No matching results - value: - matches: 0 - two_results: - summary: Two matching results - value: - matches: 2 - request: - - id: 2 - - id: 4 - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: illegal_xpath_error - summary: unable to evaluate 'foo' for 'requests' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Search - post: - deprecated: true - summary: List request numbers that match a XPath condition. - description: This endpoint is exactly the same as `GET /search/request/id`, - please use that one. - tags: - - Search - "/service": - get: - summary: List all services. - description: Get a list of all services known to OBS. - security: - - basic_authentication: [] - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - summary: - type: string - description: - type: string - parameter: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - description: - type: string - allowedvalue: - type: array - items: - type: string - required: - type: string - xml: - name: service - xml: - wrapped: true - name: servicelist - example: - - name: download_url - summary: Download a file - description: This services uses curl to download files from remote - servers via supported protocols. - parameter: - - name: protocol - description: Used Protocol - allowedvalue: - - ftp - - http - - https - - name: host - description: Server Hostname - required: '' - - name: source_validator - summary: Validate sources - description: The default SUSE source validator which catches common - pitfalls before build. - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - General Information - "/source?cmd=branch": - post: - summary: Branch a set of packages based on attributes - description: | - Create a source link from a package of an existing project to a - new subproject of the requesters home project. - security: - - basic_authentication: [] - parameters: - - name: project - description: The project that you want to branch - in: query - schema: - type: string - - name: package - description: The package that you want to branch - in: query - schema: - type: string - - name: target_project - description: Project which will be used or created - in: query - schema: - type: string - - name: target_package - description: Package name which will be used - in: query - schema: - type: string - - name: attribute - description: Attribute used for package search, default is OBS:MaintenanceProject - in: query - schema: - type: string - - name: add_repositories - description: Copy the repositories from branched project - in: query - schema: - type: boolean - - name: update_path_elements - description: Check if repository path elements do use each other and adapt - our own path elements - in: query - schema: - type: boolean - - name: update_project_attribute - description: Set a different Update Project attribute. - in: query - schema: - type: string - default: OBS:UpdateProject - - name: noaccess - description: Create hidden project. The new created project will be read protected - in: query - schema: - type: boolean - - name: extend_package_names - description: Extend repo and package names - in: query - schema: - type: boolean - - name: add_repositories_rebuild - description: Use defined rebuild policy for new repos or copy it from the - source project - in: query - schema: - type: string - enum: - - transitive direct local copy - - name: add_repositories_block - description: Use defined block policy for new repos - in: query - schema: - type: string - enum: - - all - - local - - never - - name: newinstance - description: The target package exists only via project links, but the link - should point to given project - in: query - schema: - type: boolean - - name: maintenance - describe: Explicitly asked for maintenance branch - in: query - schema: - type: boolean - responses: - '200': - description: ok - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - data: - - home:Admin - - hello_world - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - summary: - type: string - xml: - name: status - example: - code: not_found - summary: no packages found by search criteria - tags: - - Sources - "/source?cmd=createmaintenanceincident": - post: - summary: Create maintenance incident projects - description: Create a mainatenance incident project based on attribute search. - security: - - basic_authentication: [] - parameters: - - in: query - name: attribute - schema: - type: string - example: OBS:MaintenanceProject - description: attribute used for package search, default is OBS:MaintenanceProject - responses: - '200': - description: ok - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - data: - - MaintenanceProject:1 - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: incident_has_no_maintenance_project - summary: incident projects shall only create below maintenance projects - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: modify_project_no_permission - summary: no permission to modify project 'MaintenanceProject' - tags: - - Sources - "/source?cmd=orderkiwirepos": - post: - summary: Sort the repositories inside of a kiwi file according to path relationships. - description: This API takes kiwi XML file in the request body and sort the repositories - based on priority. - security: - - basic_authentication: [] - requestBody: - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - xml: - attribute: true - schemaversion: - type: string - xml: - attribute: true - repository: - type: array - items: - type: object - properties: - source: - type: object - properties: - path: - type: string - xml: - attribute: true - xml: - name: repository - xml: - name: image - example: | - - - - - - - - - responses: - '200': - description: Sorted list of repositories - content: - text/xml: - schema: - type: object - properties: - name: - type: string - xml: - attribute: true - schemaversion: - type: string - xml: - attribute: true - repository: - type: array - items: - type: object - properties: - source: - type: object - properties: - path: - type: string - xml: - attribute: true - xml: - name: repository - xml: - name: image - example: | - - - - - - - - - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - summary: - type: string - xml: - name: status - example: - code: 400 - summary: "/srv/obs/sources/:upload/1344: not xml" - tags: - - Sources - "/source": - get: - summary: List all the projects. - description: Get the list of all projects. - security: - - basic_authentication: [] - parameters: - - name: deleted - in: query - schema: - type: integer - description: Set to `1` to list the deleted projects. This is available for - Admins only. - example: 0 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - examples: - List of projects: - value: - entry: - - name: home:Admin - - name: home:Iggy - Deleted projects: - value: - entry: - - name: home:user_1 - '400': - description: Wrong value for deleted parameter. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not boolean: - value: - code: 400 - summary: not boolean - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: No permission to access deleted projects. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: no_permission_for_deleted - summary: only admins can see deleted projects. - tags: - - Sources - Projects - "/source/{project_name}": - get: - summary: List packages of a project. - description: Get a list of packages belonging to a project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - name: deleted - in: query - schema: - type: string - description: Set to `1` to list the packages of a deleted project. - example: 1 - - in: query - name: expand - schema: - type: string - enum: - - 1 - - 0 - description: Set to `1` to include packages from linked projects. - example: 1 - - in: query - name: view - schema: - type: string - enum: - - issues - - productlist - - verboseproductlist - description: | - Specify which sections should be included in the packages list. - - * `issues`: Show all tracked issues for all the packages. - * `productlist`: Show all contained products. - * `verboseproductlist`: List all contained products with detailed information about the product. - - Example of a result when `issues` is selected: - ``` - - - - 2009-05-21 10:50:00 UTC - 2020-02-24 13:01:11 UTC - 505969 - bnc - - https://bugzilla.opensuse.org/show_bug.cgi?id=505969 - CLOSED - lzma, xz: missing manpages - - coolo - coolo@suse.com - Stephan Kulow - - - - 2009-06-04 14:35:00 UTC - 2020-02-24 13:01:11 UTC - 509945 - bnc - - https://bugzilla.opensuse.org/show_bug.cgi?id=509945 - CLOSED - Enforce packaging of static libraries by rpmlint check - - dirkmueller - dmueller@suse.com - Dirk Mueller - - - - - - ``` - - Example of a result when `productlist` is selected: - ``` - - - - - - ``` - - Example of a result when `verboseproductlist` is selected: - ``` - - - cpe:/o:opensuse:opensuse-addon-nonoss:20230108 - 20230108 - - - cpe:/o:opensuse:opensuse:20230108 - 20230108 - - - cpe:/o:opensuse:microos:20230108 - 20230108 - - - ``` - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - oneOf: - - type: object - properties: - count: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - originpackage: - type: string - xml: - attribute: true - xml: - name: directory - - type: object - properties: - count: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - cpe: - type: string - xml: - attribute: true - originproject: - type: string - xml: - attribute: true - originpackage: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: product - xml: - name: productlist - - type: object - properties: - count: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - originproject: - type: string - xml: - attribute: true - originpackage: - type: string - xml: - attribute: true - cpe: - type: string - version: - type: string - xml: - name: product - xml: - name: productlist - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not boolean: - description: Passing a non boolean value to the `deleted` query - parameter. - value: - code: 400 - summary: not boolean - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: unknown_project - summary: 'Project not found: home:nonExistentUser' - tags: - - Sources - Packages - delete: - summary: Delete a specified project. - description: Deletes a specified project and all the packages of this project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - name: force - in: query - schema: - type: integer - description: | - Set to `1` if you want to delete the project even if the repositories of other - projects include a path to this project. After deletion, the path - in the other repository will start pointing towards 'deleted/standard' to - prevent the build and publishing - - name: comment - in: query - schema: - type: string - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Unauthorized to delete project. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - delete_project_no_permission: - value: - code: delete_project_no_permission - summary: Permission denied (delete project 'project_name') - summary: No permission - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}?view=info": - get: - summary: Show information of the packages of a project. - description: Show source version, md5sums and build description files of all - packages belonging to a project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: view - schema: - type: string - enum: - - info - - issues - - productlist - - verboseproductlist - description: | - Specify which information about each package should be returned. - - * `info`: Show source version, md5sums and build description files of all packages belonging to a project. - * `issues`, `productlist`, `verboseproductlist`: - See this [other endpoint](<#/Sources - Packages/get_source__project_name_>) for details. - example: info - - in: query - name: arch - schema: - type: string - description: Filter by architecture name. - example: x86_64 - - in: query - name: noexpand - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to prevent from showing some elements about packages, - like `filename`, `error` or `linked` elements. - example: 1 - - in: query - name: nofilename - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to prevent from showing filename elements. Shows only - the `sourceinfo` root element. - example: 1 - - in: query - name: package - schema: - type: string - description: Filter by package name. - example: test - - in: query - name: parse - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to show more details, like `originproject`, `linked - package`, `name`, `version`, `release`, `subpacks`, `deps`, and `prereqs` - elements. - example: 1 - - in: query - name: repository - schema: - type: string - description: Filter by repository name. - example: openSUSE_Tumbleweed - - in: query - name: withmetamd5 - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to show the `metamd5` attribute. - example: 1 - - in: query - name: withchangesmd5 - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to show the `revtime` element. - example: 1 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - package: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - verifymd5: - type: string - xml: - attribute: true - metamd5: - type: string - xml: - attribute: true - filename: - type: string - originproject: - type: string - linked: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - name: - type: string - version: - type: string - release: - type: string - revtime: - type: string - error: - type: string - subpacks: - type: array - items: - type: string - deps: - type: array - items: - type: string - prereqs: - type: array - items: - type: string - xml: - name: sourceinfo - xml: - name: sourceinfolist - wrapped: true - examples: - A project contains three packages: - value: - - package: texlive-specs - rev: 9f5336fcf6e4521b6a9587b02087eef9 - vrev: 25 - srcmd5: 9f5336fcf6e4521b6a9587b02087eef9 - verifymd5: 9b49b7314f5d0dfd8002cd329e048f73 - filename: texlive-specs.spec - - package: texlive-specs-w - rev: 9f5336fcf6e4521b6a9587b02087eef9 - vrev: 55 - srcmd5: 9f5336fcf6e4521b6a9587b02087eef9 - verifymd5: 9b49b7314f5d0dfd8002cd329e048f73 - filename: texlive-specs-w.spec - - package: test - rev: 5 - vrev: 5 - srcmd5: e3a71081cb7245e3c09c3655dffa7384 - verifymd5: e3a71081cb7245e3c09c3655dffa7384 - error: bad build configuration, no build type defined or detected - Applying a filter doesn't return any result: - value: - - package: hello - error: 404 package 'hello' does not exist - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Boolean: - description: Passing a value different than `0` or `1` to `parse`, - for example. - value: - code: 400 - summary: not boolean - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - tags: - - Sources - Projects - "/source/{project_name}/_config": - get: - summary: Get project's configuration - description: Read configuration for the specified project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - name: rev - in: query - schema: - type: string - responses: - '200': - description: OK. The request has succeeded. - content: - text/plain: - schema: - type: string - example: | - # temporary should be fixed in SUSE:SLE-15-SP4:GA - Prefer: -libudev-devel - Prefer: -libudev-devel-32bit - ... - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - put: - summary: Update project's configuration - description: Update configuration for the specified project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - name: comment - in: query - schema: - type: string - requestBody: - description: configuration you want to update - content: - text/plain: - schema: - type: string - example: | - # temporary should be fixed in SUSE:SLE-15-SP4:GA - Prefer: -libudev-devel - Prefer: -libudev-devel-32bit - ... - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}/_meta": - get: - summary: Get project meta file - description: Get project meta file - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - name: view - in: query - schema: - type: string - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - xml: - attribute: true - title: - type: string - description: - type: string - person: - type: object - properties: - userid: - type: string - xml: - attribute: true - role: - type: string - xml: - attribute: true - repository: - type: object - properties: - name: - type: string - xml: - attribute: true - path: - type: object - properties: - project: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - arch: - type: array - items: - type: string - xml: - name: project - example: - name: home:Admin - title: Endless Night - description: Test project - person: - userid: Admin - role: maintainer - repository: - name: openSUSE_Tumbleweed - path: - project: openSUSE.org:openSUSE:Factory - repository: snapshot - arch: - - x86_64 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Unknown project. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - Invalid Project Parameters: - value: - code: invalid_project_parameters - summary: Not found - tags: - - Sources - Projects - put: - summary: Write project meta file - description: Write project's meta file. Create the project if it doesn't exist. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: comment - schema: - type: string - description: Comment that explains the changes you made in meta file. - requestBody: - description: Project meta definition. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - xml: - attribute: true - title: - type: string - description: - type: string - person: - type: object - properties: - userid: - type: string - xml: - attribute: true - role: - type: string - xml: - attribute: true - repository: - type: object - properties: - name: - type: string - xml: - attribute: true - path: - type: object - properties: - project: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - arch: - type: array - items: - type: string - xml: - name: project - example: - name: home:Admin - title: Endless Night - description: Test project - person: - userid: Admin - role: maintainer - repository: - name: openSUSE_Tumbleweed - path: - project: openSUSE.org:openSUSE:Factory - repository: snapshot - arch: - - x86_64 - - aarch64 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad request. - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Command: - value: - code: unknown_command - summary: Allowed commands are ''. - Bad Request: - value: - code: err_register_save - summary: 'Could not save the registration, details: Login is the - name of an already existing user and Password can''t be blank.' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: The user does not have permission to change the project. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Change project no permission: - value: - code: change_project_no_permission - summary: The project is locked - tags: - - Sources - Projects - "/source/{project_name}/_pattern": - get: - summary: Get list of patterns - description: Get a list of all patterns for the project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - ntime: - type: string - xml: - attribute: true - xml: - name: directory - example: - name: _pattern - rev: '3' - vrev: '555' - srcmd5: db8d976cd59b1a933ab82a539247aeac - entry: - - name: OBS_Server - md5: d4ba5bf938ed8d26e68a7c6d1237854e - size: '947' - ntime: '1463555386' - - name: OBS_Server:unstable - md5: d4ba5bf938ed8d26e6xvv8a7c6d12ddd - size: '737' - ntime: 146355ddd6 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}/_pattern/{file_name}": - get: - deprecated: true - summary: Read a specified pattern file - description: Read a specified pattern file and return the content - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: file_name - schema: - type: string - required: true - description: The file name - example: ctris-0.42.1-4.1.x86_64.rpm - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown File: - value: - code: unknown_file - summary: 'File not found: home:some_project/_pattern/some_file' - tags: - - Sources - Projects - delete: - deprecated: true - summary: Deletes a specified pattern file. - description: Deletes a specified pattern file of a project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: file_name - schema: - type: string - required: true - description: The file name - example: ctris-0.42.1-4.1.x86_64.rpm - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown File: - value: - code: unknown_file - summary: 'File not found: home:some_project/_pattern/some_file' - tags: - - Sources - Projects - put: - deprecated: true - summary: Write a specified pattern file. - description: Write a specified pattern file of a project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: file_name - schema: - type: string - required: true - description: The file name - example: ctris-0.42.1-4.1.x86_64.rpm - requestBody: - content: - plain/text: - schema: - type: string - properties: - file: - type: string - format: binary - responses: - '200': - description: Updates the artifact's file contents - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - version: - type: string - time: - type: string - user: - type: string - comment: - type: string - requestid: - type: string - xml: - name: revision - example: - rev: 28 - srcmd5: 6c73fc9ef8d43369f0778564617b4a93 - time: 1682497725 - user: Admin - comment: - requestid: - '400': - description: 'Error: Bad request.' - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Bad Request: - value: - code: validation_failed - summary: 'pattern validation error: 1:1: FATAL: Start tag expected, - < not found - -' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown File: - value: - code: unknown_file - summary: 'File not found: home:some_project/_pattern/some_file' - tags: - - Sources - Projects - "/source/{project_name}/_project": - get: - summary: List project files - description: List all the files in project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: meta - required: false - schema: - type: integer - description: Set to 1 to include _meta files - example: 1 - - in: query - name: rev - required: false - schema: - type: integer - description: Revision number - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - example: - name: _project - rev: '7' - vrev: '445' - srcmd5: 9a18405476229262648b4c3e548a90a9 - entry: - name: _pubkey - md5: 1536ab133eb76be69aaba65d934d827a - size: '1369' - mtime: '1650378374' - '400': - description: Wrong value for meta parameter. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not boolean: - value: - code: 400 - summary: not boolean - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}/_pubkey": - get: - summary: Get GPG key - description: | - Get the project's GPG key. If the project doesn't have a default GPG key, it looks for the first one - available in the namespace hierarchy, ending at the global buildservice key. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: OK. The request has succeeded. - content: - text/plain: - schema: - type: string - example: | - -----BEGIN PGP PUBLIC KEY BLOCK----- - Version: GnuPG v1.4.5 (GNU/Linux) - mQENBFfX+W4BCAC89VZEUt8O/o2rXnFoNrW0nsZoaHZX5Kjtzwuns5/UwzBffY/h - [...] - -----END PGP PUBLIC KEY BLOCK----- - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: not_found - summary: 'Project not found: .' - No pubkey: - value: - code: no_pubkey - summary: no pubkey available - tags: - - Sources - Projects - delete: - summary: Removes the current gpg key - description: Removes the current gpg key if it exists - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}/_keyinfo": - get: - summary: Get a projects signing keys - description: Read information about the signing keys for the specified project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - project: - type: string - xml: - attribute: true - pubkey: - type: object - properties: - keyid: - type: string - xml: - attribute: true - userid: - type: string - xml: - attribute: true - algo: - type: string - xml: - attribute: true - keysize: - type: string - xml: - attribute: true - expires: - type: string - xml: - attribute: true - fingerprint: - type: string - xml: - attribute: true - sslcert: - type: object - properties: - keyid: - type: string - xml: - attribute: true - serial: - type: string - xml: - attribute: true - issuer: - type: string - xml: - attribute: true - subject: - type: string - xml: - attribute: true - algo: - type: string - xml: - attribute: true - keysize: - type: string - xml: - attribute: true - begins: - type: string - xml: - attribute: true - expires: - type: string - xml: - attribute: true - fingerprint: - type: string - xml: - attribute: true - xml: - name: keyinfo - example: - project: openSUSE:Leap - pubkey: - keyid: b88b2fd43dbdc284 - userid: openSUSE Project Signing Key <opensuse@opensuse.org> - algo: rsa - keysize: 2048 - expires: 1887851113 - fingerprint: 22c0 7ba5 3417 8cd0 2efe 22aa b88b 2fd4 3dbd c284 - sslcert: - serial: 18068117070991220325 - issuer: CN=openSUSE Secure Boot CA, C=DE, L=Nuremberg, O=openSUSE - Project, emailAddress=build@opensuse.org - subject: CN=openSUSE Secure Boot Signkey, C=DE, L=Nuremberg, O=openSUSE - Project, emailAddress=build@opensuse.org - algo: rsa - keysize: 2048 - begins: 1655126536 - expires: 1966166536 - fingerprint: 1f67 3297 da56 8ae0 dedf db7c 8cc6 8f9e cb85 7275 - keyid: fd9f 2c12 e599 d67c c7f9 0675 41ad f426 b712 469e - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}/_attribute": - get: - summary: Get all the project's attributes - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - name: view - in: query - schema: - type: string - enum: - - blame - description: With view=blame, information about who changed each XML tag and - when is displayed. - example: blame - - name: with_default - in: query - schema: - type: string - description: | - If the attribute doesn't contain any value and `with_default` is present, - the default values will be displayed, if any. - example: 1 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - namespace: - type: string - xml: - attribute: true - binary: - type: string - xml: - attribute: true - xml: - name: attribute - xml: - name: attributes - wrapped: true - examples: - listOfAttributes: - value: - - name: MaintenanceProject - namespace: OBS - - name: ScreenShots - namespace: OBS - viewBlame: - description: Passing view=blame. - value: | - 10 (Admin 2023-03-09 11:46:01 1) - 12 (Iggy 2023-03-13 14:46:01 5) - 14 (Admin 2023-03-13 15:14:21 6) - 14 (Admin 2023-03-13 15:14:21 7) Development - 14 (Admin 2023-03-13 15:14:21 8) - 10 (Admin 2023-03-09 11:46:01 9) - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: remote_project - summary: Attribute access to remote project is not yet supported - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}/_attribute/{attribute_name}": - get: - summary: Get project's attribute - description: Get a specified attribute of the project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - - name: view - in: query - schema: - type: string - enum: - - blame - description: With view=blame, information about who changed each XML tag and - when is displayed. - example: blame - - name: with_default - in: query - schema: - type: string - description: | - If the attribute doesn't contain any value and `with_default` is present, - the default values will be displayed, if any. - example: 1 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - namespace: - type: string - xml: - attribute: true - binary: - type: string - xml: - attribute: true - xml: - name: attribute - xml: - name: attributes - wrapped: true - examples: - oneAttribute: - value: - - name: MaintenanceProject - namespace: OBS - viewBlame: - description: Passing view=blame. - value: | - 6 (Admin 2023-03-09 11:46:01 1) - 12 (Iggy 2023-03-13 14:46:01 5) - 14 (Admin 2023-03-13 15:14:21 6) - 14 (Admin 2023-03-13 15:14:21 7) Development - 14 (Admin 2023-03-13 15:14:21 8) - 6 (Admin 2023-03-09 11:46:01 9) - '400': - description: Wrong value for deleted parameter. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_attribute: - value: - code: 400 - summary: Attribute 'OwnerRootProjectTest' must be in the $NAMESPACE:$NAME - style - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - post: - summary: Modifies the specified attribute - description: Modifies the specified attribute - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - - name: comment - in: query - schema: - type: string - requestBody: - description: Attributes you want to update - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - namespace: - type: string - xml: - attribute: true - binary: - type: string - xml: - attribute: true - xml: - name: attribute - xml: - name: attributes - wrapped: true - example: - - name: MaintenanceProject - namespace: OBS - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Wrong value for deleted parameter. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_attribute: - value: - code: 400 - summary: Attribute 'OwnerRootProjectTest' must be in the $NAMESPACE:$NAME - style - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - delete: - summary: Removes a specified attribute - description: Removes a specified attribute - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - - name: comment - in: query - schema: - type: string - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Wrong value for deleted parameter. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_attribute: - value: - code: 400 - summary: Attribute 'OwnerRootProjectTest' must be in the $NAMESPACE:$NAME - style - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}/_project/_history": - get: - summary: Get project commit history. - description: Get project commit history. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: deleted - schema: - type: string - description: Set to `1` to allow to retrieve the revision history of a deleted - project. - example: 1 - - in: query - name: limit - schema: - type: integer - description: Limit the number of retrieved revision history elements to the - specified number. - example: 20 - - in: query - name: meta - schema: - type: string - description: Set to `1` to retrieve the revision history of the meta file - (`_meta`) of the project. - example: 1 - - in: query - name: startbefore - schema: - type: integer - description: Start the list of revision history elements before the given - revision number. - example: 124 - - in: query - name: rev - schema: - type: string - description: Return the revision entry for a specific revision number. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [revisionlist.rng](../schema/revisionlist.rng) - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - version: - type: string - time: - type: string - user: - type: string - comment: - type: string - requestid: - type: string - xml: - name: revision - xml: - name: revisionlist - wrapped: true - examples: - Two Revisions: - value: - - rev: 1 - vrev: '' - srcmd5: d41d8cd98f00b204e9800998ecf8427e - version: '' - time: 1678364228 - user: Admin - comment: project was deleted - - rev: 2 - vrev: '' - srcmd5: d41d8cd98f00b204e9800998ecf8427e - version: '' - time: 1678364246 - user: Admin - comment: project was undeleted - rev Parameter Specified (rev = 1): - value: - - rev: 1 - vrev: '' - srcmd5: d41d8cd98f00b204e9800998ecf8427e - version: '' - time: 1678364228 - user: Admin - comment: project was deleted - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - tags: - - Sources - Projects - "/source/{project_name}/_project/{file_name}": - get: - summary: Read a project file - description: Read a project file - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: file_name - schema: - type: string - required: true - description: The file name - example: ctris-0.42.1-4.1.x86_64.rpm - - name: deleted - in: query - schema: - type: string - description: Set to `1` to read a file of a deleted project. - example: 1 - - in: query - name: meta - required: false - schema: - type: integer - description: Set to `1` to include _meta files - example: 1 - - in: query - name: rev - required: false - schema: - type: integer - description: Revision number - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - xml: - attribute: true - title: - type: string - description: - type: string - person: - type: object - properties: - userid: - type: string - xml: - attribute: true - role: - type: string - xml: - attribute: true - repository: - type: object - properties: - name: - type: string - xml: - attribute: true - path: - type: object - properties: - project: - type: string - xml: - attribute: true - repository: - type: string - xml: - attribute: true - arch: - type: array - items: - type: string - xml: - name: project - example: - name: home:Admin - title: Endless Night - description: Test project - person: - userid: Admin - role: maintainer - repository: - name: openSUSE_Tumbleweed - path: - project: openSUSE.org:openSUSE:Factory - repository: snapshot - arch: - - x86_64 - '400': - description: Wrong value for meta parameter. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not boolean: - value: - code: 400 - summary: not boolean - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: The user does not have permission to access the source. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Source access no permission: - value: - code: source_access_no_permission - summary: Source Access not allowed - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}?cmd=addchannels": - post: - summary: Add channels and extend repository list. - description: | - Add channels for each one of the provided project packages. - If the mode parameter is provided, that mode is added to the package channel. - The mode parameter can be: - - 'skip_disabled' - - 'enable_all' - - 'add_disabled' being the default. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: mode - schema: - type: string - enum: - - skip_disabled - - enable_all - - add_disabled - description: The channel will be added to the package using this mode. - example: add_disabled - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}?cmd=copy": - post: - summary: Copy an entire project. - description: Copy the source project provided by the required parameter `oproject` - to the target project provided by the path parameter `project_name`. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: | - Target project name - - The target project must exist. Otherwise, the copy is not performed and a not found error (404) is returned. - example: home:Iggy:target - - in: query - name: oproject - schema: - type: string - required: true - description: Origin project name - example: home:Iggy:source - - in: query - name: comment - schema: - type: string - description: Comment to be added in the revision history. - example: Copy project for testing. - - in: query - name: makeolder - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Make target older. Set to `1` to bump the source vrev by two - numbers and the target by one. - example: 1 - - in: query - name: makeoriginolder - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Make origin older. Set to `1` to extend the source vrev. - example: 1 - - in: query - name: nodelay - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: By default the copying is done as a deferred job. Set to `1` - to perform the copy right away. - example: 1 - - in: query - name: noservice - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` not to run source services. - example: 1 - - in: query - name: resign - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to resign all binaries with the target project key. - example: 1 - - in: query - name: withbinaries - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to also copy binaries. - example: 1 - - in: query - name: withhistory - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to also copy the revision history. - example: 1 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [about.xsd](../schema/about.xsd) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - job_invoked: - summary: Job Invoked - value: - code: invoked - summary: Job invoked - ok: - summary: Ok - description: Response given when `nodelay` is set to `1`. - value: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - cmd_execution_no_permission: - summary: No Permission to Execute Command - value: - code: cmd_execution_no_permission - summary: no permission to execute command 'copy' - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}?cmd=createkey": - post: - summary: Generate a new GPG key for a project. - description: Generate a new GPG key. If the project already has a GPG key, the - old key is discarded. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: ok - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - xml: - name: status - example: - code: ok - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: invalid_project_name - summary: invalid project name '{project_name}' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to execute command 'createkey' - tags: - - Sources - Projects - "/source/{project_name}?cmd=createmaintenanceincident": - post: - summary: Create a single maintenance incident project. - description: Create a single maintenance incident project as a sub project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: ok - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - data: - - MaintenanceProject:17 - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: incident_has_no_maintenance_project - summary: incident projects shall only create below maintenance projects - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to execute command 'createmaintenanceincident' - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: unknown_project - summary: 'Project not found: home:Admin' - tags: - - Sources - Projects - "/source/{project_name}?cmd=createpatchinfo": - post: - summary: Creates a patchinfo inside the given project - description: | - Creates a new patchinfo package, in the given project, containing a '_patchinfo' file. - The file will include all the issues in other project's sources, if any. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: name - schema: - type: string - description: Name of the patchinfo package. If not passed, 'patchinfo' is - the default value. - example: BaseDistro_patchinfo - - in: query - name: comment - schema: - type: string - description: Comment to be included in the 'summary' XML tag of the patchinfo. - example: Security update for the Linux Kernel - - in: query - name: force - schema: - type: string - description: | - If the patchinfo with the given name already existed and the force parameter is passed, - then the patchinfo will be overwritten. - If the force parameter is not passed, an error will be raised giving you some suggestions. - example: 1 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: | - - Ok - home:Admin - BaseDistro_patchinfo - - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_project_name: - value: - code: invalid_project_name - summary: invalid project name '0' - summary: Invalid Project Name - invalid_package_name: - value: - code: invalid_package_name - summary: invalid package name 'base:distro' - summary: Invalid Package Name - patchinfo_file_exists: - value: - code: patchinfo_file_exists - summary: 'createpatchinfo command: the patchinfo BaseDistro exists - already. Either use force=1 re-create the _patchinfo or use - updatepatchinfo for updating.' - summary: Patchinfo File Exists - package_already_exists: - value: - code: package_already_exists - summary: 'createpatchinfo command: the package BaseDistro exists - already, but is no patchinfo. Please create a new package instead.' - summary: Package Already Exists - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Sources - Projects - "/source/{project_name}?cmd=extendkey": - post: - summary: Extend the expiration date of GPG keys. - description: Extend the expiration date of GPG key for the given project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: days - schema: - type: integer - description: Define the number of days until key expiry - example: 712 - responses: - '200': - description: ok - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to execute command 'extendkey' - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: unknown_project - summary: 'Project not found: home:Admin' - tags: - - Sources - Projects - "/source/{project_name}?cmd=freezelink": - post: - summary: Freeze a project link. - description: Freeze a project link, either creating the freeze or updating it. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: comment - schema: - type: string - description: A comment that will appear in the project's comment section explaining - the reason behind the freezing. - example: Project link frozen due to some important reason. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}?cmd=lock": - post: - summary: Locks the project. - description: Locks the project given as parameter. You can pass a comment with - the reason of the lock. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: comment - schema: - type: string - description: Comment that can be added to describe the reasoning behind the - lock. - example: Locked project beacause A, B and C. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '403': - description: | - No permission to execute command 'lock' because the project is already locked or - because the user do not have permission to modify the project. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to execute command 'lock'. - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}?cmd=modifychannels": - post: - summary: Modify existing channels. - description: Add repositories or enable them for existing channels. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: mode - schema: - type: string - enum: - - add_disabled - - enable_all - example: add_disabled - description: The channel will be added to the package using this mode. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: invalid_parameter - summary: Internal Server Error - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to execute command 'modifychannels' - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: unknown_project - summary: 'Project not found: home:Admin' - tags: - - Sources - Projects - "/source/{project_name}?cmd=move": - post: - summary: Move all sources and binaries. - description: | - Admin permissions required and schedulers need to be stopped. - This api moves all sources and binaries from a source project (oproject) to a new project (project_name). - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: oproject - required: true - schema: - type: string - description: The project you want to move. Source project. - example: home:Admin - - in: query - name: comment - schema: - type: string - responses: - '200': - description: ok - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad Request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Project Exists: - value: - code: project_exists - summary: Target project exists already. - Move Failed: - value: - code: move_failed - summary: Move operation failed - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: Admin permissions required. STOP SCHEDULER BEFORE. - tags: - - Sources - Projects - "/source/{project_name}?cmd=release": - post: - summary: Release the project. - description: Release source and binaries for a repository of the project, if - you have the permissions to do so. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: nodelay - schema: - type: string - description: If this parameter is present, do not delay the relase. If this - parameter is not present, the release will be delayed to be done later. - example: 1 - - in: query - name: target_project - schema: - type: string - description: Project containing the repository targeted by the release. - example: openSUSE:Factory - - in: query - name: target_repository - schema: - type: string - description: Repository targeted by the release. - example: standard - - in: query - name: repository - schema: - type: string - description: Repository for which source and binaries will be released. - example: openSUSE_Tumbleweed - - in: query - name: setrelease - schema: - type: string - description: If this parameter is present, the release will be tagged with - this parameter's value. - example: Beta1 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}?cmd=remove_flag": - post: - summary: Delete a flag for the project. - description: | - For the project, you can delete a flag with the provided flag name, repository and architecture. - You can only delete the flag if you have the permissions to do so. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: flag - required: true - schema: - type: string - description: Name of the flag to be deleted - example: access - - in: query - name: repository - schema: - type: string - description: Repository for which the flag is set - example: openSUSE_Tumbleweed - - in: query - name: arch - schema: - type: string - description: Architecture for which the flag is set - example: x86_64 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - missing_parameter: - value: - code: missing_parameter - summary: Required Parameter flag missing. - summary: Missing Parameter - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to execute command 'remove_flag'. - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}?cmd=set_flag": - post: - summary: Set a flag for the project. - description: | - For the project, you can set a flag with the provided flag name, status, repository and architecture. - You can only set the flag if you have the permissions to do so. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: flag - required: true - schema: - type: string - description: Name of the flag to be set - example: access - - in: query - name: status - required: true - schema: - type: string - description: Status of the flag to be set - example: disable - - in: query - name: repository - schema: - type: string - description: Repository for which the flag is to be set - example: openSUSE_Tumbleweed - - in: query - name: arch - schema: - type: string - description: Architecture for which the flag is to be set - example: x86_64 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - missing_parameter_flag: - value: - code: missing_parameter - summary: Required Parameter flag missing. - summary: Missing Parameter flag - missing_parameter_status: - value: - code: missing_parameter - summary: Required Parameter status missing. - summary: Missing Parameter status - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to execute command 'set_flag'. - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}?cmd=showlinked": - post: - summary: List projects linking to the provided project. - description: Return a list of projects linking to the provided project. This - command doesn't perform any action. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - xml: - name: project - xml: - name: collection - wrapped: true - examples: - no_results: - summary: No results - value: | - - - one_result: - summary: One result - value: - - name: OBS:Server:Unstable:Containers:ruby2.7 - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}?cmd=undelete": - post: - summary: Restore a deleted project. - description: | - If the given project was previously deleted, you can restore it. - You can only restore it if you have the permissions to do so. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to execute command 'undelete'. - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not deleted project: - value: - code: 404 - summary: project 'Sandbox' already exists - description: Response when trying to "undelete" a project that was - not deleted previously. - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Sources - Projects - "/source/{project_name}?cmd=unlock": - post: - summary: Unlocks the project. - description: Unlocks the previously locked project, given as parameter. You - can pass a comment with the reason of the lock. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: query - name: comment - required: true - schema: - type: string - description: Comment that should be added to describe the reasoning behind - the unlock. - example: Unlocked project beacause A, B and C. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - missing_parameter: - value: - code: missing_parameter - summary: Required Parameter comment missing. - summary: Missing Parameter - not_locked: - value: - code: not_locked - summary: project 'Sandbox' is not locked. - summary: Not Locked - '403': - description: No permission to execute command 'unlock' because the user - do not have permission to modify the project. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to execute command 'unlock'. - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Projects - "/source/{project_name}/{package_name}": - get: - summary: List source files of a package. - description: Get a list of source files belonging to a package. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: deleted - schema: - type: string - description: | - Set to `1` to list source files of deleted packages. - - Return a "Bad Request" error (400) if it is set to `1` and the package exists. - example: 1 - - in: query - name: expand - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Expand links. - example: 1 - - in: query - name: extension - schema: - type: string - description: List source files with the given extension. - example: txt - - in: query - name: lastworking - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Show sources of the last mergeable sources in case of conflicting - changes. - example: 1 - - in: query - name: linkrev - schema: - type: string - description: Show sources of the specified linked revision in the base package. - - in: query - name: meta - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to show only the metadata file (`_meta`) in the list - of files. - example: 1 - - in: query - name: product - schema: - type: string - description: Use with `view=products`. Limit the product view to a given product. - - in: query - name: rev - schema: - type: string - description: Show sources of the specified revision. - example: 42 - - in: query - name: view - schema: - type: string - enum: - - cpio - - getmultibuild - - info - - issues - - products - - productrepositories - description: | - Specify which information about a package should be returned. - - * `cpio`: Stream all package files as cpio. - * `getmultibuild`: List multibuild packages. - * `info`: Show source version, md5sums and build description files, among other information. - See this [other endpoint](<#/Sources - Packages/get_source__project_name___package_name__view_info>) for details. - * `issues`: Show all tracked issues for this package. - * `products`: Show all products of a package (works only on `_product` or `000product` packages). - * `productrepositories`: Show all repositories used in product definitions (or a given product). - example: issues - - in: query - name: withlinked - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to show all used packages (in case of multiple link - indirections) in linkinfo information. - example: 1 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [directory.xsd](../schema/directory.xsd). This schema is not used in the following cases: - * view=cpio - * view=issues - * view=products - * view=productrepositories - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - examples: - Without Any Parameters: - value: - name: package_1 - rev: 4 - vrev: 4 - srcmd5: 2e276a9a18eb1f4e6d1187d456c9335d - entry: - - name: _config - md5: 38a56fe6747ddc35214cb2ace161496f - size: 59 - mtime: 1677507657 - - name: somefile.txt - md5: 8680db994e398a1542c6fd05ee7f9fef - size: 55 - mtime: 1677507647 - With Parameter meta=1: - value: - name: package_1 - rev: 4 - vrev: 4 - srcmd5: 2e276a9a18eb1f4e6d1187d456c9335d - entry: - - name: _meta - md5: 6742b7fc375300ce04e56819a1a52f64 - size: 181 - mtime: 1678724165 - With Parameter view=getmultibuild: - value: - entry: - - name: obs-bundled-gems - - name: obs-api-testsuite-rspec - With Parameter view=issues: - value: | - - - - 2008-11-18 16:47:00 UTC - 2020-02-24 13:01:11 UTC - 446164 - bnc - - https://bugzilla.test.com/show_bug.cgi?id=246064 - CLOSED - AUDIT-0: obs-server: /usr/bin/sign - - user_1 - user_1@test.com - John Doe - - - - With Parameter view=products: - value: | - - - - - openSUSE - openSUSE - 20230315 - 0 - openSUSE - - - openSUSE-Tumbleweed-x86_64 - openSUSE-Tumbleweed-s390x - openSUSE-Tumbleweed-ppc64le - openSUSE-Tumbleweed-aarch64 - - - 000000000 - openSUSE Tumbleweed - openSUSE - openSUSE Tumbleweed is the rolling distribution by the openSUSE.org project. - - cs - da - - - http://doc.opensuse.org/release-notes/x86_64/openSUSE/Tumbleweed/release-notes-openSUSE.rpm - http://download.opensuse.org/tumbleweed/repo/oss/ - - - openSUSE - true - - - en_US - openSUSE_Tumbleweed - - openSUSE - - - - - - - - - - - - - - - - - - i586 - i686 - noarch - - - i686 - i586 - i486 - i386 - noarch - - - - - With Parameter view=productrepositories: - value: | - - - - - - - openSUSE-Tumbleweed-x86_64 - openSUSE-Tumbleweed-s390x - openSUSE-Tumbleweed-ppc64le - openSUSE-Tumbleweed-aarch64 - - - application/x-cpio: - schema: - type: string - examples: - With Parameter view=cpio: - value: | - 07070100000000000081a40000000000000000000000015331456900000135000000000000000000000000000000000000000d00000000_constraints - - - obs-server - - - - - 2000 - - - 1500 - - - - - 07070100000000000081a40000000000000000000000015b595e440000006a000000000000000000000000000000000000000c00000000_multibuild - obs-bundled-gems - obs-api-testsuite-rspec - - 07070100000000000081a40000000000000000000000016229cffc000002ec000000000000000000000000000000000000000900000000_service - - - 2.11~alpha.%ci.%h - https://github.com/openSUSE/open-build-service.git - git - master - dist/obs-api-testsuite-rspec.spec - dist/obs-bundled-gems.spec - dist/obs-server.spec - dist/obs-rpmlintrc - - - - - xz - *.tar - - - 07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!! - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Boolean: - description: Passing a value different than `0` or `1` to `meta`, - for example. - value: - code: 400 - summary: not boolean - With deleted=1 and Package exists: - description: Passing a value of `1` to `deleted`, and the package - exists. - value: - code: package_exists - summary: the package is not deleted - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Files - delete: - summary: Deletes a specified package including all its source files. - description: Deletes a specified package including all its source files. By - default only if no other packages use this package as a devel package. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: comment - schema: - type: string - description: Comment to be included in the revision history of the package. - example: This package was no longer needed. - - in: query - name: force - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to delete this package, even if other packages use - this one as devel package. - example: 1 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Delete Error: - value: - code: delete_error - summary: 'Package is used by following packages as devel package: - project_devel/ctris' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}/_attribute": - get: - summary: List the attibutes of a package - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - name: rev - in: query - schema: - type: string - description: 'Passing the number of the revision, this endpoint displays the - attributes'' XML as it was at that point. - -' - example: 3 - - name: view - in: query - schema: - type: string - enum: - - blame - description: With `view=blame`, information about who changed each XML tag - and when is displayed. - example: blame - - name: with_default - in: query - schema: - type: string - description: | - If the attribute doesn't contain any value and `with_default` is present, - the default values will be displayed, if any. - example: 1 - - name: with_project - in: query - schema: - type: string - description: 'Passing `with_project`, the response displays the attributes - of the package''s project in addition to the package ones. - -' - example: 1 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - namespace: - type: string - xml: - attribute: true - binary: - type: string - xml: - attribute: true - xml: - name: attribute - xml: - name: attributes - wrapped: true - examples: - manyAttributes: - value: - - name: MaintenanceProject - namespace: OBS - - name: ScreenShots - namespace: OBS - viewBlame: - description: Passing `view=blame`. - value: | - 10 (Admin 2023-03-09 11:46:01 1) - 12 (Iggy 2023-03-13 14:46:01 5) - 14 (Admin 2023-03-13 15:14:21 6) - 14 (Admin 2023-03-13 15:14:21 7) Development - 14 (Admin 2023-03-13 15:14:21 8) - 10 (Admin 2023-03-09 11:46:01 9) - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - remoteProject: - value: - code: remote_project - summary: Attribute access to remote project is not yet supported - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - post: - summary: Create or update the package's attribute given in the request body - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - security: - - basic_authentication: [] - requestBody: - description: Attribute you want to create or update - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - namespace: - type: string - xml: - attribute: true - binary: - type: string - xml: - attribute: true - xml: - name: attribute - xml: - name: attributes - wrapped: true - example: - - name: MaintenanceProject - namespace: OBS - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_attribute: - description: Wrong attribute name. - value: - code: invalid_attribute - summary: Attribute 'OwnerRootProjectTest' must be in the $NAMESPACE:$NAME - style - invalid_xml: - description: When not passing an XML body to the requset. - value: - code: invalid_xml - summary: Invalid XML - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}/_attribute/{attribute_name}": - get: - summary: Get package's attribute - description: Get the specified attribute of the package - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - - name: rev - in: query - schema: - type: string - description: 'Passing the number of the revision, this endpoint displays the - attributes'' XML as it was at that point. - -' - example: 3 - - name: view - in: query - schema: - type: string - enum: - - blame - description: With `view=blame`, information about who changed each XML tag - and when is displayed. - example: blame - - name: with_default - in: query - schema: - type: string - description: | - If the attribute doesn't contain any value and `with_default` is present, - the default values will be displayed, if any. - example: 1 - - name: with_project - in: query - schema: - type: string - description: 'Passing `with_project`, the response displays the specified - attribute of the package''s project, if any, in addition to the package - one. - -' - example: 1 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - namespace: - type: string - xml: - attribute: true - binary: - type: string - xml: - attribute: true - xml: - name: attribute - xml: - name: attributes - wrapped: true - examples: - oneAttribute: - value: - - name: MaintenanceProject - namespace: OBS - viewBlame: - description: Passing `view=blame`. - value: | - 10 (Admin 2023-03-09 11:46:01 1) - 12 (Iggy 2023-03-13 14:46:01 5) - 14 (Admin 2023-03-13 15:14:21 6) - 14 (Admin 2023-03-13 15:14:21 7) Development - 14 (Admin 2023-03-13 15:14:21 8) - 10 (Admin 2023-03-09 11:46:01 9) - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_attribute: - description: Wrong attribute name. - value: - code: invalid_attribute - summary: Attribute 'OwnerRootProjectTest' must be in the $NAMESPACE:$NAME - style - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Packages - post: - summary: Create or update an attribute of a package - description: Create or update the specified attribute of the package - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - requestBody: - description: Attribute you want to create or update - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - namespace: - type: string - xml: - attribute: true - binary: - type: string - xml: - attribute: true - xml: - name: attribute - xml: - name: attributes - wrapped: true - example: - - name: MaintenanceProject - namespace: OBS - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_attribute: - description: Wrong attribute name. - value: - code: invalid_attribute - summary: Attribute 'OwnerRootProjectTest' must be in the $NAMESPACE:$NAME - style - invalid_xml: - description: When not passing an XML body to the requset. - value: - code: invalid_xml - summary: Invalid XML - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - delete: - summary: Delete the specified attribute of a package - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_attribute: - description: Wrong attribute name. - value: - code: invalid_attribute - summary: Attribute 'OwnerRootProjectTest' must be in the $NAMESPACE:$NAME - style - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: The user don't have permission to delete the specified attribute - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - change_attribute_no_permission: - value: - code: change_attribute_no_permission - summary: User Iggy has no permission to change attribute - '404': - description: Unknown attribute - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - unknown_attribute_type: - value: - code: unknown_attribute_type - summary: Attribute Type OBS:Fake does not exist - tags: - - Sources - Packages - "/source/{project_name}/{package_name}/_history": - get: - summary: Get package commit history. - description: Get package commit history. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: deleted - schema: - type: string - description: Set to `1` to allow to retrieve the revision history of a deleted - package. - example: 1 - - in: query - name: limit - schema: - type: integer - description: Limit the number of retrieved revision history elements to the - specified number. - example: 20 - - in: query - name: meta - schema: - type: string - description: Set to `1` to retrieve the revision history of the meta file - (`_meta`) of the package. - example: 1 - - in: query - name: startbefore - schema: - type: integer - description: Start the list of revision history elements before the given - revision number. - example: 124 - - in: query - name: rev - schema: - type: string - description: Return the revision entry for a specific revision number. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [revisionlist.rng](../schema/revisionlist.rng) - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - version: - type: string - time: - type: string - user: - type: string - comment: - type: string - requestid: - type: string - xml: - name: revision - xml: - name: revisionlist - wrapped: true - examples: - Two Revisions: - value: - - rev: 1 - vrev: '' - srcmd5: d41d8cd98f00b204e9800998ecf8427e - version: '' - time: 1678364228 - user: Admin - comment: package was deleted - - rev: 2 - vrev: '' - srcmd5: d41d8cd98f00b204e9800998ecf8427e - version: '' - time: 1678364246 - user: Admin - comment: package was undeleted - rev Parameter Specified (rev = 1): - value: - - rev: 1 - vrev: '' - srcmd5: d41d8cd98f00b204e9800998ecf8427e - version: '' - time: 1678364228 - user: Admin - comment: package was deleted - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}/_meta": - get: - summary: Get package meta file. - description: Get package meta file. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: deleted - schema: - type: string - enum: - - - description: Set to retrieve the package metadata of a deleted package. - - in: query - name: meta - schema: - type: string - description: Set to `1` to force to retrieve the package metadata from the - backend. - example: 1 - - in: query - name: rev - schema: - type: string - description: Return the package metadata for a specific revision number. - example: 42 - - in: query - name: view - schema: - type: string - enum: - - blame - description: With `view=blame` show information about who and when each line - of the package metadata was changed. - example: blame - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - title: - type: string - description: - type: string - devel: - type: object - properties: - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - xml: - name: package - examples: - Simple Request: - value: - name: package_1 - title: '' - description: Test package - devel: - project: home:Admin - package: package_2 - Request with view=blame: - value: | - 11 (Admin 2023-03-09 12:14:58 1) - 12 (Admin 2023-03-09 12:23:11 2) - 63 (Admin 2023-03-13 16:16:05 3) Description 2 added... - 44 (Admin 2023-03-09 17:39:39 4) - 11 (Admin 2023-03-09 12:14:58 5) - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Bad Revision: - description: Passing `rev=invalid_revision`. - value: - code: 400 - summary: bad revision 'invalid_revision' - Not Boolean: - description: Passing `meta=not_boolean`. - value: - code: 400 - summary: not boolean - Unknown View: - description: Passing `view=invalid_view`. - value: - code: 400 - summary: unknown view 'invalid_view' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - Unknown Revision: - value: - code: 404 - summary: revision '66' does not exist - details: 404 revision '66' does not exist - tags: - - Sources - Packages - put: - summary: Write package meta file. - description: Write package's meta file. Create the package if it doesn't exist. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: comment - schema: - type: string - description: Comment that explains the changes you made in the meta file. - example: Fix the title of the package. - requestBody: - description: Package meta definition. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - title: - type: string - description: - type: string - devel: - type: object - properties: - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - xml: - name: package - example: - name: package_1 - title: '' - description: Test package - devel: - project: home:Admin - package: package_2 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - XML Not Valid: - value: - code: validation_failed - summary: 'package validation error: 1:11: FATAL: Extra content - at the end of the document' - Project Name Mismatch: - value: - code: project_name_mismatch - summary: project name in xml data does not match resource path - component - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Authorized to Update the Project: - value: - code: update_project_not_authorized - summary: You are not authorized to update this project - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=addcontainers": - post: - summary: Add docker container packages and repositories - description: Add docker container packages and repositories using the maintained - version of this package - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: cmd - required: true - schema: - type: string - enum: - - addcontainers - - in: query - name: extend_package_names - schema: - type: string - enum: - - 1 - example: 1 - description: | - Set to consider the container name as a parsed combination of container project and container name. - With format `[container name].[container project name]` where `:` was replaced by `_`, - i.e. "kiwi-templates-Minimal.SUSE_Templates_Images_SLE-15-SP4". - security: - - basic_authentication: [] - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=branch": - post: - summary: Branch a package. - description: | - Create a source link from a package of an existing project to a - new subproject of the requester's home project. - The default target is `home::branches:/`. - A possible defined devel project in the package meta data gets ignored. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: target_project - schema: - type: string - description: Target project name. - example: home:Admin:subproject - - in: query - name: target_package - schema: - type: string - description: Target package name. - example: test - - in: query - name: add_repositories - schema: - type: string - enum: - - 1 - description: Set to add repositories based on source project (default for - new projects). - - in: query - name: add_repositories_rebuild - schema: - type: string - enum: - - transitive - - direct - - local - - copy - description: Set one of the defined rebuild policies for new repositories - (`transitive`, `direct` or `local`) or copy it from the source project (`copy`) - - in: query - name: add_repositories_block - schema: - type: string - enum: - - all - - local - - never - description: Set to use defined block policy for new repositories. - - in: query - name: autocleanup - schema: - type: string - enum: - - 1 - description: Set to enable autocleanup on the branched project. - - in: query - name: dryrun - schema: - type: string - enum: - - 1 - description: Set to run without making action, just report results. - - in: query - name: extend_package_names - schema: - type: string - enum: - - 1 - description: Set to extend package and repository names to allow multiple - instances of the same package. - - in: query - name: ignoredevel - schema: - type: string - enum: - - 1 - description: Set to ignore validation and resolving of devel package or devel - project definition. - - in: query - name: force - schema: - type: string - description: 'Set to 1 to allow overwriting of a pre-existing package. - -' - example: 1 - - in: query - name: rev - schema: - type: string - description: Set to branch against a specific revision. - - in: query - name: maintenance - schema: - type: string - enum: - - 1 - description: Set to explicitly ask for a maintenance branch. - - in: query - name: missingok - schema: - type: string - enum: - - 1 - description: Set to create the target package if it does not exist. - - in: query - name: newinstance - schema: - type: string - enum: - - 1 - description: Set to have the target package exist only via project links, - but the link should point to the given project. - - in: query - name: noaccess - schema: - type: string - enum: - - 1 - description: Set to make the newly created project be read protected. This - won't work if the project already exists. - - in: query - name: noservice - schema: - type: string - enum: - - 1 - description: Set to not run source services on branching. - - in: query - name: request - schema: - type: string - description: Creates a branch project based on the provided request number. - - in: query - name: update_path_elements - schema: - type: string - enum: - - 1 - description: Set to update all the path elements if needed (used repositories - depend on each other). - - in: query - name: update_project_attribute - schema: - type: string - default: OBS:UpdateProject - description: Set a different Update Project attribute. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: | - - Ok - home:Admin:subproject - test - home:Admin - ctris - - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Double Branch: - value: - code: double_branch_package - summary: 'branch target package already exists: home:Admin:subproject/test' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to modify package test in project home:Admin - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=collectbuildenv": - post: - summary: Collect build environment information. - description: | - Creates _buildenv files based on origin package builds. This can be used - to re-use exact older build enviroment even when further new binary packages - got added. For example to re-build an old maintenance update in the same way. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: oproject - required: true - schema: - type: string - description: Origin project. The project that the Origin Package will have - the build information copied from. - - in: query - name: opackage - schema: - type: string - description: Origin package. Build environment information of the package - that will be copied. - - in: query - name: orev - schema: - type: string - description: Origin package revision. Revision of the Origin Package on which - to base the build environment collection. - - in: query - name: comment - schema: - type: string - description: Comment for the new revision. - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - version: - type: string - time: - type: string - user: - type: string - comment: - type: string - requestid: - type: string - xml: - name: revision - examples: - Copy: - value: - rev: 3 - vrev: 3 - srcmd5: d41d8cd98f00b204e9800998ecf8427e - version: 20220902.37b45c2 - time: 1678785078 - user: Admin - comment: Copying the build environment from origin - requestid: - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Missing Parameter: - value: - code: missing_parameter - summary: Required Parameter opackage missing - Bad Revision: - value: - code: 400 - origin: backend - summary: bad revision '-3' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to modify package test in project home:Admin - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=commit": - post: - summary: Commit package changes. - description: Create a new revision of the package, committing package changes. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: comment - schema: - type: string - description: Provide a comment to the revision in history. - example: This was changed to improve foobar. - - in: query - name: linkrev - schema: - type: string - description: | - Link revision in base package. Set to `base` to use the commit revision. - - Used together with the `keeplink` parameter. - example: base - - in: query - name: rev - schema: - type: string - description: Revision of the package. - - in: query - name: keeplink - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to preserve the link (`_link` file) on the source. - example: 1 - - in: query - name: repairlink - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: | - Set to `1` to solve conflicts. - - Used together with `keeplink` parameter. - example: 1 - responses: - '200': - description: OK. Revision created with this commit. - content: - text/xml: - schema: - type: object - properties: - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - version: - type: string - time: - type: string - user: - type: string - comment: - type: string - requestid: - type: string - xml: - name: revision - example: - rev: 86 - vrev: 86 - srcmd5: 55452f7326fe90cb67ca96bf9e9ffabc - version: 2.10~pre - time: 1665060711 - user: Admin - comment: - requestid: - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Boolean: - description: Passing a value different than `0` or `1` to `keeplink`, - for example. - value: | - - - not boolean - - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to modify package test in project home:Admin - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=commitfilelist": - post: - summary: Commit package changes from a filelist. - description: | - Create a new commit using defined files already uploaded to the repository. - - This requires a directory xml providing file name and md5 as body. - It is recommended to use the `withvalidate` parameter and add the - sha256 sum including "sha256:" prefix in "hash" attribute for security reasons. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: comment - schema: - type: string - description: Provide a comment to the revision - example: This was changed to improve foobar. - - in: query - name: linkrev - schema: - type: string - description: | - Link revision in base package. Set to `base` to use the commit revision. - - Used together with the `keeplink` parameter. - example: base - - in: query - name: rev - schema: - type: string - description: Revision of the package. - - in: query - name: keeplink - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to preserve the link (`_link` file) on the source. - example: 1 - - in: query - name: repairlink - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: | - Set to `1` to solve conflicts. - - Used together with `keeplink` parameter. - example: 1 - - in: query - name: withvalidate - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to activate sha validation code (optional, but recommended) - example: 1 - responses: - '200': - description: OK. Revision created with this commit. - content: - text/xml: - schema: - type: object - properties: - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - version: - type: string - time: - type: string - user: - type: string - comment: - type: string - requestid: - type: string - xml: - name: revision - example: - rev: 86 - vrev: 86 - srcmd5: 55452f7326fe90cb67ca96bf9e9ffabc - version: 2.10~pre - time: 1665060711 - user: Admin - comment: - requestid: - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Boolean: - description: Passing a value different than `0` or `1` to `keeplink`, - for example. - value: | - - - not boolean - - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to modify package test in project home:Admin - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=copy": - post: - summary: Copy packages. - description: "Copy packages. \nAdditionally you can copy the binaries and/or - the commit history.\nThe copy can be done synchronously or asynchronously.\nYou - can leave a comment in the package revision.\n" - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: rev - schema: - type: string - enum: - - upload - - repository - example: repository - - in: query - name: opackage - schema: - type: string - description: Origin package. The package that will be copied. - - in: query - name: oproject - schema: - type: string - description: Origin project. The project that the Origin Package will be copied - from. - - in: query - name: withbinaries - schema: - type: string - enum: - - 1 - - 0 - description: Set to '1' to copy binaries that have been build by the origin - package too. - - in: query - name: makeolder - schema: - type: string - enum: - - 1 - - 0 - description: Set to '1' to make the target older, the source vrev is bumped - by two numbers and target by one. Setting both makeolder and makeoriginolder - will return an error back. - - in: query - name: makeoriginolder - schema: - type: string - enum: - - 1 - - 0 - description: Set to '1' to make the origin older, the source vrev is extended - and target is guaranteed to be newer. Setting both makeoriginolder and makeolder - will return an error back. - - in: query - name: nodelay - schema: - type: string - enum: - - 1 - - 0 - description: Set to '1' to do the copying synchronously. By default the copying - is done asynchronously. - - in: query - name: withhistory - schema: - type: string - enum: - - 1 - - 0 - description: Set to '1' to copy the package commit history. - - in: query - name: noservice - schema: - type: string - enum: - - 1 - - 0 - description: Set to '1' to avoid running the services after the copy. - - in: query - name: comment - schema: - type: string - description: Comment for the new revision. - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - rev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - name: revision - wrapped: true - examples: - Repository: - value: - srcmd5: d41d8cd98f00b204e9800998ecf8427e - Upload: - value: - srcmd5: d41d8cd98f00b204e9800998ecf8427e - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=createSpecFileTemplate": - post: - deprecated: true - summary: Create a RPM Spec File Template for a specified package. - description: | - Create a RPM Spec File Template for a specified package. This endpoint - is broken and will be removed. - See [https://github.com/openSUSE/open-build-service/issues/9707](https://github.com/openSUSE/open-build-service/issues/9707) - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=deleteuploadrev": - post: - summary: Delete all uploaded sources which are not committed yet. - description: Removes all changes made to the upload revision and reverts to - last committed revision - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to modify package ctris in project home:Admin - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=diff": - post: - summary: Returns the source diff of a package. - description: | - Without parameters, return the diff of the last change made to the package. - Despite using the method `POST`, this endpoint doesn't alter any data. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: cacheonly - schema: - type: string - enum: - - 1 - - 0 - description: | - Set to `1` to retrieve a diff only if the diff is already cached. - - If the diff is not cached return a 412 "Precondition failed" error. - example: 1 - - in: query - name: expand - schema: - type: string - enum: - - 1 - - 0 - description: Set to `1` to expand any link before diffing. - example: 1 - - in: query - name: file - schema: - type: string - description: Limit diff to the given file name. - example: hello_world.spec - deprecated: true - - in: query - name: file[] - schema: - type: array - elements: - type: string - description: Limit diff to the given file names. - example: - - hello_world.spec - - my_program.c - - in: query - name: filelimit - schema: - type: string - description: | - Limit the size of the diff to this amount of lines. - - By default it takes a built-in value of 200. - - Set to `0` to disable the limit. - example: 20 - - in: query - name: linkrev - schema: - type: string - description: Link revision in base package. Set to `base` to use the commit - revision. - example: base - - in: query - name: meta - schema: - type: string - enum: - - 1 - - 0 - description: Set to `1` to diff meta data instead of sources. - example: 1 - - in: query - name: missingok - schema: - type: string - enum: - - 1 - - 0 - description: Set to `1` to diff against an inexistent origin. - example: 1 - - in: query - name: nodiff - schema: - type: string - enum: - - 1 - - 0 - description: Set to `1` to only show changed files, and not details inside - files. - example: - - in: query - name: olinkrev - schema: - type: string - description: Link revision of the origin package. - - in: query - name: onlyissues - schema: - type: string - enum: - - 1 - - 0 - description: Set to `1` to show no source diff, only the tracker issues and - their change state. - example: 1 - - in: query - name: orev - schema: - type: string - description: Old revision. - - in: query - name: opackage - schema: - type: string - description: Old package. - - in: query - name: oproject - schema: - type: string - description: Old project. - - in: query - name: rev - schema: - type: string - description: Revision of the package. - - in: query - name: tarlimit - schema: - type: string - description: Limit the size of the diff of tar files to this amount of lines. - example: 100 - - in: query - name: unified - schema: - type: string - enum: - - 1 - - 0 - description: | - Set to `1` to use unified diff format. Same as setting `view=unified`. - - Setting `unified` to `1` takes precedence on the setting of the `view` parameter. - - See `view` parameter for details on the unified format. - example: 1 - - in: query - name: view - schema: - type: string - enum: - - unified - - xml - description: | - Set the format of the diff being returned. - - Don't pass the parameter for custom diff format. - - Set to `unified` for unified content. - - Set to `xml` for structured content in a `sourcediff` xml element. - example: unified - - in: query - name: withissues - schema: - type: string - enum: - - 1 - - 0 - description: Set to `1` to include parsed issue tracker issues and their change - state. - example: 1 - responses: - '200': - description: OK - content: - text/plain: - schema: - type: string - examples: - Without parameters. One character change: - description: Diff of adding an exclamation mark. - value: |2 - - spec files: - ----------- - --- hello_world.spec - +++ hello_world.spec - @@ -13,7 +13,7 @@ - %build - cat > hello_world.sh < hello_world.sh < - - - - - - - - @@ -13,7 +13,7 @@ - %build - cat > hello_world.sh <<EOF - #!/usr/bin/bash - -echo Hello world - +echo Hello world! - EOF - - %install - - - - - With nodiff=1: - description: Passing `nodiff=1` only shows changed files. - value: |2 - - spec files: - ----------- - --- hello_world.spec - +++ hello_world.spec - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Boolean: - description: Passing a value different than `0` or `1` to `nodiff`, - for example. - value: - code: 400 - origin: backend - summary: not boolean - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - '412': - description: | - Precondition Failed - - With `cacheonly=1`, and the diff is still not cached. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: 412 - origin: backend - summary: diff not yet in cache - details: 412 diff not yet in cache - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=fork": - post: - summary: Create a fork of a package taking the source from the scmsync parameter - description: | - Create a fork of a package taking the source from the scmsync parameter. - The target project is by default below home::branches namespace. - The target project will be setup to include the source project repository setup. - The source project must exists, the source package may not exist. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - name: scmsync - description: Checkout url for the source - in: query - required: true - schema: - type: string - - name: target_project - description: target project name, optional (default home::branches:) - in: query - schema: - type: string - - name: target_package - description: target package name - in: query - schema: - type: string - - in: query - name: force - schema: - type: string - description: 'Set to 1 to allow overwriting of a pre-existing package. - -' - example: 1 - - name: add_repositories_rebuild - in: query - schema: - type: string - enum: - - transitive - - direct - - local - - copy - description: Set one of the defined rebuild policies for new repositories - (`transitive`, `direct` or `local`) or copy it from the source project (`copy`) - - in: query - name: add_repositories_block - schema: - type: string - enum: - - all - - local - - never - description: Set to use defined block policy for new repositories. - responses: - '200': - description: ok - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - data: - - home:Admin - - hello_world - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - summary: - type: string - xml: - name: status - example: - code: not_found - summary: project not found - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=getprojectservices": - post: - summary: List all services related to a package. - description: | - List all services defined in the project for this package. - - Despite using the method `POST`, this endpoint doesn't alter any data. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: cmd - required: true - schema: - type: string - enum: - - getprojectservices - responses: - '200': - description: - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - mode: - type: string - xml: - attribute: true - xml: - name: service - xml: - wrapped: true - name: services - example: - - name: format_spec_file - mode: localonly - - name: download_files - mode: disabled - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=instantiate": - post: - summary: Instantiate a new package through a project link. - description: | - Instantiate a new package in the specified project based on the packages inherited - through a linked project (local). The new package will be a branch of the package - that lives in the linked project unless the `makeoriginolder` parameter is provided. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: makeoriginolder - schema: - type: string - description: | - Instead of creating a branch of the package, it will instantiate a copy - of the package and extend the `vrev` to ensure the copy represents a - newer version of the package. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: 403 - summary: package is already intialized here - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: unknown_package - summary: 'Package not found: openSUSE:Leap:15.0:Update/foo' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=linkdiff": - post: - summary: Return the diff of the linked package. - description: | - For a package with a link to another package, return the diff of the linked package. - - Despite using the method `POST`, this endpoint doesn't alter any data. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: file - schema: - type: string - description: Limit diff to the given file name. - example: hello_world.spec - deprecated: true - - in: query - name: file[] - schema: - type: array - elements: - type: string - description: Limit diff to the given file names. - example: - - hello_world.spec - - my_program.c - - in: query - name: filelimit - schema: - type: string - description: | - Limit the size of the diff to this amount of lines. - - By default it takes a built-in value of 200. - - Set to `0` to disable the limit. - example: 20 - - in: query - name: linkrev - schema: - type: string - description: Link revision in base package. Set to `base` to use the commit - revision. - example: base - - in: query - name: onlyissues - schema: - type: string - enum: - - 1 - - 0 - description: Set to `1` to show no source diff, only the tracker issues and - their change state. - example: 1 - - in: query - name: rev - schema: - type: string - description: Revision of the package. - - in: query - name: tarlimit - schema: - type: string - description: Limit the size of the diff of tar files to this amount of lines. - example: 100 - - in: query - name: unified - schema: - type: string - enum: - - 1 - - 0 - description: | - Set to `1` to use unified diff format. Same as setting `view=unified`. - - Setting `unified` to `1` takes precedence on the setting of the `view` parameter. - - See `view` parameter for details on the unified format. - example: 1 - - in: query - name: view - schema: - type: string - enum: - - unified - - xml - description: | - Set the format of the diff being returned. - - Don't pass the parameter for custom diff format. - - Set to `unified` for unified content. - - Set to `xml` for structured content in a `sourcediff` xml element. - example: unified - - in: query - name: withissues - schema: - type: string - enum: - - 1 - - 0 - description: Set to `1` to include parsed issue tracker issues and their change - state. - example: 1 - responses: - '200': - description: OK - content: - text/plain: - schema: - type: string - examples: - Without parameters. One word change: - value: |2 - - spec files: - ----------- - --- hello_world.spec - +++ hello_world.spec - @@ -1,7 +1,7 @@ - Name: hello_world - Version: 1 - Release: 1 - -Summary: Most simple RPM package - +Summary: Most simple RPM package branched - License: CC0-1.0 - - %description - With view=unified: - value: | - Index: hello_world.spec - =================================================================== - --- hello_world.spec (revision d1f45c7c7b5bf91353a4ec2042cbc53c) - +++ hello_world.spec (revision f03477e1b083c6499ee2c195e3340cdf) - @@ -1,7 +1,7 @@ - Name: hello_world - Version: 1 - Release: 1 - -Summary: Most simple RPM package - +Summary: Most simple RPM package branched - License: CC0-1.0 - - %description - With view=xml: - value: | - - - - - - - - - @@ -1,7 +1,7 @@ - Name: hello_world - Version: 1 - Release: 1 - -Summary: Most simple RPM package - +Summary: Most simple RPM package branched - License: CC0-1.0 - - %description - - - - - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Boolean: - description: Passing a value different than `0` or `1` to `unified`, - for example. - value: | - - - not boolean - - Not a Link: - description: The package doesn't cotain a `_link` file. - value: | - - - not a link - - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=linktobranch": - post: - summary: Turn link into a branch. - description: Convert a plain source link into a full branch. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: linkrev - schema: - type: string - description: 'Link revision in base package. Set to `base` to use the commit - revision. - -' - example: base - - in: query - name: rev - schema: - type: string - description: Revision of the package. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not A Link: - value: - code: 400 - origin: backend - summary: package is not a link - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to modify package test in project home:Admin - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=mergeservice": - post: - summary: Expand all server side generated files and adapt the _service file. - description: | - This command executes the following steps: - - Expand all server side generated files. Those are the files created by the services, starting with `_service:`. - - Modify The `_service` file: - - Preserve all those services which have the `mode` attribute set to `buildtime`. - - Remove the `_service` file only if there aren't any services with the `mode` attribute set to `buildtime`. - - An example of a `_service` file, before: - ``` - - - 2.11~alpha.%ci.%h - https://github.com/openSUSE/open-build-service.git - git - master - dist/obs-server.spec - - - - xz - *.tar - - - ``` - - An example of a `_service` file, after this command is run: - ``` - - - - xz - *.tar - - - ``` - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: comment - schema: - type: string - description: Set a comment. - example: Merge services. - responses: - '200': - description: Revision of the merge of the service file. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - version: - type: string - time: - type: string - user: - type: string - comment: - type: string - requestid: - type: string - xml: - name: revision - example: - rev: 8 - vrev: 8 - srcmd5: beb268dc9f786efaa585ac07e17fea47 - version: 2.10~pre - time: 1665060711 - user: Admin - comment: - requestid: - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Package Without _service file: - value: - code: 400 - origin: backend - summary: package has no service - Services Running: - value: - code: 400 - origin: backend - summary: service in progress - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to modify package test in project home:Admin - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=rebuild": - post: - deprecated: true - summary: Trigger a package rebuild. - description: | - Triggers a rebuild of the package. This endpoint - is broken and will be removed. - See [`POST /build/{project_name}?cmd=rebuild`](#/Build/post_build__project_name__cmd_rebuild). - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=release": - post: - summary: Release sources and binaries of a specified package. - description: | - Release sources and binaries of the specified package. If no release target is specified through - the optional parameters, it will trigger the release for all manual release targets - set on the specified project repository definitions for the specified package. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: target_project - schema: - type: string - description: | - The name of the release target project. Specify in which project the sources and - binaries are going to be released. You need to provide the `target_repository` - parameter as well. - example: OBS:Server:2.10 - - in: query - name: target_repository - schema: - type: string - description: | - The name of the release target repository. Specify in which repository the sources and - binaries are going to be released. You need to provide the `target_project` - parameter as well. - example: openSUSE_Tumbleweed - - in: query - name: repository - schema: - type: string - description: 'Limit the release to a certain repository, set on the project - repository definitions. - -' - example: openSUSE_Tumbleweed - - in: query - name: setrelease - schema: - type: string - description: 'If this parameter is present, the release will be tagged with - this parameter''s value. - -' - example: Build8.18 - - in: query - name: arch - schema: - type: string - description: The name of the architecture. Limit the release to a certain - architecture. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Missing Parameter: - value: - code: missing_parameter - summary: release action with specified target project needs also - "repository" and "target_repository" parameter - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to execute command 'release' for package hello_world - in project home:foo - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=remove_flag": - post: - summary: Remove a specific flag. - description: Remove a specific flag for a package. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: flag - required: true - schema: - type: string - enum: - - access - - binarydownload - - build - - debuginfo - - lock - - publish - - sourceaccess - - useforbuild - description: Name of the flag to be removed. - example: build - - in: query - name: repository - schema: - type: string - description: Repository for which the flag is to be removed. - example: openSUSE_Tumbleweed - - in: query - name: arch - schema: - type: string - description: Architecture for which the flag is to be removed. - example: x86_64 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Missing Parameter flag: - value: - code: missing_parameter - summary: Required Parameter flag missing - Invalid flag: - value: - code: invalid_flag - summary: 'Error: unknown flag type ''RANDOM_STRING'' not found.' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to modify package test in project home:Admin - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=runservice": - post: - summary: Trigger run of defined services. - description: Trigger run of defined services in the `_service` file. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: comment - schema: - type: string - description: Set a comment. - default: trigger service run - example: Trigger services once more. - - in: query - name: user - schema: - type: string - description: Set the user who triggers the services. - example: Iggy - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Package is _project: - value: - code: 400 - origin: backend - summary: triggerservicerun does not work with _project - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - No Permission to Run Services: - value: - code: cmd_execution_no_permission - summary: no permission to modify package test in project home:Admin - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - No Source Service Defined: - value: - code: not_found - summary: | - - no source service defined! -
404 no source service defined!
-
- tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=servicediff": - post: - summary: Return the diff of changes made by a service run. - description: | - Return the diff of changes made by a service run. - - Despite using the method `POST`, this endpoint doesn't alter any data. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: file - schema: - type: string - description: Limit diff to the given file name. - example: hello_world.spec - deprecated: true - - in: query - name: file[] - schema: - type: array - elements: - type: string - description: Limit diff to the given file names. - example: - - hello_world.spec - - my_program.c - - in: query - name: filelimit - schema: - type: string - description: | - Limit the size of the diff to this amount of lines. - - By default it takes a built-in value of 200. - - Set to `0` to disable the limit. - example: 20 - - in: query - name: onlyissues - schema: - type: string - enum: - - 1 - - 0 - description: Set to `1` to show no source diff, only the tracker issues and - their change state. - example: 1 - - in: query - name: rev - schema: - type: string - description: Revision of the package. - - in: query - name: tarlimit - schema: - type: string - description: Limit the size of the diff of tar files to this amount of lines. - example: 100 - - in: query - name: unified - schema: - type: string - enum: - - 1 - - 0 - description: | - Set to `1` to use unified diff format. Same as setting `view=unified`. - - Setting `unified` to `1` takes precedence on the setting of the `view` parameter. - - See `view` parameter for details on the unified format. - example: 1 - - in: query - name: view - schema: - type: string - enum: - - unified - - xml - description: | - Set the format of the diff being returned. - - Don't pass the parameter for custom diff format. - - Set to `unified` for unified content. - - Set to `xml` for structured content in a `sourcediff` xml element. - example: unified - - in: query - name: withissues - schema: - type: string - enum: - - 1 - - 0 - description: Set to `1` to include parsed issue tracker issues and their change - state. - example: 1 - responses: - '200': - description: OK - content: - text/plain: - schema: - type: string - examples: - No Changes: - description: If the last run of services didn't change the sources, - return empty. - value: '' - Without any value for view parameter: - value: | - new: - ---- - _service:obs_scm:obs-api-testsuite-rspec.spec - - spec files: - ----------- - - ++++++ new spec file: - --- _service:obs_scm:obs-api-testsuite-rspec.spec - +++ _service:obs_scm:obs-api-testsuite-rspec.spec - @@ -0,0 +1,73 @@ - +# - +# spec file for package obs-api-testsuite-rspec - +# - + - + - +Name: obs-api-testsuite-rspec - +Version: 2.10~pre - +Release: 0 - +Summary: The Open Build Service -- RSpec test suite - +License: GPL-2.0-only OR GPL-3.0-only - +Group: Productivity/Networking/Web/Utilities - +Url: http://www.openbuildservice.org - +Source0: open-build-service-%version.tar.xz - +BuildRequires: obs-api-testsuite-deps - +# rspec specific dependencies - +BuildRequires: chromedriver - +BuildRequires: xorg-x11-fonts - +BuildRoot: %{_tmppath}/%{name}-%{version}-build - +%if 0%{?disable_obs_frontend_test_suite} || 0%{?disable_obs_test_suite} - +ExclusiveArch: nothere - +%else - +ExclusiveArch: x86_64 - +%endif - + - + - +%description - +Running the RSpec test suite of the OBS frontend independently - +of packaging the application - + - +%prep - +%setup -q -n open-build-service-%{version} - + - +%build - +# run in build environment - +pushd src/backend/ - +rm -rf build - +ln -sf /usr/lib/build build - +popd - + - +pushd src/api - +# configure to the bundled gems - +bundle --local --path %_libdir/obs-api/ - + - +./script/prepare_spec_tests.sh - + - +export RAILS_ENV=test - +bin/rake db:setup - +bin/rails assets:precompile - + - +bin/rspec -f d --exclude-pattern 'spec/db/**/*_spec.rb' - + - +# now migration tests (if they fail they create tons of follow up errors, so run them last) - +bin/rspec -f d -P 'spec/db/**/*_spec.rb' - + - +%install - + - +# no result - +%files - + - +%changelog - With view=unified: - value: | - Index: _service:obs_scm:obs-api-testsuite-rspec.spec - =================================================================== - --- _service:obs_scm:obs-api-testsuite-rspec.spec (added) - +++ _service:obs_scm:obs-api-testsuite-rspec.spec (revision c63d8550ea46703ce56000277de12d1c) - @@ -0,0 +1,73 @@ - +# - +# spec file for package obs-api-testsuite-rspec - +# - [...] - +%changelog - Index: _service:obs_scm:obs-server.spec - =================================================================== - --- _service:obs_scm:obs-server.spec (added) - +++ _service:obs_scm:obs-server.spec (revision c63d8550ea46703ce56000277de12d1c) - @@ -0,0 +1,1120 @@ - +# - +# spec file for package obs-server - [...] - +Recommends: yum yum-metadata-parser repoview dpkg - +Recommends: deb >= 1.5 - (921 more lines skipped) - Index: _service:obs_scm:open-build-service-2.11~alpha.20221007T165328.9f99a31a.obscpio - =================================================================== - Binary file _service:obs_scm:open-build-service-2.11~alpha.20221007T165328.9f99a31a.obscpio (revision c63d8550ea46703ce56000277de12d1c) added - Index: _service:obs_scm:open-build-service.obsinfo - =================================================================== - --- _service:obs_scm:open-build-service.obsinfo (added) - +++ _service:obs_scm:open-build-service.obsinfo (revision c63d8550ea46703ce56000277de12d1c) - @@ -0,0 +1,4 @@ - +name: open-build-service - +version: 2.11~alpha.20221007T165328.9f99a31a - +mtime: 1665154408 - +commit: 9f99a31afe0ab435c1dd1d02be5f52fe4425b00f - text/xml: - schema: - type: object - properties: - name: - key: string - xml: - attribute: true - xml: - name: sourcediff - examples: - With view=xml: - value: | - - - - - - - - @@ -0,0 +1,73 @@ - +# - +# spec file for package obs-api-testsuite-rspec - [...] - + - +%changelog - - - - - @@ -0,0 +1,1120 @@ - +# - +# spec file for package obs-server - [...] - +Recommends: yum yum-metadata-parser repoview dpkg - +Recommends: deb >= 1.5 - - - - - - - - - @@ -0,0 +1,4 @@ - +name: open-build-service - +version: 2.11~alpha.20221007T165328.9f99a31a - +mtime: 1665154408 - +commit: 9f99a31afe0ab435c1dd1d02be5f52fe4425b00f - - - - - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Boolean: - description: Passing a value different than `0` or `1` to `unified`, - for example. - value: | - - - not boolean - - No Service Run: - value: | - - - no service was run for this revision - - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=set_flag": - post: - summary: Enable or disable a specific flag. - description: Enable or disable a specific flag for a package. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: flag - required: true - schema: - type: string - enum: - - access - - binarydownload - - build - - debuginfo - - lock - - publish - - sourceaccess - - useforbuild - description: Name of the flag to be set. - example: build - - in: query - name: status - required: true - schema: - type: string - enum: - - enable - - disable - description: Status of the flag to be set. - example: enable - - in: query - name: repository - schema: - type: string - description: Repository for which the flag is to be set. - example: openSUSE_Tumbleweed - - in: query - name: arch - schema: - type: string - description: Architecture for which the flag is to be set. - example: x86_64 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Missing Parameter flag: - value: - code: missing_parameter - summary: Required Parameter flag missing - Missing Parameter status: - value: - code: missing_parameter - summary: Required Parameter status missing - Invalid flag: - value: - code: invalid_flag - summary: 'Error: unknown flag type ''RANDOM_STRING'' not found.' - Invalid status: - value: - code: invalid_flag - summary: 'Error: unknown status flag ''RANDOM_STRING''' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to modify package test in project home:Admin - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=showlinked": - post: - summary: List all packages linking to this one. - description: List all packages linking to this one. Despite using the method - `POST`, this endpoint doesn't alter any data. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - xml: - name: package - xml: - name: collection - wrapped: true - examples: - No results: - value: | - - - Two linked packages: - value: - - name: hello_world - project: home:Admin:branches:home:Admin - - name: hello_world2 - project: home:Admin:branches:home:Admin - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=undelete": - post: - summary: Undelete the package. - description: Undelete the package. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: comment - schema: - type: string - description: Set a comment. - default: package was undeleted - example: The package was removed by mistake. Undeleting. - - in: query - name: time - schema: - type: integer - description: | - Set the time of the undelete operation, expressed in seconds since the epoch. - - Set to `1` to set the time of the undelete operation to the same time the package was deleted. - examples: - Seconds Since Epoch: - value: 1664912989 - Same as Delete Time: - value: 1 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Package Exists: - value: - code: package_exists - summary: the package exists already home:Admin hello_world - Time is Not a Number: - value: - code: 400 - origin: backend - summary: 'not a number: ''RANDOM_STRING''' - Time is Less than Time in Last Commit: - value: - code: 400 - origin: backend - summary: specified time is less than time in last commit - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Package Was Not Deleted: - value: - code: 403 - summary: package 'hello_world' was not deleted - details: 403 package 'hello_world' was not deleted - No Permission to Create Package: - value: - code: cmd_execution_no_permission - summary: no permission to create package in project home:Admin - No Permission to Set the Time: - value: - code: cmd_execution_no_permission - summary: Only administrators are allowed to set the time - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=unlock": - post: - summary: Unlock a locked package. - description: Unlock a locked package (`` flag present - in the package `_meta` file). - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: comment - required: true - schema: - type: string - description: Comment to be included in the revision history of the `_meta` - file - example: Locking the package is no longer needed - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Missing Parameter: - value: - code: missing_parameter - summary: Required Parameter comment missing - Not locked: - value: - code: not_locked - summary: package 'home:Foo/hello_world' is not locked - '403': - description: Forbidden - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to modify package ruby in project home:Foo - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: unknown_package - summary: 'Package not found: openSUSE:Leap:15.0:Update/foo' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=updatepatchinfo": - post: - summary: Update the issues listed in the `_patchinfo` file of a specified package. - description: | - Update the issues listed in the `_patchinfo` file of a specified package, based on - infos available through the issue trackers. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: cmd_execution_no_permission - summary: no permission to modify package patchinfo in project openSUSE:Maintenance:123 - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?cmd=waitservice": - post: - summary: Return when the last run of defined services has finished. - description: | - Return an `Ok` code when the last run of defined services in the `_service` file has finished. - - If a run of services is in progress, wait until all services finish. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Service Not Installed: - value: - code: 400 - origin: backend - summary: " 400 remote error: /usr/lib/obs/service//set_version.service - \ No such file or directory (http://backend:5152/sourceupdate/home:Admin/obs-server?timeout=3600)" - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - No Permission to Wait for Services: - value: - code: cmd_execution_no_permission - summary: no permission to modify package test in project home:Admin - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}?view=info": - get: - summary: Show source version, md5sums and build description files of a package. - description: Show source version, md5sums and build description files of a package, - among other information. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: query - name: view - schema: - type: string - enum: - - cpio - - getmultibuild - - info - - issues - - products - - productrepositories - description: | - Specify which information about a package should be returned. - - * `info`: Show source version, md5sums and build description files, among other information. - * `cpio`, `getmultibuild`, `issues`, `products`, `productrepositories`: - See this [other endpoint](<#/Sources - Files/get_source__project_name___package_name_>) for details. - example: info - - in: query - name: arch - schema: - type: string - description: Filter by architecture name. - example: x86_64 - - in: query - name: nofilename - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to prevent from showing filename elements. Shows only - the `sourceinfo` root element. - example: 1 - - in: query - name: repository - schema: - type: string - description: Filter by repository name. - example: openSUSE_Tumbleweed - - in: query - name: parse - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to show more details, like `originproject`, `linked - package`, `name`, `version`, `release`, `subpacks`, `deps`, and `prereqs` - elements. - example: 1 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - package: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - verifymd5: - type: string - xml: - attribute: true - metamd5: - type: string - xml: - attribute: true - filename: - type: string - originproject: - type: string - linked: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - name: - type: string - version: - type: string - release: - type: string - revtime: - type: string - error: - type: string - subpacks: - type: array - items: - type: string - deps: - type: array - items: - type: string - prereqs: - type: array - items: - type: string - xml: - name: sourceinfo - examples: - Without Any Other Parameters: - value: - package: texlive-specs-w - rev: 9f5336fcf6e4521b6a9587b02087eef9 - vrev: 55 - srcmd5: 9f5336fcf6e4521b6a9587b02087eef9 - verifymd5: 9b49b7314f5d0dfd8002cd329e048f73 - filename: texlive-specs-w.spec - originproject: openSUSE:Factory:Rings:1-MinimalX - linked: - - project: openSUSE:Factory:Rings:0-Bootstrap - package: textlive-specs-w - - project: openSUSE:Factory:Rings:1-MinimalX - package: textlive-specs-w - With Parameter nofilename=1: - value: - package: texlive-specs-w - rev: 9f5336fcf6e4521b6a9587b02087eef9 - vrev: 55 - srcmd5: 9f5336fcf6e4521b6a9587b02087eef9 - verifymd5: 9b49b7314f5d0dfd8002cd329e048f73 - originproject: openSUSE:Factory:Rings:1-MinimalX - linked: - - project: openSUSE:Factory:Rings:0-Bootstrap - package: textlive-specs-w - - project: openSUSE:Factory:Rings:1-MinimalX - package: textlive-specs-w - With Parameter parse=1: - value: - package: texlive-specs-w - rev: 9f5336fcf6e4521b6a9587b02087eef9 - vrev: 55 - srcmd5: 9f5336fcf6e4521b6a9587b02087eef9 - verifymd5: 9b49b7314f5d0dfd8002cd329e048f73 - filename: texlive-specs-w.spec - originproject: openSUSE:Factory:Rings:1-MinimalX - linked: - - project: openSUSE:Factory:Rings:0-Bootstrap - package: textlive-specs-w - - project: openSUSE:Factory:Rings:1-MinimalX - package: textlive-specs-w - name: textlive-specs-w - version: 2023 - release: 0 - subpacks: - - texlive-specs-w - - texlive-tablists - deps: - - texlive-kpathsea - - texlive-tie-bin - prereqs: - - texlive-filesystem - - coreutils - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Boolean: - description: Passing a value different than `0` or `1` to `parse`, - for example. - value: - code: 400 - summary: not boolean - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Packages - "/source/{project_name}/{package_name}/{file_name}": - get: - summary: Read a specified source file - description: Read a specified source file and return the content - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: file_name - schema: - type: string - required: true - description: The file name - example: ctris-0.42.1-4.1.x86_64.rpm - - in: query - name: rev - schema: - type: integer - description: Retrieve the file at a specific package revision. - example: 3 - - in: query - name: meta - schema: - type: integer - enum: - - 1 - - 0 - description: Set to `1` to show meta data instead of sources. - example: 1 - - in: query - name: deleted - schema: - type: integer - enum: - - 1 - - 0 - description: Set to 1 to retrieve a file from a deleted project or package. - example: 0 - - in: query - name: expand - schema: - type: integer - enum: - - 1 - - 0 - description: Set to `1` to include files from linked packages. - example: 1 - - name: view - in: query - schema: - type: string - enum: - - blame - description: With `view=blame`, information about who changed the file. - example: blame - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Unknown parameter - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown parameter: - value: - code: unknown_parameter - summary: unknown parameter 'limit' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - Unknown File: - value: - code: unknown_file - summary: 'File not found: home:some_project/some_package/some_file' - tags: - - Sources - Files - delete: - summary: Deletes a specified source file of a package. - description: Deletes a specified source file of a package of a project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: file_name - schema: - type: string - required: true - description: The file name - example: ctris-0.42.1-4.1.x86_64.rpm - - in: query - name: rev - schema: - type: string - description: | - If set to 'upload', multiple files can be deleted in just one commit. - Delete first the files with `rev=upload`, then close the single commit by another request call with `cmd=commit` - example: upload - - in: query - name: meta - schema: - type: integer - enum: - - 1 - - 0 - description: Set to `1` to delete meta data instead of sources. - example: 1 - - in: query - name: comment - schema: - type: string - description: A comment that will appear in the package's comment section explaining - the reason behind the deletion of the file. - example: File deleted because it is useless. - - in: query - name: keeplink - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to preserve the link (`_link` file) on the source. - example: 1 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - Unknown File: - value: - code: unknown_file - summary: 'File not found: home:some_project/some_package/some_file' - tags: - - Sources - Files - put: - summary: Write a specified source file into a package. - description: Write a specified source file of a package of a project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: file_name - schema: - type: string - required: true - description: The file name - example: ctris-0.42.1-4.1.x86_64.rpm - - in: query - name: rev - schema: - type: string - description: | - If set to 'upload', multiple files can be uploaded in just one commit. - Upload first the files with `rev=upload`, then close the single commit by another request call with `cmd=commit` - example: upload - - in: query - name: meta - schema: - type: integer - enum: - - 1 - - 0 - description: Set to `1` to write meta data instead of sources. - example: 1 - - in: query - name: comment - schema: - type: string - description: A comment that will appear in the package's comment section explaining - the reason behind the creation of the new file. - example: Added new configuration file. - - in: query - name: keeplink - schema: - type: string - enum: - - 1 - - 0 - default: 0 - description: Set to `1` to preserve the link (`_link` file) on the source. - example: 1 - requestBody: - content: - plain/text: - schema: - type: string - properties: - file: - type: string - format: binary - responses: - '200': - description: Updates the artifact's file contents - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - version: - type: string - time: - type: string - user: - type: string - comment: - type: string - requestid: - type: string - xml: - name: revision - example: - rev: 28 - vrev: 28 - srcmd5: 2e0bd85c089953743bd30eeacf70989b - version: 1 - time: 1678787266 - user: Admin - comment: - requestid: - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - Unknown File: - value: - code: unknown_file - summary: 'File not found: home:some_project/some_package/some_file' - tags: - - Sources - Files - "/source/{project_name}/{package_name}/{binary_filename}/_attribute/{attribute_name}": - get: - summary: Get values of an attribute - description: Get attribute and attribute values of a given attribute and binary - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: binary_filename - schema: - type: string - required: true - description: Binary filename - example: ctris-0.42.1-8.1.x86_64.rpm - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - namespace: - type: string - xml: - attribute: true - binary: - type: string - xml: - attribute: true - xml: - name: attribute - xml: - name: attributes - wrapped: true - example: - name: AllowSubmitToMaintenanceRelease - namespace: OBS - binary: Ceph - '400': - description: Bad request - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_attribute: - value: - code: invalid_attribute - summary: Attribute '{attribute_name}' must be in the $NAMESPACE:$NAME - style - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - Unknown Attribute: - value: - code: unknown_attribute - summary: Attribute some_attribute does not exist - tags: - - Sources - Files - delete: - summary: Removes a specified attribute - description: Removes a specified attribute from a package - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: binary_filename - schema: - type: string - required: true - description: Binary filename - example: ctris-0.42.1-8.1.x86_64.rpm - - in: path - name: attribute_name - schema: - type: string - required: true - description: The name of the attribute - example: OBS:OwnerRootProjectTest - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Wrong value for deleted parameter. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - invalid_attribute: - value: - code: invalid_attribute - summary: Attribute 'OwnerRootProjectTest' must be in the $NAMESPACE:$NAME - style - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - Unknown Attribute: - value: - code: unknown_attribute - summary: Attribute some_attribute does not exist - tags: - - Sources - Files - "/source/{project_name}/{package_name}/{binary_filename}/_attribute": - get: - summary: Get list of attributes and attribute values with binary parameter - description: Get a list of all attributes and their values for a given binary - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: binary_filename - schema: - type: string - required: true - description: Binary filename - example: ctris-0.42.1-8.1.x86_64.rpm - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - namespace: - type: string - xml: - attribute: true - binary: - type: string - xml: - attribute: true - xml: - name: attribute - xml: - name: attributes - wrapped: true - example: - - name: AllowSubmitToMaintenanceRelease - namespace: OBS - binary: SLES-cd-DVD-x86_64 - - name: OwnerRootProjectTest - namespace: OBS - binary: Ceph - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Files - post: - summary: Add an attribute - description: Add an attribute with binary to a package - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - - in: path - name: binary_filename - schema: - type: string - required: true - description: Binary filename - example: ctris-0.42.1-8.1.x86_64.rpm - requestBody: - description: Attributes you want to update - content: - application/xml; charset=utf-8: - schema: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - namespace: - type: string - xml: - attribute: true - binary: - type: string - xml: - attribute: true - xml: - name: attribute - xml: - name: attributes - wrapped: true - example: - name: MaintenanceProject - namespace: OBS - binary: Ceph - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Package: - value: - code: unknown_package - summary: 'Package not found: home:some_project/some_package' - tags: - - Sources - Files - "/staging/{project_name}/backlog": - get: - summary: List the requests in the staging backlog. - description: List the requests that can be assigned to the staging project (backlog). - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: List of request in the staging backlog. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - request: - type: array - items: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - creator: - type: string - example: foo-user - xml: - attribute: true - type: - type: string - example: submit - xml: - attribute: true - state: - type: string - example: review - xml: - attribute: true - package: - type: string - example: hello_world - xml: - attribute: true - superseded_by: - type: integer - example: 43 - xml: - attribute: true - updated: - type: string - example: '2023-04-24T08:34:39Z' - xml: - attribute: true - xml: - name: backlog - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - project_without_staging_workflow: - value: - code: not_found - sumary: Project project_name doesn't have an associated Staging - Workflow - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Staging Workflow - "/staging/{project_name}/excluded_requests": - get: - summary: List the requests excluded from a staging workflow. - description: List the requests excluded from the staging workflow associated - to the specified project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: List of requests that are excluded from the staging workflow - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - request: - type: array - items: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - description: - type: string - example: Missing dependencies - xml: - attribute: true - xml: - name: excluded_requests - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - project_without_staging_workflow: - value: - code: not_found - sumary: Project project_name doesn't have an associated Staging - Workflow - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Staging Workflow - post: - summary: Exclude requests from the staging workflow. - description: Add requests to the list of excluded requests of the staging workflow - associated to the specified project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - requestBody: - description: List of requests to be excluded from the staging workflow - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - request: - type: array - items: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - description: - type: string - example: Missing dependencies - xml: - attribute: true - xml: - name: excluded_requests - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Excluding Failed: - value: - code: invalid_request - summary: 'Excluding requests for project_name failed:' - Invalid XML Format: - value: - code: invalid_xml_format - summary: XML format is not valid - Empty Body: - value: - code: invalid_request - summary: Empty body - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - project_without_staging_workflow: - value: - code: not_found - sumary: Project project_name doesn't have an associated Staging - Workflow - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Staging Workflow - delete: - summary: Delete the specified requests from the list of excluded requests. - description: Stop excluding the requests from the staging workflow. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - requestBody: - description: List of requests to stop excluding from the staging workflow - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - request: - type: array - items: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - description: - type: string - example: Missing dependencies - xml: - attribute: true - xml: - name: excluded_requests - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Invalid Request: - value: - code: invalid_request - summary: 'Error while unexcluding requests: Requests with number - ID are not excluded.' - Invalid XML Format: - value: - code: invalid_xml_format - summary: XML format is not valid - Empty Body: - value: - code: invalid_request - summary: Empty body - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - project_without_staging_workflow: - value: - code: not_found - sumary: Project project_name doesn't have an associated Staging - Workflow - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Staging Workflow - "/staging/{project_name}/staged_requests": - delete: - summary: Delete requests from any of the staging projects. - description: Delete the given requests from any of the staging projects they - were staged in. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - requestBody: - description: List of requests to be deleted. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - request: - type: array - items: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - xml: - name: requests - examples: - Multiple Requests: - value: - request: - - id: 1 - - id: 2 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Request Not Staged: - value: - code: invalid_request - summary: 'Error while unassigning requests: Request ''ID'' is - not staged' - Request Not In Staging: - value: - code: invalid_request - summary: 'Error while unassigning requests: Requests with number: - ID don''t belong to Staging: project_name' - Unknown Request: - value: - code: invalid_request - summary: 'Error while unassigning requests: Requests with number: - 212 don''t exist' - Wrong Request Number: - value: - code: invalid_request - summary: Error while parsing the numbers of the requests - Invalid XML Format: - value: - code: invalid_xml_format - summary: XML format is not valid - Empty Body: - value: - code: invalid_request - summary: Empty body - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Without Staging Workflow: - value: - code: not_found - sumary: Project project_name doesn't have an associated Staging - Workflow - Unknown Project: - value: - code: not_found - summary: Project 'project_name' not found. - tags: - - Staging Workflow - "/staging/{project_name}/staging_projects": - get: - summary: List all the staging projects of a staging workflow. - description: | - List the staging projects of the staging workflow associated to the specified project. - Extra information can be requested by adding any combination of these parameters in the URL: `requests`, `status` and `history`. - - If `requests` is present, the output includes the staged, untracked and obsolete requests as well as missing reviews. - - If `status` is present, the output includes the overall state and the status xml (broken packages, missing reviews, checks, etc.) - - If `history` is present, the output includes the history of the staging project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - name: requests - in: query - schema: - type: string - example: 1 - description: '"Set to `1` if you want to include the staged, untracked and - obsolete requests as well as missing reviews, otherwise don''t pass this - query parameter." - -' - - name: status - in: query - schema: - type: string - example: 1 - description: '"Set to `1` if you want to include the overall state and the - status xml (broken packages, missing reviews, checks, etc.), otherwise don''t - pass this query parameter" - -' - - name: history - in: query - schema: - type: string - example: 1 - description: Set to `1` if you want to include the history of the staging - project, otherwise don't pass this query parameter. - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - staging_project: - type: array - items: - type: object - properties: - name: - type: string - example: openSUSE:Factory - xml: - attribute: true - state: - type: string - example: empty - xml: - attribute: true - staged_requests: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - untracked_requests: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - obsolete_requests: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - missing_reviews: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - building_repositories: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - broken_packages: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - checks: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - missing_checks: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - history: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - xml: - name: staging_project - xml: - name: staging_projects - examples: - Simple Result: - value: - staging_project: - - name: openSUSE:Factory:Staging:A - - name: openSUSE:Factory:Staging:B - Detailed Result: - value: - staging_project: - name: openSUSE:Factory:Staging:A - state: empty - staged_requests: - count: 0 - untracked_requests: - count: 0 - obsolete_requests: - count: 0 - missing_reviews: - count: 0 - building_repositories: - count: 0 - broken_packages: - count: 0 - checks: - count: 0 - missing_checks: - count: 0 - history: - count: 0 - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Project Without Staging Workflow: - value: - code: project_has_no_staging_workflow - summary: No staging workflow for project 'project_name' - Unknown Project: - value: - code: not_found - summary: Project 'project_name' not found. - tags: - - Staging Workflow - post: - summary: Create staging projects - description: Create staging projects on the staging workflow associated to the - specified project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - requestBody: - description: List of the names of the staging projects you want to add to - the staging workflow - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - staging_project: - type: array - items: - type: string - example: openSUSE:Factory:Staging:C - xml: - name: workflow - examples: - Multiple Staging Projects: - value: - staging_project: - - openSUSE:Factory:Staging:C - - openSUSE:Factory:Staging:D - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Invalid Project Name: - value: - code: invalid_request - summary: 'Staging Projects for package_name failed: Project "0": - Name is illegal.' - Already Assigned: - value: - code: invalid_request - summary: 'Staging Projects for project_name failed: Project "project_name": - is already assigned to a staging workflow.' - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Project Without Staging Workflow: - value: - code: not_found - summary: Project project_name doesn't have an associated Staging - Workflow - Unknown Project: - value: - code: not_found - summary: Project 'project_name' not found. - tags: - - Staging Workflow - "/staging/{project_name}/staging_projects/{staging_project_name}": - get: - summary: Gets the overall state of a staging project. - description: | - Extra information can be requested by adding any combination of these parameters in the URL: requests, status and history. - - If requests is present, the output includes the staged, untracked and obsolete requests as well as missing reviews. - - If status is present, the output includes the overall state and the status xml (broken packages, missing reviews, checks, etc.) - - If history is present, the output includes the history of the staging project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: staging_project_name - schema: - type: string - required: true - description: Staging Project Name - example: openSUSE:Factory:Staging:A - - name: requests - in: query - schema: - type: string - enum: - - 1 - description: 'Set to `1` if you want to include the staged, untracked and - obsolete requests as well as missing reviews, otherwise don''t pass this - query parameter. - -' - - name: status - in: query - schema: - type: string - enum: - - 1 - description: 'Set to `1` if you want to include the overall state and the - status xml (broken packages, missing reviews, checks, etc.), otherwise don''t - pass this query parameter. - -' - - name: history - in: query - schema: - type: string - enum: - - 1 - description: Set to `1` if you want to include the history of the staging - project, otherwise don't pass this query parameter. - responses: - '200': - description: Get the state of a staging project. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: openSUSE:Factory - xml: - attribute: true - state: - type: string - example: empty - xml: - attribute: true - staged_requests: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - untracked_requests: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - obsolete_requests: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - missing_reviews: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - building_repositories: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - broken_packages: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - checks: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - missing_checks: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - history: - type: object - properties: - count: - type: integer - example: 0 - xml: - attribute: true - xml: - name: staging_project - example: - name: home:Iggy:Staging:A - state: empty - staged_requests: - count: 0 - untracked_requests: - count: 0 - obsolete_requests: - count: 0 - missing_reviews: - count: 0 - building_repositories: - count: 0 - broken_packages: - count: 0 - checks: - count: 0 - missing_checks: - count: 0 - history: - count: 0 - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not_found: - summary: Staging Workflow Project Not Found - value: - code: not_found - summary: Project home:Adminn not found. - staging_project_not_found: - summary: Staging Project Name Not Found - value: - code: staging_project_not_found - details: Staging Project "home:Admin:Staging:AA" does not exist. - tags: - - Staging Workflow - "/staging/{project_name}/staging_projects/{staging_project_name}/accept": - post: - summary: Accept a staging project - description: | - This accepts all staged requests and sets the project state back to 'empty'. - Will return in an error if staging project is not acceptable, unless force is given. You can force - accept staging projects with building or failing packages, but not with missing reviews - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: staging_project_name - schema: - type: string - required: true - description: Staging Project Name - example: openSUSE:Factory:Staging:A - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - staging_project_not_in_acceptable_state: - summary: Staging Project is not in an acceptable state - value: - code: staging_project_not_in_acceptable_state - summary: 'Staging Project is not acceptable: empty is not an acceptable - state' - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not_found: - summary: Staging Workflow Project Not Found - value: - code: not_found - summary: Project home:Adminn not found. - staging_project_not_found: - summary: Staging Project Name Not Found - value: - code: staging_project_not_found - details: Staging Project "home:Admin:Staging:AA" does not exist. - tags: - - Staging Workflow - "/staging/{project_name}/staging_projects/{staging_project_name}/copy/{staging_project_copy_name}": - post: - summary: Copy a staging project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: staging_project_name - schema: - type: string - required: true - description: Staging Project Name - example: openSUSE:Factory:Staging:A - - in: path - name: staging_project_copy_name - schema: - type: string - required: true - description: The name of the staging project's copy - example: openSUSE:Factory:Staging:B - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - not_found: - summary: Staging Workflow Project Not Found - value: - code: not_found - summary: Project home:Adminn not found. - staging_project_not_found: - summary: Staging Project Name Not Found - value: - code: staging_project_not_found - details: Staging Project "home:Admin:Staging:AA" does not exist. - tags: - - Staging Workflow - "/staging/{project_name}/staging_projects/{staging_project_name}/staged_requests": - get: - summary: List all the staged requests of a staging project. - description: List all the requests that are already associated to a staging - project (staged requests). - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: staging_project_name - schema: - type: string - required: true - description: Staging Project Name - example: openSUSE:Factory:Staging:A - responses: - '200': - description: List of staged requests. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - request: - type: array - items: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - creator: - type: string - example: foo-user - xml: - attribute: true - type: - type: string - example: submit - xml: - attribute: true - state: - type: string - example: review - xml: - attribute: true - package: - type: string - example: hello_world - xml: - attribute: true - superseded_by: - type: integer - example: 43 - xml: - attribute: true - updated: - type: string - example: '2023-04-24T08:34:39Z' - xml: - attribute: true - xml: - name: staged_requests - examples: - Multiple Requests: - value: - request: - - id: 1 - creator: Iggy - type: submit - state: accepted - package: package_a - updated_at: '2023-04-24T08:34:39Z' - - id: 2 - creator: Dan - type: submit - state: review - package: package_b - superseded_by: 3 - updated_at: '2022-02-22T02:22:22Z' - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Project Without Staging Workflow: - value: - code: not_found - summary: Project project_name doesn't have an associated Staging - Workflow - Unknown Staging Project: - value: - code: not_found - summary: 'Staging Project ''staging_project_name'' not found in - Staging: ''project_name''' - Unknown Project: - value: - code: not_found - summary: Project 'project_name' not found. - tags: - - Staging Workflow - post: - summary: Add requests to the staging project. - description: | - Add requests to the specified staging project except those that are excluded from the staging workflow. - Pass `remove_exclusion` to stop excluding the requests before adding them to the staging project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: staging_project_name - schema: - type: string - required: true - description: Staging Project Name - example: openSUSE:Factory:Staging:A - - in: query - name: remove_exclusion - schema: - type: string - description: | - Set to `1` if you want to stop excluding the specified requests before you add them to the staging project. - Don't pass this parameter to only stage the requests that are not excluded. - example: 1 - requestBody: - description: List of requests to be added to the staging project. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - request: - type: array - items: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - xml: - name: requests - examples: - Multiple Requests: - value: - request: - - id: 1 - - id: 2 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - With Excluded Requests: - value: - code: invalid_request - summary: 'Request ID currently excluded from project project_name. - Use --remove-exclusion if you want to force this action. - -' - Unknown Request: - value: - code: invalid_request - summary: Request ID doesn't exist - Invalid XML Format: - value: - code: invalid_xml_format - summary: XML format is not valid - Empty Body: - value: - code: invalid_request - summary: Empty body - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Without Staging Workflow: - value: - code: not_found - sumary: Project project_name doesn't have an associated Staging - Workflow - Unknown Staging Project: - value: - code: not_found - summary: 'Staging Project ''project_name:Staging:G'' not found - in Staging: ''project_name''' - Unknown Project: - value: - code: not_found - summary: Project 'project_name' not found. - '424': - description: Unacceptable State - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unacceptable State: - value: - code: staging_project_not_in_acceptable_state - sumary: 'Can''t change staged requests: Project ''project_name'' - is being accepted.' - tags: - - Staging Workflow - delete: - summary: Delete requests from the staging project. - description: Delete the given requests from the staging project they were staged - in. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: staging_project_name - schema: - type: string - required: true - description: Staging Project Name - example: openSUSE:Factory:Staging:A - requestBody: - description: List of requests to be removed from the staging project. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - request: - type: array - items: - type: object - properties: - id: - type: integer - example: 42 - xml: - attribute: true - xml: - name: requests - examples: - Multiple Requests: - value: - request: - - id: 1 - - id: 2 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Request Not Staged: - value: - code: invalid_request - summary: 'Error while unassigning requests: Request ''ID'' is - not staged' - Request Not In Staging: - value: - code: invalid_request - summary: 'Error while unassigning requests: Requests with number: - ID don''t belong to Staging: project_name' - Wrong Request Number: - value: - code: invalid_request - summary: Error while parsing the numbers of the requests - Invalid XML Format: - value: - code: invalid_xml_format - summary: XML format is not valid - Empty Body: - value: - code: invalid_request - summary: Empty body - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Without Staging Workflow: - value: - code: not_found - sumary: Project project_name doesn't have an associated Staging - Workflow - Unknown Project: - value: - code: not_found - summary: Project 'project_name' not found. - tags: - - Staging Workflow - "/staging/{project_name}/workflow": - post: - summary: Create a staging workflow for the specified project - description: Create a staging workflow associated to the project and the manager - group specified in the body of the request - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - requestBody: - description: Title of the staging workflow's managers group - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - managers: - type: string - example: group-test - xml: - attribute: true - xml: - name: workflow - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Staging Workflow Exists: - description: The project is already associated to a staging workflow - value: - code: staging_workflow_exists - summary: 'Project project_name already has an associated Staging - Workflow with id: ID' - Invalid XML Format: - value: - code: invalid_xml_format - summary: XML format is not valid - Empty Body: - value: - code: invalid_request - summary: Empty body - Invalid Request: - value: - code: invalid_request - summary: 'Staging for project_name couldn''t be created:' - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Staging Workflow - put: - summary: Change the managers group of a staging workflow - description: Change the managers group of the staging workflow associated to - the specified project. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - requestBody: - description: Title of the staging workflow's managers group - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - managers: - type: string - example: group-test - xml: - attribute: true - xml: - name: workflow - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '400': - description: | - Bad Request. - - XML Schema used for body validation: [status.rng](../schema/status.rng). - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Invalid XML Format: - value: - code: invalid_xml_format - summary: XML format is not valid - Empty Body: - value: - code: invalid_request - summary: Empty body - Invalid Request: - value: - code: invalid_request - summary: 'Staging for project_name couldn''t be updated:' - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - project_without_staging_workflow: - value: - code: not_found - sumary: Project project_name doesn't have an associated Staging - Workflow - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Staging Workflow - delete: - summary: Delete the staging workflow of the specified project - description: | - Delete the staging workflow associated to the given project (a.k.a staging workflow project). - The staging projects associated to that workflow are not removed unless the parameter `with_staging_projects` is given. - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - name: with_staging_projects - in: query - schema: - type: integer - description: | - Set to `1` if you want to delete all the staging projects associated to the staging workflow when it is deleted. - Staging projects' names usually look like: project_name:Staging:A, project_name:Staging:B etc. - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - project_without_staging_workflow: - value: - code: not_found - sumary: Project project_name doesn't have an associated Staging - Workflow - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Staging Workflow - "/statistics": - get: - deprecated: true - summary: This endpoint is deprecated - description: This endpoint is no longer supported or might not work as expected. - tags: - - Statistics - "/statistics/active_request_creators/{project_name}": - get: - deprecated: true - summary: This endpoint is deprecated - description: This endpoint is no longer supported or might not work as expected. - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - tags: - - Statistics - "/statistics/activity/{project_name}/{package_name}": - get: - deprecated: true - summary: This endpoint is deprecated - description: This endpoint is no longer supported or might not work as expected. - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - tags: - - Statistics - "/statistics/added_timestamp/{project_name}/{package_name}": - get: - deprecated: true - summary: This endpoint is deprecated - description: This endpoint is no longer supported or might not work as expected. - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - tags: - - Statistics - "/statistics/global_counters": - get: - deprecated: true - summary: This endpoint is deprecated - description: This endpoint is no longer supported or might not work as expected. - tags: - - Statistics - "/statistics/latest_added": - get: - summary: Get a list of last added project and packages - description: Get a list of last added project and packages - security: - - basic_authentication: [] - parameters: - - in: query - name: limit - schema: - type: integer - description: Override default maximum value of 10 entries to be returned. - example: 20 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - project: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - packages: - type: integer - xml: - attribute: true - activity: - type: number - xml: - attribute: true - created: - type: string - xml: - attribute: true - updated: - type: string - xml: - attribute: true - package: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - name: - type: string - xml: - attribute: true - activity: - type: number - xml: - attribute: true - created: - type: string - xml: - attribute: true - updated: - type: string - xml: - attribute: true - xml: - name: package - xml: - name: latest_added - example: - package: - - name: pgbackrest - project: openSUSE:Factory:Staging:adi:24 - created: '2023-06-01T07:07:24Z' - project: - - name: openSUSE:Factory:Staging:adi:24 - created: '2023-06-01T07:07:22Z' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Statistics - "/statistics/latest_updated": - get: - summary: Get a list of last updated project and packages - description: Get a list of last updated project and packages - security: - - basic_authentication: [] - parameters: - - in: query - name: limit - schema: - type: integer - description: Override default maximum value of 10 entries to be returned. - example: 20 - - in: query - name: timelimit - schema: - type: integer - description: Limit the maximum age to this number of days. - example: 1 - - in: query - name: prjfilter - schema: - type: string - description: Filter by project name. - example: openSUSE:Factory - - in: query - name: pkgfilter - schema: - type: string - description: Filter by package name. - example: 0ad - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - project: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - packages: - type: integer - xml: - attribute: true - activity: - type: number - xml: - attribute: true - created: - type: string - xml: - attribute: true - updated: - type: string - xml: - attribute: true - package: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - name: - type: string - xml: - attribute: true - activity: - type: number - xml: - attribute: true - created: - type: string - xml: - attribute: true - updated: - type: string - xml: - attribute: true - xml: - name: package - xml: - name: latest_updated - example: - package: - - name: calc - project: openSUSE:Factory:Staging:adi:26 - created: '2023-06-01T07:07:36Z' - project: - - name: openSUSE:Factory:Staging:adi:26 - created: '2023-06-01T07:07:27Z' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Statistics - "/statistics/maintenance_statistics/{project_name}": - get: - deprecated: true - summary: This endpoint is deprecated - description: This endpoint is no longer supported or might not work as expected. - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - tags: - - Statistics - "/statistics/most_active_packages": - get: - summary: Get a list of the most active packages - description: Get a list of the most active packages - security: - - basic_authentication: [] - parameters: - - in: query - name: limit - schema: - type: integer - description: Override default maximum value of 10 entries to be returned. - example: 20 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - project: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - packages: - type: integer - xml: - attribute: true - activity: - type: number - xml: - attribute: true - created: - type: string - xml: - attribute: true - updated: - type: string - xml: - attribute: true - package: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - name: - type: string - xml: - attribute: true - activity: - type: number - xml: - attribute: true - created: - type: string - xml: - attribute: true - updated: - type: string - xml: - attribute: true - xml: - name: package - xml: - name: most_active - example: - package: - - activity: 1371.487973151121 - project: openSUSE:Factory:Staging - name: dashboard - - activity: 1369.5483848725057 - project: home:repo-checker - name: reports - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Statistics - "/statistics/most_active_projects": - get: - summary: Get a list of the most active projects - description: Get a list of the most active projects - security: - - basic_authentication: [] - parameters: - - in: query - name: limit - schema: - type: integer - description: Override default maximum value of 10 entries to be returned. - example: 20 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - project: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - packages: - type: integer - xml: - attribute: true - activity: - type: number - xml: - attribute: true - created: - type: string - xml: - attribute: true - updated: - type: string - xml: - attribute: true - package: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - name: - type: string - xml: - attribute: true - activity: - type: number - xml: - attribute: true - created: - type: string - xml: - attribute: true - updated: - type: string - xml: - attribute: true - xml: - name: package - xml: - name: most_active - example: - project: - - activity: 1371.492028553694 - packages: 1 - name: openSUSE:Factory:Staging - - activity: 1369.5524345398396 - packages: 2 - name: home:repo-checker - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Statistics - "/statistics/updated_timestamp/{project_name}/{package_name}": - get: - deprecated: true - summary: This endpoint is deprecated - description: This endpoint is no longer supported or might not work as expected. - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: package_name - schema: - type: string - required: true - description: Package name - example: ctris - tags: - - Statistics - "/status/messages": - get: - summary: Get list of status messages - description: Get a list of all status messages - security: - - basic_authentication: [] - parameters: - - in: query - name: limit - schema: - type: integer - description: Override default maximum value of 1000 entries to be returned. - example: 20 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - status_message: - type: array - items: - type: object - properties: - id: - type: integer - xml: - attribute: true - message: - type: string - user: - type: string - severity: - type: string - scope: - type: string - created_at: - type: string - xml: - name: status_message - count: - type: integer - xml: - attribute: true - xml: - name: status_messages - example: - count: 2 - status_message: - - id: 2 - message: OBS 3.0 is released! - user: Iggy - severity: announcement - scope: all_users - created_at: 2021-10-15 13:28:22 UTC - - id: 1 - message: Feature number 42 was implemented! - user: Iggy - severity: announcement - scope: all_users - created_at: 2021-10-12 11:18:12 UTC - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Status Messages - post: - summary: Create a status message - description: | - Create a new status message (Only admins are allowed to add status messages). - - Possible values for severity: (information, green, yellow, red, announcement). - - Possible values for scope: (all_users, logged_in_users, admin_users, in_beta_users, in_rollout_users) - security: - - basic_authentication: [] - requestBody: - description: Attributes for status message - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - xml: - attribute: true - message: - type: string - user: - type: string - severity: - type: string - scope: - type: string - created_at: - type: string - xml: - name: status_message - example: - message: Feature number 42 was implemented! - severity: announcement - scope: all_users - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad request. Validation Error - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Validation Failed: - value: - code: validation_failed - summary: 'status_message validation error: 2:0: ERROR: Element - '''': No matching global declaration available - for the validation root.' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Status message no permission. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - status message no permission: - value: - code: put_request_no_permission - summary: Requires admin privileges - tags: - - Status Messages - "/status_message": - get: - summary: Get list of status messages - description: Get a list of all status messages - security: - - basic_authentication: [] - parameters: - - in: query - name: limit - schema: - type: integer - description: Override default maximum value of 1000 entries to be returned. - example: 20 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - status_message: - type: array - items: - type: object - properties: - id: - type: integer - xml: - attribute: true - message: - type: string - user: - type: string - severity: - type: string - scope: - type: string - created_at: - type: string - xml: - name: status_message - count: - type: integer - xml: - attribute: true - xml: - name: status_messages - example: - count: 2 - status_message: - - id: 2 - message: OBS 3.0 is released! - user: Iggy - severity: announcement - scope: all_users - created_at: 2021-10-15 13:28:22 UTC - - id: 1 - message: Feature number 42 was implemented! - user: Iggy - severity: announcement - scope: all_users - created_at: 2021-10-12 11:18:12 UTC - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Status Messages - "/status/messages/{id}": - get: - summary: Get a status message - description: Find a status message with id - security: - - basic_authentication: [] - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - id: - type: integer - xml: - attribute: true - message: - type: string - user: - type: string - severity: - type: string - scope: - type: string - created_at: - type: string - xml: - name: status_message - example: - id: 2 - message: OBS 3.0 is released! - user: Iggy - severity: announcement - scope: all_users - created_at: 2021-10-15 13:28:22 UTC - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: not_found - summary: Couldn't find StatusMessage with 'id'=300 - tags: - - Status Messages - delete: - summary: Delete a status message - description: Delete a status message with id - security: - - basic_authentication: [] - parameters: - - in: path - name: id - required: true - schema: - type: integer - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Status message no permission. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - status message no permission: - value: - code: put_request_no_permission - summary: Requires admin privileges - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: not_found - summary: Couldn't find StatusMessage with 'id'=300 - tags: - - Status Messages - "/status/project/{project_name}": - get: - summary: Get list of packages inside a project - description: Get a full list of packages and their status - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - package: - type: array - items: - type: object - properties: - project: - type: string - xml: - attribute: true - name: - type: string - xml: - attribute: true - version: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - changesmd5: - type: string - xml: - attribute: true - maxmtime: - type: string - xml: - attribute: true - release: - type: string - xml: - attribute: true - verifymd5: - type: string - xml: - attribute: true - link: - type: object - properties: - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - error: - type: string - xml: - name: package - xml: - name: packages - example: - package: - - project: home:Admin - name: ruby - version: 1 - srcmd5: 7fbfafc07ebb87ef62119216619d0fa5 - changesmd5: d0fa5 - - project: home:Admin - name: linked_package - version: 1.1 - verifymd5: 7fbfafc07ebb87ef62rrrvvv555 - srcmd5: 7fbfafc07ebb87ef62119216619d0fa5 - link: - project: home:Admin - package: ut - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Status Project - "/status/workerstatus": - get: - deprecated: true - summary: Lists status of workers, jobs, backend services and general statistics. - description: | - Lists status of workers, running jobs, waiting jobs, status of the backend services and general statistics. - - This endpoint is exactly the same as `GET /worker/_status`, please use that one. - security: - - basic_authentication: [] - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - clients: - type: integer - xml: - attribute: true - idle: - type: array - items: - type: object - properties: - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - building: - type: array - items: - type: object - properties: - repository: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - starttime: - type: string - xml: - attribute: true - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - down: - type: array - items: - type: object - properties: - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - waiting: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - jobs: - type: string - xml: - attribute: true - blocked: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - jobs: - type: string - xml: - attribute: true - buildavg: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - buildavg: - type: string - xml: - attribute: true - partition: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - daemon: - type: array - items: - type: object - properties: - type: - type: string - xml: - attribute: true - state: - type: string - xml: - attribute: true - starttime: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - queue: - type: object - properties: - high: - type: string - xml: - attribute: true - med: - type: string - xml: - attribute: true - low: - type: string - xml: - attribute: true - next: - type: string - xml: - attribute: true - xml: - name: workerstatus - example: - clients: '2' - idle: - - workerid: 1a1f67b948b6:1 - hostarch: x86_64 - building: - - repository: openSUSE_11.3_Update - arch: x86_64 - project: home:enzokiel - package: android-sdk - starttime: '1289838671' - workerid: 1a1f67b948b6:2 - hostarch: x86_64 - down: - - workerid: armbuild03:1 - hostarch: aarch64 - waiting: - - arch: i586 - jobs: '0' - - arch: x86_64 - jobs: '0' - blocked: - - arch: i586 - jobs: '0' - - arch: x86_64 - jobs: '0' - buildavg: - - arch: i586 - buildavg: '1200' - - arch: x86_64 - buildavg: '1200' - partition: - - daemon: - - type: srcserver - state: running - starttime: '1617711138' - - type: servicedispatch - state: running - starttime: '1617711144' - - type: service - state: running - starttime: '1617711144' - - type: clouduploadserver - state: running - starttime: '1617711145' - - type: clouduploadworker - state: running - starttime: '1617711144' - - type: scheduler - arch: i586 - state: running - starttime: '1617711145' - queue: - high: '0' - med: '0' - low: '11' - next: '0' - - type: scheduler - arch: x86_64 - state: running - starttime: '1617711145' - queue: - high: '0' - med: '0' - low: '11' - next: '0' - - type: repserver - state: running - starttime: '1617711143' - - type: dispatcher - state: running - starttime: '1617711144' - - type: publisher - state: running - starttime: '1617711145' - - type: signer - state: running - starttime: '1617711146' - - name: back-main - daemon: - - type: scheduler - arch: aarch64 - state: running - starttime: '1617148925' - queue: - high: '0' - med: '1' - low: '4' - next: '22' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Status Project - "/status_reports/built/{project_name}/{repository_name}/{architecture_name}/reports/{build_id}": - get: - summary: Get list of checks in the built project repository - description: Get a full list of checks in the built project repository's status - reports - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: build_id - schema: - type: integer - required: true - description: The id of the build. - example: 16 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - check: - type: array - items: - type: object - properties: - name: - type: string - example: first_ci - xml: - attribute: true - required: - type: string - enum: - - true - - false - xml: - attribute: true - state: - type: string - enum: - - pending - - error - - failure - - success - short_description: - type: string - example: A short description of the check - url: - type: string - example: https://ci.opensuse.org/ - xml: - name: check - uuid: - type: integer - xml: - attribute: true - xml: - name: status_report - example: - check: - - name: First - required: false - state: pending - short_description: This is the first of the checks - url: https://ci.opensuse.org/ - - name: Second - required: true - state: success - short_description: This is the second of the checks - url: https://check.opensuse.org/ - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: not_found - summary: Couldn't find StatusMessage with 'id'=300 - tags: - - Status Reports - post: - summary: Submit a check to a built project repository's status report - description: Create or update a check to the status report for the built project - repository - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: build_id - schema: - type: integer - required: true - description: The id of the build. - example: 16 - requestBody: - description: Check definition. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: first_ci - xml: - attribute: true - required: - type: string - enum: - - true - - false - xml: - attribute: true - state: - type: string - enum: - - pending - - error - - failure - - success - short_description: - type: string - example: A short description of the check - url: - type: string - example: https://ci.opensuse.org/ - xml: - name: check - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: first_ci - xml: - attribute: true - required: - type: string - enum: - - true - - false - xml: - attribute: true - state: - type: string - enum: - - pending - - error - - failure - - success - short_description: - type: string - example: A short description of the check - url: - type: string - example: https://ci.opensuse.org/ - xml: - name: check - example: - name: First - required: false - state: pending - short_description: This is the first of the checks - url: https://ci.opensuse.org/ - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: update_status/report_not_authorized - summary: Sorry, you are not authorized to update this status/report. - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: not_found - summary: Couldn't find StatusMessage with 'id'=300 - '422': - description: | - Unprocessable Content. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Invalid State: - value: - code: invalid_check - summary: "Could not save check: State State '\U0001F680' is not - a valid. Valid states are: pending, error, failure, success" - tags: - - Status Reports - "/status_reports/published/{project_name}/{repository_name}/reports/{build_id}": - get: - summary: Get list of checks in the published project repository - description: Get a full list of checks in the published project repository's - status reports - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: build_id - schema: - type: integer - required: true - description: The id of the build. - example: 16 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - check: - type: array - items: - type: object - properties: - name: - type: string - example: first_ci - xml: - attribute: true - required: - type: string - enum: - - true - - false - xml: - attribute: true - state: - type: string - enum: - - pending - - error - - failure - - success - short_description: - type: string - example: A short description of the check - url: - type: string - example: https://ci.opensuse.org/ - xml: - name: check - uuid: - type: integer - xml: - attribute: true - xml: - name: status_report - example: - check: - - name: First - required: false - state: pending - short_description: This is the first of the checks - url: https://ci.opensuse.org/ - - name: Second - required: true - state: success - short_description: This is the second of the checks - url: https://check.opensuse.org/ - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: not_found - summary: Couldn't find StatusMessage with 'id'=300 - tags: - - Status Reports - post: - summary: Submit a check to a published project repository's status report - description: Create or update a check to the status report for the published - project repository - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: build_id - schema: - type: integer - required: true - description: The id of the build. - example: 16 - requestBody: - description: Check definition. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: first_ci - xml: - attribute: true - required: - type: string - enum: - - true - - false - xml: - attribute: true - state: - type: string - enum: - - pending - - error - - failure - - success - short_description: - type: string - example: A short description of the check - url: - type: string - example: https://ci.opensuse.org/ - xml: - name: check - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: first_ci - xml: - attribute: true - required: - type: string - enum: - - true - - false - xml: - attribute: true - state: - type: string - enum: - - pending - - error - - failure - - success - short_description: - type: string - example: A short description of the check - url: - type: string - example: https://ci.opensuse.org/ - xml: - name: check - example: - name: First - required: false - state: pending - short_description: This is the first of the checks - url: https://ci.opensuse.org/ - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: update_status/report_not_authorized - summary: Sorry, you are not authorized to update this status/report. - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: not_found - summary: Couldn't find StatusMessage with 'id'=300 - '422': - description: | - Unprocessable Content. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Invalid State: - value: - code: invalid_check - summary: "Could not save check: State State '\U0001F680' is not - a valid. Valid states are: pending, error, failure, success" - tags: - - Status Reports - "/status_reports/requests/{id}/reports": - get: - summary: Get list of checks in the request - description: Get a full list of checks in the request's status reports - security: - - basic_authentication: [] - parameters: - - in: path - name: id - schema: - type: integer - required: true - description: Id of the choosen request. - example: 743 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - check: - type: array - items: - type: object - properties: - name: - type: string - example: first_ci - xml: - attribute: true - required: - type: string - enum: - - true - - false - xml: - attribute: true - state: - type: string - enum: - - pending - - error - - failure - - success - short_description: - type: string - example: A short description of the check - url: - type: string - example: https://ci.opensuse.org/ - xml: - name: check - uuid: - type: integer - xml: - attribute: true - xml: - name: status_report - example: - check: - - name: First - required: false - state: pending - short_description: This is the first of the checks - url: https://ci.opensuse.org/ - - name: Second - required: true - state: success - short_description: This is the second of the checks - url: https://check.opensuse.org/ - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: not_found - summary: Couldn't find StatusMessage with 'id'=300 - tags: - - Status Reports - post: - summary: Submit a check to the request's status report - description: Create or update a check to the status report for the request - security: - - basic_authentication: [] - parameters: - - in: path - name: id - schema: - type: integer - required: true - description: Id of the choosen request. - example: 743 - requestBody: - description: Check definition. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: first_ci - xml: - attribute: true - required: - type: string - enum: - - true - - false - xml: - attribute: true - state: - type: string - enum: - - pending - - error - - failure - - success - short_description: - type: string - example: A short description of the check - url: - type: string - example: https://ci.opensuse.org/ - xml: - name: check - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: string - example: first_ci - xml: - attribute: true - required: - type: string - enum: - - true - - false - xml: - attribute: true - state: - type: string - enum: - - pending - - error - - failure - - success - short_description: - type: string - example: A short description of the check - url: - type: string - example: https://ci.opensuse.org/ - xml: - name: check - example: - name: First - required: false - state: pending - short_description: This is the first of the checks - url: https://ci.opensuse.org/ - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: update_status/report_not_authorized - summary: Sorry, you are not authorized to update this status/report. - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Not Found: - value: - code: not_found - summary: Couldn't find StatusMessage with 'id'=300 - '422': - description: | - Unprocessable Content. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Invalid State: - value: - code: invalid_check - summary: "Could not save check: State State '\U0001F680' is not - a valid. Valid states are: pending, error, failure, success" - tags: - - Status Reports - "/status_reports/built_repositories/{project_name}/{repository_name}/{architecture_name}/required_checks": - get: - summary: Get list of required checks in the built repository - description: Get a full list of required checks in the built repository - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: array - items: - type: string - example: - - first - - second - project: - type: string - xml: - attribute: true - example: home:Admin - repository: - type: string - xml: - attribute: true - example: openSUSE_Tumbleweed - architecture: - type: string - xml: - attribute: true - example: x86_64 - xml: - name: required_checks - example: - project: home:Admin - repository: openSUSE_Tumbleweed - architecture: x86_64 - name: - - first - - second - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Repository: - value: - code: not_found - summary: Couldn't find Repository - Unknown Architecture: - value: - code: not_found - summary: Couldn't find Architecture - tags: - - Status Reports - Required Checks - post: - summary: Submit a required checks list to the built repository - description: Submit a new or modified required checks list to the built repository - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - requestBody: - description: Required checks list. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: array - items: - type: string - example: - - first - - second - project: - type: string - xml: - attribute: true - example: home:Admin - repository: - type: string - xml: - attribute: true - example: openSUSE_Tumbleweed - architecture: - type: string - xml: - attribute: true - example: x86_64 - xml: - name: required_checks - example: - project: home:Admin - repository: openSUSE_Tumbleweed - architecture: x86_64 - name: - - first - - second - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: array - items: - type: string - example: - - first - - second - project: - type: string - xml: - attribute: true - example: home:Admin - repository: - type: string - xml: - attribute: true - example: openSUSE_Tumbleweed - architecture: - type: string - xml: - attribute: true - example: x86_64 - xml: - name: required_checks - example: - project: home:Admin - repository: openSUSE_Tumbleweed - architecture: x86_64 - name: - - first - - second - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: create_repository_architecture_not_authorized - summary: Sorry, you are not authorized to create this repository architecture. - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Repository: - value: - code: not_found - summary: Couldn't find Repository - Unknown Architecture: - value: - code: not_found - summary: Couldn't find Architecture - '422': - description: | - Unprocessable Content. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Could not save: - value: - code: invalid_required_check - summary: 'Could not save required check:' - Could not delete: - value: - code: invalid_required_check - summary: 'Could not delete required check:' - tags: - - Status Reports - Required Checks - "/status_reports/built_repositories/{project_name}/{repository_name}/{architecture_name}/required_checks/{check_name}": - delete: - summary: Delete a required check from the built repository - description: Delete a required check from the built repository - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: check_name - schema: - type: string - required: true - description: Check name. - example: first - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: delete_repository_architecture_not_authorized - summary: Sorry, you are not authorized to delete this repository architecture. - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Repository: - value: - code: not_found - summary: Couldn't find Repository - Unknown Architecture: - value: - code: not_found - summary: Couldn't find Architecture - '422': - description: | - Unprocessable Content. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Could not save: - value: - code: invalid_required_check - summary: 'Could not save required check:' - Could not delete: - value: - code: invalid_required_check - summary: 'Could not delete required check:' - tags: - - Status Reports - Required Checks - "/status_reports/projects/{project_name}/required_checks": - get: - summary: Get list of required checks in the project - description: Get a full list of required checks in the project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: array - items: - type: string - example: - - first - - second - project: - type: string - xml: - attribute: true - example: home:Admin - repository: - type: string - xml: - attribute: true - example: openSUSE_Tumbleweed - architecture: - type: string - xml: - attribute: true - example: x86_64 - xml: - name: required_checks - example: - project: home:Admin - name: - - first - - second - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - tags: - - Status Reports - Required Checks - post: - summary: Submit a required checks list to the project - description: Submit a new or modified required checks list to the project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - requestBody: - description: Required checks list. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: array - items: - type: string - example: - - first - - second - project: - type: string - xml: - attribute: true - example: home:Admin - repository: - type: string - xml: - attribute: true - example: openSUSE_Tumbleweed - architecture: - type: string - xml: - attribute: true - example: x86_64 - xml: - name: required_checks - example: - project: home:Admin - name: - - first - - second - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: array - items: - type: string - example: - - first - - second - project: - type: string - xml: - attribute: true - example: home:Admin - repository: - type: string - xml: - attribute: true - example: openSUSE_Tumbleweed - architecture: - type: string - xml: - attribute: true - example: x86_64 - xml: - name: required_checks - example: - project: home:Admin - name: - - first - - second - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: create_project_not_authorized - summary: Sorry, you are not authorized to create this project. - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - '422': - description: | - Unprocessable Content. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Could not save: - value: - code: invalid_required_check - summary: 'Could not save required check:' - Could not delete: - value: - code: invalid_required_check - summary: 'Could not delete required check:' - tags: - - Status Reports - Required Checks - "/status_reports/projects/{project_name}/required_checks/{check_name}": - delete: - summary: Delete a required checks from the project - description: Delete a required check from the project - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: check_name - schema: - type: string - required: true - description: Check name. - example: first - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: delete_project_not_authorized - summary: Sorry, you are not authorized to delete this project. - '404': - description: | - Unknown project. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: .' - '422': - description: | - Unprocessable Content. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Could not save: - value: - code: invalid_required_check - summary: 'Could not save required check:' - Could not delete: - value: - code: invalid_required_check - summary: 'Could not delete required check:' - tags: - - Status Reports - Required Checks - "/status_reports/repositories/{project_name}/{repository_name}/required_checks": - get: - summary: Get list of required checks in the project repository - description: Get a full list of required checks in the project repository - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: array - items: - type: string - example: - - first - - second - project: - type: string - xml: - attribute: true - example: home:Admin - repository: - type: string - xml: - attribute: true - example: openSUSE_Tumbleweed - architecture: - type: string - xml: - attribute: true - example: x86_64 - xml: - name: required_checks - example: - project: home:Admin - repository: openSUSE_Tumbleweed - name: - - first - - second - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Repository: - value: - code: not_found - summary: Couldn't find Repository - tags: - - Status Reports - Required Checks - post: - summary: Submit a required checks list to the project repository - description: Submit a new or modified required checks list to the project repository - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - requestBody: - description: Required checks list. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: array - items: - type: string - example: - - first - - second - project: - type: string - xml: - attribute: true - example: home:Admin - repository: - type: string - xml: - attribute: true - example: openSUSE_Tumbleweed - architecture: - type: string - xml: - attribute: true - example: x86_64 - xml: - name: required_checks - example: - project: home:Admin - repository: openSUSE_Tumbleweed - name: - - first - - second - responses: - '200': - description: OK. The request has succeeded. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - name: - type: array - items: - type: string - example: - - first - - second - project: - type: string - xml: - attribute: true - example: home:Admin - repository: - type: string - xml: - attribute: true - example: openSUSE_Tumbleweed - architecture: - type: string - xml: - attribute: true - example: x86_64 - xml: - name: required_checks - example: - project: home:Admin - repository: openSUSE_Tumbleweed - name: - - first - - second - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: create_repository_not_authorized - summary: Sorry, you are not authorized to create this repository. - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Repository: - value: - code: not_found - summary: Couldn't find Repository - '422': - description: | - Unprocessable Content. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Could not save: - value: - code: invalid_required_check - summary: 'Could not save required check:' - Could not delete: - value: - code: invalid_required_check - summary: 'Could not delete required check:' - tags: - - Status Reports - Required Checks - "/status_reports/repositories/{project_name}/{repository_name}/required_checks/{check_name}": - delete: - summary: Delete a required check from the project repository - description: Delete a required checks from the project repository - security: - - basic_authentication: [] - parameters: - - in: path - name: project_name - schema: - type: string - required: true - description: Project name - example: home:Admin - - in: path - name: repository_name - schema: - type: string - required: true - description: Repository name - example: openSUSE_Tumbleweed - - in: path - name: check_name - schema: - type: string - required: true - description: Check name. - example: first - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '403': - description: | - Forbidden. - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: delete_repository_not_authorized - summary: Sorry, you are not authorized to delete this repository. - '404': - description: | - Not Found. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Unknown Project: - value: - code: unknown_project - summary: 'Project not found: home:some_project' - Unknown Repository: - value: - code: not_found - summary: Couldn't find Repository - '422': - description: | - Unprocessable Content. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - Could not save: - value: - code: invalid_required_check - summary: 'Could not save required check:' - Could not delete: - value: - code: invalid_required_check - summary: 'Could not delete required check:' - tags: - - Status Reports - Required Checks - "/trigger": - post: - summary: Trigger a rebuild, release or service run via an API token - description: | - This route allows to trigger - - - a Project/Package rebuild - - a Project/Package release - - a Package service run - - via an API token. - - You are required to authenticate with the API token secret. The API token secret needs - to be provided either by HTTP headers or by a Hash-based Message Authentication Code (HMAC). - - See the [/person/{login}/token](#/Person/post_person__login__token) endpoint for - information how to create an API token. - security: - - GitLab_key_authentication: [] - parameters: - - in: header - name: X-OBS-SIGNATURE - description: | - A HMAC of the request body, signed with the API token secret. - Only useful in combination with the id parameter. - schema: - type: string - example: 123458568938927827827 - - in: header - name: X-HUB-SIGNATURE-256 - description: | - A HMAC of the request body, signed with the API token secret. - Only useful in combination with the id parameter. - schema: - type: string - example: 123458568938927827827 - - in: header - name: X-Pagure-Signature-256 - description: | - A HMAC of the request body, signed with the API token secret. - Only useful in combination with the id parameter. - schema: - type: string - example: 123458568938927827827 - - in: header - name: X-GitLab-Token - description: The API token secret. - schema: - type: string - example: THE_TOKEN_SECRET - - in: header - name: Authorization - description: The API token secret in the Token realm. - schema: - type: string - example: Token THE_TOKEN_SECRET - - in: query - name: id - description: | - Numerical ID of the token to trigger. - This is required if you authenticate via a HMAC. - schema: - type: integer - example: 1 - - in: query - name: project - description: | - If the API token does not have a package assigned you can set a project via this parameter. - The operation of the API token is then executed on this project. - schema: - type: string - example: home:user - - in: query - name: package - description: | - If the API token does not have a package assigned you can set a package via this parameter. - The operation of the API token is then executed on this package. - - Setting this requires the project parameter to be set too. - schema: - type: string - example: vim - - in: query - name: repository - description: | - Restrict the API token operation to this repository. - - Only has an effect if the API token operation is 'rebuild' or 'release'. - schema: - type: string - example: openSUSE_Factory - - in: query - name: arch - description: | - Restrict the API token operation to this architecture with this name. - - Only has an effect when the API token operation is 'rebuild' or 'release'. - schema: - type: string - example: x86_64 - - in: query - name: targetproject - description: | - Release binaries only to the provided project with this name. - Setting this requires the 'targetrepository' parameter to be set also. - - Only has an effect if the API token operation is 'release'. - schema: - type: string - example: devel:languages:ruby - - in: query - name: targetrepository - description: | - Release binaries only to the target repository with this name. - Setting this requires the 'targetproject' parameter to be set also. - - Only has an effect if the API token operation is 'release'. - schema: - type: string - example: openSUSE_Factory - - in: query - name: filter_source_repository - description: | - Release binaries only from the repository with this name. - - Only has an effect if the API token operation is 'release'. - schema: - type: string - example: openSUSE_Factory - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: invalid_token - summary: No valid token found - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: permission_denied - summary: No valid token found - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - unknown_project: - summary: Project not found - value: - code: unknown_project - details: 'Project not found: home:Admin' - unknown_package: - summary: Package not found - value: - code: unknown_package - details: 'Package not found: home:Admin/foo' - tags: - - Trigger - "/trigger/rebuild": - post: - summary: Trigger a Project/Package rebuild - description: | - This endpoint behaves exactly as the [/trigger](#/Trigger/post_trigger) endpoint but - only allows API tokens with the operation 'rebuild' to be triggered. - security: - - GitLab_key_authentication: [] - tags: - - Trigger - "/trigger/release": - post: - summary: Trigger a Project/Package release - description: | - This endpoint behaves exactly as the [/trigger](#/Trigger/post_trigger) endpoint but - only allows API tokens the the operation 'release' to be triggered. - security: - - GitLab_key_authentication: [] - tags: - - Trigger - "/trigger/runservice": - post: - summary: Trigger a Package service run - description: | - This endpoint behaves exactly as the [/trigger](#/Trigger/post_trigger) endpoint but - only allows API tokens with the operation 'runservice' to be triggered. - security: - - GitLab_key_authentication: [] - tags: - - Trigger - "/trigger/workflow": - post: - summary: Trigger a SCM/CI Workflow via an API token - description: | - This route allows to trigger an [OBS SCM/CI workflow](https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.scm_ci_workflow_integration) - via an API token. - - You are required to authenticate with the API token secret. The API token secret needs - to be provided either by HTTP headers or by a Hash-based Message Authentication Code (HMAC). - - See the [/person/{login}/token](#/Person/post_person__login__token) endpoint for - information how to create an API token. - security: - - GitLab_key_authentication: [] - parameters: - - in: header - name: X-OBS-SIGNATURE - description: | - A HMAC of the request body, signed with the API token secret. - Only useful in combination with the id parameter. - schema: - type: string - example: 123458568938927827827 - - in: header - name: X-HUB-SIGNATURE-256 - description: | - A HMAC of the request body, signed with the API token secret. - Only useful in combination with the id parameter. - schema: - type: string - example: 123458568938927827827 - - in: header - name: X-Pagure-Signature-256 - description: | - A HMAC of the request body, signed with the API token secret. - Only useful in combination with the id parameter. - schema: - type: string - example: 123458568938927827827 - - in: header - name: X-GitLab-Token - description: The API token secret. - schema: - type: string - example: THE_TOKEN_SECRET - - in: header - name: Authorization - description: The API token secret in the Token realm. - schema: - type: string - example: Token THE_TOKEN_SECRET - - in: query - name: id - description: | - Numerical ID of the token to trigger. - This is required if you authenticate via a HMAC. - schema: - type: integer - example: 1 - responses: - '200': - description: | - OK. The request has succeeded. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: ok - summary: Ok - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: invalid_token - summary: No valid token found - '403': - description: Forbidden. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: permission_denied - summary: No valid token found - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - unknown_project: - summary: Project not found - value: - code: unknown_project - details: 'Project not found: home:Admin' - unknown_package: - summary: Package not found - value: - code: unknown_package - details: 'Package not found: home:Admin/foo' - tags: - - Trigger - "/trigger/webhook": - post: - deprecated: true - summary: Trigger an operation - description: This endpoint behaves exactly as the [/trigger](#/Trigger) endpoint. - security: - - GitLab_key_authentication: [] - tags: - - Trigger - "/worker/_status": - get: - summary: Lists status of workers, jobs, backend services and general statistics. - description: Lists status of workers, running jobs, waiting jobs, status of - the backend services and general statistics. - security: - - basic_authentication: [] - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - clients: - type: integer - xml: - attribute: true - idle: - type: array - items: - type: object - properties: - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - building: - type: array - items: - type: object - properties: - repository: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - starttime: - type: string - xml: - attribute: true - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - down: - type: array - items: - type: object - properties: - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - waiting: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - jobs: - type: string - xml: - attribute: true - blocked: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - jobs: - type: string - xml: - attribute: true - buildavg: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - buildavg: - type: string - xml: - attribute: true - partition: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - daemon: - type: array - items: - type: object - properties: - type: - type: string - xml: - attribute: true - state: - type: string - xml: - attribute: true - starttime: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - queue: - type: object - properties: - high: - type: string - xml: - attribute: true - med: - type: string - xml: - attribute: true - low: - type: string - xml: - attribute: true - next: - type: string - xml: - attribute: true - xml: - name: workerstatus - example: - clients: '2' - idle: - - workerid: 1a1f67b948b6:1 - hostarch: x86_64 - building: - - repository: openSUSE_11.3_Update - arch: x86_64 - project: home:enzokiel - package: android-sdk - starttime: '1289838671' - workerid: 1a1f67b948b6:2 - hostarch: x86_64 - down: - - workerid: armbuild03:1 - hostarch: aarch64 - waiting: - - arch: i586 - jobs: '0' - - arch: x86_64 - jobs: '0' - blocked: - - arch: i586 - jobs: '0' - - arch: x86_64 - jobs: '0' - buildavg: - - arch: i586 - buildavg: '1200' - - arch: x86_64 - buildavg: '1200' - partition: - - daemon: - - type: srcserver - state: running - starttime: '1617711138' - - type: servicedispatch - state: running - starttime: '1617711144' - - type: service - state: running - starttime: '1617711144' - - type: clouduploadserver - state: running - starttime: '1617711145' - - type: clouduploadworker - state: running - starttime: '1617711144' - - type: scheduler - arch: i586 - state: running - starttime: '1617711145' - queue: - high: '0' - med: '0' - low: '11' - next: '0' - - type: scheduler - arch: x86_64 - state: running - starttime: '1617711145' - queue: - high: '0' - med: '0' - low: '11' - next: '0' - - type: repserver - state: running - starttime: '1617711143' - - type: dispatcher - state: running - starttime: '1617711144' - - type: publisher - state: running - starttime: '1617711145' - - type: signer - state: running - starttime: '1617711146' - - name: back-main - daemon: - - type: scheduler - arch: aarch64 - state: running - starttime: '1617148925' - queue: - high: '0' - med: '1' - low: '4' - next: '22' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Workers - "/worker/status": - get: - deprecated: true - summary: Lists status of workers, jobs, backend services and general statistics. - description: | - Lists status of workers, running jobs, waiting jobs, status of the backend services and general statistics. - - This endpoint is exactly the same as `GET /worker/_status`, please use that one. - security: - - basic_authentication: [] - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - clients: - type: integer - xml: - attribute: true - idle: - type: array - items: - type: object - properties: - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - building: - type: array - items: - type: object - properties: - repository: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - project: - type: string - xml: - attribute: true - package: - type: string - xml: - attribute: true - starttime: - type: string - xml: - attribute: true - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - down: - type: array - items: - type: object - properties: - workerid: - type: string - xml: - attribute: true - hostarch: - type: string - xml: - attribute: true - waiting: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - jobs: - type: string - xml: - attribute: true - blocked: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - jobs: - type: string - xml: - attribute: true - buildavg: - type: array - items: - type: object - properties: - arch: - type: string - xml: - attribute: true - buildavg: - type: string - xml: - attribute: true - partition: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - daemon: - type: array - items: - type: object - properties: - type: - type: string - xml: - attribute: true - state: - type: string - xml: - attribute: true - starttime: - type: string - xml: - attribute: true - arch: - type: string - xml: - attribute: true - queue: - type: object - properties: - high: - type: string - xml: - attribute: true - med: - type: string - xml: - attribute: true - low: - type: string - xml: - attribute: true - next: - type: string - xml: - attribute: true - xml: - name: workerstatus - example: - clients: '2' - idle: - - workerid: 1a1f67b948b6:1 - hostarch: x86_64 - building: - - repository: openSUSE_11.3_Update - arch: x86_64 - project: home:enzokiel - package: android-sdk - starttime: '1289838671' - workerid: 1a1f67b948b6:2 - hostarch: x86_64 - down: - - workerid: armbuild03:1 - hostarch: aarch64 - waiting: - - arch: i586 - jobs: '0' - - arch: x86_64 - jobs: '0' - blocked: - - arch: i586 - jobs: '0' - - arch: x86_64 - jobs: '0' - buildavg: - - arch: i586 - buildavg: '1200' - - arch: x86_64 - buildavg: '1200' - partition: - - daemon: - - type: srcserver - state: running - starttime: '1617711138' - - type: servicedispatch - state: running - starttime: '1617711144' - - type: service - state: running - starttime: '1617711144' - - type: clouduploadserver - state: running - starttime: '1617711145' - - type: clouduploadworker - state: running - starttime: '1617711144' - - type: scheduler - arch: i586 - state: running - starttime: '1617711145' - queue: - high: '0' - med: '0' - low: '11' - next: '0' - - type: scheduler - arch: x86_64 - state: running - starttime: '1617711145' - queue: - high: '0' - med: '0' - low: '11' - next: '0' - - type: repserver - state: running - starttime: '1617711143' - - type: dispatcher - state: running - starttime: '1617711144' - - type: publisher - state: running - starttime: '1617711145' - - type: signer - state: running - starttime: '1617711146' - - name: back-main - daemon: - - type: scheduler - arch: aarch64 - state: running - starttime: '1617148925' - queue: - high: '0' - med: '1' - low: '4' - next: '22' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - tags: - - Workers - "/worker/{architecture_name}:{worker_id}": - get: - summary: Lists capabilites of a worker. - description: | - Lists capabilites of a worker. - - This can be useful when checking for constraints. - - This operation is the same as `GET /worker/capability/{architecture_name}:{worker_id}`. - security: - - basic_authentication: [] - parameters: - - in: path - name: architecture_name - schema: - type: string - required: true - description: Architecture name - example: x86_64 - - in: path - name: worker_id - schema: - type: string - required: true - description: Worker id. - example: 1a1f67b948b6:1 - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - hostarch: - type: string - xml: - attribute: true - registerserver: - type: string - xml: - attribute: true - workerid: - type: string - xml: - attribute: true - hostlabel: - type: string - sandbox: - type: string - linux: - type: object - properties: - version: - type: string - flavor: - type: string - hardware: - type: object - properties: - cpu: - type: object - properties: - flag: - type: array - items: - type: string - processors: - type: string - jobs: - type: string - xml: - name: worker - example: - hostarch: x86_64 - registerserver: http://backend:5252 - workerid: 1a1f67b948b6:1 - hostlabel: OBS_WORKER_SECURITY_LEVEL_ - sandbox: chroot - linux: - version: 5.11.6-1 - flavor: default - hardware: - cpu: - flag: - - fpu - - vme - - de - - pse - - tsc - - msr - processors: '8' - jobs: '1' - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: '404' - summary: 'remote error: unknown worker (http://backend:5252/worker/x86_64:1a1f67b948bf:1)' - details: '404 remote error: unknown worker (http://backend:5252/worker/x86_64:1a1f67b948bf:1)' - tags: - - Workers - "/worker?cmd=checkconstraints": - post: - summary: Lists workers which match a constraints filter. - description: | - Given a project, package, repository and architecture, list workers which can build with that restrictions, and also match a constraints filter. - - This endpoint doesn't create or modify any data. - - More information about constraints can be found in the - [user guide](https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.build_job_constraints.html). - - This operation is the same as `POST /worker/command/run?cmd=checkconstraints`. - security: - - basic_authentication: [] - parameters: - - in: query - name: project - schema: - type: string - required: true - example: home:user1 - description: Project name. - - in: query - name: repository - schema: - type: string - required: true - description: Repository name. - example: openSUSE_Tumbleweed - - in: query - name: arch - schema: - type: string - required: true - description: Architecture name. - example: x86_64 - - in: query - name: package - schema: - type: string - required: true - description: Package name. - example: test_package - requestBody: - description: Constraints XML filter - required: true - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - hostlabel: - type: string - sandbox: - type: string - example: chroot - linux: - type: object - properties: - version: - type: object - properties: - min: - type: string - max: - type: string - flavor: - type: string - hardware: - type: object - properties: - cpu: - type: object - properties: - flag: - type: array - items: - type: string - processors: - type: string - disk: - type: object - properties: - size: - type: string - memory: - type: object - properties: - size: - type: string - physicalmemory: - type: object - properties: - size: - type: string - xml: - name: constraints - examples: - cpu_flags: - summary: Cpu flags - value: - hardware: - cpu: - flag: - - mmx - - sse2 - processors: - summary: Number of processors - value: - hardware: - processors: 2 - mix: - summary: Linux version and linux flavor - value: - linux: - version: - min: 3.0 - max: 4.0 - flavor: default - responses: - '200': - description: OK - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - count: - type: integer - xml: - attribute: true - name: - type: string - xml: - attribute: true - rev: - type: string - xml: - attribute: true - vrev: - type: string - xml: - attribute: true - srcmd5: - type: string - xml: - attribute: true - entry: - type: array - items: - type: object - properties: - name: - type: string - xml: - attribute: true - md5: - type: string - xml: - attribute: true - size: - type: string - xml: - attribute: true - mtime: - type: string - xml: - attribute: true - xml: - name: directory - examples: - two_workers: - summary: Two Workers Satisfy the Constraints - value: - entry: - - name: x86_64:1a1f67b948b6:1 - - name: x86_64:1a1f67b948b6:2 - no_workers: - summary: No Workers Satisfy the Constraints - value: - '400': - description: Bad Request. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: missing_parameter - summary: Required Parameter arch missing - '401': - description: | - Unauthorized. - - XML Schema used for body validation: [status.rng](../schema/status.rng) - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - examples: - anonymous_user: - value: - code: anonymous_user - summary: Anonymous user is not allowed here - please login - summary: Anonymous User - authentication_required: - value: - code: authentication_required - summary: Unknown user 'Admin' or invalid password - summary: Authentication Required - '404': - description: Not Found. - content: - application/xml; charset=utf-8: - schema: - type: object - properties: - code: - type: string - xml: - attribute: true - origin: - type: string - xml: - attribute: true - summary: - type: string - details: - type: string - data: - type: array - items: - type: string - xml: - name: status - example: - code: 404 - summary: repository 'home:Admin/openSUSE_Tumbleweed' has no architecture - 'x86_64d' - tags: - - Workers -components: - securitySchemes: - basic_authentication: - type: http - scheme: basic - GitLab_key_authentication: - type: apiKey - in: header - name: X-GitLab-Token -externalDocs: - url: https://openbuildservice.org/help/ - description: Open Build Service - Documentation diff --git a/bots-common/obs.cfg.yaml b/bots-common/obs.cfg.yaml deleted file mode 100644 index 643bda5..0000000 --- a/bots-common/obs.cfg.yaml +++ /dev/null @@ -1,5 +0,0 @@ -package: obs -output: obs/client.go -generate: - models: true - client: true diff --git a/bots-common/obs.go b/bots-common/obs.go deleted file mode 100644 index 44be8e5..0000000 --- a/bots-common/obs.go +++ /dev/null @@ -1,5 +0,0 @@ -package common - -//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -config obs.cfg.yaml obs.api.yaml - - diff --git a/bots-common/obs/client.go b/bots-common/obs/client.go deleted file mode 100644 index 3d212ff..0000000 --- a/bots-common/obs/client.go +++ /dev/null @@ -1,40550 +0,0 @@ -// Package client provides primitives to interact with the openapi HTTP API. -// -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT. -package obs - -import ( - "context" - "encoding/xml" - "fmt" - "io" - "net/http" - "net/url" - "strings" - - "github.com/oapi-codegen/runtime" - openapi_types "github.com/oapi-codegen/runtime/types" -) - -const ( - GitLab_key_authenticationScopes = "GitLab_key_authentication.Scopes" - Basic_authenticationScopes = "basic_authentication.Scopes" -) - -// Defines values for PostBuildProjectNameParamsCmd. -const ( - PostBuildProjectNameParamsCmdAbortbuild PostBuildProjectNameParamsCmd = "abortbuild" - PostBuildProjectNameParamsCmdKillbuild PostBuildProjectNameParamsCmd = "killbuild" - PostBuildProjectNameParamsCmdRebuild PostBuildProjectNameParamsCmd = "rebuild" - PostBuildProjectNameParamsCmdRestartbuild PostBuildProjectNameParamsCmd = "restartbuild" - PostBuildProjectNameParamsCmdSendsysrq PostBuildProjectNameParamsCmd = "sendsysrq" - PostBuildProjectNameParamsCmdUnpublish PostBuildProjectNameParamsCmd = "unpublish" - PostBuildProjectNameParamsCmdWipe PostBuildProjectNameParamsCmd = "wipe" -) - -// Defines values for GetBuildProjectNameResultParamsView. -const ( - GetBuildProjectNameResultParamsViewBinarylist GetBuildProjectNameResultParamsView = "binarylist" - GetBuildProjectNameResultParamsViewStatus GetBuildProjectNameResultParamsView = "status" - GetBuildProjectNameResultParamsViewSummary GetBuildProjectNameResultParamsView = "summary" -) - -// Defines values for GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParamsView. -const ( - Order GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParamsView = "order" - Pkgnames GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParamsView = "pkgnames" - Revpkgnames GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParamsView = "revpkgnames" -) - -// Defines values for DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName. -const ( - DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageNameRepository DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName = "_repository" -) - -// Defines values for PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName. -const ( - PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageNameRepository PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName = "_repository" -) - -// Defines values for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParamsView. -const ( - Fileinfo GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParamsView = "fileinfo" - FileinfoExt GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParamsView = "fileinfo_ext" -) - -// Defines values for PostGroupGroupTitleParamsCmd. -const ( - AddUser PostGroupGroupTitleParamsCmd = "add_user" - RemoveUser PostGroupGroupTitleParamsCmd = "remove_user" - SetEmail PostGroupGroupTitleParamsCmd = "set_email" -) - -// Defines values for GetMyNotificationsParamsNotificationsType. -const ( - AppealedDecisions GetMyNotificationsParamsNotificationsType = "appealed_decisions" - BuildFailures GetMyNotificationsParamsNotificationsType = "build_failures" - Comments GetMyNotificationsParamsNotificationsType = "comments" - IncomingRequests GetMyNotificationsParamsNotificationsType = "incoming_requests" - OutgoingRequests GetMyNotificationsParamsNotificationsType = "outgoing_requests" - Read GetMyNotificationsParamsNotificationsType = "read" - RelationshipsCreated GetMyNotificationsParamsNotificationsType = "relationships_created" - RelationshipsDeleted GetMyNotificationsParamsNotificationsType = "relationships_deleted" - Reports GetMyNotificationsParamsNotificationsType = "reports" - Requests GetMyNotificationsParamsNotificationsType = "requests" - Unread GetMyNotificationsParamsNotificationsType = "unread" - WorkflowRuns GetMyNotificationsParamsNotificationsType = "workflow_runs" -) - -// Defines values for PostPersonParamsCmd. -const ( - Register PostPersonParamsCmd = "register" -) - -// Defines values for PostPersonLoginParamsCmd. -const ( - PostPersonLoginParamsCmdChangePassword PostPersonLoginParamsCmd = "change_password" - PostPersonLoginParamsCmdDelete PostPersonLoginParamsCmd = "delete" - PostPersonLoginParamsCmdLock PostPersonLoginParamsCmd = "lock" -) - -// Defines values for PostPersonLoginTokenParamsOperation. -const ( - PostPersonLoginTokenParamsOperationRebuild PostPersonLoginTokenParamsOperation = "rebuild" - PostPersonLoginTokenParamsOperationRelease PostPersonLoginTokenParamsOperation = "release" - PostPersonLoginTokenParamsOperationRunservice PostPersonLoginTokenParamsOperation = "runservice" -) - -// Defines values for GetPublishedProjectNameRepositoryNameviewStatusParamsView. -const ( - GetPublishedProjectNameRepositoryNameviewStatusParamsViewStatus GetPublishedProjectNameRepositoryNameviewStatusParamsView = "status" -) - -// Defines values for PostRequestParamsCmd. -const ( - Create PostRequestParamsCmd = "create" -) - -// Defines values for PostRequestParamsAddrevision. -const ( - PostRequestParamsAddrevisionN1 PostRequestParamsAddrevision = "1" -) - -// Defines values for PostRequestParamsIgnoreDelegate. -const ( - PostRequestParamsIgnoreDelegateN1 PostRequestParamsIgnoreDelegate = "1" -) - -// Defines values for PostRequestParamsIgnoreBuildState. -const ( - PostRequestParamsIgnoreBuildStateN1 PostRequestParamsIgnoreBuildState = "1" -) - -// Defines values for PostRequestIdcmdDiffParamsView. -const ( - PostRequestIdcmdDiffParamsViewXml PostRequestIdcmdDiffParamsView = "xml" -) - -// Defines values for PostRequestIdcmdDiffParamsWithissues. -const ( - PostRequestIdcmdDiffParamsWithissuesN1 PostRequestIdcmdDiffParamsWithissues = "1" - PostRequestIdcmdDiffParamsWithissuesTrue PostRequestIdcmdDiffParamsWithissues = "true" -) - -// Defines values for GetSearchParamsIn. -const ( - Packages GetSearchParamsIn = "packages" - Projects GetSearchParamsIn = "projects" -) - -// Defines values for GetSearchOwnerParamsDevel. -const ( - GetSearchOwnerParamsDevelFalse GetSearchOwnerParamsDevel = "false" - GetSearchOwnerParamsDevelN0 GetSearchOwnerParamsDevel = "0" - GetSearchOwnerParamsDevelN1 GetSearchOwnerParamsDevel = "1" - GetSearchOwnerParamsDevelTrue GetSearchOwnerParamsDevel = "true" -) - -// Defines values for GetSearchPublishedBinaryIdParamsWithdownloadurl. -const ( - GetSearchPublishedBinaryIdParamsWithdownloadurlN0 GetSearchPublishedBinaryIdParamsWithdownloadurl = 0 - GetSearchPublishedBinaryIdParamsWithdownloadurlN1 GetSearchPublishedBinaryIdParamsWithdownloadurl = 1 -) - -// Defines values for GetSearchPublishedPatternIdParamsWithdownloadurl. -const ( - GetSearchPublishedPatternIdParamsWithdownloadurlN0 GetSearchPublishedPatternIdParamsWithdownloadurl = 0 - GetSearchPublishedPatternIdParamsWithdownloadurlN1 GetSearchPublishedPatternIdParamsWithdownloadurl = 1 -) - -// Defines values for GetSearchPublishedRepoinfoIdParamsWithdownloadurl. -const ( - GetSearchPublishedRepoinfoIdParamsWithdownloadurlN0 GetSearchPublishedRepoinfoIdParamsWithdownloadurl = 0 - GetSearchPublishedRepoinfoIdParamsWithdownloadurlN1 GetSearchPublishedRepoinfoIdParamsWithdownloadurl = 1 -) - -// Defines values for GetSourceProjectNameParamsExpand. -const ( - GetSourceProjectNameParamsExpandN0 GetSourceProjectNameParamsExpand = "0" - GetSourceProjectNameParamsExpandN1 GetSourceProjectNameParamsExpand = "1" -) - -// Defines values for GetSourceProjectNameParamsView. -const ( - GetSourceProjectNameParamsViewIssues GetSourceProjectNameParamsView = "issues" - GetSourceProjectNameParamsViewProductlist GetSourceProjectNameParamsView = "productlist" - GetSourceProjectNameParamsViewVerboseproductlist GetSourceProjectNameParamsView = "verboseproductlist" -) - -// Defines values for GetSourceProjectNameAttributeParamsView. -const ( - GetSourceProjectNameAttributeParamsViewBlame GetSourceProjectNameAttributeParamsView = "blame" -) - -// Defines values for GetSourceProjectNameAttributeAttributeNameParamsView. -const ( - GetSourceProjectNameAttributeAttributeNameParamsViewBlame GetSourceProjectNameAttributeAttributeNameParamsView = "blame" -) - -// Defines values for DeleteSourceProjectNamePackageNameParamsForce. -const ( - DeleteSourceProjectNamePackageNameParamsForceN0 DeleteSourceProjectNamePackageNameParamsForce = "0" - DeleteSourceProjectNamePackageNameParamsForceN1 DeleteSourceProjectNamePackageNameParamsForce = "1" -) - -// Defines values for GetSourceProjectNamePackageNameParamsExpand. -const ( - GetSourceProjectNamePackageNameParamsExpandN0 GetSourceProjectNamePackageNameParamsExpand = "0" - GetSourceProjectNamePackageNameParamsExpandN1 GetSourceProjectNamePackageNameParamsExpand = "1" -) - -// Defines values for GetSourceProjectNamePackageNameParamsLastworking. -const ( - GetSourceProjectNamePackageNameParamsLastworkingN0 GetSourceProjectNamePackageNameParamsLastworking = "0" - GetSourceProjectNamePackageNameParamsLastworkingN1 GetSourceProjectNamePackageNameParamsLastworking = "1" -) - -// Defines values for GetSourceProjectNamePackageNameParamsMeta. -const ( - GetSourceProjectNamePackageNameParamsMetaN0 GetSourceProjectNamePackageNameParamsMeta = "0" - GetSourceProjectNamePackageNameParamsMetaN1 GetSourceProjectNamePackageNameParamsMeta = "1" -) - -// Defines values for GetSourceProjectNamePackageNameParamsView. -const ( - GetSourceProjectNamePackageNameParamsViewCpio GetSourceProjectNamePackageNameParamsView = "cpio" - GetSourceProjectNamePackageNameParamsViewGetmultibuild GetSourceProjectNamePackageNameParamsView = "getmultibuild" - GetSourceProjectNamePackageNameParamsViewInfo GetSourceProjectNamePackageNameParamsView = "info" - GetSourceProjectNamePackageNameParamsViewIssues GetSourceProjectNamePackageNameParamsView = "issues" - GetSourceProjectNamePackageNameParamsViewProductrepositories GetSourceProjectNamePackageNameParamsView = "productrepositories" - GetSourceProjectNamePackageNameParamsViewProducts GetSourceProjectNamePackageNameParamsView = "products" -) - -// Defines values for GetSourceProjectNamePackageNameParamsWithlinked. -const ( - GetSourceProjectNamePackageNameParamsWithlinkedN0 GetSourceProjectNamePackageNameParamsWithlinked = "0" - GetSourceProjectNamePackageNameParamsWithlinkedN1 GetSourceProjectNamePackageNameParamsWithlinked = "1" -) - -// Defines values for GetSourceProjectNamePackageNameAttributeParamsView. -const ( - GetSourceProjectNamePackageNameAttributeParamsViewBlame GetSourceProjectNamePackageNameAttributeParamsView = "blame" -) - -// Defines values for GetSourceProjectNamePackageNameAttributeAttributeNameParamsView. -const ( - GetSourceProjectNamePackageNameAttributeAttributeNameParamsViewBlame GetSourceProjectNamePackageNameAttributeAttributeNameParamsView = "blame" -) - -// Defines values for GetSourceProjectNamePackageNameMetaParamsView. -const ( - GetSourceProjectNamePackageNameMetaParamsViewBlame GetSourceProjectNamePackageNameMetaParamsView = "blame" -) - -// Defines values for DeleteSourceProjectNamePackageNameFileNameParamsMeta. -const ( - DeleteSourceProjectNamePackageNameFileNameParamsMetaN0 DeleteSourceProjectNamePackageNameFileNameParamsMeta = 0 - DeleteSourceProjectNamePackageNameFileNameParamsMetaN1 DeleteSourceProjectNamePackageNameFileNameParamsMeta = 1 -) - -// Defines values for DeleteSourceProjectNamePackageNameFileNameParamsKeeplink. -const ( - DeleteSourceProjectNamePackageNameFileNameParamsKeeplinkN0 DeleteSourceProjectNamePackageNameFileNameParamsKeeplink = "0" - DeleteSourceProjectNamePackageNameFileNameParamsKeeplinkN1 DeleteSourceProjectNamePackageNameFileNameParamsKeeplink = "1" -) - -// Defines values for GetSourceProjectNamePackageNameFileNameParamsMeta. -const ( - GetSourceProjectNamePackageNameFileNameParamsMetaN0 GetSourceProjectNamePackageNameFileNameParamsMeta = 0 - GetSourceProjectNamePackageNameFileNameParamsMetaN1 GetSourceProjectNamePackageNameFileNameParamsMeta = 1 -) - -// Defines values for GetSourceProjectNamePackageNameFileNameParamsDeleted. -const ( - GetSourceProjectNamePackageNameFileNameParamsDeletedN0 GetSourceProjectNamePackageNameFileNameParamsDeleted = 0 - GetSourceProjectNamePackageNameFileNameParamsDeletedN1 GetSourceProjectNamePackageNameFileNameParamsDeleted = 1 -) - -// Defines values for GetSourceProjectNamePackageNameFileNameParamsExpand. -const ( - GetSourceProjectNamePackageNameFileNameParamsExpandN0 GetSourceProjectNamePackageNameFileNameParamsExpand = 0 - GetSourceProjectNamePackageNameFileNameParamsExpandN1 GetSourceProjectNamePackageNameFileNameParamsExpand = 1 -) - -// Defines values for GetSourceProjectNamePackageNameFileNameParamsView. -const ( - GetSourceProjectNamePackageNameFileNameParamsViewBlame GetSourceProjectNamePackageNameFileNameParamsView = "blame" -) - -// Defines values for PutSourceProjectNamePackageNameFileNameParamsMeta. -const ( - PutSourceProjectNamePackageNameFileNameParamsMetaN0 PutSourceProjectNamePackageNameFileNameParamsMeta = 0 - PutSourceProjectNamePackageNameFileNameParamsMetaN1 PutSourceProjectNamePackageNameFileNameParamsMeta = 1 -) - -// Defines values for PutSourceProjectNamePackageNameFileNameParamsKeeplink. -const ( - PutSourceProjectNamePackageNameFileNameParamsKeeplinkN0 PutSourceProjectNamePackageNameFileNameParamsKeeplink = "0" - PutSourceProjectNamePackageNameFileNameParamsKeeplinkN1 PutSourceProjectNamePackageNameFileNameParamsKeeplink = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdAddcontainersParamsCmd. -const ( - Addcontainers PostSourceProjectNamePackageNamecmdAddcontainersParamsCmd = "addcontainers" -) - -// Defines values for PostSourceProjectNamePackageNamecmdAddcontainersParamsExtendPackageNames. -const ( - PostSourceProjectNamePackageNamecmdAddcontainersParamsExtendPackageNamesN1 PostSourceProjectNamePackageNamecmdAddcontainersParamsExtendPackageNames = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsAddRepositories. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesN1 PostSourceProjectNamePackageNamecmdBranchParamsAddRepositories = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuild. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuildCopy PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuild = "copy" - PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuildDirect PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuild = "direct" - PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuildLocal PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuild = "local" - PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuildTransitive PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuild = "transitive" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesBlock. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesBlockAll PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesBlock = "all" - PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesBlockLocal PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesBlock = "local" - PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesBlockNever PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesBlock = "never" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsAutocleanup. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsAutocleanupN1 PostSourceProjectNamePackageNamecmdBranchParamsAutocleanup = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsDryrun. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsDryrunN1 PostSourceProjectNamePackageNamecmdBranchParamsDryrun = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsExtendPackageNames. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsExtendPackageNamesN1 PostSourceProjectNamePackageNamecmdBranchParamsExtendPackageNames = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsIgnoredevel. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsIgnoredevelN1 PostSourceProjectNamePackageNamecmdBranchParamsIgnoredevel = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsMaintenance. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsMaintenanceN1 PostSourceProjectNamePackageNamecmdBranchParamsMaintenance = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsMissingok. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsMissingokN1 PostSourceProjectNamePackageNamecmdBranchParamsMissingok = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsNewinstance. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsNewinstanceN1 PostSourceProjectNamePackageNamecmdBranchParamsNewinstance = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsNoaccess. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsNoaccessN1 PostSourceProjectNamePackageNamecmdBranchParamsNoaccess = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsNoservice. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsNoserviceN1 PostSourceProjectNamePackageNamecmdBranchParamsNoservice = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdBranchParamsUpdatePathElements. -const ( - PostSourceProjectNamePackageNamecmdBranchParamsUpdatePathElementsN1 PostSourceProjectNamePackageNamecmdBranchParamsUpdatePathElements = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCommitParamsKeeplink. -const ( - PostSourceProjectNamePackageNamecmdCommitParamsKeeplinkN0 PostSourceProjectNamePackageNamecmdCommitParamsKeeplink = "0" - PostSourceProjectNamePackageNamecmdCommitParamsKeeplinkN1 PostSourceProjectNamePackageNamecmdCommitParamsKeeplink = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCommitParamsRepairlink. -const ( - PostSourceProjectNamePackageNamecmdCommitParamsRepairlinkN0 PostSourceProjectNamePackageNamecmdCommitParamsRepairlink = "0" - PostSourceProjectNamePackageNamecmdCommitParamsRepairlinkN1 PostSourceProjectNamePackageNamecmdCommitParamsRepairlink = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCommitfilelistParamsKeeplink. -const ( - PostSourceProjectNamePackageNamecmdCommitfilelistParamsKeeplinkN0 PostSourceProjectNamePackageNamecmdCommitfilelistParamsKeeplink = "0" - PostSourceProjectNamePackageNamecmdCommitfilelistParamsKeeplinkN1 PostSourceProjectNamePackageNamecmdCommitfilelistParamsKeeplink = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCommitfilelistParamsRepairlink. -const ( - PostSourceProjectNamePackageNamecmdCommitfilelistParamsRepairlinkN0 PostSourceProjectNamePackageNamecmdCommitfilelistParamsRepairlink = "0" - PostSourceProjectNamePackageNamecmdCommitfilelistParamsRepairlinkN1 PostSourceProjectNamePackageNamecmdCommitfilelistParamsRepairlink = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCommitfilelistParamsWithvalidate. -const ( - PostSourceProjectNamePackageNamecmdCommitfilelistParamsWithvalidateN0 PostSourceProjectNamePackageNamecmdCommitfilelistParamsWithvalidate = "0" - PostSourceProjectNamePackageNamecmdCommitfilelistParamsWithvalidateN1 PostSourceProjectNamePackageNamecmdCommitfilelistParamsWithvalidate = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCopyParamsRev. -const ( - Repository PostSourceProjectNamePackageNamecmdCopyParamsRev = "repository" - Upload PostSourceProjectNamePackageNamecmdCopyParamsRev = "upload" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCopyParamsWithbinaries. -const ( - PostSourceProjectNamePackageNamecmdCopyParamsWithbinariesN0 PostSourceProjectNamePackageNamecmdCopyParamsWithbinaries = "0" - PostSourceProjectNamePackageNamecmdCopyParamsWithbinariesN1 PostSourceProjectNamePackageNamecmdCopyParamsWithbinaries = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCopyParamsMakeolder. -const ( - PostSourceProjectNamePackageNamecmdCopyParamsMakeolderN0 PostSourceProjectNamePackageNamecmdCopyParamsMakeolder = "0" - PostSourceProjectNamePackageNamecmdCopyParamsMakeolderN1 PostSourceProjectNamePackageNamecmdCopyParamsMakeolder = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCopyParamsMakeoriginolder. -const ( - PostSourceProjectNamePackageNamecmdCopyParamsMakeoriginolderN0 PostSourceProjectNamePackageNamecmdCopyParamsMakeoriginolder = "0" - PostSourceProjectNamePackageNamecmdCopyParamsMakeoriginolderN1 PostSourceProjectNamePackageNamecmdCopyParamsMakeoriginolder = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCopyParamsNodelay. -const ( - PostSourceProjectNamePackageNamecmdCopyParamsNodelayN0 PostSourceProjectNamePackageNamecmdCopyParamsNodelay = "0" - PostSourceProjectNamePackageNamecmdCopyParamsNodelayN1 PostSourceProjectNamePackageNamecmdCopyParamsNodelay = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCopyParamsWithhistory. -const ( - PostSourceProjectNamePackageNamecmdCopyParamsWithhistoryN0 PostSourceProjectNamePackageNamecmdCopyParamsWithhistory = "0" - PostSourceProjectNamePackageNamecmdCopyParamsWithhistoryN1 PostSourceProjectNamePackageNamecmdCopyParamsWithhistory = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdCopyParamsNoservice. -const ( - PostSourceProjectNamePackageNamecmdCopyParamsNoserviceN0 PostSourceProjectNamePackageNamecmdCopyParamsNoservice = "0" - PostSourceProjectNamePackageNamecmdCopyParamsNoserviceN1 PostSourceProjectNamePackageNamecmdCopyParamsNoservice = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdDiffParamsCacheonly. -const ( - PostSourceProjectNamePackageNamecmdDiffParamsCacheonlyN0 PostSourceProjectNamePackageNamecmdDiffParamsCacheonly = "0" - PostSourceProjectNamePackageNamecmdDiffParamsCacheonlyN1 PostSourceProjectNamePackageNamecmdDiffParamsCacheonly = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdDiffParamsExpand. -const ( - PostSourceProjectNamePackageNamecmdDiffParamsExpandN0 PostSourceProjectNamePackageNamecmdDiffParamsExpand = "0" - PostSourceProjectNamePackageNamecmdDiffParamsExpandN1 PostSourceProjectNamePackageNamecmdDiffParamsExpand = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdDiffParamsMeta. -const ( - PostSourceProjectNamePackageNamecmdDiffParamsMetaN0 PostSourceProjectNamePackageNamecmdDiffParamsMeta = "0" - PostSourceProjectNamePackageNamecmdDiffParamsMetaN1 PostSourceProjectNamePackageNamecmdDiffParamsMeta = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdDiffParamsMissingok. -const ( - PostSourceProjectNamePackageNamecmdDiffParamsMissingokN0 PostSourceProjectNamePackageNamecmdDiffParamsMissingok = "0" - PostSourceProjectNamePackageNamecmdDiffParamsMissingokN1 PostSourceProjectNamePackageNamecmdDiffParamsMissingok = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdDiffParamsNodiff. -const ( - PostSourceProjectNamePackageNamecmdDiffParamsNodiffN0 PostSourceProjectNamePackageNamecmdDiffParamsNodiff = "0" - PostSourceProjectNamePackageNamecmdDiffParamsNodiffN1 PostSourceProjectNamePackageNamecmdDiffParamsNodiff = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdDiffParamsOnlyissues. -const ( - PostSourceProjectNamePackageNamecmdDiffParamsOnlyissuesN0 PostSourceProjectNamePackageNamecmdDiffParamsOnlyissues = "0" - PostSourceProjectNamePackageNamecmdDiffParamsOnlyissuesN1 PostSourceProjectNamePackageNamecmdDiffParamsOnlyissues = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdDiffParamsUnified. -const ( - PostSourceProjectNamePackageNamecmdDiffParamsUnifiedN0 PostSourceProjectNamePackageNamecmdDiffParamsUnified = "0" - PostSourceProjectNamePackageNamecmdDiffParamsUnifiedN1 PostSourceProjectNamePackageNamecmdDiffParamsUnified = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdDiffParamsView. -const ( - PostSourceProjectNamePackageNamecmdDiffParamsViewUnified PostSourceProjectNamePackageNamecmdDiffParamsView = "unified" - PostSourceProjectNamePackageNamecmdDiffParamsViewXml PostSourceProjectNamePackageNamecmdDiffParamsView = "xml" -) - -// Defines values for PostSourceProjectNamePackageNamecmdDiffParamsWithissues. -const ( - PostSourceProjectNamePackageNamecmdDiffParamsWithissuesN0 PostSourceProjectNamePackageNamecmdDiffParamsWithissues = "0" - PostSourceProjectNamePackageNamecmdDiffParamsWithissuesN1 PostSourceProjectNamePackageNamecmdDiffParamsWithissues = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuild. -const ( - PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuildCopy PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuild = "copy" - PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuildDirect PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuild = "direct" - PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuildLocal PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuild = "local" - PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuildTransitive PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuild = "transitive" -) - -// Defines values for PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesBlock. -const ( - PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesBlockAll PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesBlock = "all" - PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesBlockLocal PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesBlock = "local" - PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesBlockNever PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesBlock = "never" -) - -// Defines values for PostSourceProjectNamePackageNamecmdGetprojectservicesParamsCmd. -const ( - Getprojectservices PostSourceProjectNamePackageNamecmdGetprojectservicesParamsCmd = "getprojectservices" -) - -// Defines values for PostSourceProjectNamePackageNamecmdLinkdiffParamsOnlyissues. -const ( - PostSourceProjectNamePackageNamecmdLinkdiffParamsOnlyissuesN0 PostSourceProjectNamePackageNamecmdLinkdiffParamsOnlyissues = "0" - PostSourceProjectNamePackageNamecmdLinkdiffParamsOnlyissuesN1 PostSourceProjectNamePackageNamecmdLinkdiffParamsOnlyissues = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdLinkdiffParamsUnified. -const ( - PostSourceProjectNamePackageNamecmdLinkdiffParamsUnifiedN0 PostSourceProjectNamePackageNamecmdLinkdiffParamsUnified = "0" - PostSourceProjectNamePackageNamecmdLinkdiffParamsUnifiedN1 PostSourceProjectNamePackageNamecmdLinkdiffParamsUnified = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdLinkdiffParamsView. -const ( - PostSourceProjectNamePackageNamecmdLinkdiffParamsViewUnified PostSourceProjectNamePackageNamecmdLinkdiffParamsView = "unified" - PostSourceProjectNamePackageNamecmdLinkdiffParamsViewXml PostSourceProjectNamePackageNamecmdLinkdiffParamsView = "xml" -) - -// Defines values for PostSourceProjectNamePackageNamecmdLinkdiffParamsWithissues. -const ( - PostSourceProjectNamePackageNamecmdLinkdiffParamsWithissuesN0 PostSourceProjectNamePackageNamecmdLinkdiffParamsWithissues = "0" - PostSourceProjectNamePackageNamecmdLinkdiffParamsWithissuesN1 PostSourceProjectNamePackageNamecmdLinkdiffParamsWithissues = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag. -const ( - PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlagAccess PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag = "access" - PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlagBinarydownload PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag = "binarydownload" - PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlagBuild PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag = "build" - PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlagDebuginfo PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag = "debuginfo" - PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlagLock PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag = "lock" - PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlagPublish PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag = "publish" - PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlagSourceaccess PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag = "sourceaccess" - PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlagUseforbuild PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag = "useforbuild" -) - -// Defines values for PostSourceProjectNamePackageNamecmdServicediffParamsOnlyissues. -const ( - PostSourceProjectNamePackageNamecmdServicediffParamsOnlyissuesN0 PostSourceProjectNamePackageNamecmdServicediffParamsOnlyissues = "0" - PostSourceProjectNamePackageNamecmdServicediffParamsOnlyissuesN1 PostSourceProjectNamePackageNamecmdServicediffParamsOnlyissues = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdServicediffParamsUnified. -const ( - PostSourceProjectNamePackageNamecmdServicediffParamsUnifiedN0 PostSourceProjectNamePackageNamecmdServicediffParamsUnified = "0" - PostSourceProjectNamePackageNamecmdServicediffParamsUnifiedN1 PostSourceProjectNamePackageNamecmdServicediffParamsUnified = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdServicediffParamsView. -const ( - PostSourceProjectNamePackageNamecmdServicediffParamsViewUnified PostSourceProjectNamePackageNamecmdServicediffParamsView = "unified" - PostSourceProjectNamePackageNamecmdServicediffParamsViewXml PostSourceProjectNamePackageNamecmdServicediffParamsView = "xml" -) - -// Defines values for PostSourceProjectNamePackageNamecmdServicediffParamsWithissues. -const ( - PostSourceProjectNamePackageNamecmdServicediffParamsWithissuesN0 PostSourceProjectNamePackageNamecmdServicediffParamsWithissues = "0" - PostSourceProjectNamePackageNamecmdServicediffParamsWithissuesN1 PostSourceProjectNamePackageNamecmdServicediffParamsWithissues = "1" -) - -// Defines values for PostSourceProjectNamePackageNamecmdSetFlagParamsFlag. -const ( - Access PostSourceProjectNamePackageNamecmdSetFlagParamsFlag = "access" - Binarydownload PostSourceProjectNamePackageNamecmdSetFlagParamsFlag = "binarydownload" - Build PostSourceProjectNamePackageNamecmdSetFlagParamsFlag = "build" - Debuginfo PostSourceProjectNamePackageNamecmdSetFlagParamsFlag = "debuginfo" - Lock PostSourceProjectNamePackageNamecmdSetFlagParamsFlag = "lock" - Publish PostSourceProjectNamePackageNamecmdSetFlagParamsFlag = "publish" - Sourceaccess PostSourceProjectNamePackageNamecmdSetFlagParamsFlag = "sourceaccess" - Useforbuild PostSourceProjectNamePackageNamecmdSetFlagParamsFlag = "useforbuild" -) - -// Defines values for PostSourceProjectNamePackageNamecmdSetFlagParamsStatus. -const ( - Disable PostSourceProjectNamePackageNamecmdSetFlagParamsStatus = "disable" - Enable PostSourceProjectNamePackageNamecmdSetFlagParamsStatus = "enable" -) - -// Defines values for GetSourceProjectNamePackageNameviewInfoParamsView. -const ( - GetSourceProjectNamePackageNameviewInfoParamsViewCpio GetSourceProjectNamePackageNameviewInfoParamsView = "cpio" - GetSourceProjectNamePackageNameviewInfoParamsViewGetmultibuild GetSourceProjectNamePackageNameviewInfoParamsView = "getmultibuild" - GetSourceProjectNamePackageNameviewInfoParamsViewInfo GetSourceProjectNamePackageNameviewInfoParamsView = "info" - GetSourceProjectNamePackageNameviewInfoParamsViewIssues GetSourceProjectNamePackageNameviewInfoParamsView = "issues" - GetSourceProjectNamePackageNameviewInfoParamsViewProductrepositories GetSourceProjectNamePackageNameviewInfoParamsView = "productrepositories" - GetSourceProjectNamePackageNameviewInfoParamsViewProducts GetSourceProjectNamePackageNameviewInfoParamsView = "products" -) - -// Defines values for GetSourceProjectNamePackageNameviewInfoParamsNofilename. -const ( - GetSourceProjectNamePackageNameviewInfoParamsNofilenameN0 GetSourceProjectNamePackageNameviewInfoParamsNofilename = "0" - GetSourceProjectNamePackageNameviewInfoParamsNofilenameN1 GetSourceProjectNamePackageNameviewInfoParamsNofilename = "1" -) - -// Defines values for GetSourceProjectNamePackageNameviewInfoParamsParse. -const ( - GetSourceProjectNamePackageNameviewInfoParamsParseN0 GetSourceProjectNamePackageNameviewInfoParamsParse = "0" - GetSourceProjectNamePackageNameviewInfoParamsParseN1 GetSourceProjectNamePackageNameviewInfoParamsParse = "1" -) - -// Defines values for PostSourceProjectNamecmdAddchannelsParamsMode. -const ( - PostSourceProjectNamecmdAddchannelsParamsModeAddDisabled PostSourceProjectNamecmdAddchannelsParamsMode = "add_disabled" - PostSourceProjectNamecmdAddchannelsParamsModeEnableAll PostSourceProjectNamecmdAddchannelsParamsMode = "enable_all" - PostSourceProjectNamecmdAddchannelsParamsModeSkipDisabled PostSourceProjectNamecmdAddchannelsParamsMode = "skip_disabled" -) - -// Defines values for PostSourceProjectNamecmdCopyParamsMakeolder. -const ( - PostSourceProjectNamecmdCopyParamsMakeolderN0 PostSourceProjectNamecmdCopyParamsMakeolder = "0" - PostSourceProjectNamecmdCopyParamsMakeolderN1 PostSourceProjectNamecmdCopyParamsMakeolder = "1" -) - -// Defines values for PostSourceProjectNamecmdCopyParamsMakeoriginolder. -const ( - PostSourceProjectNamecmdCopyParamsMakeoriginolderN0 PostSourceProjectNamecmdCopyParamsMakeoriginolder = "0" - PostSourceProjectNamecmdCopyParamsMakeoriginolderN1 PostSourceProjectNamecmdCopyParamsMakeoriginolder = "1" -) - -// Defines values for PostSourceProjectNamecmdCopyParamsNodelay. -const ( - PostSourceProjectNamecmdCopyParamsNodelayN0 PostSourceProjectNamecmdCopyParamsNodelay = "0" - PostSourceProjectNamecmdCopyParamsNodelayN1 PostSourceProjectNamecmdCopyParamsNodelay = "1" -) - -// Defines values for PostSourceProjectNamecmdCopyParamsNoservice. -const ( - PostSourceProjectNamecmdCopyParamsNoserviceN0 PostSourceProjectNamecmdCopyParamsNoservice = "0" - PostSourceProjectNamecmdCopyParamsNoserviceN1 PostSourceProjectNamecmdCopyParamsNoservice = "1" -) - -// Defines values for PostSourceProjectNamecmdCopyParamsResign. -const ( - PostSourceProjectNamecmdCopyParamsResignN0 PostSourceProjectNamecmdCopyParamsResign = "0" - PostSourceProjectNamecmdCopyParamsResignN1 PostSourceProjectNamecmdCopyParamsResign = "1" -) - -// Defines values for PostSourceProjectNamecmdCopyParamsWithbinaries. -const ( - PostSourceProjectNamecmdCopyParamsWithbinariesN0 PostSourceProjectNamecmdCopyParamsWithbinaries = "0" - PostSourceProjectNamecmdCopyParamsWithbinariesN1 PostSourceProjectNamecmdCopyParamsWithbinaries = "1" -) - -// Defines values for PostSourceProjectNamecmdCopyParamsWithhistory. -const ( - PostSourceProjectNamecmdCopyParamsWithhistoryN0 PostSourceProjectNamecmdCopyParamsWithhistory = "0" - PostSourceProjectNamecmdCopyParamsWithhistoryN1 PostSourceProjectNamecmdCopyParamsWithhistory = "1" -) - -// Defines values for PostSourceProjectNamecmdModifychannelsParamsMode. -const ( - PostSourceProjectNamecmdModifychannelsParamsModeAddDisabled PostSourceProjectNamecmdModifychannelsParamsMode = "add_disabled" - PostSourceProjectNamecmdModifychannelsParamsModeEnableAll PostSourceProjectNamecmdModifychannelsParamsMode = "enable_all" -) - -// Defines values for GetSourceProjectNameviewInfoParamsView. -const ( - GetSourceProjectNameviewInfoParamsViewInfo GetSourceProjectNameviewInfoParamsView = "info" - GetSourceProjectNameviewInfoParamsViewIssues GetSourceProjectNameviewInfoParamsView = "issues" - GetSourceProjectNameviewInfoParamsViewProductlist GetSourceProjectNameviewInfoParamsView = "productlist" - GetSourceProjectNameviewInfoParamsViewVerboseproductlist GetSourceProjectNameviewInfoParamsView = "verboseproductlist" -) - -// Defines values for GetSourceProjectNameviewInfoParamsNoexpand. -const ( - GetSourceProjectNameviewInfoParamsNoexpandN0 GetSourceProjectNameviewInfoParamsNoexpand = "0" - GetSourceProjectNameviewInfoParamsNoexpandN1 GetSourceProjectNameviewInfoParamsNoexpand = "1" -) - -// Defines values for GetSourceProjectNameviewInfoParamsNofilename. -const ( - GetSourceProjectNameviewInfoParamsNofilenameN0 GetSourceProjectNameviewInfoParamsNofilename = "0" - GetSourceProjectNameviewInfoParamsNofilenameN1 GetSourceProjectNameviewInfoParamsNofilename = "1" -) - -// Defines values for GetSourceProjectNameviewInfoParamsParse. -const ( - GetSourceProjectNameviewInfoParamsParseN0 GetSourceProjectNameviewInfoParamsParse = "0" - GetSourceProjectNameviewInfoParamsParseN1 GetSourceProjectNameviewInfoParamsParse = "1" -) - -// Defines values for GetSourceProjectNameviewInfoParamsWithmetamd5. -const ( - GetSourceProjectNameviewInfoParamsWithmetamd5N0 GetSourceProjectNameviewInfoParamsWithmetamd5 = "0" - GetSourceProjectNameviewInfoParamsWithmetamd5N1 GetSourceProjectNameviewInfoParamsWithmetamd5 = "1" -) - -// Defines values for GetSourceProjectNameviewInfoParamsWithchangesmd5. -const ( - GetSourceProjectNameviewInfoParamsWithchangesmd5N0 GetSourceProjectNameviewInfoParamsWithchangesmd5 = "0" - GetSourceProjectNameviewInfoParamsWithchangesmd5N1 GetSourceProjectNameviewInfoParamsWithchangesmd5 = "1" -) - -// Defines values for PostSourcecmdBranchParamsAddRepositoriesRebuild. -const ( - TransitiveDirectLocalCopy PostSourcecmdBranchParamsAddRepositoriesRebuild = "transitive direct local copy" -) - -// Defines values for PostSourcecmdBranchParamsAddRepositoriesBlock. -const ( - All PostSourcecmdBranchParamsAddRepositoriesBlock = "all" - Local PostSourcecmdBranchParamsAddRepositoriesBlock = "local" - Never PostSourcecmdBranchParamsAddRepositoriesBlock = "never" -) - -// Defines values for GetStagingProjectNameStagingProjectsStagingProjectNameParamsRequests. -const ( - GetStagingProjectNameStagingProjectsStagingProjectNameParamsRequestsN1 GetStagingProjectNameStagingProjectsStagingProjectNameParamsRequests = "1" -) - -// Defines values for GetStagingProjectNameStagingProjectsStagingProjectNameParamsStatus. -const ( - GetStagingProjectNameStagingProjectsStagingProjectNameParamsStatusN1 GetStagingProjectNameStagingProjectsStagingProjectNameParamsStatus = "1" -) - -// Defines values for GetStagingProjectNameStagingProjectsStagingProjectNameParamsHistory. -const ( - N1 GetStagingProjectNameStagingProjectsStagingProjectNameParamsHistory = "1" -) - -// PostBuildProjectNameParams defines parameters for PostBuildProjectName. -type PostBuildProjectNameParams struct { - // Package Name of the package. Scope the commands to the specified package. - Package *string `form:"package,omitempty" json:"package,omitempty"` - - // Arch Name of the build architecture. Scope the commands to the specified architectures. - Arch *string `form:"arch,omitempty" json:"arch,omitempty"` - - // Repository Name of the repository. Scope the commands to the specified repository. - Repository *string `form:"repository,omitempty" json:"repository,omitempty"` - - // Cmd **NOTE**: All commands described below, can be scoped to a package within the project by setting the `package` - // parameter. - // - // * `wipe`: Delete all binaries build by the project. - // * `restartbuild`: Restart all running build processes inside the project. - // * `rebuild`: Trigger a rebuild of all packages inside the project. - // * `abortbuild`: Abort all running build processes for the specified project, marking them as failed. - // * `killbuild`: Alias for `abortbuild`. - // * `unpublish`: Delete all published package binaries, for the specified project, from the download repository. - // * `sendsysrq`: Send a single sysrq character to the kernel of a running build. Character need to be specified - // through the `sysrq` parameter. Only a subset of debugging requests are supported (eg. 9, t or w). - Cmd PostBuildProjectNameParamsCmd `form:"cmd" json:"cmd"` -} - -// PostBuildProjectNameParamsCmd defines parameters for PostBuildProjectName. -type PostBuildProjectNameParamsCmd string - -// GetBuildProjectNameResultParams defines parameters for GetBuildProjectNameResult. -type GetBuildProjectNameResultParams struct { - // View Specify which sections should be included in the result list. - // - // * `status`: Include detailed infos about the build status. - // * `summary`: Include the summary of the status values. - // * `binarylist`: Include a list of generated binary files. - View *GetBuildProjectNameResultParamsView `form:"view,omitempty" json:"view,omitempty"` - - // Package Name of the package. Limit results to the specified package. - Package *string `form:"package,omitempty" json:"package,omitempty"` - - // Arch Name of the build architecture. Limit results to the specified build architecture. - Arch *string `form:"arch,omitempty" json:"arch,omitempty"` - - // Repository Name of the repository. Limit results to the specified repository. - Repository *string `form:"repository,omitempty" json:"repository,omitempty"` - - // Lastbuild Set to `1` to show the last build result (excludes current building job states). - Lastbuild *string `form:"lastbuild,omitempty" json:"lastbuild,omitempty"` - - // Locallink Set to `1` to include build results from packages with project local links. - Locallink *string `form:"locallink,omitempty" json:"locallink,omitempty"` - - // Multibuild Set to `1` to include build results from _multibuild definitions. - Multibuild *string `form:"multibuild,omitempty" json:"multibuild,omitempty"` -} - -// GetBuildProjectNameResultParamsView defines parameters for GetBuildProjectNameResult. -type GetBuildProjectNameResultParamsView string - -// GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParams defines parameters for GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo. -type GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParams struct { - // Package Name of the package. Limit results to the specified package. - Package *string `form:"package,omitempty" json:"package,omitempty"` - - // View * `pkgnames`: Show whole package dependencies, instead of individual binaries. - // * `revpkgnames`: Show which packages depend on the provided project/package for - // the given repository/architecture, and therefore a rebuild gets triggered on change. - // * `order`: Show packages ordered by dependencies. - View *GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParamsView `form:"view,omitempty" json:"view,omitempty"` -} - -// GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParamsView defines parameters for GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo. -type GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParamsView string - -// GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryParams defines parameters for GetBuildProjectNameRepositoryNameArchitectureNameJobhistory. -type GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryParams struct { - // Code Filter results by finished build code: `failed`, `succeeded`, `unchanged`. - Code *string `form:"code,omitempty" json:"code,omitempty"` - - // EndtimeEnd Show builds which finished before given time. - EndtimeEnd *int `form:"endtime_end,omitempty" json:"endtime_end,omitempty"` - - // EndtimeStart Show builds which finished after given time. - EndtimeStart *int `form:"endtime_start,omitempty" json:"endtime_start,omitempty"` - - // Limit Limit the number of retrieved results elements to the specified number. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Package Name of the package. Limit results to the specified package. - Package *string `form:"package,omitempty" json:"package,omitempty"` -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams defines parameters for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfo. -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams struct { - // Add Add a list of build dependencies (`BuildRequires`) to the build. - Add *[]string `form:"add,omitempty" json:"add,omitempty"` - - // Debug Set to `1` to add debug information about dependencies. This information is added inside an `expandeddebug` xml element. - Debug *string `form:"debug,omitempty" json:"debug,omitempty"` -} - -// PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoTextBody defines parameters for PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfo. -type PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoTextBody = string - -// PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams defines parameters for PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfo. -type PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams struct { - // Add Add a list of build dependencies (`BuildRequires`) to the build. - Add *[]string `form:"add,omitempty" json:"add,omitempty"` - - // Debug Set to `1` to add debug information about dependencies. This information is added inside an `expandeddebug` xml element. - Debug *string `form:"debug,omitempty" json:"debug,omitempty"` -} - -// DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName defines parameters for DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName. -type DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName string - -// PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName defines parameters for PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName. -type PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName string - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParams defines parameters for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfo. -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParams struct { - View []GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParamsView `form:"view" json:"view"` -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParamsView defines parameters for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfo. -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParamsView string - -// PostCommentsPackageProjectNamePackageNameTextBody defines parameters for PostCommentsPackageProjectNamePackageName. -type PostCommentsPackageProjectNamePackageNameTextBody = string - -// PostCommentsPackageProjectNamePackageNameParams defines parameters for PostCommentsPackageProjectNamePackageName. -type PostCommentsPackageProjectNamePackageNameParams struct { - // ParentId Id of the comment to reply to - ParentId *int `form:"parent_id,omitempty" json:"parent_id,omitempty"` -} - -// PostCommentsProjectProjectNameTextBody defines parameters for PostCommentsProjectProjectName. -type PostCommentsProjectProjectNameTextBody = string - -// PostCommentsProjectProjectNameParams defines parameters for PostCommentsProjectProjectName. -type PostCommentsProjectProjectNameParams struct { - // ParentId Id of the comment to reply to - ParentId *int `form:"parent_id,omitempty" json:"parent_id,omitempty"` -} - -// PostCommentsRequestIdTextBody defines parameters for PostCommentsRequestId. -type PostCommentsRequestIdTextBody = string - -// PostCommentsRequestIdParams defines parameters for PostCommentsRequestId. -type PostCommentsRequestIdParams struct { - // ParentId Id of the comment to reply to - ParentId *int `form:"parent_id,omitempty" json:"parent_id,omitempty"` -} - -// PostGroupGroupTitleParams defines parameters for PostGroupGroupTitle. -type PostGroupGroupTitleParams struct { - // Cmd Command to be executed. It takes one of these available values: - // * `add_user`: add a user to a group. `userid` query parameter must be also used. - // * `remove_user`: remove a user from a group. `userid` query parameter must be also used. - // * `set_email`: set email adress of group. `email` query parameter must be also used. - Cmd *PostGroupGroupTitleParamsCmd `form:"cmd,omitempty" json:"cmd,omitempty"` - - // Userid User login. Used with `cmd=add_user` or `cmd=remove_user`. - Userid *string `form:"userid,omitempty" json:"userid,omitempty"` - - // Email Group email. Used with `cmd=set_email`. - Email *string `form:"email,omitempty" json:"email,omitempty"` -} - -// PostGroupGroupTitleParamsCmd defines parameters for PostGroupGroupTitle. -type PostGroupGroupTitleParamsCmd string - -// GetMyNotificationsParams defines parameters for GetMyNotifications. -type GetMyNotificationsParams struct { - Project *string `form:"project,omitempty" json:"project,omitempty"` - Page *int `form:"page,omitempty" json:"page,omitempty"` - ShowMaximum *string `form:"show_maximum,omitempty" json:"show_maximum,omitempty"` - NotificationsType *GetMyNotificationsParamsNotificationsType `form:"notifications_type,omitempty" json:"notifications_type,omitempty"` -} - -// GetMyNotificationsParamsNotificationsType defines parameters for GetMyNotifications. -type GetMyNotificationsParamsNotificationsType string - -// GetPersonParams defines parameters for GetPerson. -type GetPersonParams struct { - // Prefix A prefix to filter the people to look for - Prefix *string `form:"prefix,omitempty" json:"prefix,omitempty"` - - // Confirmed List only active users. This parameter is interpreted as `true` if present, `false` otherwise. - Confirmed *string `form:"confirmed,omitempty" json:"confirmed,omitempty"` -} - -// PostPersonParams defines parameters for PostPerson. -type PostPersonParams struct { - // Cmd The command to execute - Cmd PostPersonParamsCmd `form:"cmd" json:"cmd"` -} - -// PostPersonParamsCmd defines parameters for PostPerson. -type PostPersonParamsCmd string - -// PostPersonLoginTextBody defines parameters for PostPersonLogin. -type PostPersonLoginTextBody = string - -// PostPersonLoginParams defines parameters for PostPersonLogin. -type PostPersonLoginParams struct { - // Cmd The command to execute against the provided person. - Cmd PostPersonLoginParamsCmd `form:"cmd" json:"cmd"` -} - -// PostPersonLoginParamsCmd defines parameters for PostPersonLogin. -type PostPersonLoginParamsCmd string - -// PostPersonLoginTokenParams defines parameters for PostPersonLoginToken. -type PostPersonLoginTokenParams struct { - // Description Token description. It helps to identify a token from the rest of the tokens of a user. - Description *string `form:"description,omitempty" json:"description,omitempty"` - - // Project Project name. Should be provided, together with the package query parameter, - // to limit the token to a specific package. - Project *string `form:"project,omitempty" json:"project,omitempty"` - - // Package Package name. Should be provided, together with the project query parameter, - // to limit the token to a specific package. - Package *string `form:"package,omitempty" json:"package,omitempty"` - - // Operation Operation indicates the kind of token that is going to be created. - // - // When operation is not specified, 'runservice' is the default value. - Operation *PostPersonLoginTokenParamsOperation `form:"operation,omitempty" json:"operation,omitempty"` - - // ScmToken **(Beta/Unstable)** - // - // SCM token used in OBS workflows to report back the workflow status, when the operation is workflow. - // - // It's normally possible to generate SCM tokens directly on the SCM's website like GitHub or GitLab. - ScmToken *string `form:"scm_token,omitempty" json:"scm_token,omitempty"` -} - -// PostPersonLoginTokenParamsOperation defines parameters for PostPersonLoginToken. -type PostPersonLoginTokenParamsOperation string - -// GetPublishedProjectNameRepositoryNameviewStatusParams defines parameters for GetPublishedProjectNameRepositoryNameviewStatus. -type GetPublishedProjectNameRepositoryNameviewStatusParams struct { - // View Set this parameter to status in order to get details about the last publication. - View *GetPublishedProjectNameRepositoryNameviewStatusParamsView `form:"view,omitempty" json:"view,omitempty"` -} - -// GetPublishedProjectNameRepositoryNameviewStatusParamsView defines parameters for GetPublishedProjectNameRepositoryNameviewStatus. -type GetPublishedProjectNameRepositoryNameviewStatusParamsView string - -// PostRequestParams defines parameters for PostRequest. -type PostRequestParams struct { - // Cmd This endpoint will refuse the creation of a new request if this parameter is not set. - Cmd PostRequestParamsCmd `form:"cmd" json:"cmd"` - - // Addrevision Ask the server to add revisions of the current sources to the request. - Addrevision *PostRequestParamsAddrevision `form:"addrevision,omitempty" json:"addrevision,omitempty"` - - // IgnoreDelegate Enforce a new package instance in a project which has OBS:DelegateRequestTarget set - IgnoreDelegate *PostRequestParamsIgnoreDelegate `form:"ignore_delegate,omitempty" json:"ignore_delegate,omitempty"` - - // IgnoreBuildState Skip the build state check - IgnoreBuildState *PostRequestParamsIgnoreBuildState `form:"ignore_build_state,omitempty" json:"ignore_build_state,omitempty"` -} - -// PostRequestParamsCmd defines parameters for PostRequest. -type PostRequestParamsCmd string - -// PostRequestParamsAddrevision defines parameters for PostRequest. -type PostRequestParamsAddrevision string - -// PostRequestParamsIgnoreDelegate defines parameters for PostRequest. -type PostRequestParamsIgnoreDelegate string - -// PostRequestParamsIgnoreBuildState defines parameters for PostRequest. -type PostRequestParamsIgnoreBuildState string - -// GetRequestIdParams defines parameters for GetRequestId. -type GetRequestIdParams struct { - // Withhistory Include the request history in the results. - Withhistory *string `form:"withhistory,omitempty" json:"withhistory,omitempty"` - - // Withfullhistory Includes both, request and review history in the results. - Withfullhistory *string `form:"withfullhistory,omitempty" json:"withfullhistory,omitempty"` -} - -// PostRequestIdParams defines parameters for PostRequestId. -type PostRequestIdParams struct { - // Cmd - `addreview`: - // Add a review to a request. **NOTE:** You need to specify who has to address - // the review by providing an additional paramter. Possible options are: - // * by_user - // * by_group - // * by_project - // - // - `assignreview`: - // Accept a review for a given group and assign a new review to a specific user. - // **NOTE:** You need to pass the group name in the `by_group` parameter - // and the new reviewer in the `reviewer` parameter. - // - // - `changestate`: Modify the state of a given request. - // **NOTE:** You need to pass the new state through the `newstate` parameter. Changing - // from one state to another is in certain cases not allowed. You can still force - // the operation by using the `force` parameter. - // - // To supersede the given request with another request, pass the ID of the other request - // in the `superseded_by` parameter, in addition to `newstate=superseded`. - // - // - `changereviewstate`: - // Change the state of a review inside a given request. - // - // - `setpriority`: - // Change the priority of a given request. You have to pass the choosen priority through - // the `priority` parameter. Possible values are: - // * low - // * moderate - // * important - // * critical - // - // - `setincident`: Change the target incident for maintenance_incident actions - // **NOTE:** You need to provide the incident number through the `incident` - // parameter. - // - // - `setacceptat`: Set or modify the accept_at time. Either specified by the `time` - // parameter or by default set to now. - // - // - `approve`: Pre-approve a request in the review state. It will turn into state `accepted` - // after the last review. - // - // - `cancelapproval`: Reset the approval of a request - Cmd *string `form:"cmd,omitempty" json:"cmd,omitempty"` - - // Newstate Define the new state - Newstate *string `form:"newstate,omitempty" json:"newstate,omitempty"` - - // SupersededBy Required and used only with the combination of the `changestate` command and the `newstate=superseded` parameter - Supersede the given request with another request by passing its ID in this parameter - SupersededBy *string `form:"superseded_by,omitempty" json:"superseded_by,omitempty"` - - // Priority Define the new priority - Priority *string `form:"priority,omitempty" json:"priority,omitempty"` - - // ByUser Specify the user of a new review - ByUser *string `form:"by_user,omitempty" json:"by_user,omitempty"` - - // ByGroup Specify the group of the new review - ByGroup *string `form:"by_group,omitempty" json:"by_group,omitempty"` - - // ByProject Specify the project of the new review - ByProject *string `form:"by_project,omitempty" json:"by_project,omitempty"` - - // ByPackage Specify the package of the new review - ByPackage *string `form:"by_package,omitempty" json:"by_package,omitempty"` - - // Force Pass this parameter with an empty value to force the `changestate` command. - Force *string `form:"force,omitempty" json:"force,omitempty"` - - // Incident Specify the incident number for `setincident` - Incident *string `form:"incident,omitempty" json:"incident,omitempty"` - - // Revert Revert an assignreview command to assign review back to group - Revert *string `form:"revert,omitempty" json:"revert,omitempty"` - - // Time Specify the time for `setacceptat` - Time *string `form:"time,omitempty" json:"time,omitempty"` - - // Comment Add a comment to one of the actions - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// PostRequestIdcmdDiffParams defines parameters for PostRequestIdcmdDiff. -type PostRequestIdcmdDiffParams struct { - // DiffToSuperseded Diff relative to a given superseded request. State the id of the corresponding superseded request. - DiffToSuperseded *int `form:"diff_to_superseded,omitempty" json:"diff_to_superseded,omitempty"` - - // View Set this parameter to xml in order to receive a structured diff instead of plain text. - View *PostRequestIdcmdDiffParamsView `form:"view,omitempty" json:"view,omitempty"` - - // Withissues Include parsed issues from referenced sources - Withissues *PostRequestIdcmdDiffParamsWithissues `form:"withissues,omitempty" json:"withissues,omitempty"` - - // Withdescriptionissues Include parsed issues from request description - Withdescriptionissues *string `form:"withdescriptionissues,omitempty" json:"withdescriptionissues,omitempty"` -} - -// PostRequestIdcmdDiffParamsView defines parameters for PostRequestIdcmdDiff. -type PostRequestIdcmdDiffParamsView string - -// PostRequestIdcmdDiffParamsWithissues defines parameters for PostRequestIdcmdDiff. -type PostRequestIdcmdDiffParamsWithissues string - -// GetRequestviewCollectionParams defines parameters for GetRequestviewCollection. -type GetRequestviewCollectionParams struct { - // User Filter the results of requests and open reviews for a certain user. If no other parameters are - // applied, it will include requests where the user is maintainer of the target or the creator of - // the request. - User *string `form:"user,omitempty" json:"user,omitempty"` - - // Group Filter the results of requests and open reviews for a certain group. - Group *string `form:"group,omitempty" json:"group,omitempty"` - - // Project Limit the results to requests with this project as source or target, - // or requests which were assigned to be reviewed by the maintainers of this project. - Project *string `form:"project,omitempty" json:"project,omitempty"` - - // Package Limit the results to requests with this package as source or target, - // or requests which were assigned to be reviewed by the maintainers of this package. - Package *string `form:"package,omitempty" json:"package,omitempty"` - - // States Limit results to a given request state. Multiple states can be provided as a comma separated list. - States *string `form:"states,omitempty" json:"states,omitempty"` - - // Reviewstates Limit results to a given review state. Multiple states can be provided as a comma separated list. - Reviewstates *string `form:"reviewstates,omitempty" json:"reviewstates,omitempty"` - - // Types Limit the results to certain action types. Multiple types can be provided as a comma separated list. - Types *string `form:"types,omitempty" json:"types,omitempty"` - - // Roles Limit the results to a given role. Multiple roles can be provided as a comma separated list. - Roles *string `form:"roles,omitempty" json:"roles,omitempty"` - - // Withhistory Include the request history in the results. - Withhistory *string `form:"withhistory,omitempty" json:"withhistory,omitempty"` - - // Withfullhistory Includes both, request and review history in the results. - Withfullhistory *string `form:"withfullhistory,omitempty" json:"withfullhistory,omitempty"` - - // Limit Limit the results by the specified amount of requests. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Offset the results by the specified amount of requests. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Ids Limit the result to specified request id's. Multiple id's can be provided as a comma separated list. - Ids *string `form:"ids,omitempty" json:"ids,omitempty"` -} - -// GetSearchParams defines parameters for GetSearch. -type GetSearchParams struct { - // In Where to search and apply a XPath expression: either the list of projects or the list of packages. - // - // Example of a result when `projects` is selected: - // ``` - // - // - // - // - // - // - // - // x86_64 - // - // - // - // x86_64 - // - // - // - // Standard OBS instance at build.opensuse.org - // This instance delivers the default build targets for OBS. - // https://api.opensuse.org/public - // - // - // ``` - // - // Example of a result when `packages` is selected: - // ``` - // - // - // - // - // - // - // ``` - In GetSearchParamsIn `form:"in" json:"in"` - - // Match XPath expression used to filter the results. - Match string `form:"match" json:"match"` - - // Return XPath expression that defines which values will be returned. - // - // Instead of returning a collection of projects or packages, the result will be a collection of: - // - contents of elements, when that XPath expression match elements, or, - // - values of atttributes, when that XPath expression match atttributes. - // - // Example of result, for a query string like `?in=projects&match=repository/arch='x86_64'&return=repository/name`: - // ``` - // - // openSUSE_Tumbleweed - // 15.3 - // - // ``` - Return *string `form:"return,omitempty" json:"return,omitempty"` - - // Values When set to `1`, return a list of values, instead of returning a list of projects or packages. - // - // The result will be a collection of: - // - contents of elements, when the expression defined in the `match` query parameter match elements. - // For example: `match=repository/arch`. - // - values of atttributes, when the expression defined in the `match` query parameter match atttributes. - // For example: `match=repository/name`. - // - // Example of result, for a query string like `?in=projects&match=repository/path/project&values=1`: - // ``` - // - // openSUSE.org:openSUSE:Factory - // openSUSE.org:openSUSE:Leap:15.3 - // - // ``` - Values *string `form:"values,omitempty" json:"values,omitempty"` -} - -// GetSearchParamsIn defines parameters for GetSearch. -type GetSearchParamsIn string - -// GetSearchChannelParams defines parameters for GetSearchChannel. -type GetSearchChannelParams struct { - // Match Expression based in XPath. - // - // Providing a value of `*` will return all channels. - // - // Available predicates are: - // - General fields: `@package` and `@project` - // - Binary fields: `binary/@name`, `binary/@binaryarch`, `binary/@package` and `binary/@supportstatus` - // - Target fields: `target/disabled`, `target/updatefor/@project` and `target/updatefor/@product` - Match string `form:"match" json:"match"` -} - -// GetSearchChannelBinaryParams defines parameters for GetSearchChannelBinary. -type GetSearchChannelBinaryParams struct { - // Match Expression based in XPath. - // - // Providing a value of `*` will return all channels. - // - // Available predicates are: - // - General fields: `@name`, `@binaryarch`, `@package`, `@project` and `@supportstatus` - // - Target fields: `target/disabled` - // - Updatefor fields: `updatefor/@product` and `updatefor/@product` - Match string `form:"match" json:"match"` -} - -// GetSearchChannelBinaryIdParams defines parameters for GetSearchChannelBinaryId. -type GetSearchChannelBinaryIdParams struct { - // Match Expression based in XPath. - // - // Not providing a value or providing a value of `*` will return all released binaries. - // - // Available predicates are: - // - General fields: `@name`, `@binaryarch`, `@package`, `@project` and `@supportstatus` - // - Target fields: `target/disabled` - // - Updatefor fields: `updatefor/@product` and `updatefor/@product` - Match *string `form:"match,omitempty" json:"match,omitempty"` -} - -// GetSearchIssueParams defines parameters for GetSearchIssue. -type GetSearchIssueParams struct { - // Match Expression based in XPath. - // - // Providing a value of `*` will return all issues. - // - // Available predicates are: - // - Issue fields: `@name`, `@state`, and `@tracker`. - // - Issue owner fields: `owner/@email`, and `owner/@login`. - Match string `form:"match" json:"match"` - - // Limit Limit the number of results. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Return results starting from the element specified by offset. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// GetSearchMissingOwnerParams defines parameters for GetSearchMissingOwner. -type GetSearchMissingOwnerParams struct { - // Project Only return results for a given project. - Project *string `form:"project,omitempty" json:"project,omitempty"` - - // Filter A comma separated list of role names that should be - // taken into account in the result. - Filter *string `form:"filter,omitempty" json:"filter,omitempty"` - - // Attribute Choose the attribute name that marks the rootproject which defines the - // owner's for all corresponding subprojects and limit the returned results - // to those. The default value is `OBS:OwnerRootProject`. - Attribute *string `form:"attribute,omitempty" json:"attribute,omitempty"` -} - -// GetSearchOwnerParams defines parameters for GetSearchOwner. -type GetSearchOwnerParams struct { - // Package The name of the package whose owners you want to search. - Package *string `form:"package,omitempty" json:"package,omitempty"` - - // Binary The name of a binary package whose owners you want to search. - Binary *string `form:"binary,omitempty" json:"binary,omitempty"` - - // User Search what this user is owner of. - User *string `form:"user,omitempty" json:"user,omitempty"` - - // Group The title of a group. Search what this group is owner of. - Group *string `form:"group,omitempty" json:"group,omitempty"` - - // Limit Limit the number of returned results. This is only available for - // the search with the `binary` parameter. The default is set to `1`, - // use `0` to receive all results or `-1` for the deepest match. - Limit *string `form:"limit,omitempty" json:"limit,omitempty"` - - // Devel Include/exclude devel packages in the result. - Devel *GetSearchOwnerParamsDevel `form:"devel,omitempty" json:"devel,omitempty"` - - // Project By default the owner search will get results from projects (and their sub-projects) that have the OBS:OwnerRootProject attribute. - // Use this parameter to overwrite the default and search in this project (and it's sub-projects). - Project *string `form:"project,omitempty" json:"project,omitempty"` - - // Filter A comma separated list of role names that should be - // taken into account in the result. - Filter *string `form:"filter,omitempty" json:"filter,omitempty"` - - // Attribute Choose the attribute name that marks the rootproject which defines the - // owner's for all corresponding subprojects and limit the returned results - // to those. The default value is `OBS:OwnerRootProject`. - Attribute *string `form:"attribute,omitempty" json:"attribute,omitempty"` -} - -// GetSearchOwnerParamsDevel defines parameters for GetSearchOwner. -type GetSearchOwnerParamsDevel string - -// GetSearchPackageParams defines parameters for GetSearchPackage. -type GetSearchPackageParams struct { - // Match Expression based in XPath. - // - // Providing a value of `*` will return all packages. - // - // Available predicates are: - // - Package fields: `@name`, `title`, `description`, `scmsync`, and `kind`. - // - `@project`: name of the project of the package. - // - Devel package fields: - // - `devel/@project`: name of the devel project of the package. - // - `devel/@package`: name of the devel package of the package. - // - Issue fields: `issue/@state`, `issue/@name`, `issue/@tracker`, and `issue/@change`. - // - Issue owner fields: `issue/owner/@email`, and `issue/owner/@login`. - // - Fields of attributes of an issue: `attribute_issue/@state`, `attribute_issue/@name`, and `attribute_issue/@tracker`. - // - Fields of owners of an attribute of an issue: `attribute_issue/owner/@email` and `attribute_issue/owner/@login`. - // - Users and groups: - // - `person/@userid`: login of a user related to this package. - // - `person/@role`: name of the role which a user could be related with this package. - // - `group/@groupid`: name (title) of a group related to this package. - // - `group/@role`: name of the role which a group could be related with this package. - // - `attribute/@name`: name of an attribute of the package. - // - `project/attribute/@name`: name of an attribute of the project of the package. - Match string `form:"match" json:"match"` - - // Limit Limit the number of results. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Return results starting from the element specified by offset. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// GetSearchPackageIdParams defines parameters for GetSearchPackageId. -type GetSearchPackageIdParams struct { - // Match Expression based in XPath. - // - // Not providing a value or providing a value of `*` will return all packages. - // - // Available predicates are: - // - Package fields: `@name`, `title`, `description`, `scysync`, and `kind`. - // - `@project`: name of the project of the package. - // - Devel package fields: - // - `devel/@project`: name of the devel project of the package. - // - `devel/@package`: name of the devel package of the package. - // - Issue fields: `issue/@state`, `issue/@name`, `issue/@tracker`, and `issue/@change`. - // - Issue owner fields: `issue/owner/@email`, and `issue/owner/@login`. - // - Fields of attributes of an issue: `attribute_issue/@state`, `attribute_issue/@name`, and `attribute_issue/@tracker`. - // - Fields of owners of an attribute of an issue: `attribute_issue/owner/@email` and `attribute_issue/owner/@login`. - // - Users and groups: - // - `person/@userid`: login of a user related to this package. - // - `person/@role`: name of the role which a user could be related with this package. - // - `group/@groupid`: name (title) of a group related to this package. - // - `group/@role`: name of the role which a group could be related with this package. - // - `attribute/@name`: name of an attribute of the package. - // - `project/attribute/@name`: name of an attribute of the project of the package. - Match *string `form:"match,omitempty" json:"match,omitempty"` - - // Limit Limit the number of results. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Return results starting from the element specified by offset. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// GetSearchPersonParams defines parameters for GetSearchPerson. -type GetSearchPersonParams struct { - // Match Expression based in XPath. - // - // Providing a value of `*` will return all users. - // - // Available predicates are: `@login`, `@email`, `@realname`, and `@state`. - Match string `form:"match" json:"match"` - - // Limit Limit the number of results. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Return results starting from the element specified by offset. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// GetSearchProjectParams defines parameters for GetSearchProject. -type GetSearchProjectParams struct { - // Match Expression based in XPath. - // - // Providing a value of `*` will return all projects. - // - // Available predicates are: - // - Project fields: `@name`, `@kind`, `title`, `description`, `scmsync`, `url`, and `remoteurl`. - // - `package/@name`: name of the packages of the project. - // - `attribute/@name`: name of the attributes of the project. - // - Users and groups: - // - `person/@userid`: login of a user related to this project. - // - `person/@role`: name of the role which a user could be related with this project. - // - `group/@groupid`: name (title) of a group related to this project. - // - `group/@role`: name of the role which a group could be related with this project. - // - More complex predicates are: `maintenance/maintains/@project`, `repository/@name`, - // `repository/path/@project`, `repository/releasetarget/@trigger`. - Match string `form:"match" json:"match"` - - // Limit Limit the number of results. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Return results starting from the element specified by offset. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// GetSearchProjectIdParams defines parameters for GetSearchProjectId. -type GetSearchProjectIdParams struct { - // Match Expression based in XPath. - // - // Not providing a value or providing a value of `*` will return all projects. - // - // Available predicates are: - // - Project fields: `@name`, `@kind`, `title`, `description`, `scmsync`, `url`, and `remoteurl`. - // - `package/@name`: name of the packages of the project. - // - `attribute/@name`: name of the attributes of the project. - // - Users and groups: - // - `person/@userid`: login of a user related to this project. - // - `person/@role`: name of the role which a user could be related with this project. - // - `group/@groupid`: name (title) of a group related to this project. - // - `group/@role`: name of the role which a group could be related with this project. - // - More complex predicates are: `maintenance/maintains/@project`, `repository/@name`, - // `repository/path/@project`, `repository/releasetarget/@trigger`. - Match *string `form:"match,omitempty" json:"match,omitempty"` - - // Limit Limit the number of results. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Return results starting from the element specified by offset. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// GetSearchPublishedBinaryIdParams defines parameters for GetSearchPublishedBinaryId. -type GetSearchPublishedBinaryIdParams struct { - // Match XPath expression. - Match string `form:"match" json:"match"` - - // Limit Override default maximum value of 1000 entries to be returned. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Withdownloadurl Add the download url in the results as attribute `downloadurl`. - // - // A value `0` means without the download url. A value `1` means with the download url. - Withdownloadurl *GetSearchPublishedBinaryIdParamsWithdownloadurl `form:"withdownloadurl,omitempty" json:"withdownloadurl,omitempty"` -} - -// GetSearchPublishedBinaryIdParamsWithdownloadurl defines parameters for GetSearchPublishedBinaryId. -type GetSearchPublishedBinaryIdParamsWithdownloadurl int - -// GetSearchPublishedPatternIdParams defines parameters for GetSearchPublishedPatternId. -type GetSearchPublishedPatternIdParams struct { - // Match XPath expression. - Match string `form:"match" json:"match"` - - // Limit Override default maximum value of 1000 entries to be returned. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Withdownloadurl Add the download url in the results as attribute `downloadurl`. - // - // A value `0` means without the download url. A value `1` means with the download url. - Withdownloadurl *GetSearchPublishedPatternIdParamsWithdownloadurl `form:"withdownloadurl,omitempty" json:"withdownloadurl,omitempty"` -} - -// GetSearchPublishedPatternIdParamsWithdownloadurl defines parameters for GetSearchPublishedPatternId. -type GetSearchPublishedPatternIdParamsWithdownloadurl int - -// GetSearchPublishedRepoinfoIdParams defines parameters for GetSearchPublishedRepoinfoId. -type GetSearchPublishedRepoinfoIdParams struct { - // Match XPath expression. - Match string `form:"match" json:"match"` - - // Limit Override default maximum value of 1000 entries to be returned. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Withdownloadurl Add the download url in the results as attribute `downloadurl`. - // - // A value `0` means without the download url. A value `1` means with the download url. - Withdownloadurl *GetSearchPublishedRepoinfoIdParamsWithdownloadurl `form:"withdownloadurl,omitempty" json:"withdownloadurl,omitempty"` -} - -// GetSearchPublishedRepoinfoIdParamsWithdownloadurl defines parameters for GetSearchPublishedRepoinfoId. -type GetSearchPublishedRepoinfoIdParamsWithdownloadurl int - -// GetSearchReleasedBinaryParams defines parameters for GetSearchReleasedBinary. -type GetSearchReleasedBinaryParams struct { - // Match Expression based in XPath. - // - // Providing a value of `*` will return all released binaries. - // - // Available predicates are: - // - Released binary fields: `@name`, `disturl`, `@version`, `@release`, `@arch`, `@medium`, `binaryid`, `cpeid`, `supportstatus`, and `operation`. - // - Update info fields: `updateinfo/@id` and `updateinfo/@version`. - // - Build fields: `build/@time` and `build/@binaryid`. - // - Other fields: `modify/@time` and `obsolete/@time`. - // - Repository fields: `repository/@project` and `repository/@name`. - // - Publish fields: `publish/@time`, `publish/@package` and `publish/@flavor`. - // - "Update for" fields: `updatefor/@project`, `updatefor/@arch`, `updatefor/@product`, `updatefor/@baseversion`, `updatefor/@patchlevel`, and `updatefor/@version`. - // - Product fields: `product/@project`, `product/@version`, `product/@release`, `product/@baseversion`, `product/@patchlevel`, `product/@name`, `product/@arch`, and `product/@medium`. - Match string `form:"match" json:"match"` - - // Limit Limit the number of results. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Return results starting from the element specified by offset. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// GetSearchReleasedBinaryIdParams defines parameters for GetSearchReleasedBinaryId. -type GetSearchReleasedBinaryIdParams struct { - // Match Expression based in XPath. - // - // Not providing a value or providing a value of `*` will return all released binaries. - // - // Available predicates are: - // - Released binary fields: `@name`, `disturl`, `@version`, `@release`, `@arch`, `@medium`, `binaryid`, `cpeid`, `supportstatus`, and `operation`. - // - Update info fields: `updateinfo/@id` and `updateinfo/@version`. - // - Build fields: `build/@time` and `build/@binaryid`. - // - Other fields: `modify/@time` and `obsolete/@time`. - // - Repository fields: `repository/@project` and `repository/@name`. - // - Publish fields: `publish/@time`, `publish/@package` and `publish/@flavor`. - // - "Update for" fields: `updatefor/@project`, `updatefor/@arch`, `updatefor/@product`, `updatefor/@baseversion`, `updatefor/@patchlevel`, and `updatefor/@version`. - // - Product fields: `product/@project`, `product/@version`, `product/@release`, `product/@baseversion`, `product/@patchlevel`, `product/@name`, `product/@arch`, and `product/@medium`. - Match *string `form:"match,omitempty" json:"match,omitempty"` - - // Limit Limit the number of results. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Return results starting from the element specified by offset. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// GetSearchRepositoryIdParams defines parameters for GetSearchRepositoryId. -type GetSearchRepositoryIdParams struct { - // Match Expression based in XPath. - // - // Not providing a value or providing a value of `*` will return all projects. - // - // Available predicates are: - // - `@name`: name of the repository. - // - `@project`: name of the project of the repository. - // - Path fields: `path/@project` and `path/@repository`. - // - Target product fields: `targetproduct/@project`, `targetproduct/@arch`, `targetproduct/@name`, - // `targetproduct/@baseversion`, `targetproduct/@patchlevel`, and `targetproduct/@version`. - Match *string `form:"match,omitempty" json:"match,omitempty"` - - // Limit Limit the number of results. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Return results starting from the element specified by offset. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` -} - -// GetSearchRequestParams defines parameters for GetSearchRequest. -type GetSearchRequestParams struct { - // Match Expression based in XPath. - // - // Providing a value of `*` will return all requests. - // - // Available predicates are: - // - Request fields: `@id` and `@creator`. - // - State fields: `state/@name`, `state/@who`, and `state/@when`. - // - Target fields: `target/@project` and `target/@package`. - // - Source fields: `source/@project` and `source/@package`. - // - Actions fields: `action/@type`, `action/grouped/@id`, `action/target/@project`, `action/target/@package`, `action/source/@project`, and `action/source/@package`. - // - Reviews fields: - // - General: `review/@when`, `review/@state`. - // - Review by: `review/@by_user`, `review/@by_group`, `review/@by_project`, and `review/@by_package`. - // - History: `review/history/@when`. - // - History fields: `history/@when` and `history/@who`. - Match string `form:"match" json:"match"` - - // Limit Limit the number of results. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Return results starting from the element specified by offset. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Withhistory Include the request history. - // - // Without a value or with the value `0` means without the request history. A value `1` means with the request history. - Withhistory *string `form:"withhistory,omitempty" json:"withhistory,omitempty"` - - // Withfullhistory Include the request and review history. - // - // Without a value or with the value `0` means without the request and review history. A value `1` means with the request and review history. - Withfullhistory *string `form:"withfullhistory,omitempty" json:"withfullhistory,omitempty"` -} - -// GetSearchRequestIdParams defines parameters for GetSearchRequestId. -type GetSearchRequestIdParams struct { - // Match Expression based in XPath. - // - // Not providing a value or providing a value of `*` will return all requests. - // - // Available predicates are: - // - Request fields: `@id` and `@creator`. - // - State fields: `state/@name`, `state/@who`, and `state/@when`. - // - Target fields: `target/@project` and `target/@package`. - // - Source fields: `source/@project` and `source/@package`. - // - Actions fields: `action/@type`, `action/grouped/@id`, `action/target/@project`, `action/target/@package`, `action/source/@project`, and `action/source/@package`. - // - Reviews fields: - // - General: `review/@when`, `review/@state`. - // - Review by: `review/@by_user`, `review/@by_group`, `review/@by_project`, and `review/@by_package`. - // - History: `review/history/@when`. - // - History fields: `history/@when` and `history/@who`. - Match *string `form:"match,omitempty" json:"match,omitempty"` - - // Limit Limit the number of results. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset Return results starting from the element specified by offset. - Offset *int `form:"offset,omitempty" json:"offset,omitempty"` - - // Withhistory Include the request history. - // - // Without a value or with the value `0` means without the request history. A value `1` means with the request history. - Withhistory *string `form:"withhistory,omitempty" json:"withhistory,omitempty"` - - // Withfullhistory Include the request and review history. - // - // Without a value or with the value `0` means without the request and review history. A value `1` means with the request and review history. - Withfullhistory *string `form:"withfullhistory,omitempty" json:"withfullhistory,omitempty"` -} - -// GetSourceParams defines parameters for GetSource. -type GetSourceParams struct { - // Deleted Set to `1` to list the deleted projects. This is available for Admins only. - Deleted *int `form:"deleted,omitempty" json:"deleted,omitempty"` -} - -// DeleteSourceProjectNameParams defines parameters for DeleteSourceProjectName. -type DeleteSourceProjectNameParams struct { - // Force Set to `1` if you want to delete the project even if the repositories of other - // projects include a path to this project. After deletion, the path - // in the other repository will start pointing towards 'deleted/standard' to - // prevent the build and publishing - Force *int `form:"force,omitempty" json:"force,omitempty"` - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// GetSourceProjectNameParams defines parameters for GetSourceProjectName. -type GetSourceProjectNameParams struct { - // Deleted Set to `1` to list the packages of a deleted project. - Deleted *string `form:"deleted,omitempty" json:"deleted,omitempty"` - - // Expand Set to `1` to include packages from linked projects. - Expand *GetSourceProjectNameParamsExpand `form:"expand,omitempty" json:"expand,omitempty"` - - // View Specify which sections should be included in the packages list. - // - // * `issues`: Show all tracked issues for all the packages. - // * `productlist`: Show all contained products. - // * `verboseproductlist`: List all contained products with detailed information about the product. - // - // Example of a result when `issues` is selected: - // ``` - // - // - // - // 2009-05-21 10:50:00 UTC - // 2020-02-24 13:01:11 UTC - // 505969 - // bnc - // - // https://bugzilla.opensuse.org/show_bug.cgi?id=505969 - // CLOSED - // lzma, xz: missing manpages - // - // coolo - // coolo@suse.com - // Stephan Kulow - // - // - // - // 2009-06-04 14:35:00 UTC - // 2020-02-24 13:01:11 UTC - // 509945 - // bnc - // - // https://bugzilla.opensuse.org/show_bug.cgi?id=509945 - // CLOSED - // Enforce packaging of static libraries by rpmlint check - // - // dirkmueller - // dmueller@suse.com - // Dirk Mueller - // - // - // - // - // - // ``` - // - // Example of a result when `productlist` is selected: - // ``` - // - // - // - // - // - // ``` - // - // Example of a result when `verboseproductlist` is selected: - // ``` - // - // - // cpe:/o:opensuse:opensuse-addon-nonoss:20230108 - // 20230108 - // - // - // cpe:/o:opensuse:opensuse:20230108 - // 20230108 - // - // - // cpe:/o:opensuse:microos:20230108 - // 20230108 - // - // - // ``` - View *GetSourceProjectNameParamsView `form:"view,omitempty" json:"view,omitempty"` -} - -// GetSourceProjectNameParamsExpand defines parameters for GetSourceProjectName. -type GetSourceProjectNameParamsExpand string - -// GetSourceProjectNameParamsView defines parameters for GetSourceProjectName. -type GetSourceProjectNameParamsView string - -// GetSourceProjectNameAttributeParams defines parameters for GetSourceProjectNameAttribute. -type GetSourceProjectNameAttributeParams struct { - // View With view=blame, information about who changed each XML tag and when is displayed. - View *GetSourceProjectNameAttributeParamsView `form:"view,omitempty" json:"view,omitempty"` - - // WithDefault If the attribute doesn't contain any value and `with_default` is present, - // the default values will be displayed, if any. - WithDefault *string `form:"with_default,omitempty" json:"with_default,omitempty"` -} - -// GetSourceProjectNameAttributeParamsView defines parameters for GetSourceProjectNameAttribute. -type GetSourceProjectNameAttributeParamsView string - -// DeleteSourceProjectNameAttributeAttributeNameParams defines parameters for DeleteSourceProjectNameAttributeAttributeName. -type DeleteSourceProjectNameAttributeAttributeNameParams struct { - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// GetSourceProjectNameAttributeAttributeNameParams defines parameters for GetSourceProjectNameAttributeAttributeName. -type GetSourceProjectNameAttributeAttributeNameParams struct { - // View With view=blame, information about who changed each XML tag and when is displayed. - View *GetSourceProjectNameAttributeAttributeNameParamsView `form:"view,omitempty" json:"view,omitempty"` - - // WithDefault If the attribute doesn't contain any value and `with_default` is present, - // the default values will be displayed, if any. - WithDefault *string `form:"with_default,omitempty" json:"with_default,omitempty"` -} - -// GetSourceProjectNameAttributeAttributeNameParamsView defines parameters for GetSourceProjectNameAttributeAttributeName. -type GetSourceProjectNameAttributeAttributeNameParamsView string - -// PostSourceProjectNameAttributeAttributeNameParams defines parameters for PostSourceProjectNameAttributeAttributeName. -type PostSourceProjectNameAttributeAttributeNameParams struct { - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// GetSourceProjectNameConfigParams defines parameters for GetSourceProjectNameConfig. -type GetSourceProjectNameConfigParams struct { - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` -} - -// PutSourceProjectNameConfigTextBody defines parameters for PutSourceProjectNameConfig. -type PutSourceProjectNameConfigTextBody = string - -// PutSourceProjectNameConfigParams defines parameters for PutSourceProjectNameConfig. -type PutSourceProjectNameConfigParams struct { - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// GetSourceProjectNameMetaParams defines parameters for GetSourceProjectNameMeta. -type GetSourceProjectNameMetaParams struct { - View *string `form:"view,omitempty" json:"view,omitempty"` -} - -// PutSourceProjectNameMetaParams defines parameters for PutSourceProjectNameMeta. -type PutSourceProjectNameMetaParams struct { - // Comment Comment that explains the changes you made in meta file. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// GetSourceProjectNameProjectParams defines parameters for GetSourceProjectNameProject. -type GetSourceProjectNameProjectParams struct { - // Meta Set to 1 to include _meta files - Meta *int `form:"meta,omitempty" json:"meta,omitempty"` - - // Rev Revision number - Rev *int `form:"rev,omitempty" json:"rev,omitempty"` -} - -// GetSourceProjectNameProjectHistoryParams defines parameters for GetSourceProjectNameProjectHistory. -type GetSourceProjectNameProjectHistoryParams struct { - // Deleted Set to `1` to allow to retrieve the revision history of a deleted project. - Deleted *string `form:"deleted,omitempty" json:"deleted,omitempty"` - - // Limit Limit the number of retrieved revision history elements to the specified number. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Meta Set to `1` to retrieve the revision history of the meta file (`_meta`) of the project. - Meta *string `form:"meta,omitempty" json:"meta,omitempty"` - - // Startbefore Start the list of revision history elements before the given revision number. - Startbefore *int `form:"startbefore,omitempty" json:"startbefore,omitempty"` - - // Rev Return the revision entry for a specific revision number. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` -} - -// GetSourceProjectNameProjectFileNameParams defines parameters for GetSourceProjectNameProjectFileName. -type GetSourceProjectNameProjectFileNameParams struct { - // Deleted Set to `1` to read a file of a deleted project. - Deleted *string `form:"deleted,omitempty" json:"deleted,omitempty"` - - // Meta Set to `1` to include _meta files - Meta *int `form:"meta,omitempty" json:"meta,omitempty"` - - // Rev Revision number - Rev *int `form:"rev,omitempty" json:"rev,omitempty"` -} - -// DeleteSourceProjectNamePackageNameParams defines parameters for DeleteSourceProjectNamePackageName. -type DeleteSourceProjectNamePackageNameParams struct { - // Comment Comment to be included in the revision history of the package. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` - - // Force Set to `1` to delete this package, even if other packages use this one as devel package. - Force *DeleteSourceProjectNamePackageNameParamsForce `form:"force,omitempty" json:"force,omitempty"` -} - -// DeleteSourceProjectNamePackageNameParamsForce defines parameters for DeleteSourceProjectNamePackageName. -type DeleteSourceProjectNamePackageNameParamsForce string - -// GetSourceProjectNamePackageNameParams defines parameters for GetSourceProjectNamePackageName. -type GetSourceProjectNamePackageNameParams struct { - // Deleted Set to `1` to list source files of deleted packages. - // - // Return a "Bad Request" error (400) if it is set to `1` and the package exists. - Deleted *string `form:"deleted,omitempty" json:"deleted,omitempty"` - - // Expand Expand links. - Expand *GetSourceProjectNamePackageNameParamsExpand `form:"expand,omitempty" json:"expand,omitempty"` - - // Extension List source files with the given extension. - Extension *string `form:"extension,omitempty" json:"extension,omitempty"` - - // Lastworking Show sources of the last mergeable sources in case of conflicting changes. - Lastworking *GetSourceProjectNamePackageNameParamsLastworking `form:"lastworking,omitempty" json:"lastworking,omitempty"` - - // Linkrev Show sources of the specified linked revision in the base package. - Linkrev *string `form:"linkrev,omitempty" json:"linkrev,omitempty"` - - // Meta Set to `1` to show only the metadata file (`_meta`) in the list of files. - Meta *GetSourceProjectNamePackageNameParamsMeta `form:"meta,omitempty" json:"meta,omitempty"` - - // Product Use with `view=products`. Limit the product view to a given product. - Product *string `form:"product,omitempty" json:"product,omitempty"` - - // Rev Show sources of the specified revision. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // View Specify which information about a package should be returned. - // - // * `cpio`: Stream all package files as cpio. - // * `getmultibuild`: List multibuild packages. - // * `info`: Show source version, md5sums and build description files, among other information. - // See this [other endpoint](<#/Sources - Packages/get_source__project_name___package_name__view_info>) for details. - // * `issues`: Show all tracked issues for this package. - // * `products`: Show all products of a package (works only on `_product` or `000product` packages). - // * `productrepositories`: Show all repositories used in product definitions (or a given product). - View *GetSourceProjectNamePackageNameParamsView `form:"view,omitempty" json:"view,omitempty"` - - // Withlinked Set to `1` to show all used packages (in case of multiple link indirections) in linkinfo information. - Withlinked *GetSourceProjectNamePackageNameParamsWithlinked `form:"withlinked,omitempty" json:"withlinked,omitempty"` -} - -// GetSourceProjectNamePackageNameParamsExpand defines parameters for GetSourceProjectNamePackageName. -type GetSourceProjectNamePackageNameParamsExpand string - -// GetSourceProjectNamePackageNameParamsLastworking defines parameters for GetSourceProjectNamePackageName. -type GetSourceProjectNamePackageNameParamsLastworking string - -// GetSourceProjectNamePackageNameParamsMeta defines parameters for GetSourceProjectNamePackageName. -type GetSourceProjectNamePackageNameParamsMeta string - -// GetSourceProjectNamePackageNameParamsView defines parameters for GetSourceProjectNamePackageName. -type GetSourceProjectNamePackageNameParamsView string - -// GetSourceProjectNamePackageNameParamsWithlinked defines parameters for GetSourceProjectNamePackageName. -type GetSourceProjectNamePackageNameParamsWithlinked string - -// GetSourceProjectNamePackageNameAttributeParams defines parameters for GetSourceProjectNamePackageNameAttribute. -type GetSourceProjectNamePackageNameAttributeParams struct { - // Rev Passing the number of the revision, this endpoint displays the attributes' XML as it was at that point. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // View With `view=blame`, information about who changed each XML tag and when is displayed. - View *GetSourceProjectNamePackageNameAttributeParamsView `form:"view,omitempty" json:"view,omitempty"` - - // WithDefault If the attribute doesn't contain any value and `with_default` is present, - // the default values will be displayed, if any. - WithDefault *string `form:"with_default,omitempty" json:"with_default,omitempty"` - - // WithProject Passing `with_project`, the response displays the attributes of the package's project in addition to the package ones. - WithProject *string `form:"with_project,omitempty" json:"with_project,omitempty"` -} - -// GetSourceProjectNamePackageNameAttributeParamsView defines parameters for GetSourceProjectNamePackageNameAttribute. -type GetSourceProjectNamePackageNameAttributeParamsView string - -// GetSourceProjectNamePackageNameAttributeAttributeNameParams defines parameters for GetSourceProjectNamePackageNameAttributeAttributeName. -type GetSourceProjectNamePackageNameAttributeAttributeNameParams struct { - // Rev Passing the number of the revision, this endpoint displays the attributes' XML as it was at that point. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // View With `view=blame`, information about who changed each XML tag and when is displayed. - View *GetSourceProjectNamePackageNameAttributeAttributeNameParamsView `form:"view,omitempty" json:"view,omitempty"` - - // WithDefault If the attribute doesn't contain any value and `with_default` is present, - // the default values will be displayed, if any. - WithDefault *string `form:"with_default,omitempty" json:"with_default,omitempty"` - - // WithProject Passing `with_project`, the response displays the specified attribute of the package's project, if any, in addition to the package one. - WithProject *string `form:"with_project,omitempty" json:"with_project,omitempty"` -} - -// GetSourceProjectNamePackageNameAttributeAttributeNameParamsView defines parameters for GetSourceProjectNamePackageNameAttributeAttributeName. -type GetSourceProjectNamePackageNameAttributeAttributeNameParamsView string - -// GetSourceProjectNamePackageNameHistoryParams defines parameters for GetSourceProjectNamePackageNameHistory. -type GetSourceProjectNamePackageNameHistoryParams struct { - // Deleted Set to `1` to allow to retrieve the revision history of a deleted package. - Deleted *string `form:"deleted,omitempty" json:"deleted,omitempty"` - - // Limit Limit the number of retrieved revision history elements to the specified number. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Meta Set to `1` to retrieve the revision history of the meta file (`_meta`) of the package. - Meta *string `form:"meta,omitempty" json:"meta,omitempty"` - - // Startbefore Start the list of revision history elements before the given revision number. - Startbefore *int `form:"startbefore,omitempty" json:"startbefore,omitempty"` - - // Rev Return the revision entry for a specific revision number. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` -} - -// GetSourceProjectNamePackageNameMetaParams defines parameters for GetSourceProjectNamePackageNameMeta. -type GetSourceProjectNamePackageNameMetaParams struct { - // Meta Set to `1` to force to retrieve the package metadata from the backend. - Meta *string `form:"meta,omitempty" json:"meta,omitempty"` - - // Rev Return the package metadata for a specific revision number. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // View With `view=blame` show information about who and when each line of the package metadata was changed. - View *GetSourceProjectNamePackageNameMetaParamsView `form:"view,omitempty" json:"view,omitempty"` -} - -// GetSourceProjectNamePackageNameMetaParamsView defines parameters for GetSourceProjectNamePackageNameMeta. -type GetSourceProjectNamePackageNameMetaParamsView string - -// PutSourceProjectNamePackageNameMetaParams defines parameters for PutSourceProjectNamePackageNameMeta. -type PutSourceProjectNamePackageNameMetaParams struct { - // Comment Comment that explains the changes you made in the meta file. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// DeleteSourceProjectNamePackageNameFileNameParams defines parameters for DeleteSourceProjectNamePackageNameFileName. -type DeleteSourceProjectNamePackageNameFileNameParams struct { - // Rev If set to 'upload', multiple files can be deleted in just one commit. - // Delete first the files with `rev=upload`, then close the single commit by another request call with `cmd=commit` - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // Meta Set to `1` to delete meta data instead of sources. - Meta *DeleteSourceProjectNamePackageNameFileNameParamsMeta `form:"meta,omitempty" json:"meta,omitempty"` - - // Comment A comment that will appear in the package's comment section explaining the reason behind the deletion of the file. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` - - // Keeplink Set to `1` to preserve the link (`_link` file) on the source. - Keeplink *DeleteSourceProjectNamePackageNameFileNameParamsKeeplink `form:"keeplink,omitempty" json:"keeplink,omitempty"` -} - -// DeleteSourceProjectNamePackageNameFileNameParamsMeta defines parameters for DeleteSourceProjectNamePackageNameFileName. -type DeleteSourceProjectNamePackageNameFileNameParamsMeta int - -// DeleteSourceProjectNamePackageNameFileNameParamsKeeplink defines parameters for DeleteSourceProjectNamePackageNameFileName. -type DeleteSourceProjectNamePackageNameFileNameParamsKeeplink string - -// GetSourceProjectNamePackageNameFileNameParams defines parameters for GetSourceProjectNamePackageNameFileName. -type GetSourceProjectNamePackageNameFileNameParams struct { - // Rev Retrieve the file at a specific package revision. - Rev *int `form:"rev,omitempty" json:"rev,omitempty"` - - // Meta Set to `1` to show meta data instead of sources. - Meta *GetSourceProjectNamePackageNameFileNameParamsMeta `form:"meta,omitempty" json:"meta,omitempty"` - - // Deleted Set to 1 to retrieve a file from a deleted project or package. - Deleted *GetSourceProjectNamePackageNameFileNameParamsDeleted `form:"deleted,omitempty" json:"deleted,omitempty"` - - // Expand Set to `1` to include files from linked packages. - Expand *GetSourceProjectNamePackageNameFileNameParamsExpand `form:"expand,omitempty" json:"expand,omitempty"` - - // View With `view=blame`, information about who changed the file. - View *GetSourceProjectNamePackageNameFileNameParamsView `form:"view,omitempty" json:"view,omitempty"` -} - -// GetSourceProjectNamePackageNameFileNameParamsMeta defines parameters for GetSourceProjectNamePackageNameFileName. -type GetSourceProjectNamePackageNameFileNameParamsMeta int - -// GetSourceProjectNamePackageNameFileNameParamsDeleted defines parameters for GetSourceProjectNamePackageNameFileName. -type GetSourceProjectNamePackageNameFileNameParamsDeleted int - -// GetSourceProjectNamePackageNameFileNameParamsExpand defines parameters for GetSourceProjectNamePackageNameFileName. -type GetSourceProjectNamePackageNameFileNameParamsExpand int - -// GetSourceProjectNamePackageNameFileNameParamsView defines parameters for GetSourceProjectNamePackageNameFileName. -type GetSourceProjectNamePackageNameFileNameParamsView string - -// PutSourceProjectNamePackageNameFileNameParams defines parameters for PutSourceProjectNamePackageNameFileName. -type PutSourceProjectNamePackageNameFileNameParams struct { - // Rev If set to 'upload', multiple files can be uploaded in just one commit. - // Upload first the files with `rev=upload`, then close the single commit by another request call with `cmd=commit` - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // Meta Set to `1` to write meta data instead of sources. - Meta *PutSourceProjectNamePackageNameFileNameParamsMeta `form:"meta,omitempty" json:"meta,omitempty"` - - // Comment A comment that will appear in the package's comment section explaining the reason behind the creation of the new file. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` - - // Keeplink Set to `1` to preserve the link (`_link` file) on the source. - Keeplink *PutSourceProjectNamePackageNameFileNameParamsKeeplink `form:"keeplink,omitempty" json:"keeplink,omitempty"` -} - -// PutSourceProjectNamePackageNameFileNameParamsMeta defines parameters for PutSourceProjectNamePackageNameFileName. -type PutSourceProjectNamePackageNameFileNameParamsMeta int - -// PutSourceProjectNamePackageNameFileNameParamsKeeplink defines parameters for PutSourceProjectNamePackageNameFileName. -type PutSourceProjectNamePackageNameFileNameParamsKeeplink string - -// PostSourceProjectNamePackageNamecmdAddcontainersParams defines parameters for PostSourceProjectNamePackageNamecmdAddcontainers. -type PostSourceProjectNamePackageNamecmdAddcontainersParams struct { - Cmd PostSourceProjectNamePackageNamecmdAddcontainersParamsCmd `form:"cmd" json:"cmd"` - - // ExtendPackageNames Set to consider the container name as a parsed combination of container project and container name. - // With format `[container name].[container project name]` where `:` was replaced by `_`, - // i.e. "kiwi-templates-Minimal.SUSE_Templates_Images_SLE-15-SP4". - ExtendPackageNames *PostSourceProjectNamePackageNamecmdAddcontainersParamsExtendPackageNames `form:"extend_package_names,omitempty" json:"extend_package_names,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdAddcontainersParamsCmd defines parameters for PostSourceProjectNamePackageNamecmdAddcontainers. -type PostSourceProjectNamePackageNamecmdAddcontainersParamsCmd string - -// PostSourceProjectNamePackageNamecmdAddcontainersParamsExtendPackageNames defines parameters for PostSourceProjectNamePackageNamecmdAddcontainers. -type PostSourceProjectNamePackageNamecmdAddcontainersParamsExtendPackageNames string - -// PostSourceProjectNamePackageNamecmdBranchParams defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParams struct { - // TargetProject Target project name. - TargetProject *string `form:"target_project,omitempty" json:"target_project,omitempty"` - - // TargetPackage Target package name. - TargetPackage *string `form:"target_package,omitempty" json:"target_package,omitempty"` - - // AddRepositories Set to add repositories based on source project (default for new projects). - AddRepositories *PostSourceProjectNamePackageNamecmdBranchParamsAddRepositories `form:"add_repositories,omitempty" json:"add_repositories,omitempty"` - - // AddRepositoriesRebuild Set one of the defined rebuild policies for new repositories (`transitive`, `direct` or `local`) or copy it from the source project (`copy`) - AddRepositoriesRebuild *PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuild `form:"add_repositories_rebuild,omitempty" json:"add_repositories_rebuild,omitempty"` - - // AddRepositoriesBlock Set to use defined block policy for new repositories. - AddRepositoriesBlock *PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesBlock `form:"add_repositories_block,omitempty" json:"add_repositories_block,omitempty"` - - // Autocleanup Set to enable autocleanup on the branched project. - Autocleanup *PostSourceProjectNamePackageNamecmdBranchParamsAutocleanup `form:"autocleanup,omitempty" json:"autocleanup,omitempty"` - - // Dryrun Set to run without making action, just report results. - Dryrun *PostSourceProjectNamePackageNamecmdBranchParamsDryrun `form:"dryrun,omitempty" json:"dryrun,omitempty"` - - // ExtendPackageNames Set to extend package and repository names to allow multiple instances of the same package. - ExtendPackageNames *PostSourceProjectNamePackageNamecmdBranchParamsExtendPackageNames `form:"extend_package_names,omitempty" json:"extend_package_names,omitempty"` - - // Ignoredevel Set to ignore validation and resolving of devel package or devel project definition. - Ignoredevel *PostSourceProjectNamePackageNamecmdBranchParamsIgnoredevel `form:"ignoredevel,omitempty" json:"ignoredevel,omitempty"` - - // Force Set to 1 to allow overwriting of a pre-existing package. - Force *string `form:"force,omitempty" json:"force,omitempty"` - - // Rev Set to branch against a specific revision. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // Maintenance Set to explicitly ask for a maintenance branch. - Maintenance *PostSourceProjectNamePackageNamecmdBranchParamsMaintenance `form:"maintenance,omitempty" json:"maintenance,omitempty"` - - // Missingok Set to create the target package if it does not exist. - Missingok *PostSourceProjectNamePackageNamecmdBranchParamsMissingok `form:"missingok,omitempty" json:"missingok,omitempty"` - - // Newinstance Set to have the target package exist only via project links, but the link should point to the given project. - Newinstance *PostSourceProjectNamePackageNamecmdBranchParamsNewinstance `form:"newinstance,omitempty" json:"newinstance,omitempty"` - - // Noaccess Set to make the newly created project be read protected. This won't work if the project already exists. - Noaccess *PostSourceProjectNamePackageNamecmdBranchParamsNoaccess `form:"noaccess,omitempty" json:"noaccess,omitempty"` - - // Noservice Set to not run source services on branching. - Noservice *PostSourceProjectNamePackageNamecmdBranchParamsNoservice `form:"noservice,omitempty" json:"noservice,omitempty"` - - // Request Creates a branch project based on the provided request number. - Request *string `form:"request,omitempty" json:"request,omitempty"` - - // UpdatePathElements Set to update all the path elements if needed (used repositories depend on each other). - UpdatePathElements *PostSourceProjectNamePackageNamecmdBranchParamsUpdatePathElements `form:"update_path_elements,omitempty" json:"update_path_elements,omitempty"` - - // UpdateProjectAttribute Set a different Update Project attribute. - UpdateProjectAttribute *string `form:"update_project_attribute,omitempty" json:"update_project_attribute,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdBranchParamsAddRepositories defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsAddRepositories string - -// PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuild defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesRebuild string - -// PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesBlock defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsAddRepositoriesBlock string - -// PostSourceProjectNamePackageNamecmdBranchParamsAutocleanup defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsAutocleanup string - -// PostSourceProjectNamePackageNamecmdBranchParamsDryrun defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsDryrun string - -// PostSourceProjectNamePackageNamecmdBranchParamsExtendPackageNames defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsExtendPackageNames string - -// PostSourceProjectNamePackageNamecmdBranchParamsIgnoredevel defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsIgnoredevel string - -// PostSourceProjectNamePackageNamecmdBranchParamsMaintenance defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsMaintenance string - -// PostSourceProjectNamePackageNamecmdBranchParamsMissingok defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsMissingok string - -// PostSourceProjectNamePackageNamecmdBranchParamsNewinstance defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsNewinstance string - -// PostSourceProjectNamePackageNamecmdBranchParamsNoaccess defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsNoaccess string - -// PostSourceProjectNamePackageNamecmdBranchParamsNoservice defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsNoservice string - -// PostSourceProjectNamePackageNamecmdBranchParamsUpdatePathElements defines parameters for PostSourceProjectNamePackageNamecmdBranch. -type PostSourceProjectNamePackageNamecmdBranchParamsUpdatePathElements string - -// PostSourceProjectNamePackageNamecmdCollectbuildenvParams defines parameters for PostSourceProjectNamePackageNamecmdCollectbuildenv. -type PostSourceProjectNamePackageNamecmdCollectbuildenvParams struct { - // Oproject Origin project. The project that the Origin Package will have the build information copied from. - Oproject string `form:"oproject" json:"oproject"` - - // Opackage Origin package. Build environment information of the package that will be copied. - Opackage *string `form:"opackage,omitempty" json:"opackage,omitempty"` - - // Orev Origin package revision. Revision of the Origin Package on which to base the build environment collection. - Orev *string `form:"orev,omitempty" json:"orev,omitempty"` - - // Comment Comment for the new revision. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdCommitParams defines parameters for PostSourceProjectNamePackageNamecmdCommit. -type PostSourceProjectNamePackageNamecmdCommitParams struct { - // Comment Provide a comment to the revision in history. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` - - // Linkrev Link revision in base package. Set to `base` to use the commit revision. - // - // Used together with the `keeplink` parameter. - Linkrev *string `form:"linkrev,omitempty" json:"linkrev,omitempty"` - - // Rev Revision of the package. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // Keeplink Set to `1` to preserve the link (`_link` file) on the source. - Keeplink *PostSourceProjectNamePackageNamecmdCommitParamsKeeplink `form:"keeplink,omitempty" json:"keeplink,omitempty"` - - // Repairlink Set to `1` to solve conflicts. - // - // Used together with `keeplink` parameter. - Repairlink *PostSourceProjectNamePackageNamecmdCommitParamsRepairlink `form:"repairlink,omitempty" json:"repairlink,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdCommitParamsKeeplink defines parameters for PostSourceProjectNamePackageNamecmdCommit. -type PostSourceProjectNamePackageNamecmdCommitParamsKeeplink string - -// PostSourceProjectNamePackageNamecmdCommitParamsRepairlink defines parameters for PostSourceProjectNamePackageNamecmdCommit. -type PostSourceProjectNamePackageNamecmdCommitParamsRepairlink string - -// PostSourceProjectNamePackageNamecmdCommitfilelistParams defines parameters for PostSourceProjectNamePackageNamecmdCommitfilelist. -type PostSourceProjectNamePackageNamecmdCommitfilelistParams struct { - // Comment Provide a comment to the revision - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` - - // Linkrev Link revision in base package. Set to `base` to use the commit revision. - // - // Used together with the `keeplink` parameter. - Linkrev *string `form:"linkrev,omitempty" json:"linkrev,omitempty"` - - // Rev Revision of the package. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // Keeplink Set to `1` to preserve the link (`_link` file) on the source. - Keeplink *PostSourceProjectNamePackageNamecmdCommitfilelistParamsKeeplink `form:"keeplink,omitempty" json:"keeplink,omitempty"` - - // Repairlink Set to `1` to solve conflicts. - // - // Used together with `keeplink` parameter. - Repairlink *PostSourceProjectNamePackageNamecmdCommitfilelistParamsRepairlink `form:"repairlink,omitempty" json:"repairlink,omitempty"` - - // Withvalidate Set to `1` to activate sha validation code (optional, but recommended) - Withvalidate *PostSourceProjectNamePackageNamecmdCommitfilelistParamsWithvalidate `form:"withvalidate,omitempty" json:"withvalidate,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdCommitfilelistParamsKeeplink defines parameters for PostSourceProjectNamePackageNamecmdCommitfilelist. -type PostSourceProjectNamePackageNamecmdCommitfilelistParamsKeeplink string - -// PostSourceProjectNamePackageNamecmdCommitfilelistParamsRepairlink defines parameters for PostSourceProjectNamePackageNamecmdCommitfilelist. -type PostSourceProjectNamePackageNamecmdCommitfilelistParamsRepairlink string - -// PostSourceProjectNamePackageNamecmdCommitfilelistParamsWithvalidate defines parameters for PostSourceProjectNamePackageNamecmdCommitfilelist. -type PostSourceProjectNamePackageNamecmdCommitfilelistParamsWithvalidate string - -// PostSourceProjectNamePackageNamecmdCopyParams defines parameters for PostSourceProjectNamePackageNamecmdCopy. -type PostSourceProjectNamePackageNamecmdCopyParams struct { - Rev *PostSourceProjectNamePackageNamecmdCopyParamsRev `form:"rev,omitempty" json:"rev,omitempty"` - - // Opackage Origin package. The package that will be copied. - Opackage *string `form:"opackage,omitempty" json:"opackage,omitempty"` - - // Oproject Origin project. The project that the Origin Package will be copied from. - Oproject *string `form:"oproject,omitempty" json:"oproject,omitempty"` - - // Withbinaries Set to '1' to copy binaries that have been build by the origin package too. - Withbinaries *PostSourceProjectNamePackageNamecmdCopyParamsWithbinaries `form:"withbinaries,omitempty" json:"withbinaries,omitempty"` - - // Makeolder Set to '1' to make the target older, the source vrev is bumped by two numbers and target by one. Setting both makeolder and makeoriginolder will return an error back. - Makeolder *PostSourceProjectNamePackageNamecmdCopyParamsMakeolder `form:"makeolder,omitempty" json:"makeolder,omitempty"` - - // Makeoriginolder Set to '1' to make the origin older, the source vrev is extended and target is guaranteed to be newer. Setting both makeoriginolder and makeolder will return an error back. - Makeoriginolder *PostSourceProjectNamePackageNamecmdCopyParamsMakeoriginolder `form:"makeoriginolder,omitempty" json:"makeoriginolder,omitempty"` - - // Nodelay Set to '1' to do the copying synchronously. By default the copying is done asynchronously. - Nodelay *PostSourceProjectNamePackageNamecmdCopyParamsNodelay `form:"nodelay,omitempty" json:"nodelay,omitempty"` - - // Withhistory Set to '1' to copy the package commit history. - Withhistory *PostSourceProjectNamePackageNamecmdCopyParamsWithhistory `form:"withhistory,omitempty" json:"withhistory,omitempty"` - - // Noservice Set to '1' to avoid running the services after the copy. - Noservice *PostSourceProjectNamePackageNamecmdCopyParamsNoservice `form:"noservice,omitempty" json:"noservice,omitempty"` - - // Comment Comment for the new revision. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdCopyParamsRev defines parameters for PostSourceProjectNamePackageNamecmdCopy. -type PostSourceProjectNamePackageNamecmdCopyParamsRev string - -// PostSourceProjectNamePackageNamecmdCopyParamsWithbinaries defines parameters for PostSourceProjectNamePackageNamecmdCopy. -type PostSourceProjectNamePackageNamecmdCopyParamsWithbinaries string - -// PostSourceProjectNamePackageNamecmdCopyParamsMakeolder defines parameters for PostSourceProjectNamePackageNamecmdCopy. -type PostSourceProjectNamePackageNamecmdCopyParamsMakeolder string - -// PostSourceProjectNamePackageNamecmdCopyParamsMakeoriginolder defines parameters for PostSourceProjectNamePackageNamecmdCopy. -type PostSourceProjectNamePackageNamecmdCopyParamsMakeoriginolder string - -// PostSourceProjectNamePackageNamecmdCopyParamsNodelay defines parameters for PostSourceProjectNamePackageNamecmdCopy. -type PostSourceProjectNamePackageNamecmdCopyParamsNodelay string - -// PostSourceProjectNamePackageNamecmdCopyParamsWithhistory defines parameters for PostSourceProjectNamePackageNamecmdCopy. -type PostSourceProjectNamePackageNamecmdCopyParamsWithhistory string - -// PostSourceProjectNamePackageNamecmdCopyParamsNoservice defines parameters for PostSourceProjectNamePackageNamecmdCopy. -type PostSourceProjectNamePackageNamecmdCopyParamsNoservice string - -// PostSourceProjectNamePackageNamecmdDiffParams defines parameters for PostSourceProjectNamePackageNamecmdDiff. -type PostSourceProjectNamePackageNamecmdDiffParams struct { - // Cacheonly Set to `1` to retrieve a diff only if the diff is already cached. - // - // If the diff is not cached return a 412 "Precondition failed" error. - Cacheonly *PostSourceProjectNamePackageNamecmdDiffParamsCacheonly `form:"cacheonly,omitempty" json:"cacheonly,omitempty"` - - // Expand Set to `1` to expand any link before diffing. - Expand *PostSourceProjectNamePackageNamecmdDiffParamsExpand `form:"expand,omitempty" json:"expand,omitempty"` - - // File Limit diff to the given file name. - File *string `form:"file,omitempty" json:"file,omitempty"` - - // File Limit diff to the given file names. - File *[]interface{} `form:"file[],omitempty" json:"file[],omitempty"` - - // Filelimit Limit the size of the diff to this amount of lines. - // - // By default it takes a built-in value of 200. - // - // Set to `0` to disable the limit. - Filelimit *string `form:"filelimit,omitempty" json:"filelimit,omitempty"` - - // Linkrev Link revision in base package. Set to `base` to use the commit revision. - Linkrev *string `form:"linkrev,omitempty" json:"linkrev,omitempty"` - - // Meta Set to `1` to diff meta data instead of sources. - Meta *PostSourceProjectNamePackageNamecmdDiffParamsMeta `form:"meta,omitempty" json:"meta,omitempty"` - - // Missingok Set to `1` to diff against an inexistent origin. - Missingok *PostSourceProjectNamePackageNamecmdDiffParamsMissingok `form:"missingok,omitempty" json:"missingok,omitempty"` - - // Nodiff Set to `1` to only show changed files, and not details inside files. - Nodiff *PostSourceProjectNamePackageNamecmdDiffParamsNodiff `form:"nodiff,omitempty" json:"nodiff,omitempty"` - - // Olinkrev Link revision of the origin package. - Olinkrev *string `form:"olinkrev,omitempty" json:"olinkrev,omitempty"` - - // Onlyissues Set to `1` to show no source diff, only the tracker issues and their change state. - Onlyissues *PostSourceProjectNamePackageNamecmdDiffParamsOnlyissues `form:"onlyissues,omitempty" json:"onlyissues,omitempty"` - - // Orev Old revision. - Orev *string `form:"orev,omitempty" json:"orev,omitempty"` - - // Opackage Old package. - Opackage *string `form:"opackage,omitempty" json:"opackage,omitempty"` - - // Oproject Old project. - Oproject *string `form:"oproject,omitempty" json:"oproject,omitempty"` - - // Rev Revision of the package. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // Tarlimit Limit the size of the diff of tar files to this amount of lines. - Tarlimit *string `form:"tarlimit,omitempty" json:"tarlimit,omitempty"` - - // Unified Set to `1` to use unified diff format. Same as setting `view=unified`. - // - // Setting `unified` to `1` takes precedence on the setting of the `view` parameter. - // - // See `view` parameter for details on the unified format. - Unified *PostSourceProjectNamePackageNamecmdDiffParamsUnified `form:"unified,omitempty" json:"unified,omitempty"` - - // View Set the format of the diff being returned. - // - // Don't pass the parameter for custom diff format. - // - // Set to `unified` for unified content. - // - // Set to `xml` for structured content in a `sourcediff` xml element. - View *PostSourceProjectNamePackageNamecmdDiffParamsView `form:"view,omitempty" json:"view,omitempty"` - - // Withissues Set to `1` to include parsed issue tracker issues and their change state. - Withissues *PostSourceProjectNamePackageNamecmdDiffParamsWithissues `form:"withissues,omitempty" json:"withissues,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdDiffParamsCacheonly defines parameters for PostSourceProjectNamePackageNamecmdDiff. -type PostSourceProjectNamePackageNamecmdDiffParamsCacheonly string - -// PostSourceProjectNamePackageNamecmdDiffParamsExpand defines parameters for PostSourceProjectNamePackageNamecmdDiff. -type PostSourceProjectNamePackageNamecmdDiffParamsExpand string - -// PostSourceProjectNamePackageNamecmdDiffParamsMeta defines parameters for PostSourceProjectNamePackageNamecmdDiff. -type PostSourceProjectNamePackageNamecmdDiffParamsMeta string - -// PostSourceProjectNamePackageNamecmdDiffParamsMissingok defines parameters for PostSourceProjectNamePackageNamecmdDiff. -type PostSourceProjectNamePackageNamecmdDiffParamsMissingok string - -// PostSourceProjectNamePackageNamecmdDiffParamsNodiff defines parameters for PostSourceProjectNamePackageNamecmdDiff. -type PostSourceProjectNamePackageNamecmdDiffParamsNodiff string - -// PostSourceProjectNamePackageNamecmdDiffParamsOnlyissues defines parameters for PostSourceProjectNamePackageNamecmdDiff. -type PostSourceProjectNamePackageNamecmdDiffParamsOnlyissues string - -// PostSourceProjectNamePackageNamecmdDiffParamsUnified defines parameters for PostSourceProjectNamePackageNamecmdDiff. -type PostSourceProjectNamePackageNamecmdDiffParamsUnified string - -// PostSourceProjectNamePackageNamecmdDiffParamsView defines parameters for PostSourceProjectNamePackageNamecmdDiff. -type PostSourceProjectNamePackageNamecmdDiffParamsView string - -// PostSourceProjectNamePackageNamecmdDiffParamsWithissues defines parameters for PostSourceProjectNamePackageNamecmdDiff. -type PostSourceProjectNamePackageNamecmdDiffParamsWithissues string - -// PostSourceProjectNamePackageNamecmdForkParams defines parameters for PostSourceProjectNamePackageNamecmdFork. -type PostSourceProjectNamePackageNamecmdForkParams struct { - // Scmsync Checkout url for the source - Scmsync string `form:"scmsync" json:"scmsync"` - - // TargetProject target project name, optional (default home::branches:) - TargetProject *string `form:"target_project,omitempty" json:"target_project,omitempty"` - - // TargetPackage target package name - TargetPackage *string `form:"target_package,omitempty" json:"target_package,omitempty"` - - // Force Set to 1 to allow overwriting of a pre-existing package. - Force *string `form:"force,omitempty" json:"force,omitempty"` - - // AddRepositoriesRebuild Set one of the defined rebuild policies for new repositories (`transitive`, `direct` or `local`) or copy it from the source project (`copy`) - AddRepositoriesRebuild *PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuild `form:"add_repositories_rebuild,omitempty" json:"add_repositories_rebuild,omitempty"` - - // AddRepositoriesBlock Set to use defined block policy for new repositories. - AddRepositoriesBlock *PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesBlock `form:"add_repositories_block,omitempty" json:"add_repositories_block,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuild defines parameters for PostSourceProjectNamePackageNamecmdFork. -type PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesRebuild string - -// PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesBlock defines parameters for PostSourceProjectNamePackageNamecmdFork. -type PostSourceProjectNamePackageNamecmdForkParamsAddRepositoriesBlock string - -// PostSourceProjectNamePackageNamecmdGetprojectservicesParams defines parameters for PostSourceProjectNamePackageNamecmdGetprojectservices. -type PostSourceProjectNamePackageNamecmdGetprojectservicesParams struct { - Cmd PostSourceProjectNamePackageNamecmdGetprojectservicesParamsCmd `form:"cmd" json:"cmd"` -} - -// PostSourceProjectNamePackageNamecmdGetprojectservicesParamsCmd defines parameters for PostSourceProjectNamePackageNamecmdGetprojectservices. -type PostSourceProjectNamePackageNamecmdGetprojectservicesParamsCmd string - -// PostSourceProjectNamePackageNamecmdInstantiateParams defines parameters for PostSourceProjectNamePackageNamecmdInstantiate. -type PostSourceProjectNamePackageNamecmdInstantiateParams struct { - // Makeoriginolder Instead of creating a branch of the package, it will instantiate a copy - // of the package and extend the `vrev` to ensure the copy represents a - // newer version of the package. - Makeoriginolder *string `form:"makeoriginolder,omitempty" json:"makeoriginolder,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdLinkdiffParams defines parameters for PostSourceProjectNamePackageNamecmdLinkdiff. -type PostSourceProjectNamePackageNamecmdLinkdiffParams struct { - // File Limit diff to the given file name. - File *string `form:"file,omitempty" json:"file,omitempty"` - - // File Limit diff to the given file names. - File *[]interface{} `form:"file[],omitempty" json:"file[],omitempty"` - - // Filelimit Limit the size of the diff to this amount of lines. - // - // By default it takes a built-in value of 200. - // - // Set to `0` to disable the limit. - Filelimit *string `form:"filelimit,omitempty" json:"filelimit,omitempty"` - - // Linkrev Link revision in base package. Set to `base` to use the commit revision. - Linkrev *string `form:"linkrev,omitempty" json:"linkrev,omitempty"` - - // Onlyissues Set to `1` to show no source diff, only the tracker issues and their change state. - Onlyissues *PostSourceProjectNamePackageNamecmdLinkdiffParamsOnlyissues `form:"onlyissues,omitempty" json:"onlyissues,omitempty"` - - // Rev Revision of the package. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // Tarlimit Limit the size of the diff of tar files to this amount of lines. - Tarlimit *string `form:"tarlimit,omitempty" json:"tarlimit,omitempty"` - - // Unified Set to `1` to use unified diff format. Same as setting `view=unified`. - // - // Setting `unified` to `1` takes precedence on the setting of the `view` parameter. - // - // See `view` parameter for details on the unified format. - Unified *PostSourceProjectNamePackageNamecmdLinkdiffParamsUnified `form:"unified,omitempty" json:"unified,omitempty"` - - // View Set the format of the diff being returned. - // - // Don't pass the parameter for custom diff format. - // - // Set to `unified` for unified content. - // - // Set to `xml` for structured content in a `sourcediff` xml element. - View *PostSourceProjectNamePackageNamecmdLinkdiffParamsView `form:"view,omitempty" json:"view,omitempty"` - - // Withissues Set to `1` to include parsed issue tracker issues and their change state. - Withissues *PostSourceProjectNamePackageNamecmdLinkdiffParamsWithissues `form:"withissues,omitempty" json:"withissues,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdLinkdiffParamsOnlyissues defines parameters for PostSourceProjectNamePackageNamecmdLinkdiff. -type PostSourceProjectNamePackageNamecmdLinkdiffParamsOnlyissues string - -// PostSourceProjectNamePackageNamecmdLinkdiffParamsUnified defines parameters for PostSourceProjectNamePackageNamecmdLinkdiff. -type PostSourceProjectNamePackageNamecmdLinkdiffParamsUnified string - -// PostSourceProjectNamePackageNamecmdLinkdiffParamsView defines parameters for PostSourceProjectNamePackageNamecmdLinkdiff. -type PostSourceProjectNamePackageNamecmdLinkdiffParamsView string - -// PostSourceProjectNamePackageNamecmdLinkdiffParamsWithissues defines parameters for PostSourceProjectNamePackageNamecmdLinkdiff. -type PostSourceProjectNamePackageNamecmdLinkdiffParamsWithissues string - -// PostSourceProjectNamePackageNamecmdLinktobranchParams defines parameters for PostSourceProjectNamePackageNamecmdLinktobranch. -type PostSourceProjectNamePackageNamecmdLinktobranchParams struct { - // Linkrev Link revision in base package. Set to `base` to use the commit revision. - Linkrev *string `form:"linkrev,omitempty" json:"linkrev,omitempty"` - - // Rev Revision of the package. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdMergeserviceParams defines parameters for PostSourceProjectNamePackageNamecmdMergeservice. -type PostSourceProjectNamePackageNamecmdMergeserviceParams struct { - // Comment Set a comment. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdReleaseParams defines parameters for PostSourceProjectNamePackageNamecmdRelease. -type PostSourceProjectNamePackageNamecmdReleaseParams struct { - // TargetProject The name of the release target project. Specify in which project the sources and - // binaries are going to be released. You need to provide the `target_repository` - // parameter as well. - TargetProject *string `form:"target_project,omitempty" json:"target_project,omitempty"` - - // TargetRepository The name of the release target repository. Specify in which repository the sources and - // binaries are going to be released. You need to provide the `target_project` - // parameter as well. - TargetRepository *string `form:"target_repository,omitempty" json:"target_repository,omitempty"` - - // Repository Limit the release to a certain repository, set on the project repository definitions. - Repository *string `form:"repository,omitempty" json:"repository,omitempty"` - - // Setrelease If this parameter is present, the release will be tagged with this parameter's value. - Setrelease *string `form:"setrelease,omitempty" json:"setrelease,omitempty"` - - // Arch The name of the architecture. Limit the release to a certain architecture. - Arch *string `form:"arch,omitempty" json:"arch,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdRemoveFlagParams defines parameters for PostSourceProjectNamePackageNamecmdRemoveFlag. -type PostSourceProjectNamePackageNamecmdRemoveFlagParams struct { - // Flag Name of the flag to be removed. - Flag PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag `form:"flag" json:"flag"` - - // Repository Repository for which the flag is to be removed. - Repository *string `form:"repository,omitempty" json:"repository,omitempty"` - - // Arch Architecture for which the flag is to be removed. - Arch *string `form:"arch,omitempty" json:"arch,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag defines parameters for PostSourceProjectNamePackageNamecmdRemoveFlag. -type PostSourceProjectNamePackageNamecmdRemoveFlagParamsFlag string - -// PostSourceProjectNamePackageNamecmdRunserviceParams defines parameters for PostSourceProjectNamePackageNamecmdRunservice. -type PostSourceProjectNamePackageNamecmdRunserviceParams struct { - // Comment Set a comment. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` - - // User Set the user who triggers the services. - User *string `form:"user,omitempty" json:"user,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdServicediffParams defines parameters for PostSourceProjectNamePackageNamecmdServicediff. -type PostSourceProjectNamePackageNamecmdServicediffParams struct { - // File Limit diff to the given file name. - File *string `form:"file,omitempty" json:"file,omitempty"` - - // File Limit diff to the given file names. - File *[]interface{} `form:"file[],omitempty" json:"file[],omitempty"` - - // Filelimit Limit the size of the diff to this amount of lines. - // - // By default it takes a built-in value of 200. - // - // Set to `0` to disable the limit. - Filelimit *string `form:"filelimit,omitempty" json:"filelimit,omitempty"` - - // Onlyissues Set to `1` to show no source diff, only the tracker issues and their change state. - Onlyissues *PostSourceProjectNamePackageNamecmdServicediffParamsOnlyissues `form:"onlyissues,omitempty" json:"onlyissues,omitempty"` - - // Rev Revision of the package. - Rev *string `form:"rev,omitempty" json:"rev,omitempty"` - - // Tarlimit Limit the size of the diff of tar files to this amount of lines. - Tarlimit *string `form:"tarlimit,omitempty" json:"tarlimit,omitempty"` - - // Unified Set to `1` to use unified diff format. Same as setting `view=unified`. - // - // Setting `unified` to `1` takes precedence on the setting of the `view` parameter. - // - // See `view` parameter for details on the unified format. - Unified *PostSourceProjectNamePackageNamecmdServicediffParamsUnified `form:"unified,omitempty" json:"unified,omitempty"` - - // View Set the format of the diff being returned. - // - // Don't pass the parameter for custom diff format. - // - // Set to `unified` for unified content. - // - // Set to `xml` for structured content in a `sourcediff` xml element. - View *PostSourceProjectNamePackageNamecmdServicediffParamsView `form:"view,omitempty" json:"view,omitempty"` - - // Withissues Set to `1` to include parsed issue tracker issues and their change state. - Withissues *PostSourceProjectNamePackageNamecmdServicediffParamsWithissues `form:"withissues,omitempty" json:"withissues,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdServicediffParamsOnlyissues defines parameters for PostSourceProjectNamePackageNamecmdServicediff. -type PostSourceProjectNamePackageNamecmdServicediffParamsOnlyissues string - -// PostSourceProjectNamePackageNamecmdServicediffParamsUnified defines parameters for PostSourceProjectNamePackageNamecmdServicediff. -type PostSourceProjectNamePackageNamecmdServicediffParamsUnified string - -// PostSourceProjectNamePackageNamecmdServicediffParamsView defines parameters for PostSourceProjectNamePackageNamecmdServicediff. -type PostSourceProjectNamePackageNamecmdServicediffParamsView string - -// PostSourceProjectNamePackageNamecmdServicediffParamsWithissues defines parameters for PostSourceProjectNamePackageNamecmdServicediff. -type PostSourceProjectNamePackageNamecmdServicediffParamsWithissues string - -// PostSourceProjectNamePackageNamecmdSetFlagParams defines parameters for PostSourceProjectNamePackageNamecmdSetFlag. -type PostSourceProjectNamePackageNamecmdSetFlagParams struct { - // Flag Name of the flag to be set. - Flag PostSourceProjectNamePackageNamecmdSetFlagParamsFlag `form:"flag" json:"flag"` - - // Status Status of the flag to be set. - Status PostSourceProjectNamePackageNamecmdSetFlagParamsStatus `form:"status" json:"status"` - - // Repository Repository for which the flag is to be set. - Repository *string `form:"repository,omitempty" json:"repository,omitempty"` - - // Arch Architecture for which the flag is to be set. - Arch *string `form:"arch,omitempty" json:"arch,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdSetFlagParamsFlag defines parameters for PostSourceProjectNamePackageNamecmdSetFlag. -type PostSourceProjectNamePackageNamecmdSetFlagParamsFlag string - -// PostSourceProjectNamePackageNamecmdSetFlagParamsStatus defines parameters for PostSourceProjectNamePackageNamecmdSetFlag. -type PostSourceProjectNamePackageNamecmdSetFlagParamsStatus string - -// PostSourceProjectNamePackageNamecmdUndeleteParams defines parameters for PostSourceProjectNamePackageNamecmdUndelete. -type PostSourceProjectNamePackageNamecmdUndeleteParams struct { - // Comment Set a comment. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` - - // Time Set the time of the undelete operation, expressed in seconds since the epoch. - // - // Set to `1` to set the time of the undelete operation to the same time the package was deleted. - Time *int `form:"time,omitempty" json:"time,omitempty"` -} - -// PostSourceProjectNamePackageNamecmdUnlockParams defines parameters for PostSourceProjectNamePackageNamecmdUnlock. -type PostSourceProjectNamePackageNamecmdUnlockParams struct { - // Comment Comment to be included in the revision history of the `_meta` file - Comment string `form:"comment" json:"comment"` -} - -// GetSourceProjectNamePackageNameviewInfoParams defines parameters for GetSourceProjectNamePackageNameviewInfo. -type GetSourceProjectNamePackageNameviewInfoParams struct { - // View Specify which information about a package should be returned. - // - // * `info`: Show source version, md5sums and build description files, among other information. - // * `cpio`, `getmultibuild`, `issues`, `products`, `productrepositories`: - // See this [other endpoint](<#/Sources - Files/get_source__project_name___package_name_>) for details. - View *GetSourceProjectNamePackageNameviewInfoParamsView `form:"view,omitempty" json:"view,omitempty"` - - // Arch Filter by architecture name. - Arch *string `form:"arch,omitempty" json:"arch,omitempty"` - - // Nofilename Set to `1` to prevent from showing filename elements. Shows only the `sourceinfo` root element. - Nofilename *GetSourceProjectNamePackageNameviewInfoParamsNofilename `form:"nofilename,omitempty" json:"nofilename,omitempty"` - - // Repository Filter by repository name. - Repository *string `form:"repository,omitempty" json:"repository,omitempty"` - - // Parse Set to `1` to show more details, like `originproject`, `linked package`, `name`, `version`, `release`, `subpacks`, `deps`, and `prereqs` elements. - Parse *GetSourceProjectNamePackageNameviewInfoParamsParse `form:"parse,omitempty" json:"parse,omitempty"` -} - -// GetSourceProjectNamePackageNameviewInfoParamsView defines parameters for GetSourceProjectNamePackageNameviewInfo. -type GetSourceProjectNamePackageNameviewInfoParamsView string - -// GetSourceProjectNamePackageNameviewInfoParamsNofilename defines parameters for GetSourceProjectNamePackageNameviewInfo. -type GetSourceProjectNamePackageNameviewInfoParamsNofilename string - -// GetSourceProjectNamePackageNameviewInfoParamsParse defines parameters for GetSourceProjectNamePackageNameviewInfo. -type GetSourceProjectNamePackageNameviewInfoParamsParse string - -// PostSourceProjectNamecmdAddchannelsParams defines parameters for PostSourceProjectNamecmdAddchannels. -type PostSourceProjectNamecmdAddchannelsParams struct { - // Mode The channel will be added to the package using this mode. - Mode *PostSourceProjectNamecmdAddchannelsParamsMode `form:"mode,omitempty" json:"mode,omitempty"` -} - -// PostSourceProjectNamecmdAddchannelsParamsMode defines parameters for PostSourceProjectNamecmdAddchannels. -type PostSourceProjectNamecmdAddchannelsParamsMode string - -// PostSourceProjectNamecmdCopyParams defines parameters for PostSourceProjectNamecmdCopy. -type PostSourceProjectNamecmdCopyParams struct { - // Oproject Origin project name - Oproject string `form:"oproject" json:"oproject"` - - // Comment Comment to be added in the revision history. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` - - // Makeolder Make target older. Set to `1` to bump the source vrev by two numbers and the target by one. - Makeolder *PostSourceProjectNamecmdCopyParamsMakeolder `form:"makeolder,omitempty" json:"makeolder,omitempty"` - - // Makeoriginolder Make origin older. Set to `1` to extend the source vrev. - Makeoriginolder *PostSourceProjectNamecmdCopyParamsMakeoriginolder `form:"makeoriginolder,omitempty" json:"makeoriginolder,omitempty"` - - // Nodelay By default the copying is done as a deferred job. Set to `1` to perform the copy right away. - Nodelay *PostSourceProjectNamecmdCopyParamsNodelay `form:"nodelay,omitempty" json:"nodelay,omitempty"` - - // Noservice Set to `1` not to run source services. - Noservice *PostSourceProjectNamecmdCopyParamsNoservice `form:"noservice,omitempty" json:"noservice,omitempty"` - - // Resign Set to `1` to resign all binaries with the target project key. - Resign *PostSourceProjectNamecmdCopyParamsResign `form:"resign,omitempty" json:"resign,omitempty"` - - // Withbinaries Set to `1` to also copy binaries. - Withbinaries *PostSourceProjectNamecmdCopyParamsWithbinaries `form:"withbinaries,omitempty" json:"withbinaries,omitempty"` - - // Withhistory Set to `1` to also copy the revision history. - Withhistory *PostSourceProjectNamecmdCopyParamsWithhistory `form:"withhistory,omitempty" json:"withhistory,omitempty"` -} - -// PostSourceProjectNamecmdCopyParamsMakeolder defines parameters for PostSourceProjectNamecmdCopy. -type PostSourceProjectNamecmdCopyParamsMakeolder string - -// PostSourceProjectNamecmdCopyParamsMakeoriginolder defines parameters for PostSourceProjectNamecmdCopy. -type PostSourceProjectNamecmdCopyParamsMakeoriginolder string - -// PostSourceProjectNamecmdCopyParamsNodelay defines parameters for PostSourceProjectNamecmdCopy. -type PostSourceProjectNamecmdCopyParamsNodelay string - -// PostSourceProjectNamecmdCopyParamsNoservice defines parameters for PostSourceProjectNamecmdCopy. -type PostSourceProjectNamecmdCopyParamsNoservice string - -// PostSourceProjectNamecmdCopyParamsResign defines parameters for PostSourceProjectNamecmdCopy. -type PostSourceProjectNamecmdCopyParamsResign string - -// PostSourceProjectNamecmdCopyParamsWithbinaries defines parameters for PostSourceProjectNamecmdCopy. -type PostSourceProjectNamecmdCopyParamsWithbinaries string - -// PostSourceProjectNamecmdCopyParamsWithhistory defines parameters for PostSourceProjectNamecmdCopy. -type PostSourceProjectNamecmdCopyParamsWithhistory string - -// PostSourceProjectNamecmdCreatepatchinfoParams defines parameters for PostSourceProjectNamecmdCreatepatchinfo. -type PostSourceProjectNamecmdCreatepatchinfoParams struct { - // Name Name of the patchinfo package. If not passed, 'patchinfo' is the default value. - Name *string `form:"name,omitempty" json:"name,omitempty"` - - // Comment Comment to be included in the 'summary' XML tag of the patchinfo. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` - - // Force If the patchinfo with the given name already existed and the force parameter is passed, - // then the patchinfo will be overwritten. - // If the force parameter is not passed, an error will be raised giving you some suggestions. - Force *string `form:"force,omitempty" json:"force,omitempty"` -} - -// PostSourceProjectNamecmdExtendkeyParams defines parameters for PostSourceProjectNamecmdExtendkey. -type PostSourceProjectNamecmdExtendkeyParams struct { - // Days Define the number of days until key expiry - Days *int `form:"days,omitempty" json:"days,omitempty"` -} - -// PostSourceProjectNamecmdFreezelinkParams defines parameters for PostSourceProjectNamecmdFreezelink. -type PostSourceProjectNamecmdFreezelinkParams struct { - // Comment A comment that will appear in the project's comment section explaining the reason behind the freezing. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// PostSourceProjectNamecmdLockParams defines parameters for PostSourceProjectNamecmdLock. -type PostSourceProjectNamecmdLockParams struct { - // Comment Comment that can be added to describe the reasoning behind the lock. - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// PostSourceProjectNamecmdModifychannelsParams defines parameters for PostSourceProjectNamecmdModifychannels. -type PostSourceProjectNamecmdModifychannelsParams struct { - // Mode The channel will be added to the package using this mode. - Mode *PostSourceProjectNamecmdModifychannelsParamsMode `form:"mode,omitempty" json:"mode,omitempty"` -} - -// PostSourceProjectNamecmdModifychannelsParamsMode defines parameters for PostSourceProjectNamecmdModifychannels. -type PostSourceProjectNamecmdModifychannelsParamsMode string - -// PostSourceProjectNamecmdMoveParams defines parameters for PostSourceProjectNamecmdMove. -type PostSourceProjectNamecmdMoveParams struct { - // Oproject The project you want to move. Source project. - Oproject string `form:"oproject" json:"oproject"` - Comment *string `form:"comment,omitempty" json:"comment,omitempty"` -} - -// PostSourceProjectNamecmdReleaseParams defines parameters for PostSourceProjectNamecmdRelease. -type PostSourceProjectNamecmdReleaseParams struct { - // Nodelay If this parameter is present, do not delay the relase. If this parameter is not present, the release will be delayed to be done later. - Nodelay *string `form:"nodelay,omitempty" json:"nodelay,omitempty"` - - // TargetProject Project containing the repository targeted by the release. - TargetProject *string `form:"target_project,omitempty" json:"target_project,omitempty"` - - // TargetRepository Repository targeted by the release. - TargetRepository *string `form:"target_repository,omitempty" json:"target_repository,omitempty"` - - // Repository Repository for which source and binaries will be released. - Repository *string `form:"repository,omitempty" json:"repository,omitempty"` - - // Setrelease If this parameter is present, the release will be tagged with this parameter's value. - Setrelease *string `form:"setrelease,omitempty" json:"setrelease,omitempty"` -} - -// PostSourceProjectNamecmdRemoveFlagParams defines parameters for PostSourceProjectNamecmdRemoveFlag. -type PostSourceProjectNamecmdRemoveFlagParams struct { - // Flag Name of the flag to be deleted - Flag string `form:"flag" json:"flag"` - - // Repository Repository for which the flag is set - Repository *string `form:"repository,omitempty" json:"repository,omitempty"` - - // Arch Architecture for which the flag is set - Arch *string `form:"arch,omitempty" json:"arch,omitempty"` -} - -// PostSourceProjectNamecmdSetFlagParams defines parameters for PostSourceProjectNamecmdSetFlag. -type PostSourceProjectNamecmdSetFlagParams struct { - // Flag Name of the flag to be set - Flag string `form:"flag" json:"flag"` - - // Status Status of the flag to be set - Status string `form:"status" json:"status"` - - // Repository Repository for which the flag is to be set - Repository *string `form:"repository,omitempty" json:"repository,omitempty"` - - // Arch Architecture for which the flag is to be set - Arch *string `form:"arch,omitempty" json:"arch,omitempty"` -} - -// PostSourceProjectNamecmdUnlockParams defines parameters for PostSourceProjectNamecmdUnlock. -type PostSourceProjectNamecmdUnlockParams struct { - // Comment Comment that should be added to describe the reasoning behind the unlock. - Comment string `form:"comment" json:"comment"` -} - -// GetSourceProjectNameviewInfoParams defines parameters for GetSourceProjectNameviewInfo. -type GetSourceProjectNameviewInfoParams struct { - // View Specify which information about each package should be returned. - // - // * `info`: Show source version, md5sums and build description files of all packages belonging to a project. - // * `issues`, `productlist`, `verboseproductlist`: - // See this [other endpoint](<#/Sources - Packages/get_source__project_name_>) for details. - View *GetSourceProjectNameviewInfoParamsView `form:"view,omitempty" json:"view,omitempty"` - - // Arch Filter by architecture name. - Arch *string `form:"arch,omitempty" json:"arch,omitempty"` - - // Noexpand Set to `1` to prevent from showing some elements about packages, like `filename`, `error` or `linked` elements. - Noexpand *GetSourceProjectNameviewInfoParamsNoexpand `form:"noexpand,omitempty" json:"noexpand,omitempty"` - - // Nofilename Set to `1` to prevent from showing filename elements. Shows only the `sourceinfo` root element. - Nofilename *GetSourceProjectNameviewInfoParamsNofilename `form:"nofilename,omitempty" json:"nofilename,omitempty"` - - // Package Filter by package name. - Package *string `form:"package,omitempty" json:"package,omitempty"` - - // Parse Set to `1` to show more details, like `originproject`, `linked package`, `name`, `version`, `release`, `subpacks`, `deps`, and `prereqs` elements. - Parse *GetSourceProjectNameviewInfoParamsParse `form:"parse,omitempty" json:"parse,omitempty"` - - // Repository Filter by repository name. - Repository *string `form:"repository,omitempty" json:"repository,omitempty"` - - // Withmetamd5 Set to `1` to show the `metamd5` attribute. - Withmetamd5 *GetSourceProjectNameviewInfoParamsWithmetamd5 `form:"withmetamd5,omitempty" json:"withmetamd5,omitempty"` - - // Withchangesmd5 Set to `1` to show the `revtime` element. - Withchangesmd5 *GetSourceProjectNameviewInfoParamsWithchangesmd5 `form:"withchangesmd5,omitempty" json:"withchangesmd5,omitempty"` -} - -// GetSourceProjectNameviewInfoParamsView defines parameters for GetSourceProjectNameviewInfo. -type GetSourceProjectNameviewInfoParamsView string - -// GetSourceProjectNameviewInfoParamsNoexpand defines parameters for GetSourceProjectNameviewInfo. -type GetSourceProjectNameviewInfoParamsNoexpand string - -// GetSourceProjectNameviewInfoParamsNofilename defines parameters for GetSourceProjectNameviewInfo. -type GetSourceProjectNameviewInfoParamsNofilename string - -// GetSourceProjectNameviewInfoParamsParse defines parameters for GetSourceProjectNameviewInfo. -type GetSourceProjectNameviewInfoParamsParse string - -// GetSourceProjectNameviewInfoParamsWithmetamd5 defines parameters for GetSourceProjectNameviewInfo. -type GetSourceProjectNameviewInfoParamsWithmetamd5 string - -// GetSourceProjectNameviewInfoParamsWithchangesmd5 defines parameters for GetSourceProjectNameviewInfo. -type GetSourceProjectNameviewInfoParamsWithchangesmd5 string - -// PostSourcecmdBranchParams defines parameters for PostSourcecmdBranch. -type PostSourcecmdBranchParams struct { - // Project The project that you want to branch - Project *string `form:"project,omitempty" json:"project,omitempty"` - - // Package The package that you want to branch - Package *string `form:"package,omitempty" json:"package,omitempty"` - - // TargetProject Project which will be used or created - TargetProject *string `form:"target_project,omitempty" json:"target_project,omitempty"` - - // TargetPackage Package name which will be used - TargetPackage *string `form:"target_package,omitempty" json:"target_package,omitempty"` - - // Attribute Attribute used for package search, default is OBS:MaintenanceProject - Attribute *string `form:"attribute,omitempty" json:"attribute,omitempty"` - - // AddRepositories Copy the repositories from branched project - AddRepositories *bool `form:"add_repositories,omitempty" json:"add_repositories,omitempty"` - - // UpdatePathElements Check if repository path elements do use each other and adapt our own path elements - UpdatePathElements *bool `form:"update_path_elements,omitempty" json:"update_path_elements,omitempty"` - - // UpdateProjectAttribute Set a different Update Project attribute. - UpdateProjectAttribute *string `form:"update_project_attribute,omitempty" json:"update_project_attribute,omitempty"` - - // Noaccess Create hidden project. The new created project will be read protected - Noaccess *bool `form:"noaccess,omitempty" json:"noaccess,omitempty"` - - // ExtendPackageNames Extend repo and package names - ExtendPackageNames *bool `form:"extend_package_names,omitempty" json:"extend_package_names,omitempty"` - - // AddRepositoriesRebuild Use defined rebuild policy for new repos or copy it from the source project - AddRepositoriesRebuild *PostSourcecmdBranchParamsAddRepositoriesRebuild `form:"add_repositories_rebuild,omitempty" json:"add_repositories_rebuild,omitempty"` - - // AddRepositoriesBlock Use defined block policy for new repos - AddRepositoriesBlock *PostSourcecmdBranchParamsAddRepositoriesBlock `form:"add_repositories_block,omitempty" json:"add_repositories_block,omitempty"` - - // Newinstance The target package exists only via project links, but the link should point to given project - Newinstance *bool `form:"newinstance,omitempty" json:"newinstance,omitempty"` - Maintenance *bool `form:"maintenance,omitempty" json:"maintenance,omitempty"` -} - -// PostSourcecmdBranchParamsAddRepositoriesRebuild defines parameters for PostSourcecmdBranch. -type PostSourcecmdBranchParamsAddRepositoriesRebuild string - -// PostSourcecmdBranchParamsAddRepositoriesBlock defines parameters for PostSourcecmdBranch. -type PostSourcecmdBranchParamsAddRepositoriesBlock string - -// PostSourcecmdCreatemaintenanceincidentParams defines parameters for PostSourcecmdCreatemaintenanceincident. -type PostSourcecmdCreatemaintenanceincidentParams struct { - // Attribute attribute used for package search, default is OBS:MaintenanceProject - Attribute *string `form:"attribute,omitempty" json:"attribute,omitempty"` -} - -// GetStagingProjectNameStagingProjectsParams defines parameters for GetStagingProjectNameStagingProjects. -type GetStagingProjectNameStagingProjectsParams struct { - // Requests "Set to `1` if you want to include the staged, untracked and obsolete requests as well as missing reviews, otherwise don't pass this query parameter." - Requests *string `form:"requests,omitempty" json:"requests,omitempty"` - - // Status "Set to `1` if you want to include the overall state and the status xml (broken packages, missing reviews, checks, etc.), otherwise don't pass this query parameter" - Status *string `form:"status,omitempty" json:"status,omitempty"` - - // History Set to `1` if you want to include the history of the staging project, otherwise don't pass this query parameter. - History *string `form:"history,omitempty" json:"history,omitempty"` -} - -// GetStagingProjectNameStagingProjectsStagingProjectNameParams defines parameters for GetStagingProjectNameStagingProjectsStagingProjectName. -type GetStagingProjectNameStagingProjectsStagingProjectNameParams struct { - // Requests Set to `1` if you want to include the staged, untracked and obsolete requests as well as missing reviews, otherwise don't pass this query parameter. - Requests *GetStagingProjectNameStagingProjectsStagingProjectNameParamsRequests `form:"requests,omitempty" json:"requests,omitempty"` - - // Status Set to `1` if you want to include the overall state and the status xml (broken packages, missing reviews, checks, etc.), otherwise don't pass this query parameter. - Status *GetStagingProjectNameStagingProjectsStagingProjectNameParamsStatus `form:"status,omitempty" json:"status,omitempty"` - - // History Set to `1` if you want to include the history of the staging project, otherwise don't pass this query parameter. - History *GetStagingProjectNameStagingProjectsStagingProjectNameParamsHistory `form:"history,omitempty" json:"history,omitempty"` -} - -// GetStagingProjectNameStagingProjectsStagingProjectNameParamsRequests defines parameters for GetStagingProjectNameStagingProjectsStagingProjectName. -type GetStagingProjectNameStagingProjectsStagingProjectNameParamsRequests string - -// GetStagingProjectNameStagingProjectsStagingProjectNameParamsStatus defines parameters for GetStagingProjectNameStagingProjectsStagingProjectName. -type GetStagingProjectNameStagingProjectsStagingProjectNameParamsStatus string - -// GetStagingProjectNameStagingProjectsStagingProjectNameParamsHistory defines parameters for GetStagingProjectNameStagingProjectsStagingProjectName. -type GetStagingProjectNameStagingProjectsStagingProjectNameParamsHistory string - -// PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsParams defines parameters for PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequests. -type PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsParams struct { - // RemoveExclusion Set to `1` if you want to stop excluding the specified requests before you add them to the staging project. - // Don't pass this parameter to only stage the requests that are not excluded. - RemoveExclusion *string `form:"remove_exclusion,omitempty" json:"remove_exclusion,omitempty"` -} - -// DeleteStagingProjectNameWorkflowParams defines parameters for DeleteStagingProjectNameWorkflow. -type DeleteStagingProjectNameWorkflowParams struct { - // WithStagingProjects Set to `1` if you want to delete all the staging projects associated to the staging workflow when it is deleted. - // Staging projects' names usually look like: project_name:Staging:A, project_name:Staging:B etc. - WithStagingProjects *int `form:"with_staging_projects,omitempty" json:"with_staging_projects,omitempty"` -} - -// GetStatisticsLatestAddedParams defines parameters for GetStatisticsLatestAdded. -type GetStatisticsLatestAddedParams struct { - // Limit Override default maximum value of 10 entries to be returned. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` -} - -// GetStatisticsLatestUpdatedParams defines parameters for GetStatisticsLatestUpdated. -type GetStatisticsLatestUpdatedParams struct { - // Limit Override default maximum value of 10 entries to be returned. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` - - // Timelimit Limit the maximum age to this number of days. - Timelimit *int `form:"timelimit,omitempty" json:"timelimit,omitempty"` - - // Prjfilter Filter by project name. - Prjfilter *string `form:"prjfilter,omitempty" json:"prjfilter,omitempty"` - - // Pkgfilter Filter by package name. - Pkgfilter *string `form:"pkgfilter,omitempty" json:"pkgfilter,omitempty"` -} - -// GetStatisticsMostActivePackagesParams defines parameters for GetStatisticsMostActivePackages. -type GetStatisticsMostActivePackagesParams struct { - // Limit Override default maximum value of 10 entries to be returned. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` -} - -// GetStatisticsMostActiveProjectsParams defines parameters for GetStatisticsMostActiveProjects. -type GetStatisticsMostActiveProjectsParams struct { - // Limit Override default maximum value of 10 entries to be returned. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` -} - -// GetStatusMessagesParams defines parameters for GetStatusMessages. -type GetStatusMessagesParams struct { - // Limit Override default maximum value of 1000 entries to be returned. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` -} - -// GetStatusMessageParams defines parameters for GetStatusMessage. -type GetStatusMessageParams struct { - // Limit Override default maximum value of 1000 entries to be returned. - Limit *int `form:"limit,omitempty" json:"limit,omitempty"` -} - -// PostTriggerParams defines parameters for PostTrigger. -type PostTriggerParams struct { - // Id Numerical ID of the token to trigger. - // This is required if you authenticate via a HMAC. - Id *int `form:"id,omitempty" json:"id,omitempty"` - - // Project If the API token does not have a package assigned you can set a project via this parameter. - // The operation of the API token is then executed on this project. - Project *string `form:"project,omitempty" json:"project,omitempty"` - - // Package If the API token does not have a package assigned you can set a package via this parameter. - // The operation of the API token is then executed on this package. - // - // Setting this requires the project parameter to be set too. - Package *string `form:"package,omitempty" json:"package,omitempty"` - - // Repository Restrict the API token operation to this repository. - // - // Only has an effect if the API token operation is 'rebuild' or 'release'. - Repository *string `form:"repository,omitempty" json:"repository,omitempty"` - - // Arch Restrict the API token operation to this architecture with this name. - // - // Only has an effect when the API token operation is 'rebuild' or 'release'. - Arch *string `form:"arch,omitempty" json:"arch,omitempty"` - - // Targetproject Release binaries only to the provided project with this name. - // Setting this requires the 'targetrepository' parameter to be set also. - // - // Only has an effect if the API token operation is 'release'. - Targetproject *string `form:"targetproject,omitempty" json:"targetproject,omitempty"` - - // Targetrepository Release binaries only to the target repository with this name. - // Setting this requires the 'targetproject' parameter to be set also. - // - // Only has an effect if the API token operation is 'release'. - Targetrepository *string `form:"targetrepository,omitempty" json:"targetrepository,omitempty"` - - // FilterSourceRepository Release binaries only from the repository with this name. - // - // Only has an effect if the API token operation is 'release'. - FilterSourceRepository *string `form:"filter_source_repository,omitempty" json:"filter_source_repository,omitempty"` - - // XOBSSIGNATURE A HMAC of the request body, signed with the API token secret. - // Only useful in combination with the id parameter. - XOBSSIGNATURE *string `json:"X-OBS-SIGNATURE,omitempty"` - - // XHUBSIGNATURE256 A HMAC of the request body, signed with the API token secret. - // Only useful in combination with the id parameter. - XHUBSIGNATURE256 *string `json:"X-HUB-SIGNATURE-256,omitempty"` - - // XPagureSignature256 A HMAC of the request body, signed with the API token secret. - // Only useful in combination with the id parameter. - XPagureSignature256 *string `json:"X-Pagure-Signature-256,omitempty"` - - // XGitLabToken The API token secret. - XGitLabToken *string `json:"X-GitLab-Token,omitempty"` - - // Authorization The API token secret in the Token realm. - Authorization *string `json:"Authorization,omitempty"` -} - -// PostTriggerWorkflowParams defines parameters for PostTriggerWorkflow. -type PostTriggerWorkflowParams struct { - // Id Numerical ID of the token to trigger. - // This is required if you authenticate via a HMAC. - Id *int `form:"id,omitempty" json:"id,omitempty"` - - // XOBSSIGNATURE A HMAC of the request body, signed with the API token secret. - // Only useful in combination with the id parameter. - XOBSSIGNATURE *string `json:"X-OBS-SIGNATURE,omitempty"` - - // XHUBSIGNATURE256 A HMAC of the request body, signed with the API token secret. - // Only useful in combination with the id parameter. - XHUBSIGNATURE256 *string `json:"X-HUB-SIGNATURE-256,omitempty"` - - // XPagureSignature256 A HMAC of the request body, signed with the API token secret. - // Only useful in combination with the id parameter. - XPagureSignature256 *string `json:"X-Pagure-Signature-256,omitempty"` - - // XGitLabToken The API token secret. - XGitLabToken *string `json:"X-GitLab-Token,omitempty"` - - // Authorization The API token secret in the Token realm. - Authorization *string `json:"Authorization,omitempty"` -} - -// PostWorkercmdCheckconstraintsParams defines parameters for PostWorkercmdCheckconstraints. -type PostWorkercmdCheckconstraintsParams struct { - // Project Project name. - Project string `form:"project" json:"project"` - - // Repository Repository name. - Repository string `form:"repository" json:"repository"` - - // Arch Architecture name. - Arch string `form:"arch" json:"arch"` - - // Package Package name. - Package string `form:"package" json:"package"` -} - -// PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoTextRequestBody defines body for PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfo for text/plain ContentType. -type PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoTextRequestBody = PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoTextBody - -// PostCommentsPackageProjectNamePackageNameTextRequestBody defines body for PostCommentsPackageProjectNamePackageName for text/plain ContentType. -type PostCommentsPackageProjectNamePackageNameTextRequestBody = PostCommentsPackageProjectNamePackageNameTextBody - -// PostCommentsProjectProjectNameTextRequestBody defines body for PostCommentsProjectProjectName for text/plain ContentType. -type PostCommentsProjectProjectNameTextRequestBody = PostCommentsProjectProjectNameTextBody - -// PostCommentsRequestIdTextRequestBody defines body for PostCommentsRequestId for text/plain ContentType. -type PostCommentsRequestIdTextRequestBody = PostCommentsRequestIdTextBody - -// PostPersonLoginTextRequestBody defines body for PostPersonLogin for text/plain ContentType. -type PostPersonLoginTextRequestBody = PostPersonLoginTextBody - -// PutSourceProjectNameConfigTextRequestBody defines body for PutSourceProjectNameConfig for text/plain ContentType. -type PutSourceProjectNameConfigTextRequestBody = PutSourceProjectNameConfigTextBody - -// RequestEditorFn is the function signature for the RequestEditor callback function -type RequestEditorFn func(ctx context.Context, req *http.Request) error - -// Doer performs HTTP requests. -// -// The standard http.Client implements this interface. -type HttpRequestDoer interface { - Do(req *http.Request) (*http.Response, error) -} - -// Client which conforms to the OpenAPI3 specification for this service. -type Client struct { - // The endpoint of the server conforming to this interface, with scheme, - // https://api.deepmap.com for example. This can contain a path relative - // to the server, such as https://api.deepmap.com/dev-test, and all the - // paths in the swagger spec will be appended to the server. - Server string - - // Doer for performing requests, typically a *http.Client with any - // customized settings, such as certificate chains. - Client HttpRequestDoer - - // A list of callbacks for modifying requests which are generated before sending over - // the network. - RequestEditors []RequestEditorFn -} - -// ClientOption allows setting custom parameters during construction -type ClientOption func(*Client) error - -// Creates a new Client, with reasonable defaults -func NewClient(server string, opts ...ClientOption) (*Client, error) { - // create a client with sane default values - client := Client{ - Server: server, - } - // mutate client and add all optional params - for _, o := range opts { - if err := o(&client); err != nil { - return nil, err - } - } - // ensure the server URL always has a trailing slash - if !strings.HasSuffix(client.Server, "/") { - client.Server += "/" - } - // create httpClient, if not already present - if client.Client == nil { - client.Client = &http.Client{} - } - return &client, nil -} - -// WithHTTPClient allows overriding the default Doer, which is -// automatically created using http.Client. This is useful for tests. -func WithHTTPClient(doer HttpRequestDoer) ClientOption { - return func(c *Client) error { - c.Client = doer - return nil - } -} - -// WithRequestEditorFn allows setting up a callback function, which will be -// called right before sending the request. This can be used to mutate the request. -func WithRequestEditorFn(fn RequestEditorFn) ClientOption { - return func(c *Client) error { - c.RequestEditors = append(c.RequestEditors, fn) - return nil - } -} - -// The interface specification for the client above. -type ClientInterface interface { - // GetAbout request - GetAbout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetAnnouncements request - GetAnnouncements(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostAnnouncementsWithBody request with any body - PostAnnouncementsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteAnnouncementsAnnouncementId request - DeleteAnnouncementsAnnouncementId(ctx context.Context, announcementId int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetAnnouncementsAnnouncementId request - GetAnnouncementsAnnouncementId(ctx context.Context, announcementId int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutAnnouncementsAnnouncementIdWithBody request with any body - PutAnnouncementsAnnouncementIdWithBody(ctx context.Context, announcementId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetArchitectures request - GetArchitectures(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetArchitecturesArchitectureName request - GetArchitecturesArchitectureName(ctx context.Context, architectureName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetAttribute request - GetAttribute(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteAttributeNamespace request - DeleteAttributeNamespace(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetAttributeNamespace request - GetAttributeNamespace(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteAttributeNamespaceMeta request - DeleteAttributeNamespaceMeta(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetAttributeNamespaceMeta request - GetAttributeNamespaceMeta(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostAttributeNamespaceMetaWithBody request with any body - PostAttributeNamespaceMetaWithBody(ctx context.Context, namespace string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutAttributeNamespaceMetaWithBody request with any body - PutAttributeNamespaceMetaWithBody(ctx context.Context, namespace string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteAttributeNamespaceAttributeName request - DeleteAttributeNamespaceAttributeName(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteAttributeNamespaceAttributeNameMeta request - DeleteAttributeNamespaceAttributeNameMeta(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetAttributeNamespaceAttributeNameMeta request - GetAttributeNamespaceAttributeNameMeta(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostAttributeNamespaceAttributeNameMetaWithBody request with any body - PostAttributeNamespaceAttributeNameMetaWithBody(ctx context.Context, namespace string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutAttributeNamespaceAttributeNameMetaWithBody request with any body - PutAttributeNamespaceAttributeNameMetaWithBody(ctx context.Context, namespace string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuild request - GetBuild(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildWorkerstatus request - GetBuildWorkerstatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectName request - GetBuildProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostBuildProjectName request - PostBuildProjectName(ctx context.Context, projectName string, params *PostBuildProjectNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameResult request - GetBuildProjectNameResult(ctx context.Context, projectName string, params *GetBuildProjectNameResultParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryName request - GetBuildProjectNameRepositoryName(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameBuildconfig request - GetBuildProjectNameRepositoryNameBuildconfig(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo request - GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo(ctx context.Context, projectName string, repositoryName string, architectureName string, params *GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo request - PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNameJobhistory request - GetBuildProjectNameRepositoryNameArchitectureNameJobhistory(ctx context.Context, projectName string, repositoryName string, architectureName string, params *GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNameRepository request - GetBuildProjectNameRepositoryNameArchitectureNameRepository(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageName request - GetBuildProjectNameRepositoryNameArchitectureNamePackageName(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenv request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenv(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfo request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfo(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithBody request with any body - PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithBody(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithTextBody(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, body PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistory request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistory(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistory request - PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistory(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatus request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatus(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLog request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLog(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReason request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReason(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatistics request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatistics(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatus request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatus(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatus request - PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatus(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName request - DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName []DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName, fileName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, fileName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithBody request with any body - PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithBody(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName []PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName, fileName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfo request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfo(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, fileName string, params *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteCommentCommentId request - DeleteCommentCommentId(ctx context.Context, commentId int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetCommentCommentIdHistory request - GetCommentCommentIdHistory(ctx context.Context, commentId int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetCommentsPackageProjectNamePackageName request - GetCommentsPackageProjectNamePackageName(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostCommentsPackageProjectNamePackageNameWithBody request with any body - PostCommentsPackageProjectNamePackageNameWithBody(ctx context.Context, projectName string, packageName string, params *PostCommentsPackageProjectNamePackageNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PostCommentsPackageProjectNamePackageNameWithTextBody(ctx context.Context, projectName string, packageName string, params *PostCommentsPackageProjectNamePackageNameParams, body PostCommentsPackageProjectNamePackageNameTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetCommentsProjectProjectName request - GetCommentsProjectProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostCommentsProjectProjectNameWithBody request with any body - PostCommentsProjectProjectNameWithBody(ctx context.Context, projectName string, params *PostCommentsProjectProjectNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PostCommentsProjectProjectNameWithTextBody(ctx context.Context, projectName string, params *PostCommentsProjectProjectNameParams, body PostCommentsProjectProjectNameTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetCommentsRequestId request - GetCommentsRequestId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostCommentsRequestIdWithBody request with any body - PostCommentsRequestIdWithBody(ctx context.Context, id int, params *PostCommentsRequestIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PostCommentsRequestIdWithTextBody(ctx context.Context, id int, params *PostCommentsRequestIdParams, body PostCommentsRequestIdTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetCommentsUser request - GetCommentsUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetConfiguration request - GetConfiguration(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutConfigurationWithBody request with any body - PutConfigurationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetDistributions request - GetDistributions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostDistributionsWithBody request with any body - PostDistributionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutDistributionsBulkReplaceWithBody request with any body - PutDistributionsBulkReplaceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetDistributionsIncludeRemotes request - GetDistributionsIncludeRemotes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteDistributionsDistributionId request - DeleteDistributionsDistributionId(ctx context.Context, distributionId int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetDistributionsDistributionId request - GetDistributionsDistributionId(ctx context.Context, distributionId int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutDistributionsDistributionIdWithBody request with any body - PutDistributionsDistributionIdWithBody(ctx context.Context, distributionId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetGroup request - GetGroup(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteGroupGroupTitle request - DeleteGroupGroupTitle(ctx context.Context, groupTitle string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetGroupGroupTitle request - GetGroupGroupTitle(ctx context.Context, groupTitle string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostGroupGroupTitle request - PostGroupGroupTitle(ctx context.Context, groupTitle string, params *PostGroupGroupTitleParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutGroupGroupTitleWithBody request with any body - PutGroupGroupTitleWithBody(ctx context.Context, groupTitle string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetImageTemplates request - GetImageTemplates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetIssueTrackers request - GetIssueTrackers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostIssueTrackersWithBody request with any body - PostIssueTrackersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteIssueTrackersIssueTrackerName request - DeleteIssueTrackersIssueTrackerName(ctx context.Context, issueTrackerName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetIssueTrackersIssueTrackerName request - GetIssueTrackersIssueTrackerName(ctx context.Context, issueTrackerName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutIssueTrackersIssueTrackerNameWithBody request with any body - PutIssueTrackersIssueTrackerNameWithBody(ctx context.Context, issueTrackerName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetIssueTrackersIssueTrackerNameIssuesIssueName request - GetIssueTrackersIssueTrackerNameIssuesIssueName(ctx context.Context, issueTrackerName string, issueName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetMyNotifications request - GetMyNotifications(ctx context.Context, params *GetMyNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutMyNotificationsId request - PutMyNotificationsId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPerson request - GetPerson(ctx context.Context, params *GetPersonParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostPersonWithBody request with any body - PostPersonWithBody(ctx context.Context, params *PostPersonParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostPersonRegisterWithBody request with any body - PostPersonRegisterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPersonLogin request - GetPersonLogin(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostPersonLoginWithBody request with any body - PostPersonLoginWithBody(ctx context.Context, login string, params *PostPersonLoginParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PostPersonLoginWithTextBody(ctx context.Context, login string, params *PostPersonLoginParams, body PostPersonLoginTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutPersonLoginWithBody request with any body - PutPersonLoginWithBody(ctx context.Context, login string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPersonLoginGroup request - GetPersonLoginGroup(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPersonLoginToken request - GetPersonLoginToken(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostPersonLoginToken request - PostPersonLoginToken(ctx context.Context, login string, params *PostPersonLoginTokenParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeletePersonLoginTokenId request - DeletePersonLoginTokenId(ctx context.Context, login string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPersonLoginWatchlist request - GetPersonLoginWatchlist(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutPersonLoginWatchlistWithBody request with any body - PutPersonLoginWatchlistWithBody(ctx context.Context, login string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPublished request - GetPublished(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPublishedProjectName request - GetPublishedProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPublishedProjectNameRepositoryName request - GetPublishedProjectNameRepositoryName(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPublishedProjectNameRepositoryNameArchitectureName request - GetPublishedProjectNameRepositoryNameArchitectureName(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilename request - GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilename(ctx context.Context, projectName string, repositoryName string, architectureName string, binaryFilename string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmp request - GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmp(ctx context.Context, projectName string, repositoryName string, architectureName string, binaryFilename string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetPublishedProjectNameRepositoryNameviewStatus request - GetPublishedProjectNameRepositoryNameviewStatus(ctx context.Context, projectName string, repositoryName string, params *GetPublishedProjectNameRepositoryNameviewStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetRequest request - GetRequest(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostRequestWithBody request with any body - PostRequestWithBody(ctx context.Context, params *PostRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteRequestId request - DeleteRequestId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetRequestId request - GetRequestId(ctx context.Context, id int, params *GetRequestIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostRequestId request - PostRequestId(ctx context.Context, id int, params *PostRequestIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutRequestIdWithBody request with any body - PutRequestIdWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostRequestIdcmdDiff request - PostRequestIdcmdDiff(ctx context.Context, id int, params *PostRequestIdcmdDiffParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetRequestviewCollection request - GetRequestviewCollection(ctx context.Context, params *GetRequestviewCollectionParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearch request - GetSearch(ctx context.Context, params *GetSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearch request - PostSearch(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchChannel request - GetSearchChannel(ctx context.Context, params *GetSearchChannelParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchChannel request - PostSearchChannel(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchChannelBinary request - GetSearchChannelBinary(ctx context.Context, params *GetSearchChannelBinaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchChannelBinary request - PostSearchChannelBinary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchChannelBinaryId request - GetSearchChannelBinaryId(ctx context.Context, params *GetSearchChannelBinaryIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchChannelBinaryId request - PostSearchChannelBinaryId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchIssue request - GetSearchIssue(ctx context.Context, params *GetSearchIssueParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchIssue request - PostSearchIssue(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchMissingOwner request - GetSearchMissingOwner(ctx context.Context, params *GetSearchMissingOwnerParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchMissingOwner request - PostSearchMissingOwner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchOwner request - GetSearchOwner(ctx context.Context, params *GetSearchOwnerParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchOwner request - PostSearchOwner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchPackage request - GetSearchPackage(ctx context.Context, params *GetSearchPackageParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchPackage request - PostSearchPackage(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchPackageId request - GetSearchPackageId(ctx context.Context, params *GetSearchPackageIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchPackageId request - PostSearchPackageId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchPackageId request - GetSearchPackageId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchPackageId request - PostSearchPackageId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchPerson request - GetSearchPerson(ctx context.Context, params *GetSearchPersonParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchPerson request - PostSearchPerson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchProject request - GetSearchProject(ctx context.Context, params *GetSearchProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchProject request - PostSearchProject(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchProjectId request - GetSearchProjectId(ctx context.Context, params *GetSearchProjectIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchProjectId request - PostSearchProjectId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchProjectId request - GetSearchProjectId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchProjectId request - PostSearchProjectId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchPublishedBinaryId request - GetSearchPublishedBinaryId(ctx context.Context, params *GetSearchPublishedBinaryIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchPublishedBinaryId request - PostSearchPublishedBinaryId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchPublishedPatternId request - GetSearchPublishedPatternId(ctx context.Context, params *GetSearchPublishedPatternIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchPublishedPatternId request - PostSearchPublishedPatternId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchPublishedRepoinfoId request - GetSearchPublishedRepoinfoId(ctx context.Context, params *GetSearchPublishedRepoinfoIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchPublishedRepoinfoId request - PostSearchPublishedRepoinfoId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchReleasedBinary request - GetSearchReleasedBinary(ctx context.Context, params *GetSearchReleasedBinaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchReleasedBinary request - PostSearchReleasedBinary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchReleasedBinaryId request - GetSearchReleasedBinaryId(ctx context.Context, params *GetSearchReleasedBinaryIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchReleasedBinaryId request - PostSearchReleasedBinaryId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchRepositoryId request - GetSearchRepositoryId(ctx context.Context, params *GetSearchRepositoryIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchRepositoryId request - PostSearchRepositoryId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchRequest request - GetSearchRequest(ctx context.Context, params *GetSearchRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchRequest request - PostSearchRequest(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSearchRequestId request - GetSearchRequestId(ctx context.Context, params *GetSearchRequestIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSearchRequestId request - PostSearchRequestId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetService request - GetService(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSource request - GetSource(ctx context.Context, params *GetSourceParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteSourceProjectName request - DeleteSourceProjectName(ctx context.Context, projectName string, params *DeleteSourceProjectNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectName request - GetSourceProjectName(ctx context.Context, projectName string, params *GetSourceProjectNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNameAttribute request - GetSourceProjectNameAttribute(ctx context.Context, projectName string, params *GetSourceProjectNameAttributeParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteSourceProjectNameAttributeAttributeName request - DeleteSourceProjectNameAttributeAttributeName(ctx context.Context, projectName string, attributeName string, params *DeleteSourceProjectNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNameAttributeAttributeName request - GetSourceProjectNameAttributeAttributeName(ctx context.Context, projectName string, attributeName string, params *GetSourceProjectNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNameAttributeAttributeNameWithBody request with any body - PostSourceProjectNameAttributeAttributeNameWithBody(ctx context.Context, projectName string, attributeName string, params *PostSourceProjectNameAttributeAttributeNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNameConfig request - GetSourceProjectNameConfig(ctx context.Context, projectName string, params *GetSourceProjectNameConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutSourceProjectNameConfigWithBody request with any body - PutSourceProjectNameConfigWithBody(ctx context.Context, projectName string, params *PutSourceProjectNameConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - PutSourceProjectNameConfigWithTextBody(ctx context.Context, projectName string, params *PutSourceProjectNameConfigParams, body PutSourceProjectNameConfigTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNameKeyinfo request - GetSourceProjectNameKeyinfo(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNameMeta request - GetSourceProjectNameMeta(ctx context.Context, projectName string, params *GetSourceProjectNameMetaParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutSourceProjectNameMetaWithBody request with any body - PutSourceProjectNameMetaWithBody(ctx context.Context, projectName string, params *PutSourceProjectNameMetaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePattern request - GetSourceProjectNamePattern(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteSourceProjectNamePatternFileName request - DeleteSourceProjectNamePatternFileName(ctx context.Context, projectName string, fileName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePatternFileName request - GetSourceProjectNamePatternFileName(ctx context.Context, projectName string, fileName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutSourceProjectNamePatternFileNameWithBody request with any body - PutSourceProjectNamePatternFileNameWithBody(ctx context.Context, projectName string, fileName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNameProject request - GetSourceProjectNameProject(ctx context.Context, projectName string, params *GetSourceProjectNameProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNameProjectHistory request - GetSourceProjectNameProjectHistory(ctx context.Context, projectName string, params *GetSourceProjectNameProjectHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNameProjectFileName request - GetSourceProjectNameProjectFileName(ctx context.Context, projectName string, fileName string, params *GetSourceProjectNameProjectFileNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteSourceProjectNamePubkey request - DeleteSourceProjectNamePubkey(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePubkey request - GetSourceProjectNamePubkey(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteSourceProjectNamePackageName request - DeleteSourceProjectNamePackageName(ctx context.Context, projectName string, packageName string, params *DeleteSourceProjectNamePackageNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePackageName request - GetSourceProjectNamePackageName(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePackageNameAttribute request - GetSourceProjectNamePackageNameAttribute(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameAttributeParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNameAttributeWithBody request with any body - PostSourceProjectNamePackageNameAttributeWithBody(ctx context.Context, projectName string, packageName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteSourceProjectNamePackageNameAttributeAttributeName request - DeleteSourceProjectNamePackageNameAttributeAttributeName(ctx context.Context, projectName string, packageName string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePackageNameAttributeAttributeName request - GetSourceProjectNamePackageNameAttributeAttributeName(ctx context.Context, projectName string, packageName string, attributeName string, params *GetSourceProjectNamePackageNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNameAttributeAttributeNameWithBody request with any body - PostSourceProjectNamePackageNameAttributeAttributeNameWithBody(ctx context.Context, projectName string, packageName string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePackageNameHistory request - GetSourceProjectNamePackageNameHistory(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePackageNameMeta request - GetSourceProjectNamePackageNameMeta(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameMetaParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutSourceProjectNamePackageNameMetaWithBody request with any body - PutSourceProjectNamePackageNameMetaWithBody(ctx context.Context, projectName string, packageName string, params *PutSourceProjectNamePackageNameMetaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePackageNameBinaryFilenameAttribute request - GetSourceProjectNamePackageNameBinaryFilenameAttribute(ctx context.Context, projectName string, packageName string, binaryFilename string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNameBinaryFilenameAttributeWithBody request with any body - PostSourceProjectNamePackageNameBinaryFilenameAttributeWithBody(ctx context.Context, projectName string, packageName string, binaryFilename string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeName request - DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeName(ctx context.Context, projectName string, packageName string, binaryFilename string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeName request - GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeName(ctx context.Context, projectName string, packageName string, binaryFilename string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteSourceProjectNamePackageNameFileName request - DeleteSourceProjectNamePackageNameFileName(ctx context.Context, projectName string, packageName string, fileName string, params *DeleteSourceProjectNamePackageNameFileNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePackageNameFileName request - GetSourceProjectNamePackageNameFileName(ctx context.Context, projectName string, packageName string, fileName string, params *GetSourceProjectNamePackageNameFileNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutSourceProjectNamePackageNameFileNameWithBody request with any body - PutSourceProjectNamePackageNameFileNameWithBody(ctx context.Context, projectName string, packageName string, fileName string, params *PutSourceProjectNamePackageNameFileNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdAddcontainers request - PostSourceProjectNamePackageNamecmdAddcontainers(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdAddcontainersParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdBranch request - PostSourceProjectNamePackageNamecmdBranch(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdBranchParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdCollectbuildenv request - PostSourceProjectNamePackageNamecmdCollectbuildenv(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCollectbuildenvParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdCommit request - PostSourceProjectNamePackageNamecmdCommit(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCommitParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdCommitfilelist request - PostSourceProjectNamePackageNamecmdCommitfilelist(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCommitfilelistParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdCopy request - PostSourceProjectNamePackageNamecmdCopy(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCopyParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdCreateSpecFileTemplate request - PostSourceProjectNamePackageNamecmdCreateSpecFileTemplate(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdDeleteuploadrev request - PostSourceProjectNamePackageNamecmdDeleteuploadrev(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdDiff request - PostSourceProjectNamePackageNamecmdDiff(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdDiffParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdFork request - PostSourceProjectNamePackageNamecmdFork(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdForkParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdGetprojectservices request - PostSourceProjectNamePackageNamecmdGetprojectservices(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdGetprojectservicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdInstantiate request - PostSourceProjectNamePackageNamecmdInstantiate(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdInstantiateParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdLinkdiff request - PostSourceProjectNamePackageNamecmdLinkdiff(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdLinkdiffParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdLinktobranch request - PostSourceProjectNamePackageNamecmdLinktobranch(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdLinktobranchParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdMergeservice request - PostSourceProjectNamePackageNamecmdMergeservice(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdMergeserviceParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdRebuild request - PostSourceProjectNamePackageNamecmdRebuild(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdRelease request - PostSourceProjectNamePackageNamecmdRelease(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdReleaseParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdRemoveFlag request - PostSourceProjectNamePackageNamecmdRemoveFlag(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdRemoveFlagParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdRunservice request - PostSourceProjectNamePackageNamecmdRunservice(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdRunserviceParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdServicediff request - PostSourceProjectNamePackageNamecmdServicediff(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdServicediffParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdSetFlag request - PostSourceProjectNamePackageNamecmdSetFlag(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdSetFlagParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdShowlinked request - PostSourceProjectNamePackageNamecmdShowlinked(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdUndelete request - PostSourceProjectNamePackageNamecmdUndelete(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdUndeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdUnlock request - PostSourceProjectNamePackageNamecmdUnlock(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdUnlockParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdUpdatepatchinfo request - PostSourceProjectNamePackageNamecmdUpdatepatchinfo(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamePackageNamecmdWaitservice request - PostSourceProjectNamePackageNamecmdWaitservice(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNamePackageNameviewInfo request - GetSourceProjectNamePackageNameviewInfo(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameviewInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdAddchannels request - PostSourceProjectNamecmdAddchannels(ctx context.Context, projectName string, params *PostSourceProjectNamecmdAddchannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdCopy request - PostSourceProjectNamecmdCopy(ctx context.Context, projectName string, params *PostSourceProjectNamecmdCopyParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdCreatekey request - PostSourceProjectNamecmdCreatekey(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdCreatemaintenanceincident request - PostSourceProjectNamecmdCreatemaintenanceincident(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdCreatepatchinfo request - PostSourceProjectNamecmdCreatepatchinfo(ctx context.Context, projectName string, params *PostSourceProjectNamecmdCreatepatchinfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdExtendkey request - PostSourceProjectNamecmdExtendkey(ctx context.Context, projectName string, params *PostSourceProjectNamecmdExtendkeyParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdFreezelink request - PostSourceProjectNamecmdFreezelink(ctx context.Context, projectName string, params *PostSourceProjectNamecmdFreezelinkParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdLock request - PostSourceProjectNamecmdLock(ctx context.Context, projectName string, params *PostSourceProjectNamecmdLockParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdModifychannels request - PostSourceProjectNamecmdModifychannels(ctx context.Context, projectName string, params *PostSourceProjectNamecmdModifychannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdMove request - PostSourceProjectNamecmdMove(ctx context.Context, projectName string, params *PostSourceProjectNamecmdMoveParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdRelease request - PostSourceProjectNamecmdRelease(ctx context.Context, projectName string, params *PostSourceProjectNamecmdReleaseParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdRemoveFlag request - PostSourceProjectNamecmdRemoveFlag(ctx context.Context, projectName string, params *PostSourceProjectNamecmdRemoveFlagParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdSetFlag request - PostSourceProjectNamecmdSetFlag(ctx context.Context, projectName string, params *PostSourceProjectNamecmdSetFlagParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdShowlinked request - PostSourceProjectNamecmdShowlinked(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdUndelete request - PostSourceProjectNamecmdUndelete(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourceProjectNamecmdUnlock request - PostSourceProjectNamecmdUnlock(ctx context.Context, projectName string, params *PostSourceProjectNamecmdUnlockParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetSourceProjectNameviewInfo request - GetSourceProjectNameviewInfo(ctx context.Context, projectName string, params *GetSourceProjectNameviewInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourcecmdBranch request - PostSourcecmdBranch(ctx context.Context, params *PostSourcecmdBranchParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourcecmdCreatemaintenanceincident request - PostSourcecmdCreatemaintenanceincident(ctx context.Context, params *PostSourcecmdCreatemaintenanceincidentParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostSourcecmdOrderkiwireposWithBody request with any body - PostSourcecmdOrderkiwireposWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStagingProjectNameBacklog request - GetStagingProjectNameBacklog(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteStagingProjectNameExcludedRequestsWithBody request with any body - DeleteStagingProjectNameExcludedRequestsWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStagingProjectNameExcludedRequests request - GetStagingProjectNameExcludedRequests(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStagingProjectNameExcludedRequestsWithBody request with any body - PostStagingProjectNameExcludedRequestsWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteStagingProjectNameStagedRequestsWithBody request with any body - DeleteStagingProjectNameStagedRequestsWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStagingProjectNameStagingProjects request - GetStagingProjectNameStagingProjects(ctx context.Context, projectName string, params *GetStagingProjectNameStagingProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStagingProjectNameStagingProjectsWithBody request with any body - PostStagingProjectNameStagingProjectsWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStagingProjectNameStagingProjectsStagingProjectName request - GetStagingProjectNameStagingProjectsStagingProjectName(ctx context.Context, projectName string, stagingProjectName string, params *GetStagingProjectNameStagingProjectsStagingProjectNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStagingProjectNameStagingProjectsStagingProjectNameAccept request - PostStagingProjectNameStagingProjectsStagingProjectNameAccept(ctx context.Context, projectName string, stagingProjectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyName request - PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyName(ctx context.Context, projectName string, stagingProjectName string, stagingProjectCopyName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBody request with any body - DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBody(ctx context.Context, projectName string, stagingProjectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequests request - GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequests(ctx context.Context, projectName string, stagingProjectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBody request with any body - PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBody(ctx context.Context, projectName string, stagingProjectName string, params *PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteStagingProjectNameWorkflow request - DeleteStagingProjectNameWorkflow(ctx context.Context, projectName string, params *DeleteStagingProjectNameWorkflowParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStagingProjectNameWorkflowWithBody request with any body - PostStagingProjectNameWorkflowWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PutStagingProjectNameWorkflowWithBody request with any body - PutStagingProjectNameWorkflowWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatistics request - GetStatistics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatisticsActiveRequestCreatorsProjectName request - GetStatisticsActiveRequestCreatorsProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatisticsActivityProjectNamePackageName request - GetStatisticsActivityProjectNamePackageName(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatisticsAddedTimestampProjectNamePackageName request - GetStatisticsAddedTimestampProjectNamePackageName(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatisticsGlobalCounters request - GetStatisticsGlobalCounters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatisticsLatestAdded request - GetStatisticsLatestAdded(ctx context.Context, params *GetStatisticsLatestAddedParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatisticsLatestUpdated request - GetStatisticsLatestUpdated(ctx context.Context, params *GetStatisticsLatestUpdatedParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatisticsMaintenanceStatisticsProjectName request - GetStatisticsMaintenanceStatisticsProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatisticsMostActivePackages request - GetStatisticsMostActivePackages(ctx context.Context, params *GetStatisticsMostActivePackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatisticsMostActiveProjects request - GetStatisticsMostActiveProjects(ctx context.Context, params *GetStatisticsMostActiveProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatisticsUpdatedTimestampProjectNamePackageName request - GetStatisticsUpdatedTimestampProjectNamePackageName(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatusMessages request - GetStatusMessages(ctx context.Context, params *GetStatusMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStatusMessagesWithBody request with any body - PostStatusMessagesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteStatusMessagesId request - DeleteStatusMessagesId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatusMessagesId request - GetStatusMessagesId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatusProjectProjectName request - GetStatusProjectProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatusWorkerstatus request - GetStatusWorkerstatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatusMessage request - GetStatusMessage(ctx context.Context, params *GetStatusMessageParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildId request - GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildId(ctx context.Context, projectName string, repositoryName string, architectureName string, buildId int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithBody request with any body - PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithBody(ctx context.Context, projectName string, repositoryName string, architectureName string, buildId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecks request - GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecks(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithBody request with any body - PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithBody(ctx context.Context, projectName string, repositoryName string, architectureName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckName request - DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckName(ctx context.Context, projectName string, repositoryName string, architectureName string, checkName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatusReportsProjectsProjectNameRequiredChecks request - GetStatusReportsProjectsProjectNameRequiredChecks(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStatusReportsProjectsProjectNameRequiredChecksWithBody request with any body - PostStatusReportsProjectsProjectNameRequiredChecksWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteStatusReportsProjectsProjectNameRequiredChecksCheckName request - DeleteStatusReportsProjectsProjectNameRequiredChecksCheckName(ctx context.Context, projectName string, checkName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildId request - GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildId(ctx context.Context, projectName string, repositoryName string, buildId int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithBody request with any body - PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithBody(ctx context.Context, projectName string, repositoryName string, buildId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecks request - GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecks(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithBody request with any body - PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithBody(ctx context.Context, projectName string, repositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckName request - DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckName(ctx context.Context, projectName string, repositoryName string, checkName string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetStatusReportsRequestsIdReports request - GetStatusReportsRequestsIdReports(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostStatusReportsRequestsIdReportsWithBody request with any body - PostStatusReportsRequestsIdReportsWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostTrigger request - PostTrigger(ctx context.Context, params *PostTriggerParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostTriggerRebuild request - PostTriggerRebuild(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostTriggerRelease request - PostTriggerRelease(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostTriggerRunservice request - PostTriggerRunservice(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostTriggerWebhook request - PostTriggerWebhook(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostTriggerWorkflow request - PostTriggerWorkflow(ctx context.Context, params *PostTriggerWorkflowParams, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetWorkerStatus request - GetWorkerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetWorkerStatus request - GetWorkerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) - - // GetWorkerArchitectureNameWorkerId request - GetWorkerArchitectureNameWorkerId(ctx context.Context, architectureName string, workerId string, reqEditors ...RequestEditorFn) (*http.Response, error) - - // PostWorkercmdCheckconstraintsWithBody request with any body - PostWorkercmdCheckconstraintsWithBody(ctx context.Context, params *PostWorkercmdCheckconstraintsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) -} - -func (c *Client) GetAbout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAboutRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetAnnouncements(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAnnouncementsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostAnnouncementsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostAnnouncementsRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteAnnouncementsAnnouncementId(ctx context.Context, announcementId int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteAnnouncementsAnnouncementIdRequest(c.Server, announcementId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetAnnouncementsAnnouncementId(ctx context.Context, announcementId int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAnnouncementsAnnouncementIdRequest(c.Server, announcementId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutAnnouncementsAnnouncementIdWithBody(ctx context.Context, announcementId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutAnnouncementsAnnouncementIdRequestWithBody(c.Server, announcementId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetArchitectures(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetArchitecturesRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetArchitecturesArchitectureName(ctx context.Context, architectureName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetArchitecturesArchitectureNameRequest(c.Server, architectureName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetAttribute(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAttributeRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteAttributeNamespace(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteAttributeNamespaceRequest(c.Server, namespace) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetAttributeNamespace(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAttributeNamespaceRequest(c.Server, namespace) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteAttributeNamespaceMeta(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteAttributeNamespaceMetaRequest(c.Server, namespace) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetAttributeNamespaceMeta(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAttributeNamespaceMetaRequest(c.Server, namespace) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostAttributeNamespaceMetaWithBody(ctx context.Context, namespace string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostAttributeNamespaceMetaRequestWithBody(c.Server, namespace, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutAttributeNamespaceMetaWithBody(ctx context.Context, namespace string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutAttributeNamespaceMetaRequestWithBody(c.Server, namespace, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteAttributeNamespaceAttributeName(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteAttributeNamespaceAttributeNameRequest(c.Server, namespace, attributeName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteAttributeNamespaceAttributeNameMeta(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteAttributeNamespaceAttributeNameMetaRequest(c.Server, namespace, attributeName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetAttributeNamespaceAttributeNameMeta(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAttributeNamespaceAttributeNameMetaRequest(c.Server, namespace, attributeName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostAttributeNamespaceAttributeNameMetaWithBody(ctx context.Context, namespace string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostAttributeNamespaceAttributeNameMetaRequestWithBody(c.Server, namespace, attributeName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutAttributeNamespaceAttributeNameMetaWithBody(ctx context.Context, namespace string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutAttributeNamespaceAttributeNameMetaRequestWithBody(c.Server, namespace, attributeName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuild(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildWorkerstatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildWorkerstatusRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostBuildProjectName(ctx context.Context, projectName string, params *PostBuildProjectNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostBuildProjectNameRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameResult(ctx context.Context, projectName string, params *GetBuildProjectNameResultParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameResultRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryName(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameRequest(c.Server, projectName, repositoryName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameBuildconfig(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameBuildconfigRequest(c.Server, projectName, repositoryName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo(ctx context.Context, projectName string, repositoryName string, architectureName string, params *GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoRequest(c.Server, projectName, repositoryName, architectureName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoRequest(c.Server, projectName, repositoryName, architectureName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNameJobhistory(ctx context.Context, projectName string, repositoryName string, architectureName string, params *GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNameJobhistoryRequest(c.Server, projectName, repositoryName, architectureName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNameRepository(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNameRepositoryRequest(c.Server, projectName, repositoryName, architectureName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNamePackageName(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameRequest(c.Server, projectName, repositoryName, architectureName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenv(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvRequest(c.Server, projectName, repositoryName, architectureName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfo(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoRequest(c.Server, projectName, repositoryName, architectureName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithBody(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoRequestWithBody(c.Server, projectName, repositoryName, architectureName, packageName, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithTextBody(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, body PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoRequestWithTextBody(c.Server, projectName, repositoryName, architectureName, packageName, params, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistory(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryRequest(c.Server, projectName, repositoryName, architectureName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistory(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryRequest(c.Server, projectName, repositoryName, architectureName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatus(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusRequest(c.Server, projectName, repositoryName, architectureName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLog(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogRequest(c.Server, projectName, repositoryName, architectureName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReason(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonRequest(c.Server, projectName, repositoryName, architectureName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatistics(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsRequest(c.Server, projectName, repositoryName, architectureName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatus(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusRequest(c.Server, projectName, repositoryName, architectureName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatus(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusRequest(c.Server, projectName, repositoryName, architectureName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName []DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName, fileName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameRequest(c.Server, projectName, repositoryName, architectureName, packageName, fileName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, fileName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameRequest(c.Server, projectName, repositoryName, architectureName, packageName, fileName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithBody(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName []PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName, fileName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameRequestWithBody(c.Server, projectName, repositoryName, architectureName, packageName, fileName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfo(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, fileName string, params *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoRequest(c.Server, projectName, repositoryName, architectureName, packageName, fileName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteCommentCommentId(ctx context.Context, commentId int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteCommentCommentIdRequest(c.Server, commentId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetCommentCommentIdHistory(ctx context.Context, commentId int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCommentCommentIdHistoryRequest(c.Server, commentId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetCommentsPackageProjectNamePackageName(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCommentsPackageProjectNamePackageNameRequest(c.Server, projectName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostCommentsPackageProjectNamePackageNameWithBody(ctx context.Context, projectName string, packageName string, params *PostCommentsPackageProjectNamePackageNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostCommentsPackageProjectNamePackageNameRequestWithBody(c.Server, projectName, packageName, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostCommentsPackageProjectNamePackageNameWithTextBody(ctx context.Context, projectName string, packageName string, params *PostCommentsPackageProjectNamePackageNameParams, body PostCommentsPackageProjectNamePackageNameTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostCommentsPackageProjectNamePackageNameRequestWithTextBody(c.Server, projectName, packageName, params, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetCommentsProjectProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCommentsProjectProjectNameRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostCommentsProjectProjectNameWithBody(ctx context.Context, projectName string, params *PostCommentsProjectProjectNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostCommentsProjectProjectNameRequestWithBody(c.Server, projectName, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostCommentsProjectProjectNameWithTextBody(ctx context.Context, projectName string, params *PostCommentsProjectProjectNameParams, body PostCommentsProjectProjectNameTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostCommentsProjectProjectNameRequestWithTextBody(c.Server, projectName, params, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetCommentsRequestId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCommentsRequestIdRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostCommentsRequestIdWithBody(ctx context.Context, id int, params *PostCommentsRequestIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostCommentsRequestIdRequestWithBody(c.Server, id, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostCommentsRequestIdWithTextBody(ctx context.Context, id int, params *PostCommentsRequestIdParams, body PostCommentsRequestIdTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostCommentsRequestIdRequestWithTextBody(c.Server, id, params, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetCommentsUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCommentsUserRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetConfiguration(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetConfigurationRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutConfigurationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutConfigurationRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetDistributions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetDistributionsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostDistributionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostDistributionsRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutDistributionsBulkReplaceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutDistributionsBulkReplaceRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetDistributionsIncludeRemotes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetDistributionsIncludeRemotesRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteDistributionsDistributionId(ctx context.Context, distributionId int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteDistributionsDistributionIdRequest(c.Server, distributionId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetDistributionsDistributionId(ctx context.Context, distributionId int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetDistributionsDistributionIdRequest(c.Server, distributionId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutDistributionsDistributionIdWithBody(ctx context.Context, distributionId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutDistributionsDistributionIdRequestWithBody(c.Server, distributionId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetGroup(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetGroupRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteGroupGroupTitle(ctx context.Context, groupTitle string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteGroupGroupTitleRequest(c.Server, groupTitle) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetGroupGroupTitle(ctx context.Context, groupTitle string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetGroupGroupTitleRequest(c.Server, groupTitle) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostGroupGroupTitle(ctx context.Context, groupTitle string, params *PostGroupGroupTitleParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostGroupGroupTitleRequest(c.Server, groupTitle, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutGroupGroupTitleWithBody(ctx context.Context, groupTitle string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutGroupGroupTitleRequestWithBody(c.Server, groupTitle, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetImageTemplates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetImageTemplatesRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetIssueTrackers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetIssueTrackersRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostIssueTrackersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostIssueTrackersRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteIssueTrackersIssueTrackerName(ctx context.Context, issueTrackerName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteIssueTrackersIssueTrackerNameRequest(c.Server, issueTrackerName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetIssueTrackersIssueTrackerName(ctx context.Context, issueTrackerName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetIssueTrackersIssueTrackerNameRequest(c.Server, issueTrackerName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutIssueTrackersIssueTrackerNameWithBody(ctx context.Context, issueTrackerName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutIssueTrackersIssueTrackerNameRequestWithBody(c.Server, issueTrackerName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetIssueTrackersIssueTrackerNameIssuesIssueName(ctx context.Context, issueTrackerName string, issueName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetIssueTrackersIssueTrackerNameIssuesIssueNameRequest(c.Server, issueTrackerName, issueName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetMyNotifications(ctx context.Context, params *GetMyNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetMyNotificationsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutMyNotificationsId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutMyNotificationsIdRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPerson(ctx context.Context, params *GetPersonParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPersonRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostPersonWithBody(ctx context.Context, params *PostPersonParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostPersonRequestWithBody(c.Server, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostPersonRegisterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostPersonRegisterRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPersonLogin(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPersonLoginRequest(c.Server, login) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostPersonLoginWithBody(ctx context.Context, login string, params *PostPersonLoginParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostPersonLoginRequestWithBody(c.Server, login, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostPersonLoginWithTextBody(ctx context.Context, login string, params *PostPersonLoginParams, body PostPersonLoginTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostPersonLoginRequestWithTextBody(c.Server, login, params, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutPersonLoginWithBody(ctx context.Context, login string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutPersonLoginRequestWithBody(c.Server, login, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPersonLoginGroup(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPersonLoginGroupRequest(c.Server, login) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPersonLoginToken(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPersonLoginTokenRequest(c.Server, login) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostPersonLoginToken(ctx context.Context, login string, params *PostPersonLoginTokenParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostPersonLoginTokenRequest(c.Server, login, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeletePersonLoginTokenId(ctx context.Context, login string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeletePersonLoginTokenIdRequest(c.Server, login, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPersonLoginWatchlist(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPersonLoginWatchlistRequest(c.Server, login) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutPersonLoginWatchlistWithBody(ctx context.Context, login string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutPersonLoginWatchlistRequestWithBody(c.Server, login, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPublished(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPublishedRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPublishedProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPublishedProjectNameRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPublishedProjectNameRepositoryName(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPublishedProjectNameRepositoryNameRequest(c.Server, projectName, repositoryName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPublishedProjectNameRepositoryNameArchitectureName(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPublishedProjectNameRepositoryNameArchitectureNameRequest(c.Server, projectName, repositoryName, architectureName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilename(ctx context.Context, projectName string, repositoryName string, architectureName string, binaryFilename string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameRequest(c.Server, projectName, repositoryName, architectureName, binaryFilename) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmp(ctx context.Context, projectName string, repositoryName string, architectureName string, binaryFilename string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpRequest(c.Server, projectName, repositoryName, architectureName, binaryFilename) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetPublishedProjectNameRepositoryNameviewStatus(ctx context.Context, projectName string, repositoryName string, params *GetPublishedProjectNameRepositoryNameviewStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetPublishedProjectNameRepositoryNameviewStatusRequest(c.Server, projectName, repositoryName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetRequest(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetRequestRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostRequestWithBody(ctx context.Context, params *PostRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostRequestRequestWithBody(c.Server, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteRequestId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteRequestIdRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetRequestId(ctx context.Context, id int, params *GetRequestIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetRequestIdRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostRequestId(ctx context.Context, id int, params *PostRequestIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostRequestIdRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutRequestIdWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutRequestIdRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostRequestIdcmdDiff(ctx context.Context, id int, params *PostRequestIdcmdDiffParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostRequestIdcmdDiffRequest(c.Server, id, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetRequestviewCollection(ctx context.Context, params *GetRequestviewCollectionParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetRequestviewCollectionRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearch(ctx context.Context, params *GetSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearch(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchChannel(ctx context.Context, params *GetSearchChannelParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchChannelRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchChannel(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchChannelRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchChannelBinary(ctx context.Context, params *GetSearchChannelBinaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchChannelBinaryRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchChannelBinary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchChannelBinaryRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchChannelBinaryId(ctx context.Context, params *GetSearchChannelBinaryIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchChannelBinaryIdRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchChannelBinaryId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchChannelBinaryIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchIssue(ctx context.Context, params *GetSearchIssueParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchIssueRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchIssue(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchIssueRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchMissingOwner(ctx context.Context, params *GetSearchMissingOwnerParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchMissingOwnerRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchMissingOwner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchMissingOwnerRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchOwner(ctx context.Context, params *GetSearchOwnerParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchOwnerRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchOwner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchOwnerRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchPackage(ctx context.Context, params *GetSearchPackageParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchPackageRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchPackage(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchPackageRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchPackageId(ctx context.Context, params *GetSearchPackageIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchPackageIdRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchPackageId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchPackageIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchPackageId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchPackageIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchPackageId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchPackageIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchPerson(ctx context.Context, params *GetSearchPersonParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchPersonRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchPerson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchPersonRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchProject(ctx context.Context, params *GetSearchProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchProjectRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchProject(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchProjectRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchProjectId(ctx context.Context, params *GetSearchProjectIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchProjectIdRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchProjectId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchProjectIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchProjectId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchProjectIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchProjectId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchProjectIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchPublishedBinaryId(ctx context.Context, params *GetSearchPublishedBinaryIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchPublishedBinaryIdRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchPublishedBinaryId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchPublishedBinaryIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchPublishedPatternId(ctx context.Context, params *GetSearchPublishedPatternIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchPublishedPatternIdRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchPublishedPatternId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchPublishedPatternIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchPublishedRepoinfoId(ctx context.Context, params *GetSearchPublishedRepoinfoIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchPublishedRepoinfoIdRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchPublishedRepoinfoId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchPublishedRepoinfoIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchReleasedBinary(ctx context.Context, params *GetSearchReleasedBinaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchReleasedBinaryRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchReleasedBinary(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchReleasedBinaryRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchReleasedBinaryId(ctx context.Context, params *GetSearchReleasedBinaryIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchReleasedBinaryIdRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchReleasedBinaryId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchReleasedBinaryIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchRepositoryId(ctx context.Context, params *GetSearchRepositoryIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchRepositoryIdRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchRepositoryId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchRepositoryIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchRequest(ctx context.Context, params *GetSearchRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchRequestRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchRequest(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchRequestRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSearchRequestId(ctx context.Context, params *GetSearchRequestIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSearchRequestIdRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSearchRequestId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSearchRequestIdRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetService(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetServiceRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSource(ctx context.Context, params *GetSourceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteSourceProjectName(ctx context.Context, projectName string, params *DeleteSourceProjectNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSourceProjectNameRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectName(ctx context.Context, projectName string, params *GetSourceProjectNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNameRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNameAttribute(ctx context.Context, projectName string, params *GetSourceProjectNameAttributeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNameAttributeRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteSourceProjectNameAttributeAttributeName(ctx context.Context, projectName string, attributeName string, params *DeleteSourceProjectNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSourceProjectNameAttributeAttributeNameRequest(c.Server, projectName, attributeName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNameAttributeAttributeName(ctx context.Context, projectName string, attributeName string, params *GetSourceProjectNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNameAttributeAttributeNameRequest(c.Server, projectName, attributeName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNameAttributeAttributeNameWithBody(ctx context.Context, projectName string, attributeName string, params *PostSourceProjectNameAttributeAttributeNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNameAttributeAttributeNameRequestWithBody(c.Server, projectName, attributeName, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNameConfig(ctx context.Context, projectName string, params *GetSourceProjectNameConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNameConfigRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutSourceProjectNameConfigWithBody(ctx context.Context, projectName string, params *PutSourceProjectNameConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutSourceProjectNameConfigRequestWithBody(c.Server, projectName, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutSourceProjectNameConfigWithTextBody(ctx context.Context, projectName string, params *PutSourceProjectNameConfigParams, body PutSourceProjectNameConfigTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutSourceProjectNameConfigRequestWithTextBody(c.Server, projectName, params, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNameKeyinfo(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNameKeyinfoRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNameMeta(ctx context.Context, projectName string, params *GetSourceProjectNameMetaParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNameMetaRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutSourceProjectNameMetaWithBody(ctx context.Context, projectName string, params *PutSourceProjectNameMetaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutSourceProjectNameMetaRequestWithBody(c.Server, projectName, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePattern(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePatternRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteSourceProjectNamePatternFileName(ctx context.Context, projectName string, fileName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSourceProjectNamePatternFileNameRequest(c.Server, projectName, fileName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePatternFileName(ctx context.Context, projectName string, fileName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePatternFileNameRequest(c.Server, projectName, fileName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutSourceProjectNamePatternFileNameWithBody(ctx context.Context, projectName string, fileName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutSourceProjectNamePatternFileNameRequestWithBody(c.Server, projectName, fileName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNameProject(ctx context.Context, projectName string, params *GetSourceProjectNameProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNameProjectRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNameProjectHistory(ctx context.Context, projectName string, params *GetSourceProjectNameProjectHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNameProjectHistoryRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNameProjectFileName(ctx context.Context, projectName string, fileName string, params *GetSourceProjectNameProjectFileNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNameProjectFileNameRequest(c.Server, projectName, fileName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteSourceProjectNamePubkey(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSourceProjectNamePubkeyRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePubkey(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePubkeyRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteSourceProjectNamePackageName(ctx context.Context, projectName string, packageName string, params *DeleteSourceProjectNamePackageNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSourceProjectNamePackageNameRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePackageName(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePackageNameRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePackageNameAttribute(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameAttributeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePackageNameAttributeRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNameAttributeWithBody(ctx context.Context, projectName string, packageName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNameAttributeRequestWithBody(c.Server, projectName, packageName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteSourceProjectNamePackageNameAttributeAttributeName(ctx context.Context, projectName string, packageName string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSourceProjectNamePackageNameAttributeAttributeNameRequest(c.Server, projectName, packageName, attributeName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePackageNameAttributeAttributeName(ctx context.Context, projectName string, packageName string, attributeName string, params *GetSourceProjectNamePackageNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePackageNameAttributeAttributeNameRequest(c.Server, projectName, packageName, attributeName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNameAttributeAttributeNameWithBody(ctx context.Context, projectName string, packageName string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNameAttributeAttributeNameRequestWithBody(c.Server, projectName, packageName, attributeName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePackageNameHistory(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePackageNameHistoryRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePackageNameMeta(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameMetaParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePackageNameMetaRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutSourceProjectNamePackageNameMetaWithBody(ctx context.Context, projectName string, packageName string, params *PutSourceProjectNamePackageNameMetaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutSourceProjectNamePackageNameMetaRequestWithBody(c.Server, projectName, packageName, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePackageNameBinaryFilenameAttribute(ctx context.Context, projectName string, packageName string, binaryFilename string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePackageNameBinaryFilenameAttributeRequest(c.Server, projectName, packageName, binaryFilename) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNameBinaryFilenameAttributeWithBody(ctx context.Context, projectName string, packageName string, binaryFilename string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNameBinaryFilenameAttributeRequestWithBody(c.Server, projectName, packageName, binaryFilename, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeName(ctx context.Context, projectName string, packageName string, binaryFilename string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameRequest(c.Server, projectName, packageName, binaryFilename, attributeName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeName(ctx context.Context, projectName string, packageName string, binaryFilename string, attributeName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameRequest(c.Server, projectName, packageName, binaryFilename, attributeName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteSourceProjectNamePackageNameFileName(ctx context.Context, projectName string, packageName string, fileName string, params *DeleteSourceProjectNamePackageNameFileNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteSourceProjectNamePackageNameFileNameRequest(c.Server, projectName, packageName, fileName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePackageNameFileName(ctx context.Context, projectName string, packageName string, fileName string, params *GetSourceProjectNamePackageNameFileNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePackageNameFileNameRequest(c.Server, projectName, packageName, fileName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutSourceProjectNamePackageNameFileNameWithBody(ctx context.Context, projectName string, packageName string, fileName string, params *PutSourceProjectNamePackageNameFileNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutSourceProjectNamePackageNameFileNameRequestWithBody(c.Server, projectName, packageName, fileName, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdAddcontainers(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdAddcontainersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdAddcontainersRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdBranch(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdBranchParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdBranchRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdCollectbuildenv(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCollectbuildenvParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdCollectbuildenvRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdCommit(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCommitParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdCommitRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdCommitfilelist(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCommitfilelistParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdCommitfilelistRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdCopy(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCopyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdCopyRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdCreateSpecFileTemplate(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdCreateSpecFileTemplateRequest(c.Server, projectName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdDeleteuploadrev(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdDeleteuploadrevRequest(c.Server, projectName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdDiff(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdDiffParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdDiffRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdFork(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdForkParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdForkRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdGetprojectservices(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdGetprojectservicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdGetprojectservicesRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdInstantiate(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdInstantiateParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdInstantiateRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdLinkdiff(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdLinkdiffParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdLinkdiffRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdLinktobranch(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdLinktobranchParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdLinktobranchRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdMergeservice(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdMergeserviceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdMergeserviceRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdRebuild(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdRebuildRequest(c.Server, projectName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdRelease(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdReleaseParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdReleaseRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdRemoveFlag(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdRemoveFlagParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdRemoveFlagRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdRunservice(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdRunserviceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdRunserviceRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdServicediff(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdServicediffParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdServicediffRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdSetFlag(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdSetFlagParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdSetFlagRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdShowlinked(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdShowlinkedRequest(c.Server, projectName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdUndelete(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdUndeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdUndeleteRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdUnlock(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdUnlockParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdUnlockRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdUpdatepatchinfo(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdUpdatepatchinfoRequest(c.Server, projectName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamePackageNamecmdWaitservice(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamePackageNamecmdWaitserviceRequest(c.Server, projectName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNamePackageNameviewInfo(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameviewInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNamePackageNameviewInfoRequest(c.Server, projectName, packageName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdAddchannels(ctx context.Context, projectName string, params *PostSourceProjectNamecmdAddchannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdAddchannelsRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdCopy(ctx context.Context, projectName string, params *PostSourceProjectNamecmdCopyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdCopyRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdCreatekey(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdCreatekeyRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdCreatemaintenanceincident(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdCreatemaintenanceincidentRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdCreatepatchinfo(ctx context.Context, projectName string, params *PostSourceProjectNamecmdCreatepatchinfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdCreatepatchinfoRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdExtendkey(ctx context.Context, projectName string, params *PostSourceProjectNamecmdExtendkeyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdExtendkeyRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdFreezelink(ctx context.Context, projectName string, params *PostSourceProjectNamecmdFreezelinkParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdFreezelinkRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdLock(ctx context.Context, projectName string, params *PostSourceProjectNamecmdLockParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdLockRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdModifychannels(ctx context.Context, projectName string, params *PostSourceProjectNamecmdModifychannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdModifychannelsRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdMove(ctx context.Context, projectName string, params *PostSourceProjectNamecmdMoveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdMoveRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdRelease(ctx context.Context, projectName string, params *PostSourceProjectNamecmdReleaseParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdReleaseRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdRemoveFlag(ctx context.Context, projectName string, params *PostSourceProjectNamecmdRemoveFlagParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdRemoveFlagRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdSetFlag(ctx context.Context, projectName string, params *PostSourceProjectNamecmdSetFlagParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdSetFlagRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdShowlinked(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdShowlinkedRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdUndelete(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdUndeleteRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourceProjectNamecmdUnlock(ctx context.Context, projectName string, params *PostSourceProjectNamecmdUnlockParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourceProjectNamecmdUnlockRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetSourceProjectNameviewInfo(ctx context.Context, projectName string, params *GetSourceProjectNameviewInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetSourceProjectNameviewInfoRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourcecmdBranch(ctx context.Context, params *PostSourcecmdBranchParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourcecmdBranchRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourcecmdCreatemaintenanceincident(ctx context.Context, params *PostSourcecmdCreatemaintenanceincidentParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourcecmdCreatemaintenanceincidentRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostSourcecmdOrderkiwireposWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostSourcecmdOrderkiwireposRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStagingProjectNameBacklog(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStagingProjectNameBacklogRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteStagingProjectNameExcludedRequestsWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteStagingProjectNameExcludedRequestsRequestWithBody(c.Server, projectName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStagingProjectNameExcludedRequests(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStagingProjectNameExcludedRequestsRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStagingProjectNameExcludedRequestsWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStagingProjectNameExcludedRequestsRequestWithBody(c.Server, projectName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteStagingProjectNameStagedRequestsWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteStagingProjectNameStagedRequestsRequestWithBody(c.Server, projectName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStagingProjectNameStagingProjects(ctx context.Context, projectName string, params *GetStagingProjectNameStagingProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStagingProjectNameStagingProjectsRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStagingProjectNameStagingProjectsWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStagingProjectNameStagingProjectsRequestWithBody(c.Server, projectName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStagingProjectNameStagingProjectsStagingProjectName(ctx context.Context, projectName string, stagingProjectName string, params *GetStagingProjectNameStagingProjectsStagingProjectNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStagingProjectNameStagingProjectsStagingProjectNameRequest(c.Server, projectName, stagingProjectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStagingProjectNameStagingProjectsStagingProjectNameAccept(ctx context.Context, projectName string, stagingProjectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStagingProjectNameStagingProjectsStagingProjectNameAcceptRequest(c.Server, projectName, stagingProjectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyName(ctx context.Context, projectName string, stagingProjectName string, stagingProjectCopyName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameRequest(c.Server, projectName, stagingProjectName, stagingProjectCopyName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBody(ctx context.Context, projectName string, stagingProjectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsRequestWithBody(c.Server, projectName, stagingProjectName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequests(ctx context.Context, projectName string, stagingProjectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsRequest(c.Server, projectName, stagingProjectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBody(ctx context.Context, projectName string, stagingProjectName string, params *PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsRequestWithBody(c.Server, projectName, stagingProjectName, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteStagingProjectNameWorkflow(ctx context.Context, projectName string, params *DeleteStagingProjectNameWorkflowParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteStagingProjectNameWorkflowRequest(c.Server, projectName, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStagingProjectNameWorkflowWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStagingProjectNameWorkflowRequestWithBody(c.Server, projectName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PutStagingProjectNameWorkflowWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPutStagingProjectNameWorkflowRequestWithBody(c.Server, projectName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatistics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatisticsRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatisticsActiveRequestCreatorsProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatisticsActiveRequestCreatorsProjectNameRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatisticsActivityProjectNamePackageName(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatisticsActivityProjectNamePackageNameRequest(c.Server, projectName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatisticsAddedTimestampProjectNamePackageName(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatisticsAddedTimestampProjectNamePackageNameRequest(c.Server, projectName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatisticsGlobalCounters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatisticsGlobalCountersRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatisticsLatestAdded(ctx context.Context, params *GetStatisticsLatestAddedParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatisticsLatestAddedRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatisticsLatestUpdated(ctx context.Context, params *GetStatisticsLatestUpdatedParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatisticsLatestUpdatedRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatisticsMaintenanceStatisticsProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatisticsMaintenanceStatisticsProjectNameRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatisticsMostActivePackages(ctx context.Context, params *GetStatisticsMostActivePackagesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatisticsMostActivePackagesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatisticsMostActiveProjects(ctx context.Context, params *GetStatisticsMostActiveProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatisticsMostActiveProjectsRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatisticsUpdatedTimestampProjectNamePackageName(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatisticsUpdatedTimestampProjectNamePackageNameRequest(c.Server, projectName, packageName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatusMessages(ctx context.Context, params *GetStatusMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatusMessagesRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStatusMessagesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStatusMessagesRequestWithBody(c.Server, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteStatusMessagesId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteStatusMessagesIdRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatusMessagesId(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatusMessagesIdRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatusProjectProjectName(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatusProjectProjectNameRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatusWorkerstatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatusWorkerstatusRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatusMessage(ctx context.Context, params *GetStatusMessageParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatusMessageRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildId(ctx context.Context, projectName string, repositoryName string, architectureName string, buildId int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdRequest(c.Server, projectName, repositoryName, architectureName, buildId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithBody(ctx context.Context, projectName string, repositoryName string, architectureName string, buildId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdRequestWithBody(c.Server, projectName, repositoryName, architectureName, buildId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecks(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksRequest(c.Server, projectName, repositoryName, architectureName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithBody(ctx context.Context, projectName string, repositoryName string, architectureName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksRequestWithBody(c.Server, projectName, repositoryName, architectureName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckName(ctx context.Context, projectName string, repositoryName string, architectureName string, checkName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameRequest(c.Server, projectName, repositoryName, architectureName, checkName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatusReportsProjectsProjectNameRequiredChecks(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatusReportsProjectsProjectNameRequiredChecksRequest(c.Server, projectName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStatusReportsProjectsProjectNameRequiredChecksWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStatusReportsProjectsProjectNameRequiredChecksRequestWithBody(c.Server, projectName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteStatusReportsProjectsProjectNameRequiredChecksCheckName(ctx context.Context, projectName string, checkName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameRequest(c.Server, projectName, checkName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildId(ctx context.Context, projectName string, repositoryName string, buildId int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdRequest(c.Server, projectName, repositoryName, buildId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithBody(ctx context.Context, projectName string, repositoryName string, buildId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdRequestWithBody(c.Server, projectName, repositoryName, buildId, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecks(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksRequest(c.Server, projectName, repositoryName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithBody(ctx context.Context, projectName string, repositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksRequestWithBody(c.Server, projectName, repositoryName, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckName(ctx context.Context, projectName string, repositoryName string, checkName string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameRequest(c.Server, projectName, repositoryName, checkName) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetStatusReportsRequestsIdReports(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetStatusReportsRequestsIdReportsRequest(c.Server, id) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostStatusReportsRequestsIdReportsWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostStatusReportsRequestsIdReportsRequestWithBody(c.Server, id, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostTrigger(ctx context.Context, params *PostTriggerParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostTriggerRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostTriggerRebuild(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostTriggerRebuildRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostTriggerRelease(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostTriggerReleaseRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostTriggerRunservice(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostTriggerRunserviceRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostTriggerWebhook(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostTriggerWebhookRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostTriggerWorkflow(ctx context.Context, params *PostTriggerWorkflowParams, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostTriggerWorkflowRequest(c.Server, params) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetWorkerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkerStatusRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetWorkerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkerStatusRequest(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) GetWorkerArchitectureNameWorkerId(ctx context.Context, architectureName string, workerId string, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetWorkerArchitectureNameWorkerIdRequest(c.Server, architectureName, workerId) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -func (c *Client) PostWorkercmdCheckconstraintsWithBody(ctx context.Context, params *PostWorkercmdCheckconstraintsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewPostWorkercmdCheckconstraintsRequestWithBody(c.Server, params, contentType, body) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// NewGetAboutRequest generates requests for GetAbout -func NewGetAboutRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/about") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetAnnouncementsRequest generates requests for GetAnnouncements -func NewGetAnnouncementsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/announcements") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostAnnouncementsRequestWithBody generates requests for PostAnnouncements with any type of body -func NewPostAnnouncementsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/announcements") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteAnnouncementsAnnouncementIdRequest generates requests for DeleteAnnouncementsAnnouncementId -func NewDeleteAnnouncementsAnnouncementIdRequest(server string, announcementId int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "announcement_id", runtime.ParamLocationPath, announcementId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/announcements/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetAnnouncementsAnnouncementIdRequest generates requests for GetAnnouncementsAnnouncementId -func NewGetAnnouncementsAnnouncementIdRequest(server string, announcementId int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "announcement_id", runtime.ParamLocationPath, announcementId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/announcements/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutAnnouncementsAnnouncementIdRequestWithBody generates requests for PutAnnouncementsAnnouncementId with any type of body -func NewPutAnnouncementsAnnouncementIdRequestWithBody(server string, announcementId int, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "announcement_id", runtime.ParamLocationPath, announcementId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/announcements/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetArchitecturesRequest generates requests for GetArchitectures -func NewGetArchitecturesRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/architectures") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetArchitecturesArchitectureNameRequest generates requests for GetArchitecturesArchitectureName -func NewGetArchitecturesArchitectureNameRequest(server string, architectureName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/architectures/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetAttributeRequest generates requests for GetAttribute -func NewGetAttributeRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteAttributeNamespaceRequest generates requests for DeleteAttributeNamespace -func NewDeleteAttributeNamespaceRequest(server string, namespace string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetAttributeNamespaceRequest generates requests for GetAttributeNamespace -func NewGetAttributeNamespaceRequest(server string, namespace string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteAttributeNamespaceMetaRequest generates requests for DeleteAttributeNamespaceMeta -func NewDeleteAttributeNamespaceMetaRequest(server string, namespace string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute/%s/_meta", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetAttributeNamespaceMetaRequest generates requests for GetAttributeNamespaceMeta -func NewGetAttributeNamespaceMetaRequest(server string, namespace string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute/%s/_meta", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostAttributeNamespaceMetaRequestWithBody generates requests for PostAttributeNamespaceMeta with any type of body -func NewPostAttributeNamespaceMetaRequestWithBody(server string, namespace string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute/%s/_meta", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPutAttributeNamespaceMetaRequestWithBody generates requests for PutAttributeNamespaceMeta with any type of body -func NewPutAttributeNamespaceMetaRequestWithBody(server string, namespace string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute/%s/_meta", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteAttributeNamespaceAttributeNameRequest generates requests for DeleteAttributeNamespaceAttributeName -func NewDeleteAttributeNamespaceAttributeNameRequest(server string, namespace string, attributeName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute/%s/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteAttributeNamespaceAttributeNameMetaRequest generates requests for DeleteAttributeNamespaceAttributeNameMeta -func NewDeleteAttributeNamespaceAttributeNameMetaRequest(server string, namespace string, attributeName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute/%s/%s/_meta", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetAttributeNamespaceAttributeNameMetaRequest generates requests for GetAttributeNamespaceAttributeNameMeta -func NewGetAttributeNamespaceAttributeNameMetaRequest(server string, namespace string, attributeName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute/%s/%s/_meta", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostAttributeNamespaceAttributeNameMetaRequestWithBody generates requests for PostAttributeNamespaceAttributeNameMeta with any type of body -func NewPostAttributeNamespaceAttributeNameMetaRequestWithBody(server string, namespace string, attributeName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute/%s/%s/_meta", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPutAttributeNamespaceAttributeNameMetaRequestWithBody generates requests for PutAttributeNamespaceAttributeNameMeta with any type of body -func NewPutAttributeNamespaceAttributeNameMetaRequestWithBody(server string, namespace string, attributeName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "namespace", runtime.ParamLocationPath, namespace) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/attribute/%s/%s/_meta", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetBuildRequest generates requests for GetBuild -func NewGetBuildRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildWorkerstatusRequest generates requests for GetBuildWorkerstatus -func NewGetBuildWorkerstatusRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/_workerstatus") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRequest generates requests for GetBuildProjectName -func NewGetBuildProjectNameRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostBuildProjectNameRequest generates requests for PostBuildProjectName -func NewPostBuildProjectNameRequest(server string, projectName string, params *PostBuildProjectNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Package != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "package", runtime.ParamLocationQuery, *params.Package); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Arch != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "arch", runtime.ParamLocationQuery, *params.Arch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Repository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, *params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cmd", runtime.ParamLocationQuery, params.Cmd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameResultRequest generates requests for GetBuildProjectNameResult -func NewGetBuildProjectNameResultRequest(server string, projectName string, params *GetBuildProjectNameResultParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/_result", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Package != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "package", runtime.ParamLocationQuery, *params.Package); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Arch != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "arch", runtime.ParamLocationQuery, *params.Arch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Repository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, *params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Lastbuild != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lastbuild", runtime.ParamLocationQuery, *params.Lastbuild); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Locallink != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "locallink", runtime.ParamLocationQuery, *params.Locallink); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Multibuild != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "multibuild", runtime.ParamLocationQuery, *params.Multibuild); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameRequest generates requests for GetBuildProjectNameRepositoryName -func NewGetBuildProjectNameRepositoryNameRequest(server string, projectName string, repositoryName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameBuildconfigRequest generates requests for GetBuildProjectNameRepositoryNameBuildconfig -func NewGetBuildProjectNameRepositoryNameBuildconfigRequest(server string, projectName string, repositoryName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/_buildconfig", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo -func NewGetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoRequest(server string, projectName string, repositoryName string, architectureName string, params *GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/_builddepinfo", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Package != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "package", runtime.ParamLocationQuery, *params.Package); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoRequest generates requests for PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo -func NewPostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoRequest(server string, projectName string, repositoryName string, architectureName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/_builddepinfo", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNameJobhistoryRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNameJobhistory -func NewGetBuildProjectNameRepositoryNameArchitectureNameJobhistoryRequest(server string, projectName string, repositoryName string, architectureName string, params *GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/_jobhistory", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Code != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "code", runtime.ParamLocationQuery, *params.Code); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndtimeEnd != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endtime_end", runtime.ParamLocationQuery, *params.EndtimeEnd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.EndtimeStart != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endtime_start", runtime.ParamLocationQuery, *params.EndtimeStart); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Package != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "package", runtime.ParamLocationQuery, *params.Package); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNameRepositoryRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNameRepository -func NewGetBuildProjectNameRepositoryNameArchitectureNameRepositoryRequest(server string, projectName string, repositoryName string, architectureName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/_repository", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNamePackageName -func NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameRequest(server string, projectName string, repositoryName string, architectureName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenv -func NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvRequest(server string, projectName string, repositoryName string, architectureName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/_buildenv", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfo -func NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoRequest(server string, projectName string, repositoryName string, architectureName string, packageName string, params *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/_buildinfo", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Add != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "add", runtime.ParamLocationQuery, *params.Add); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Debug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "debug", runtime.ParamLocationQuery, *params.Debug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoRequestWithTextBody calls the generic PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfo builder with text/plain body -func NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoRequestWithTextBody(server string, projectName string, repositoryName string, architectureName string, packageName string, params *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, body PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoTextRequestBody) (*http.Request, error) { - var bodyReader io.Reader - bodyReader = strings.NewReader(string(body)) - return NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoRequestWithBody(server, projectName, repositoryName, architectureName, packageName, params, "text/plain", bodyReader) -} - -// NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoRequestWithBody generates requests for PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfo with any type of body -func NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoRequestWithBody(server string, projectName string, repositoryName string, architectureName string, packageName string, params *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/_buildinfo", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Add != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "add", runtime.ParamLocationQuery, *params.Add); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Debug != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "debug", runtime.ParamLocationQuery, *params.Debug); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistory -func NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryRequest(server string, projectName string, repositoryName string, architectureName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/_history", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryRequest generates requests for PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistory -func NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryRequest(server string, projectName string, repositoryName string, architectureName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/_history", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatus -func NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusRequest(server string, projectName string, repositoryName string, architectureName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/_jobstatus", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLog -func NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogRequest(server string, projectName string, repositoryName string, architectureName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/_log", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReason -func NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonRequest(server string, projectName string, repositoryName string, architectureName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/_reason", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatistics -func NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsRequest(server string, projectName string, repositoryName string, architectureName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/_statistics", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatus -func NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusRequest(server string, projectName string, repositoryName string, architectureName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/_status", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusRequest generates requests for PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatus -func NewPostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusRequest(server string, projectName string, repositoryName string, architectureName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/_status", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameRequest generates requests for DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName -func NewDeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameRequest(server string, projectName string, repositoryName string, architectureName string, packageName []DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName, fileName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam4 string - - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "file_name", runtime.ParamLocationPath, fileName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName -func NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameRequest(server string, projectName string, repositoryName string, architectureName string, packageName string, fileName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam4 string - - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "file_name", runtime.ParamLocationPath, fileName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameRequestWithBody generates requests for PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName with any type of body -func NewPutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameRequestWithBody(server string, projectName string, repositoryName string, architectureName string, packageName []PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName, fileName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam4 string - - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "file_name", runtime.ParamLocationPath, fileName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoRequest generates requests for GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfo -func NewGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoRequest(server string, projectName string, repositoryName string, architectureName string, packageName string, fileName string, params *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam4 string - - pathParam4, err = runtime.StyleParamWithLocation("simple", false, "file_name", runtime.ParamLocationPath, fileName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/build/%s/%s/%s/%s/%s?view=fileinfo", pathParam0, pathParam1, pathParam2, pathParam3, pathParam4) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteCommentCommentIdRequest generates requests for DeleteCommentCommentId -func NewDeleteCommentCommentIdRequest(server string, commentId int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "comment_id", runtime.ParamLocationPath, commentId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/comment/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetCommentCommentIdHistoryRequest generates requests for GetCommentCommentIdHistory -func NewGetCommentCommentIdHistoryRequest(server string, commentId int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "comment_id", runtime.ParamLocationPath, commentId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/comment/%s/history", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetCommentsPackageProjectNamePackageNameRequest generates requests for GetCommentsPackageProjectNamePackageName -func NewGetCommentsPackageProjectNamePackageNameRequest(server string, projectName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/comments/package/%s/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostCommentsPackageProjectNamePackageNameRequestWithTextBody calls the generic PostCommentsPackageProjectNamePackageName builder with text/plain body -func NewPostCommentsPackageProjectNamePackageNameRequestWithTextBody(server string, projectName string, packageName string, params *PostCommentsPackageProjectNamePackageNameParams, body PostCommentsPackageProjectNamePackageNameTextRequestBody) (*http.Request, error) { - var bodyReader io.Reader - bodyReader = strings.NewReader(string(body)) - return NewPostCommentsPackageProjectNamePackageNameRequestWithBody(server, projectName, packageName, params, "text/plain", bodyReader) -} - -// NewPostCommentsPackageProjectNamePackageNameRequestWithBody generates requests for PostCommentsPackageProjectNamePackageName with any type of body -func NewPostCommentsPackageProjectNamePackageNameRequestWithBody(server string, projectName string, packageName string, params *PostCommentsPackageProjectNamePackageNameParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/comments/package/%s/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.ParentId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_id", runtime.ParamLocationQuery, *params.ParentId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetCommentsProjectProjectNameRequest generates requests for GetCommentsProjectProjectName -func NewGetCommentsProjectProjectNameRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/comments/project/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostCommentsProjectProjectNameRequestWithTextBody calls the generic PostCommentsProjectProjectName builder with text/plain body -func NewPostCommentsProjectProjectNameRequestWithTextBody(server string, projectName string, params *PostCommentsProjectProjectNameParams, body PostCommentsProjectProjectNameTextRequestBody) (*http.Request, error) { - var bodyReader io.Reader - bodyReader = strings.NewReader(string(body)) - return NewPostCommentsProjectProjectNameRequestWithBody(server, projectName, params, "text/plain", bodyReader) -} - -// NewPostCommentsProjectProjectNameRequestWithBody generates requests for PostCommentsProjectProjectName with any type of body -func NewPostCommentsProjectProjectNameRequestWithBody(server string, projectName string, params *PostCommentsProjectProjectNameParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/comments/project/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.ParentId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_id", runtime.ParamLocationQuery, *params.ParentId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetCommentsRequestIdRequest generates requests for GetCommentsRequestId -func NewGetCommentsRequestIdRequest(server string, id int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/comments/request/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostCommentsRequestIdRequestWithTextBody calls the generic PostCommentsRequestId builder with text/plain body -func NewPostCommentsRequestIdRequestWithTextBody(server string, id int, params *PostCommentsRequestIdParams, body PostCommentsRequestIdTextRequestBody) (*http.Request, error) { - var bodyReader io.Reader - bodyReader = strings.NewReader(string(body)) - return NewPostCommentsRequestIdRequestWithBody(server, id, params, "text/plain", bodyReader) -} - -// NewPostCommentsRequestIdRequestWithBody generates requests for PostCommentsRequestId with any type of body -func NewPostCommentsRequestIdRequestWithBody(server string, id int, params *PostCommentsRequestIdParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/comments/request/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.ParentId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parent_id", runtime.ParamLocationQuery, *params.ParentId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetCommentsUserRequest generates requests for GetCommentsUser -func NewGetCommentsUserRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/comments/user") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetConfigurationRequest generates requests for GetConfiguration -func NewGetConfigurationRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/configuration") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutConfigurationRequestWithBody generates requests for PutConfiguration with any type of body -func NewPutConfigurationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/configuration") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetDistributionsRequest generates requests for GetDistributions -func NewGetDistributionsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/distributions") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostDistributionsRequestWithBody generates requests for PostDistributions with any type of body -func NewPostDistributionsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/distributions") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPutDistributionsBulkReplaceRequestWithBody generates requests for PutDistributionsBulkReplace with any type of body -func NewPutDistributionsBulkReplaceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/distributions/bulk_replace") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetDistributionsIncludeRemotesRequest generates requests for GetDistributionsIncludeRemotes -func NewGetDistributionsIncludeRemotesRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/distributions/include_remotes") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteDistributionsDistributionIdRequest generates requests for DeleteDistributionsDistributionId -func NewDeleteDistributionsDistributionIdRequest(server string, distributionId int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "distribution_id", runtime.ParamLocationPath, distributionId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/distributions/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetDistributionsDistributionIdRequest generates requests for GetDistributionsDistributionId -func NewGetDistributionsDistributionIdRequest(server string, distributionId int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "distribution_id", runtime.ParamLocationPath, distributionId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/distributions/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutDistributionsDistributionIdRequestWithBody generates requests for PutDistributionsDistributionId with any type of body -func NewPutDistributionsDistributionIdRequestWithBody(server string, distributionId int, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "distribution_id", runtime.ParamLocationPath, distributionId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/distributions/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetGroupRequest generates requests for GetGroup -func NewGetGroupRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/group") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteGroupGroupTitleRequest generates requests for DeleteGroupGroupTitle -func NewDeleteGroupGroupTitleRequest(server string, groupTitle string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "group_title", runtime.ParamLocationPath, groupTitle) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/group/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetGroupGroupTitleRequest generates requests for GetGroupGroupTitle -func NewGetGroupGroupTitleRequest(server string, groupTitle string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "group_title", runtime.ParamLocationPath, groupTitle) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/group/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostGroupGroupTitleRequest generates requests for PostGroupGroupTitle -func NewPostGroupGroupTitleRequest(server string, groupTitle string, params *PostGroupGroupTitleParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "group_title", runtime.ParamLocationPath, groupTitle) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/group/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Cmd != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cmd", runtime.ParamLocationQuery, *params.Cmd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Userid != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userid", runtime.ParamLocationQuery, *params.Userid); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Email != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutGroupGroupTitleRequestWithBody generates requests for PutGroupGroupTitle with any type of body -func NewPutGroupGroupTitleRequestWithBody(server string, groupTitle string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "group_title", runtime.ParamLocationPath, groupTitle) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/group/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetImageTemplatesRequest generates requests for GetImageTemplates -func NewGetImageTemplatesRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/image_templates") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetIssueTrackersRequest generates requests for GetIssueTrackers -func NewGetIssueTrackersRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/issue_trackers") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostIssueTrackersRequestWithBody generates requests for PostIssueTrackers with any type of body -func NewPostIssueTrackersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/issue_trackers") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteIssueTrackersIssueTrackerNameRequest generates requests for DeleteIssueTrackersIssueTrackerName -func NewDeleteIssueTrackersIssueTrackerNameRequest(server string, issueTrackerName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "issue_tracker_name", runtime.ParamLocationPath, issueTrackerName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/issue_trackers/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetIssueTrackersIssueTrackerNameRequest generates requests for GetIssueTrackersIssueTrackerName -func NewGetIssueTrackersIssueTrackerNameRequest(server string, issueTrackerName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "issue_tracker_name", runtime.ParamLocationPath, issueTrackerName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/issue_trackers/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutIssueTrackersIssueTrackerNameRequestWithBody generates requests for PutIssueTrackersIssueTrackerName with any type of body -func NewPutIssueTrackersIssueTrackerNameRequestWithBody(server string, issueTrackerName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "issue_tracker_name", runtime.ParamLocationPath, issueTrackerName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/issue_trackers/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetIssueTrackersIssueTrackerNameIssuesIssueNameRequest generates requests for GetIssueTrackersIssueTrackerNameIssuesIssueName -func NewGetIssueTrackersIssueTrackerNameIssuesIssueNameRequest(server string, issueTrackerName string, issueName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "issue_tracker_name", runtime.ParamLocationPath, issueTrackerName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "issue_name", runtime.ParamLocationPath, issueName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/issue_trackers/%s/issues/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetMyNotificationsRequest generates requests for GetMyNotifications -func NewGetMyNotificationsRequest(server string, params *GetMyNotificationsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/my/notifications") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Project != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ShowMaximum != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "show_maximum", runtime.ParamLocationQuery, *params.ShowMaximum); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.NotificationsType != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "notifications_type", runtime.ParamLocationQuery, *params.NotificationsType); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutMyNotificationsIdRequest generates requests for PutMyNotificationsId -func NewPutMyNotificationsIdRequest(server string, id int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/my/notifications/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetPersonRequest generates requests for GetPerson -func NewGetPersonRequest(server string, params *GetPersonParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Prefix != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "prefix", runtime.ParamLocationQuery, *params.Prefix); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Confirmed != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "confirmed", runtime.ParamLocationQuery, *params.Confirmed); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostPersonRequestWithBody generates requests for PostPerson with any type of body -func NewPostPersonRequestWithBody(server string, params *PostPersonParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cmd", runtime.ParamLocationQuery, params.Cmd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPostPersonRegisterRequestWithBody generates requests for PostPersonRegister with any type of body -func NewPostPersonRegisterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person/register") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetPersonLoginRequest generates requests for GetPersonLogin -func NewGetPersonLoginRequest(server string, login string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostPersonLoginRequestWithTextBody calls the generic PostPersonLogin builder with text/plain body -func NewPostPersonLoginRequestWithTextBody(server string, login string, params *PostPersonLoginParams, body PostPersonLoginTextRequestBody) (*http.Request, error) { - var bodyReader io.Reader - bodyReader = strings.NewReader(string(body)) - return NewPostPersonLoginRequestWithBody(server, login, params, "text/plain", bodyReader) -} - -// NewPostPersonLoginRequestWithBody generates requests for PostPersonLogin with any type of body -func NewPostPersonLoginRequestWithBody(server string, login string, params *PostPersonLoginParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cmd", runtime.ParamLocationQuery, params.Cmd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPutPersonLoginRequestWithBody generates requests for PutPersonLogin with any type of body -func NewPutPersonLoginRequestWithBody(server string, login string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetPersonLoginGroupRequest generates requests for GetPersonLoginGroup -func NewGetPersonLoginGroupRequest(server string, login string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person/%s/group", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetPersonLoginTokenRequest generates requests for GetPersonLoginToken -func NewGetPersonLoginTokenRequest(server string, login string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person/%s/token", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostPersonLoginTokenRequest generates requests for PostPersonLoginToken -func NewPostPersonLoginTokenRequest(server string, login string, params *PostPersonLoginTokenParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person/%s/token", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Description != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Project != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Package != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "package", runtime.ParamLocationQuery, *params.Package); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Operation != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "operation", runtime.ParamLocationQuery, *params.Operation); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ScmToken != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "scm_token", runtime.ParamLocationQuery, *params.ScmToken); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeletePersonLoginTokenIdRequest generates requests for DeletePersonLoginTokenId -func NewDeletePersonLoginTokenIdRequest(server string, login string, id string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person/%s/token/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetPersonLoginWatchlistRequest generates requests for GetPersonLoginWatchlist -func NewGetPersonLoginWatchlistRequest(server string, login string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person/%s/watchlist", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutPersonLoginWatchlistRequestWithBody generates requests for PutPersonLoginWatchlist with any type of body -func NewPutPersonLoginWatchlistRequestWithBody(server string, login string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/person/%s/watchlist", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetPublishedRequest generates requests for GetPublished -func NewGetPublishedRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/published") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetPublishedProjectNameRequest generates requests for GetPublishedProjectName -func NewGetPublishedProjectNameRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/published/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetPublishedProjectNameRepositoryNameRequest generates requests for GetPublishedProjectNameRepositoryName -func NewGetPublishedProjectNameRepositoryNameRequest(server string, projectName string, repositoryName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/published/%s/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetPublishedProjectNameRepositoryNameArchitectureNameRequest generates requests for GetPublishedProjectNameRepositoryNameArchitectureName -func NewGetPublishedProjectNameRepositoryNameArchitectureNameRequest(server string, projectName string, repositoryName string, architectureName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/published/%s/%s/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameRequest generates requests for GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilename -func NewGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameRequest(server string, projectName string, repositoryName string, architectureName string, binaryFilename string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "binary_filename", runtime.ParamLocationPath, binaryFilename) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/published/%s/%s/%s/%s", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpRequest generates requests for GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmp -func NewGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpRequest(server string, projectName string, repositoryName string, architectureName string, binaryFilename string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "binary_filename", runtime.ParamLocationPath, binaryFilename) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/published/%s/%s/%s/%s?view=ymp", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetPublishedProjectNameRepositoryNameviewStatusRequest generates requests for GetPublishedProjectNameRepositoryNameviewStatus -func NewGetPublishedProjectNameRepositoryNameviewStatusRequest(server string, projectName string, repositoryName string, params *GetPublishedProjectNameRepositoryNameviewStatusParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/published/%s/%s?view=status", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetRequestRequest generates requests for GetRequest -func NewGetRequestRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/request") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostRequestRequestWithBody generates requests for PostRequest with any type of body -func NewPostRequestRequestWithBody(server string, params *PostRequestParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/request") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cmd", runtime.ParamLocationQuery, params.Cmd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Addrevision != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "addrevision", runtime.ParamLocationQuery, *params.Addrevision); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IgnoreDelegate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ignore_delegate", runtime.ParamLocationQuery, *params.IgnoreDelegate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.IgnoreBuildState != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ignore_build_state", runtime.ParamLocationQuery, *params.IgnoreBuildState); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteRequestIdRequest generates requests for DeleteRequestId -func NewDeleteRequestIdRequest(server string, id int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/request/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetRequestIdRequest generates requests for GetRequestId -func NewGetRequestIdRequest(server string, id int, params *GetRequestIdParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/request/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Withhistory != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withhistory", runtime.ParamLocationQuery, *params.Withhistory); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withfullhistory != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withfullhistory", runtime.ParamLocationQuery, *params.Withfullhistory); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostRequestIdRequest generates requests for PostRequestId -func NewPostRequestIdRequest(server string, id int, params *PostRequestIdParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/request/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Cmd != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", false, "cmd", runtime.ParamLocationQuery, *params.Cmd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Newstate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "newstate", runtime.ParamLocationQuery, *params.Newstate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.SupersededBy != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "superseded_by", runtime.ParamLocationQuery, *params.SupersededBy); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Priority != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ByUser != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "by_user", runtime.ParamLocationQuery, *params.ByUser); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ByGroup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "by_group", runtime.ParamLocationQuery, *params.ByGroup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ByProject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "by_project", runtime.ParamLocationQuery, *params.ByProject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ByPackage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "by_package", runtime.ParamLocationQuery, *params.ByPackage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Force != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Incident != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "incident", runtime.ParamLocationQuery, *params.Incident); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Revert != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "revert", runtime.ParamLocationQuery, *params.Revert); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Time != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time", runtime.ParamLocationQuery, *params.Time); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutRequestIdRequestWithBody generates requests for PutRequestId with any type of body -func NewPutRequestIdRequestWithBody(server string, id int, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/request/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPostRequestIdcmdDiffRequest generates requests for PostRequestIdcmdDiff -func NewPostRequestIdcmdDiffRequest(server string, id int, params *PostRequestIdcmdDiffParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/request/%s?cmd=diff", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.DiffToSuperseded != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "diff_to_superseded", runtime.ParamLocationQuery, *params.DiffToSuperseded); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withissues != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withissues", runtime.ParamLocationQuery, *params.Withissues); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withdescriptionissues != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withdescriptionissues", runtime.ParamLocationQuery, *params.Withdescriptionissues); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetRequestviewCollectionRequest generates requests for GetRequestviewCollection -func NewGetRequestviewCollectionRequest(server string, params *GetRequestviewCollectionParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/request?view=collection") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.User != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user", runtime.ParamLocationQuery, *params.User); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Project != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Package != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "package", runtime.ParamLocationQuery, *params.Package); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.States != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "states", runtime.ParamLocationQuery, *params.States); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Reviewstates != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reviewstates", runtime.ParamLocationQuery, *params.Reviewstates); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Types != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "types", runtime.ParamLocationQuery, *params.Types); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Roles != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "roles", runtime.ParamLocationQuery, *params.Roles); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withhistory != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withhistory", runtime.ParamLocationQuery, *params.Withhistory); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withfullhistory != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withfullhistory", runtime.ParamLocationQuery, *params.Withfullhistory); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Ids != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ids", runtime.ParamLocationQuery, *params.Ids); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchRequest generates requests for GetSearch -func NewGetSearchRequest(server string, params *GetSearchParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "in", runtime.ParamLocationQuery, params.In); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Return != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "return", runtime.ParamLocationQuery, *params.Return); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Values != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "values", runtime.ParamLocationQuery, *params.Values); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchRequest generates requests for PostSearch -func NewPostSearchRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchChannelRequest generates requests for GetSearchChannel -func NewGetSearchChannelRequest(server string, params *GetSearchChannelParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/channel") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchChannelRequest generates requests for PostSearchChannel -func NewPostSearchChannelRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/channel") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchChannelBinaryRequest generates requests for GetSearchChannelBinary -func NewGetSearchChannelBinaryRequest(server string, params *GetSearchChannelBinaryParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/channel/binary") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchChannelBinaryRequest generates requests for PostSearchChannelBinary -func NewPostSearchChannelBinaryRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/channel/binary") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchChannelBinaryIdRequest generates requests for GetSearchChannelBinaryId -func NewGetSearchChannelBinaryIdRequest(server string, params *GetSearchChannelBinaryIdParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/channel/binary/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Match != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, *params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchChannelBinaryIdRequest generates requests for PostSearchChannelBinaryId -func NewPostSearchChannelBinaryIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/channel/binary/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchIssueRequest generates requests for GetSearchIssue -func NewGetSearchIssueRequest(server string, params *GetSearchIssueParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/issue") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchIssueRequest generates requests for PostSearchIssue -func NewPostSearchIssueRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/issue") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchMissingOwnerRequest generates requests for GetSearchMissingOwner -func NewGetSearchMissingOwnerRequest(server string, params *GetSearchMissingOwnerParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/missing_owner") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Project != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Filter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Attribute != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "attribute", runtime.ParamLocationQuery, *params.Attribute); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchMissingOwnerRequest generates requests for PostSearchMissingOwner -func NewPostSearchMissingOwnerRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/missing_owner") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchOwnerRequest generates requests for GetSearchOwner -func NewGetSearchOwnerRequest(server string, params *GetSearchOwnerParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/owner") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Package != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "package", runtime.ParamLocationQuery, *params.Package); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Binary != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "binary", runtime.ParamLocationQuery, *params.Binary); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.User != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user", runtime.ParamLocationQuery, *params.User); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Group != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "group", runtime.ParamLocationQuery, *params.Group); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Devel != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "devel", runtime.ParamLocationQuery, *params.Devel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Project != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Filter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter", runtime.ParamLocationQuery, *params.Filter); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Attribute != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "attribute", runtime.ParamLocationQuery, *params.Attribute); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchOwnerRequest generates requests for PostSearchOwner -func NewPostSearchOwnerRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/owner") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchPackageRequest generates requests for GetSearchPackage -func NewGetSearchPackageRequest(server string, params *GetSearchPackageParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/package") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchPackageRequest generates requests for PostSearchPackage -func NewPostSearchPackageRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/package") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchPackageIdRequest generates requests for GetSearchPackageId -func NewGetSearchPackageIdRequest(server string, params *GetSearchPackageIdParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/package/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Match != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, *params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchPackageIdRequest generates requests for PostSearchPackageId -func NewPostSearchPackageIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/package/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchPackageIdRequest generates requests for GetSearchPackageId -func NewGetSearchPackageIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/package_id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchPackageIdRequest generates requests for PostSearchPackageId -func NewPostSearchPackageIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/package_id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchPersonRequest generates requests for GetSearchPerson -func NewGetSearchPersonRequest(server string, params *GetSearchPersonParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/person") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchPersonRequest generates requests for PostSearchPerson -func NewPostSearchPersonRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/person") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchProjectRequest generates requests for GetSearchProject -func NewGetSearchProjectRequest(server string, params *GetSearchProjectParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/project") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchProjectRequest generates requests for PostSearchProject -func NewPostSearchProjectRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/project") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchProjectIdRequest generates requests for GetSearchProjectId -func NewGetSearchProjectIdRequest(server string, params *GetSearchProjectIdParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/project/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Match != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, *params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchProjectIdRequest generates requests for PostSearchProjectId -func NewPostSearchProjectIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/project/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchProjectIdRequest generates requests for GetSearchProjectId -func NewGetSearchProjectIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/project_id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchProjectIdRequest generates requests for PostSearchProjectId -func NewPostSearchProjectIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/project_id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchPublishedBinaryIdRequest generates requests for GetSearchPublishedBinaryId -func NewGetSearchPublishedBinaryIdRequest(server string, params *GetSearchPublishedBinaryIdParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/published/binary/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withdownloadurl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withdownloadurl", runtime.ParamLocationQuery, *params.Withdownloadurl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchPublishedBinaryIdRequest generates requests for PostSearchPublishedBinaryId -func NewPostSearchPublishedBinaryIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/published/binary/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchPublishedPatternIdRequest generates requests for GetSearchPublishedPatternId -func NewGetSearchPublishedPatternIdRequest(server string, params *GetSearchPublishedPatternIdParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/published/pattern/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withdownloadurl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withdownloadurl", runtime.ParamLocationQuery, *params.Withdownloadurl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchPublishedPatternIdRequest generates requests for PostSearchPublishedPatternId -func NewPostSearchPublishedPatternIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/published/pattern/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchPublishedRepoinfoIdRequest generates requests for GetSearchPublishedRepoinfoId -func NewGetSearchPublishedRepoinfoIdRequest(server string, params *GetSearchPublishedRepoinfoIdParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/published/repoinfo/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withdownloadurl != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withdownloadurl", runtime.ParamLocationQuery, *params.Withdownloadurl); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchPublishedRepoinfoIdRequest generates requests for PostSearchPublishedRepoinfoId -func NewPostSearchPublishedRepoinfoIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/published/repoinfo/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchReleasedBinaryRequest generates requests for GetSearchReleasedBinary -func NewGetSearchReleasedBinaryRequest(server string, params *GetSearchReleasedBinaryParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/released/binary") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchReleasedBinaryRequest generates requests for PostSearchReleasedBinary -func NewPostSearchReleasedBinaryRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/released/binary") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchReleasedBinaryIdRequest generates requests for GetSearchReleasedBinaryId -func NewGetSearchReleasedBinaryIdRequest(server string, params *GetSearchReleasedBinaryIdParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/released/binary/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Match != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, *params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchReleasedBinaryIdRequest generates requests for PostSearchReleasedBinaryId -func NewPostSearchReleasedBinaryIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/released/binary/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchRepositoryIdRequest generates requests for GetSearchRepositoryId -func NewGetSearchRepositoryIdRequest(server string, params *GetSearchRepositoryIdParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/repository/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Match != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, *params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchRepositoryIdRequest generates requests for PostSearchRepositoryId -func NewPostSearchRepositoryIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/repository/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchRequestRequest generates requests for GetSearchRequest -func NewGetSearchRequestRequest(server string, params *GetSearchRequestParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/request") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withhistory != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withhistory", runtime.ParamLocationQuery, *params.Withhistory); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withfullhistory != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withfullhistory", runtime.ParamLocationQuery, *params.Withfullhistory); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchRequestRequest generates requests for PostSearchRequest -func NewPostSearchRequestRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/request") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSearchRequestIdRequest generates requests for GetSearchRequestId -func NewGetSearchRequestIdRequest(server string, params *GetSearchRequestIdParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/request/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Match != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "match", runtime.ParamLocationQuery, *params.Match); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withhistory != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withhistory", runtime.ParamLocationQuery, *params.Withhistory); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withfullhistory != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withfullhistory", runtime.ParamLocationQuery, *params.Withfullhistory); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSearchRequestIdRequest generates requests for PostSearchRequestId -func NewPostSearchRequestIdRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/search/request/id") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetServiceRequest generates requests for GetService -func NewGetServiceRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/service") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceRequest generates requests for GetSource -func NewGetSourceRequest(server string, params *GetSourceParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Deleted != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted", runtime.ParamLocationQuery, *params.Deleted); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteSourceProjectNameRequest generates requests for DeleteSourceProjectName -func NewDeleteSourceProjectNameRequest(server string, projectName string, params *DeleteSourceProjectNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Force != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNameRequest generates requests for GetSourceProjectName -func NewGetSourceProjectNameRequest(server string, projectName string, params *GetSourceProjectNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Deleted != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted", runtime.ParamLocationQuery, *params.Deleted); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Expand != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expand", runtime.ParamLocationQuery, *params.Expand); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNameAttributeRequest generates requests for GetSourceProjectNameAttribute -func NewGetSourceProjectNameAttributeRequest(server string, projectName string, params *GetSourceProjectNameAttributeParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_attribute", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WithDefault != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "with_default", runtime.ParamLocationQuery, *params.WithDefault); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteSourceProjectNameAttributeAttributeNameRequest generates requests for DeleteSourceProjectNameAttributeAttributeName -func NewDeleteSourceProjectNameAttributeAttributeNameRequest(server string, projectName string, attributeName string, params *DeleteSourceProjectNameAttributeAttributeNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_attribute/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNameAttributeAttributeNameRequest generates requests for GetSourceProjectNameAttributeAttributeName -func NewGetSourceProjectNameAttributeAttributeNameRequest(server string, projectName string, attributeName string, params *GetSourceProjectNameAttributeAttributeNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_attribute/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WithDefault != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "with_default", runtime.ParamLocationQuery, *params.WithDefault); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNameAttributeAttributeNameRequestWithBody generates requests for PostSourceProjectNameAttributeAttributeName with any type of body -func NewPostSourceProjectNameAttributeAttributeNameRequestWithBody(server string, projectName string, attributeName string, params *PostSourceProjectNameAttributeAttributeNameParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_attribute/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetSourceProjectNameConfigRequest generates requests for GetSourceProjectNameConfig -func NewGetSourceProjectNameConfigRequest(server string, projectName string, params *GetSourceProjectNameConfigParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_config", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutSourceProjectNameConfigRequestWithTextBody calls the generic PutSourceProjectNameConfig builder with text/plain body -func NewPutSourceProjectNameConfigRequestWithTextBody(server string, projectName string, params *PutSourceProjectNameConfigParams, body PutSourceProjectNameConfigTextRequestBody) (*http.Request, error) { - var bodyReader io.Reader - bodyReader = strings.NewReader(string(body)) - return NewPutSourceProjectNameConfigRequestWithBody(server, projectName, params, "text/plain", bodyReader) -} - -// NewPutSourceProjectNameConfigRequestWithBody generates requests for PutSourceProjectNameConfig with any type of body -func NewPutSourceProjectNameConfigRequestWithBody(server string, projectName string, params *PutSourceProjectNameConfigParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_config", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetSourceProjectNameKeyinfoRequest generates requests for GetSourceProjectNameKeyinfo -func NewGetSourceProjectNameKeyinfoRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_keyinfo", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNameMetaRequest generates requests for GetSourceProjectNameMeta -func NewGetSourceProjectNameMetaRequest(server string, projectName string, params *GetSourceProjectNameMetaParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_meta", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutSourceProjectNameMetaRequestWithBody generates requests for PutSourceProjectNameMeta with any type of body -func NewPutSourceProjectNameMetaRequestWithBody(server string, projectName string, params *PutSourceProjectNameMetaParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_meta", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetSourceProjectNamePatternRequest generates requests for GetSourceProjectNamePattern -func NewGetSourceProjectNamePatternRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_pattern", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteSourceProjectNamePatternFileNameRequest generates requests for DeleteSourceProjectNamePatternFileName -func NewDeleteSourceProjectNamePatternFileNameRequest(server string, projectName string, fileName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "file_name", runtime.ParamLocationPath, fileName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_pattern/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNamePatternFileNameRequest generates requests for GetSourceProjectNamePatternFileName -func NewGetSourceProjectNamePatternFileNameRequest(server string, projectName string, fileName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "file_name", runtime.ParamLocationPath, fileName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_pattern/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutSourceProjectNamePatternFileNameRequestWithBody generates requests for PutSourceProjectNamePatternFileName with any type of body -func NewPutSourceProjectNamePatternFileNameRequestWithBody(server string, projectName string, fileName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "file_name", runtime.ParamLocationPath, fileName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_pattern/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetSourceProjectNameProjectRequest generates requests for GetSourceProjectNameProject -func NewGetSourceProjectNameProjectRequest(server string, projectName string, params *GetSourceProjectNameProjectParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_project", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Meta != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "meta", runtime.ParamLocationQuery, *params.Meta); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNameProjectHistoryRequest generates requests for GetSourceProjectNameProjectHistory -func NewGetSourceProjectNameProjectHistoryRequest(server string, projectName string, params *GetSourceProjectNameProjectHistoryParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_project/_history", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Deleted != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted", runtime.ParamLocationQuery, *params.Deleted); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Meta != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "meta", runtime.ParamLocationQuery, *params.Meta); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Startbefore != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startbefore", runtime.ParamLocationQuery, *params.Startbefore); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNameProjectFileNameRequest generates requests for GetSourceProjectNameProjectFileName -func NewGetSourceProjectNameProjectFileNameRequest(server string, projectName string, fileName string, params *GetSourceProjectNameProjectFileNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "file_name", runtime.ParamLocationPath, fileName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_project/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Deleted != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted", runtime.ParamLocationQuery, *params.Deleted); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Meta != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "meta", runtime.ParamLocationQuery, *params.Meta); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteSourceProjectNamePubkeyRequest generates requests for DeleteSourceProjectNamePubkey -func NewDeleteSourceProjectNamePubkeyRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_pubkey", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNamePubkeyRequest generates requests for GetSourceProjectNamePubkey -func NewGetSourceProjectNamePubkeyRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/_pubkey", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteSourceProjectNamePackageNameRequest generates requests for DeleteSourceProjectNamePackageName -func NewDeleteSourceProjectNamePackageNameRequest(server string, projectName string, packageName string, params *DeleteSourceProjectNamePackageNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Force != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNamePackageNameRequest generates requests for GetSourceProjectNamePackageName -func NewGetSourceProjectNamePackageNameRequest(server string, projectName string, packageName string, params *GetSourceProjectNamePackageNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Deleted != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted", runtime.ParamLocationQuery, *params.Deleted); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Expand != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expand", runtime.ParamLocationQuery, *params.Expand); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Extension != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "extension", runtime.ParamLocationQuery, *params.Extension); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Lastworking != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "lastworking", runtime.ParamLocationQuery, *params.Lastworking); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Linkrev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "linkrev", runtime.ParamLocationQuery, *params.Linkrev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Meta != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "meta", runtime.ParamLocationQuery, *params.Meta); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Product != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "product", runtime.ParamLocationQuery, *params.Product); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withlinked != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withlinked", runtime.ParamLocationQuery, *params.Withlinked); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNamePackageNameAttributeRequest generates requests for GetSourceProjectNamePackageNameAttribute -func NewGetSourceProjectNamePackageNameAttributeRequest(server string, projectName string, packageName string, params *GetSourceProjectNamePackageNameAttributeParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/_attribute", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WithDefault != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "with_default", runtime.ParamLocationQuery, *params.WithDefault); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WithProject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "with_project", runtime.ParamLocationQuery, *params.WithProject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNameAttributeRequestWithBody generates requests for PostSourceProjectNamePackageNameAttribute with any type of body -func NewPostSourceProjectNamePackageNameAttributeRequestWithBody(server string, projectName string, packageName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/_attribute", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteSourceProjectNamePackageNameAttributeAttributeNameRequest generates requests for DeleteSourceProjectNamePackageNameAttributeAttributeName -func NewDeleteSourceProjectNamePackageNameAttributeAttributeNameRequest(server string, projectName string, packageName string, attributeName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/_attribute/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNamePackageNameAttributeAttributeNameRequest generates requests for GetSourceProjectNamePackageNameAttributeAttributeName -func NewGetSourceProjectNamePackageNameAttributeAttributeNameRequest(server string, projectName string, packageName string, attributeName string, params *GetSourceProjectNamePackageNameAttributeAttributeNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/_attribute/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WithDefault != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "with_default", runtime.ParamLocationQuery, *params.WithDefault); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.WithProject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "with_project", runtime.ParamLocationQuery, *params.WithProject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNameAttributeAttributeNameRequestWithBody generates requests for PostSourceProjectNamePackageNameAttributeAttributeName with any type of body -func NewPostSourceProjectNamePackageNameAttributeAttributeNameRequestWithBody(server string, projectName string, packageName string, attributeName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/_attribute/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetSourceProjectNamePackageNameHistoryRequest generates requests for GetSourceProjectNamePackageNameHistory -func NewGetSourceProjectNamePackageNameHistoryRequest(server string, projectName string, packageName string, params *GetSourceProjectNamePackageNameHistoryParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/_history", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Deleted != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted", runtime.ParamLocationQuery, *params.Deleted); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Meta != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "meta", runtime.ParamLocationQuery, *params.Meta); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Startbefore != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startbefore", runtime.ParamLocationQuery, *params.Startbefore); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNamePackageNameMetaRequest generates requests for GetSourceProjectNamePackageNameMeta -func NewGetSourceProjectNamePackageNameMetaRequest(server string, projectName string, packageName string, params *GetSourceProjectNamePackageNameMetaParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/_meta", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Meta != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "meta", runtime.ParamLocationQuery, *params.Meta); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutSourceProjectNamePackageNameMetaRequestWithBody generates requests for PutSourceProjectNamePackageNameMeta with any type of body -func NewPutSourceProjectNamePackageNameMetaRequestWithBody(server string, projectName string, packageName string, params *PutSourceProjectNamePackageNameMetaParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/_meta", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetSourceProjectNamePackageNameBinaryFilenameAttributeRequest generates requests for GetSourceProjectNamePackageNameBinaryFilenameAttribute -func NewGetSourceProjectNamePackageNameBinaryFilenameAttributeRequest(server string, projectName string, packageName string, binaryFilename string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "binary_filename", runtime.ParamLocationPath, binaryFilename) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/%s/_attribute", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNameBinaryFilenameAttributeRequestWithBody generates requests for PostSourceProjectNamePackageNameBinaryFilenameAttribute with any type of body -func NewPostSourceProjectNamePackageNameBinaryFilenameAttributeRequestWithBody(server string, projectName string, packageName string, binaryFilename string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "binary_filename", runtime.ParamLocationPath, binaryFilename) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/%s/_attribute", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameRequest generates requests for DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeName -func NewDeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameRequest(server string, projectName string, packageName string, binaryFilename string, attributeName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "binary_filename", runtime.ParamLocationPath, binaryFilename) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/%s/_attribute/%s", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameRequest generates requests for GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeName -func NewGetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameRequest(server string, projectName string, packageName string, binaryFilename string, attributeName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "binary_filename", runtime.ParamLocationPath, binaryFilename) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "attribute_name", runtime.ParamLocationPath, attributeName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/%s/_attribute/%s", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteSourceProjectNamePackageNameFileNameRequest generates requests for DeleteSourceProjectNamePackageNameFileName -func NewDeleteSourceProjectNamePackageNameFileNameRequest(server string, projectName string, packageName string, fileName string, params *DeleteSourceProjectNamePackageNameFileNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "file_name", runtime.ParamLocationPath, fileName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Meta != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "meta", runtime.ParamLocationQuery, *params.Meta); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Keeplink != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "keeplink", runtime.ParamLocationQuery, *params.Keeplink); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNamePackageNameFileNameRequest generates requests for GetSourceProjectNamePackageNameFileName -func NewGetSourceProjectNamePackageNameFileNameRequest(server string, projectName string, packageName string, fileName string, params *GetSourceProjectNamePackageNameFileNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "file_name", runtime.ParamLocationPath, fileName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Meta != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "meta", runtime.ParamLocationQuery, *params.Meta); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Deleted != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deleted", runtime.ParamLocationQuery, *params.Deleted); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Expand != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expand", runtime.ParamLocationQuery, *params.Expand); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPutSourceProjectNamePackageNameFileNameRequestWithBody generates requests for PutSourceProjectNamePackageNameFileName with any type of body -func NewPutSourceProjectNamePackageNameFileNameRequestWithBody(server string, projectName string, packageName string, fileName string, params *PutSourceProjectNamePackageNameFileNameParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "file_name", runtime.ParamLocationPath, fileName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Meta != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "meta", runtime.ParamLocationQuery, *params.Meta); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Keeplink != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "keeplink", runtime.ParamLocationQuery, *params.Keeplink); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdAddcontainersRequest generates requests for PostSourceProjectNamePackageNamecmdAddcontainers -func NewPostSourceProjectNamePackageNamecmdAddcontainersRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdAddcontainersParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=addcontainers", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cmd", runtime.ParamLocationQuery, params.Cmd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.ExtendPackageNames != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "extend_package_names", runtime.ParamLocationQuery, *params.ExtendPackageNames); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdBranchRequest generates requests for PostSourceProjectNamePackageNamecmdBranch -func NewPostSourceProjectNamePackageNamecmdBranchRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdBranchParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=branch", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.TargetProject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_project", runtime.ParamLocationQuery, *params.TargetProject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetPackage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_package", runtime.ParamLocationQuery, *params.TargetPackage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddRepositories != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "add_repositories", runtime.ParamLocationQuery, *params.AddRepositories); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddRepositoriesRebuild != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "add_repositories_rebuild", runtime.ParamLocationQuery, *params.AddRepositoriesRebuild); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddRepositoriesBlock != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "add_repositories_block", runtime.ParamLocationQuery, *params.AddRepositoriesBlock); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Autocleanup != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "autocleanup", runtime.ParamLocationQuery, *params.Autocleanup); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Dryrun != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "dryrun", runtime.ParamLocationQuery, *params.Dryrun); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExtendPackageNames != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "extend_package_names", runtime.ParamLocationQuery, *params.ExtendPackageNames); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Ignoredevel != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ignoredevel", runtime.ParamLocationQuery, *params.Ignoredevel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Force != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Maintenance != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maintenance", runtime.ParamLocationQuery, *params.Maintenance); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Missingok != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "missingok", runtime.ParamLocationQuery, *params.Missingok); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Newinstance != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "newinstance", runtime.ParamLocationQuery, *params.Newinstance); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Noaccess != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "noaccess", runtime.ParamLocationQuery, *params.Noaccess); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Noservice != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "noservice", runtime.ParamLocationQuery, *params.Noservice); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Request != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "request", runtime.ParamLocationQuery, *params.Request); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatePathElements != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "update_path_elements", runtime.ParamLocationQuery, *params.UpdatePathElements); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdateProjectAttribute != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "update_project_attribute", runtime.ParamLocationQuery, *params.UpdateProjectAttribute); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdCollectbuildenvRequest generates requests for PostSourceProjectNamePackageNamecmdCollectbuildenv -func NewPostSourceProjectNamePackageNamecmdCollectbuildenvRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCollectbuildenvParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=collectbuildenv", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "oproject", runtime.ParamLocationQuery, params.Oproject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Opackage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "opackage", runtime.ParamLocationQuery, *params.Opackage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Orev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "orev", runtime.ParamLocationQuery, *params.Orev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdCommitRequest generates requests for PostSourceProjectNamePackageNamecmdCommit -func NewPostSourceProjectNamePackageNamecmdCommitRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCommitParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=commit", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Linkrev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "linkrev", runtime.ParamLocationQuery, *params.Linkrev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Keeplink != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "keeplink", runtime.ParamLocationQuery, *params.Keeplink); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Repairlink != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repairlink", runtime.ParamLocationQuery, *params.Repairlink); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdCommitfilelistRequest generates requests for PostSourceProjectNamePackageNamecmdCommitfilelist -func NewPostSourceProjectNamePackageNamecmdCommitfilelistRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCommitfilelistParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=commitfilelist", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Linkrev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "linkrev", runtime.ParamLocationQuery, *params.Linkrev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Keeplink != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "keeplink", runtime.ParamLocationQuery, *params.Keeplink); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Repairlink != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repairlink", runtime.ParamLocationQuery, *params.Repairlink); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withvalidate != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withvalidate", runtime.ParamLocationQuery, *params.Withvalidate); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdCopyRequest generates requests for PostSourceProjectNamePackageNamecmdCopy -func NewPostSourceProjectNamePackageNamecmdCopyRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCopyParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=copy", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Opackage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "opackage", runtime.ParamLocationQuery, *params.Opackage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Oproject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "oproject", runtime.ParamLocationQuery, *params.Oproject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withbinaries != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withbinaries", runtime.ParamLocationQuery, *params.Withbinaries); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Makeolder != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "makeolder", runtime.ParamLocationQuery, *params.Makeolder); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Makeoriginolder != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "makeoriginolder", runtime.ParamLocationQuery, *params.Makeoriginolder); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Nodelay != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nodelay", runtime.ParamLocationQuery, *params.Nodelay); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withhistory != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withhistory", runtime.ParamLocationQuery, *params.Withhistory); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Noservice != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "noservice", runtime.ParamLocationQuery, *params.Noservice); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdCreateSpecFileTemplateRequest generates requests for PostSourceProjectNamePackageNamecmdCreateSpecFileTemplate -func NewPostSourceProjectNamePackageNamecmdCreateSpecFileTemplateRequest(server string, projectName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=createSpecFileTemplate", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdDeleteuploadrevRequest generates requests for PostSourceProjectNamePackageNamecmdDeleteuploadrev -func NewPostSourceProjectNamePackageNamecmdDeleteuploadrevRequest(server string, projectName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=deleteuploadrev", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdDiffRequest generates requests for PostSourceProjectNamePackageNamecmdDiff -func NewPostSourceProjectNamePackageNamecmdDiffRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdDiffParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=diff", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Cacheonly != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cacheonly", runtime.ParamLocationQuery, *params.Cacheonly); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Expand != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expand", runtime.ParamLocationQuery, *params.Expand); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.File != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file", runtime.ParamLocationQuery, *params.File); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.File != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file[]", runtime.ParamLocationQuery, *params.File); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Filelimit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filelimit", runtime.ParamLocationQuery, *params.Filelimit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Linkrev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "linkrev", runtime.ParamLocationQuery, *params.Linkrev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Meta != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "meta", runtime.ParamLocationQuery, *params.Meta); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Missingok != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "missingok", runtime.ParamLocationQuery, *params.Missingok); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Nodiff != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nodiff", runtime.ParamLocationQuery, *params.Nodiff); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Olinkrev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "olinkrev", runtime.ParamLocationQuery, *params.Olinkrev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Onlyissues != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "onlyissues", runtime.ParamLocationQuery, *params.Onlyissues); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Orev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "orev", runtime.ParamLocationQuery, *params.Orev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Opackage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "opackage", runtime.ParamLocationQuery, *params.Opackage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Oproject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "oproject", runtime.ParamLocationQuery, *params.Oproject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tarlimit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tarlimit", runtime.ParamLocationQuery, *params.Tarlimit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Unified != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "unified", runtime.ParamLocationQuery, *params.Unified); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withissues != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withissues", runtime.ParamLocationQuery, *params.Withissues); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdForkRequest generates requests for PostSourceProjectNamePackageNamecmdFork -func NewPostSourceProjectNamePackageNamecmdForkRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdForkParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=fork", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "scmsync", runtime.ParamLocationQuery, params.Scmsync); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.TargetProject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_project", runtime.ParamLocationQuery, *params.TargetProject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetPackage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_package", runtime.ParamLocationQuery, *params.TargetPackage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Force != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddRepositoriesRebuild != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "add_repositories_rebuild", runtime.ParamLocationQuery, *params.AddRepositoriesRebuild); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddRepositoriesBlock != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "add_repositories_block", runtime.ParamLocationQuery, *params.AddRepositoriesBlock); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdGetprojectservicesRequest generates requests for PostSourceProjectNamePackageNamecmdGetprojectservices -func NewPostSourceProjectNamePackageNamecmdGetprojectservicesRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdGetprojectservicesParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=getprojectservices", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "cmd", runtime.ParamLocationQuery, params.Cmd); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdInstantiateRequest generates requests for PostSourceProjectNamePackageNamecmdInstantiate -func NewPostSourceProjectNamePackageNamecmdInstantiateRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdInstantiateParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=instantiate", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Makeoriginolder != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "makeoriginolder", runtime.ParamLocationQuery, *params.Makeoriginolder); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdLinkdiffRequest generates requests for PostSourceProjectNamePackageNamecmdLinkdiff -func NewPostSourceProjectNamePackageNamecmdLinkdiffRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdLinkdiffParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=linkdiff", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.File != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file", runtime.ParamLocationQuery, *params.File); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.File != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file[]", runtime.ParamLocationQuery, *params.File); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Filelimit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filelimit", runtime.ParamLocationQuery, *params.Filelimit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Linkrev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "linkrev", runtime.ParamLocationQuery, *params.Linkrev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Onlyissues != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "onlyissues", runtime.ParamLocationQuery, *params.Onlyissues); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tarlimit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tarlimit", runtime.ParamLocationQuery, *params.Tarlimit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Unified != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "unified", runtime.ParamLocationQuery, *params.Unified); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withissues != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withissues", runtime.ParamLocationQuery, *params.Withissues); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdLinktobranchRequest generates requests for PostSourceProjectNamePackageNamecmdLinktobranch -func NewPostSourceProjectNamePackageNamecmdLinktobranchRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdLinktobranchParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=linktobranch", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Linkrev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "linkrev", runtime.ParamLocationQuery, *params.Linkrev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdMergeserviceRequest generates requests for PostSourceProjectNamePackageNamecmdMergeservice -func NewPostSourceProjectNamePackageNamecmdMergeserviceRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdMergeserviceParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=mergeservice", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdRebuildRequest generates requests for PostSourceProjectNamePackageNamecmdRebuild -func NewPostSourceProjectNamePackageNamecmdRebuildRequest(server string, projectName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=rebuild", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdReleaseRequest generates requests for PostSourceProjectNamePackageNamecmdRelease -func NewPostSourceProjectNamePackageNamecmdReleaseRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdReleaseParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=release", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.TargetProject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_project", runtime.ParamLocationQuery, *params.TargetProject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetRepository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_repository", runtime.ParamLocationQuery, *params.TargetRepository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Repository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, *params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Setrelease != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "setrelease", runtime.ParamLocationQuery, *params.Setrelease); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Arch != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "arch", runtime.ParamLocationQuery, *params.Arch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdRemoveFlagRequest generates requests for PostSourceProjectNamePackageNamecmdRemoveFlag -func NewPostSourceProjectNamePackageNamecmdRemoveFlagRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdRemoveFlagParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=remove_flag", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "flag", runtime.ParamLocationQuery, params.Flag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Repository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, *params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Arch != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "arch", runtime.ParamLocationQuery, *params.Arch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdRunserviceRequest generates requests for PostSourceProjectNamePackageNamecmdRunservice -func NewPostSourceProjectNamePackageNamecmdRunserviceRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdRunserviceParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=runservice", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.User != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user", runtime.ParamLocationQuery, *params.User); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdServicediffRequest generates requests for PostSourceProjectNamePackageNamecmdServicediff -func NewPostSourceProjectNamePackageNamecmdServicediffRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdServicediffParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=servicediff", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.File != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file", runtime.ParamLocationQuery, *params.File); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.File != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "file[]", runtime.ParamLocationQuery, *params.File); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Filelimit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filelimit", runtime.ParamLocationQuery, *params.Filelimit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Onlyissues != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "onlyissues", runtime.ParamLocationQuery, *params.Onlyissues); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Rev != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "rev", runtime.ParamLocationQuery, *params.Rev); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Tarlimit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tarlimit", runtime.ParamLocationQuery, *params.Tarlimit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Unified != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "unified", runtime.ParamLocationQuery, *params.Unified); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withissues != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withissues", runtime.ParamLocationQuery, *params.Withissues); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdSetFlagRequest generates requests for PostSourceProjectNamePackageNamecmdSetFlag -func NewPostSourceProjectNamePackageNamecmdSetFlagRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdSetFlagParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=set_flag", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "flag", runtime.ParamLocationQuery, params.Flag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Repository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, *params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Arch != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "arch", runtime.ParamLocationQuery, *params.Arch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdShowlinkedRequest generates requests for PostSourceProjectNamePackageNamecmdShowlinked -func NewPostSourceProjectNamePackageNamecmdShowlinkedRequest(server string, projectName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=showlinked", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdUndeleteRequest generates requests for PostSourceProjectNamePackageNamecmdUndelete -func NewPostSourceProjectNamePackageNamecmdUndeleteRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdUndeleteParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=undelete", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Time != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "time", runtime.ParamLocationQuery, *params.Time); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdUnlockRequest generates requests for PostSourceProjectNamePackageNamecmdUnlock -func NewPostSourceProjectNamePackageNamecmdUnlockRequest(server string, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdUnlockParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=unlock", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdUpdatepatchinfoRequest generates requests for PostSourceProjectNamePackageNamecmdUpdatepatchinfo -func NewPostSourceProjectNamePackageNamecmdUpdatepatchinfoRequest(server string, projectName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=updatepatchinfo", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamePackageNamecmdWaitserviceRequest generates requests for PostSourceProjectNamePackageNamecmdWaitservice -func NewPostSourceProjectNamePackageNamecmdWaitserviceRequest(server string, projectName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?cmd=waitservice", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNamePackageNameviewInfoRequest generates requests for GetSourceProjectNamePackageNameviewInfo -func NewGetSourceProjectNamePackageNameviewInfoRequest(server string, projectName string, packageName string, params *GetSourceProjectNamePackageNameviewInfoParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s/%s?view=info", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Arch != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "arch", runtime.ParamLocationQuery, *params.Arch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Nofilename != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nofilename", runtime.ParamLocationQuery, *params.Nofilename); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Repository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, *params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Parse != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parse", runtime.ParamLocationQuery, *params.Parse); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdAddchannelsRequest generates requests for PostSourceProjectNamecmdAddchannels -func NewPostSourceProjectNamecmdAddchannelsRequest(server string, projectName string, params *PostSourceProjectNamecmdAddchannelsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=addchannels", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Mode != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mode", runtime.ParamLocationQuery, *params.Mode); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdCopyRequest generates requests for PostSourceProjectNamecmdCopy -func NewPostSourceProjectNamecmdCopyRequest(server string, projectName string, params *PostSourceProjectNamecmdCopyParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=copy", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "oproject", runtime.ParamLocationQuery, params.Oproject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Makeolder != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "makeolder", runtime.ParamLocationQuery, *params.Makeolder); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Makeoriginolder != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "makeoriginolder", runtime.ParamLocationQuery, *params.Makeoriginolder); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Nodelay != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nodelay", runtime.ParamLocationQuery, *params.Nodelay); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Noservice != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "noservice", runtime.ParamLocationQuery, *params.Noservice); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Resign != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "resign", runtime.ParamLocationQuery, *params.Resign); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withbinaries != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withbinaries", runtime.ParamLocationQuery, *params.Withbinaries); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withhistory != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withhistory", runtime.ParamLocationQuery, *params.Withhistory); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdCreatekeyRequest generates requests for PostSourceProjectNamecmdCreatekey -func NewPostSourceProjectNamecmdCreatekeyRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=createkey", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdCreatemaintenanceincidentRequest generates requests for PostSourceProjectNamecmdCreatemaintenanceincident -func NewPostSourceProjectNamecmdCreatemaintenanceincidentRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=createmaintenanceincident", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdCreatepatchinfoRequest generates requests for PostSourceProjectNamecmdCreatepatchinfo -func NewPostSourceProjectNamecmdCreatepatchinfoRequest(server string, projectName string, params *PostSourceProjectNamecmdCreatepatchinfoParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=createpatchinfo", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Name != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Force != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force", runtime.ParamLocationQuery, *params.Force); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdExtendkeyRequest generates requests for PostSourceProjectNamecmdExtendkey -func NewPostSourceProjectNamecmdExtendkeyRequest(server string, projectName string, params *PostSourceProjectNamecmdExtendkeyParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=extendkey", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Days != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "days", runtime.ParamLocationQuery, *params.Days); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdFreezelinkRequest generates requests for PostSourceProjectNamecmdFreezelink -func NewPostSourceProjectNamecmdFreezelinkRequest(server string, projectName string, params *PostSourceProjectNamecmdFreezelinkParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=freezelink", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdLockRequest generates requests for PostSourceProjectNamecmdLock -func NewPostSourceProjectNamecmdLockRequest(server string, projectName string, params *PostSourceProjectNamecmdLockParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=lock", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdModifychannelsRequest generates requests for PostSourceProjectNamecmdModifychannels -func NewPostSourceProjectNamecmdModifychannelsRequest(server string, projectName string, params *PostSourceProjectNamecmdModifychannelsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=modifychannels", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Mode != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mode", runtime.ParamLocationQuery, *params.Mode); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdMoveRequest generates requests for PostSourceProjectNamecmdMove -func NewPostSourceProjectNamecmdMoveRequest(server string, projectName string, params *PostSourceProjectNamecmdMoveParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=move", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "oproject", runtime.ParamLocationQuery, params.Oproject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Comment != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, *params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdReleaseRequest generates requests for PostSourceProjectNamecmdRelease -func NewPostSourceProjectNamecmdReleaseRequest(server string, projectName string, params *PostSourceProjectNamecmdReleaseParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=release", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Nodelay != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nodelay", runtime.ParamLocationQuery, *params.Nodelay); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetProject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_project", runtime.ParamLocationQuery, *params.TargetProject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetRepository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_repository", runtime.ParamLocationQuery, *params.TargetRepository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Repository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, *params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Setrelease != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "setrelease", runtime.ParamLocationQuery, *params.Setrelease); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdRemoveFlagRequest generates requests for PostSourceProjectNamecmdRemoveFlag -func NewPostSourceProjectNamecmdRemoveFlagRequest(server string, projectName string, params *PostSourceProjectNamecmdRemoveFlagParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=remove_flag", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "flag", runtime.ParamLocationQuery, params.Flag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Repository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, *params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Arch != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "arch", runtime.ParamLocationQuery, *params.Arch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdSetFlagRequest generates requests for PostSourceProjectNamecmdSetFlag -func NewPostSourceProjectNamecmdSetFlagRequest(server string, projectName string, params *PostSourceProjectNamecmdSetFlagParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=set_flag", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "flag", runtime.ParamLocationQuery, params.Flag); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if params.Repository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, *params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Arch != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "arch", runtime.ParamLocationQuery, *params.Arch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdShowlinkedRequest generates requests for PostSourceProjectNamecmdShowlinked -func NewPostSourceProjectNamecmdShowlinkedRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=showlinked", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdUndeleteRequest generates requests for PostSourceProjectNamecmdUndelete -func NewPostSourceProjectNamecmdUndeleteRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=undelete", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourceProjectNamecmdUnlockRequest generates requests for PostSourceProjectNamecmdUnlock -func NewPostSourceProjectNamecmdUnlockRequest(server string, projectName string, params *PostSourceProjectNamecmdUnlockParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?cmd=unlock", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "comment", runtime.ParamLocationQuery, params.Comment); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetSourceProjectNameviewInfoRequest generates requests for GetSourceProjectNameviewInfo -func NewGetSourceProjectNameviewInfoRequest(server string, projectName string, params *GetSourceProjectNameviewInfoParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source/%s?view=info", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.View != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "view", runtime.ParamLocationQuery, *params.View); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Arch != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "arch", runtime.ParamLocationQuery, *params.Arch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Noexpand != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "noexpand", runtime.ParamLocationQuery, *params.Noexpand); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Nofilename != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nofilename", runtime.ParamLocationQuery, *params.Nofilename); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Package != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "package", runtime.ParamLocationQuery, *params.Package); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Parse != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "parse", runtime.ParamLocationQuery, *params.Parse); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Repository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, *params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withmetamd5 != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withmetamd5", runtime.ParamLocationQuery, *params.Withmetamd5); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Withchangesmd5 != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "withchangesmd5", runtime.ParamLocationQuery, *params.Withchangesmd5); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourcecmdBranchRequest generates requests for PostSourcecmdBranch -func NewPostSourcecmdBranchRequest(server string, params *PostSourcecmdBranchParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source?cmd=branch") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Project != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Package != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "package", runtime.ParamLocationQuery, *params.Package); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetProject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_project", runtime.ParamLocationQuery, *params.TargetProject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.TargetPackage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "target_package", runtime.ParamLocationQuery, *params.TargetPackage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Attribute != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "attribute", runtime.ParamLocationQuery, *params.Attribute); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddRepositories != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "add_repositories", runtime.ParamLocationQuery, *params.AddRepositories); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdatePathElements != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "update_path_elements", runtime.ParamLocationQuery, *params.UpdatePathElements); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.UpdateProjectAttribute != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "update_project_attribute", runtime.ParamLocationQuery, *params.UpdateProjectAttribute); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Noaccess != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "noaccess", runtime.ParamLocationQuery, *params.Noaccess); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.ExtendPackageNames != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "extend_package_names", runtime.ParamLocationQuery, *params.ExtendPackageNames); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddRepositoriesRebuild != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "add_repositories_rebuild", runtime.ParamLocationQuery, *params.AddRepositoriesRebuild); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.AddRepositoriesBlock != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "add_repositories_block", runtime.ParamLocationQuery, *params.AddRepositoriesBlock); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Newinstance != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "newinstance", runtime.ParamLocationQuery, *params.Newinstance); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Maintenance != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maintenance", runtime.ParamLocationQuery, *params.Maintenance); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourcecmdCreatemaintenanceincidentRequest generates requests for PostSourcecmdCreatemaintenanceincident -func NewPostSourcecmdCreatemaintenanceincidentRequest(server string, params *PostSourcecmdCreatemaintenanceincidentParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source?cmd=createmaintenanceincident") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Attribute != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "attribute", runtime.ParamLocationQuery, *params.Attribute); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostSourcecmdOrderkiwireposRequestWithBody generates requests for PostSourcecmdOrderkiwirepos with any type of body -func NewPostSourcecmdOrderkiwireposRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/source?cmd=orderkiwirepos") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetStagingProjectNameBacklogRequest generates requests for GetStagingProjectNameBacklog -func NewGetStagingProjectNameBacklogRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/backlog", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteStagingProjectNameExcludedRequestsRequestWithBody generates requests for DeleteStagingProjectNameExcludedRequests with any type of body -func NewDeleteStagingProjectNameExcludedRequestsRequestWithBody(server string, projectName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/excluded_requests", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetStagingProjectNameExcludedRequestsRequest generates requests for GetStagingProjectNameExcludedRequests -func NewGetStagingProjectNameExcludedRequestsRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/excluded_requests", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStagingProjectNameExcludedRequestsRequestWithBody generates requests for PostStagingProjectNameExcludedRequests with any type of body -func NewPostStagingProjectNameExcludedRequestsRequestWithBody(server string, projectName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/excluded_requests", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteStagingProjectNameStagedRequestsRequestWithBody generates requests for DeleteStagingProjectNameStagedRequests with any type of body -func NewDeleteStagingProjectNameStagedRequestsRequestWithBody(server string, projectName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/staged_requests", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetStagingProjectNameStagingProjectsRequest generates requests for GetStagingProjectNameStagingProjects -func NewGetStagingProjectNameStagingProjectsRequest(server string, projectName string, params *GetStagingProjectNameStagingProjectsParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/staging_projects", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Requests != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "requests", runtime.ParamLocationQuery, *params.Requests); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.History != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "history", runtime.ParamLocationQuery, *params.History); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStagingProjectNameStagingProjectsRequestWithBody generates requests for PostStagingProjectNameStagingProjects with any type of body -func NewPostStagingProjectNameStagingProjectsRequestWithBody(server string, projectName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/staging_projects", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetStagingProjectNameStagingProjectsStagingProjectNameRequest generates requests for GetStagingProjectNameStagingProjectsStagingProjectName -func NewGetStagingProjectNameStagingProjectsStagingProjectNameRequest(server string, projectName string, stagingProjectName string, params *GetStagingProjectNameStagingProjectsStagingProjectNameParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "staging_project_name", runtime.ParamLocationPath, stagingProjectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/staging_projects/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Requests != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "requests", runtime.ParamLocationQuery, *params.Requests); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Status != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.History != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "history", runtime.ParamLocationQuery, *params.History); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStagingProjectNameStagingProjectsStagingProjectNameAcceptRequest generates requests for PostStagingProjectNameStagingProjectsStagingProjectNameAccept -func NewPostStagingProjectNameStagingProjectsStagingProjectNameAcceptRequest(server string, projectName string, stagingProjectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "staging_project_name", runtime.ParamLocationPath, stagingProjectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/staging_projects/%s/accept", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameRequest generates requests for PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyName -func NewPostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameRequest(server string, projectName string, stagingProjectName string, stagingProjectCopyName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "staging_project_name", runtime.ParamLocationPath, stagingProjectName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "staging_project_copy_name", runtime.ParamLocationPath, stagingProjectCopyName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/staging_projects/%s/copy/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewDeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsRequestWithBody generates requests for DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequests with any type of body -func NewDeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsRequestWithBody(server string, projectName string, stagingProjectName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "staging_project_name", runtime.ParamLocationPath, stagingProjectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/staging_projects/%s/staged_requests", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsRequest generates requests for GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequests -func NewGetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsRequest(server string, projectName string, stagingProjectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "staging_project_name", runtime.ParamLocationPath, stagingProjectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/staging_projects/%s/staged_requests", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsRequestWithBody generates requests for PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequests with any type of body -func NewPostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsRequestWithBody(server string, projectName string, stagingProjectName string, params *PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "staging_project_name", runtime.ParamLocationPath, stagingProjectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/staging_projects/%s/staged_requests", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.RemoveExclusion != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remove_exclusion", runtime.ParamLocationQuery, *params.RemoveExclusion); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteStagingProjectNameWorkflowRequest generates requests for DeleteStagingProjectNameWorkflow -func NewDeleteStagingProjectNameWorkflowRequest(server string, projectName string, params *DeleteStagingProjectNameWorkflowParams) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/workflow", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.WithStagingProjects != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "with_staging_projects", runtime.ParamLocationQuery, *params.WithStagingProjects); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStagingProjectNameWorkflowRequestWithBody generates requests for PostStagingProjectNameWorkflow with any type of body -func NewPostStagingProjectNameWorkflowRequestWithBody(server string, projectName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/workflow", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPutStagingProjectNameWorkflowRequestWithBody generates requests for PutStagingProjectNameWorkflow with any type of body -func NewPutStagingProjectNameWorkflowRequestWithBody(server string, projectName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/staging/%s/workflow", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("PUT", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetStatisticsRequest generates requests for GetStatistics -func NewGetStatisticsRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/statistics") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatisticsActiveRequestCreatorsProjectNameRequest generates requests for GetStatisticsActiveRequestCreatorsProjectName -func NewGetStatisticsActiveRequestCreatorsProjectNameRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/statistics/active_request_creators/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatisticsActivityProjectNamePackageNameRequest generates requests for GetStatisticsActivityProjectNamePackageName -func NewGetStatisticsActivityProjectNamePackageNameRequest(server string, projectName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/statistics/activity/%s/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatisticsAddedTimestampProjectNamePackageNameRequest generates requests for GetStatisticsAddedTimestampProjectNamePackageName -func NewGetStatisticsAddedTimestampProjectNamePackageNameRequest(server string, projectName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/statistics/added_timestamp/%s/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatisticsGlobalCountersRequest generates requests for GetStatisticsGlobalCounters -func NewGetStatisticsGlobalCountersRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/statistics/global_counters") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatisticsLatestAddedRequest generates requests for GetStatisticsLatestAdded -func NewGetStatisticsLatestAddedRequest(server string, params *GetStatisticsLatestAddedParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/statistics/latest_added") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatisticsLatestUpdatedRequest generates requests for GetStatisticsLatestUpdated -func NewGetStatisticsLatestUpdatedRequest(server string, params *GetStatisticsLatestUpdatedParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/statistics/latest_updated") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Timelimit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "timelimit", runtime.ParamLocationQuery, *params.Timelimit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Prjfilter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "prjfilter", runtime.ParamLocationQuery, *params.Prjfilter); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Pkgfilter != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pkgfilter", runtime.ParamLocationQuery, *params.Pkgfilter); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatisticsMaintenanceStatisticsProjectNameRequest generates requests for GetStatisticsMaintenanceStatisticsProjectName -func NewGetStatisticsMaintenanceStatisticsProjectNameRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/statistics/maintenance_statistics/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatisticsMostActivePackagesRequest generates requests for GetStatisticsMostActivePackages -func NewGetStatisticsMostActivePackagesRequest(server string, params *GetStatisticsMostActivePackagesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/statistics/most_active_packages") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatisticsMostActiveProjectsRequest generates requests for GetStatisticsMostActiveProjects -func NewGetStatisticsMostActiveProjectsRequest(server string, params *GetStatisticsMostActiveProjectsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/statistics/most_active_projects") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatisticsUpdatedTimestampProjectNamePackageNameRequest generates requests for GetStatisticsUpdatedTimestampProjectNamePackageName -func NewGetStatisticsUpdatedTimestampProjectNamePackageNameRequest(server string, projectName string, packageName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "package_name", runtime.ParamLocationPath, packageName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/statistics/updated_timestamp/%s/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatusMessagesRequest generates requests for GetStatusMessages -func NewGetStatusMessagesRequest(server string, params *GetStatusMessagesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status/messages") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStatusMessagesRequestWithBody generates requests for PostStatusMessages with any type of body -func NewPostStatusMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status/messages") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteStatusMessagesIdRequest generates requests for DeleteStatusMessagesId -func NewDeleteStatusMessagesIdRequest(server string, id int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status/messages/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatusMessagesIdRequest generates requests for GetStatusMessagesId -func NewGetStatusMessagesIdRequest(server string, id int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status/messages/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatusProjectProjectNameRequest generates requests for GetStatusProjectProjectName -func NewGetStatusProjectProjectNameRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status/project/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatusWorkerstatusRequest generates requests for GetStatusWorkerstatus -func NewGetStatusWorkerstatusRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status/workerstatus") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatusMessageRequest generates requests for GetStatusMessage -func NewGetStatusMessageRequest(server string, params *GetStatusMessageParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_message") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Limit != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdRequest generates requests for GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildId -func NewGetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdRequest(server string, projectName string, repositoryName string, architectureName string, buildId int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "build_id", runtime.ParamLocationPath, buildId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/built/%s/%s/%s/reports/%s", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdRequestWithBody generates requests for PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildId with any type of body -func NewPostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdRequestWithBody(server string, projectName string, repositoryName string, architectureName string, buildId int, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "build_id", runtime.ParamLocationPath, buildId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/built/%s/%s/%s/reports/%s", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksRequest generates requests for GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecks -func NewGetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksRequest(server string, projectName string, repositoryName string, architectureName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/built_repositories/%s/%s/%s/required_checks", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksRequestWithBody generates requests for PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecks with any type of body -func NewPostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksRequestWithBody(server string, projectName string, repositoryName string, architectureName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/built_repositories/%s/%s/%s/required_checks", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameRequest generates requests for DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckName -func NewDeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameRequest(server string, projectName string, repositoryName string, architectureName string, checkName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam3 string - - pathParam3, err = runtime.StyleParamWithLocation("simple", false, "check_name", runtime.ParamLocationPath, checkName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/built_repositories/%s/%s/%s/required_checks/%s", pathParam0, pathParam1, pathParam2, pathParam3) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatusReportsProjectsProjectNameRequiredChecksRequest generates requests for GetStatusReportsProjectsProjectNameRequiredChecks -func NewGetStatusReportsProjectsProjectNameRequiredChecksRequest(server string, projectName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/projects/%s/required_checks", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStatusReportsProjectsProjectNameRequiredChecksRequestWithBody generates requests for PostStatusReportsProjectsProjectNameRequiredChecks with any type of body -func NewPostStatusReportsProjectsProjectNameRequiredChecksRequestWithBody(server string, projectName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/projects/%s/required_checks", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameRequest generates requests for DeleteStatusReportsProjectsProjectNameRequiredChecksCheckName -func NewDeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameRequest(server string, projectName string, checkName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "check_name", runtime.ParamLocationPath, checkName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/projects/%s/required_checks/%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdRequest generates requests for GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildId -func NewGetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdRequest(server string, projectName string, repositoryName string, buildId int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "build_id", runtime.ParamLocationPath, buildId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/published/%s/%s/reports/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdRequestWithBody generates requests for PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildId with any type of body -func NewPostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdRequestWithBody(server string, projectName string, repositoryName string, buildId int, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "build_id", runtime.ParamLocationPath, buildId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/published/%s/%s/reports/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksRequest generates requests for GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecks -func NewGetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksRequest(server string, projectName string, repositoryName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/repositories/%s/%s/required_checks", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksRequestWithBody generates requests for PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecks with any type of body -func NewPostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksRequestWithBody(server string, projectName string, repositoryName string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/repositories/%s/%s/required_checks", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewDeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameRequest generates requests for DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckName -func NewDeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameRequest(server string, projectName string, repositoryName string, checkName string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "project_name", runtime.ParamLocationPath, projectName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "repository_name", runtime.ParamLocationPath, repositoryName) - if err != nil { - return nil, err - } - - var pathParam2 string - - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "check_name", runtime.ParamLocationPath, checkName) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/repositories/%s/%s/required_checks/%s", pathParam0, pathParam1, pathParam2) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("DELETE", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetStatusReportsRequestsIdReportsRequest generates requests for GetStatusReportsRequestsIdReports -func NewGetStatusReportsRequestsIdReportsRequest(server string, id int) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/requests/%s/reports", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostStatusReportsRequestsIdReportsRequestWithBody generates requests for PostStatusReportsRequestsIdReports with any type of body -func NewPostStatusReportsRequestsIdReportsRequestWithBody(server string, id int, contentType string, body io.Reader) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/status_reports/requests/%s/reports", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewPostTriggerRequest generates requests for PostTrigger -func NewPostTriggerRequest(server string, params *PostTriggerParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/trigger") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Project != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Package != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "package", runtime.ParamLocationQuery, *params.Package); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Repository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, *params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Arch != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "arch", runtime.ParamLocationQuery, *params.Arch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Targetproject != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "targetproject", runtime.ParamLocationQuery, *params.Targetproject); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.Targetrepository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "targetrepository", runtime.ParamLocationQuery, *params.Targetrepository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.FilterSourceRepository != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter_source_repository", runtime.ParamLocationQuery, *params.FilterSourceRepository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - if params != nil { - - if params.XOBSSIGNATURE != nil { - var headerParam0 string - - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-OBS-SIGNATURE", runtime.ParamLocationHeader, *params.XOBSSIGNATURE) - if err != nil { - return nil, err - } - - req.Header.Set("X-OBS-SIGNATURE", headerParam0) - } - - if params.XHUBSIGNATURE256 != nil { - var headerParam1 string - - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-HUB-SIGNATURE-256", runtime.ParamLocationHeader, *params.XHUBSIGNATURE256) - if err != nil { - return nil, err - } - - req.Header.Set("X-HUB-SIGNATURE-256", headerParam1) - } - - if params.XPagureSignature256 != nil { - var headerParam2 string - - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Pagure-Signature-256", runtime.ParamLocationHeader, *params.XPagureSignature256) - if err != nil { - return nil, err - } - - req.Header.Set("X-Pagure-Signature-256", headerParam2) - } - - if params.XGitLabToken != nil { - var headerParam3 string - - headerParam3, err = runtime.StyleParamWithLocation("simple", false, "X-GitLab-Token", runtime.ParamLocationHeader, *params.XGitLabToken) - if err != nil { - return nil, err - } - - req.Header.Set("X-GitLab-Token", headerParam3) - } - - if params.Authorization != nil { - var headerParam4 string - - headerParam4, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, *params.Authorization) - if err != nil { - return nil, err - } - - req.Header.Set("Authorization", headerParam4) - } - - } - - return req, nil -} - -// NewPostTriggerRebuildRequest generates requests for PostTriggerRebuild -func NewPostTriggerRebuildRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/trigger/rebuild") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostTriggerReleaseRequest generates requests for PostTriggerRelease -func NewPostTriggerReleaseRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/trigger/release") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostTriggerRunserviceRequest generates requests for PostTriggerRunservice -func NewPostTriggerRunserviceRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/trigger/runservice") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostTriggerWebhookRequest generates requests for PostTriggerWebhook -func NewPostTriggerWebhookRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/trigger/webhook") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostTriggerWorkflowRequest generates requests for PostTriggerWorkflow -func NewPostTriggerWorkflowRequest(server string, params *PostTriggerWorkflowParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/trigger/workflow") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.Id != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, *params.Id); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), nil) - if err != nil { - return nil, err - } - - if params != nil { - - if params.XOBSSIGNATURE != nil { - var headerParam0 string - - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-OBS-SIGNATURE", runtime.ParamLocationHeader, *params.XOBSSIGNATURE) - if err != nil { - return nil, err - } - - req.Header.Set("X-OBS-SIGNATURE", headerParam0) - } - - if params.XHUBSIGNATURE256 != nil { - var headerParam1 string - - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-HUB-SIGNATURE-256", runtime.ParamLocationHeader, *params.XHUBSIGNATURE256) - if err != nil { - return nil, err - } - - req.Header.Set("X-HUB-SIGNATURE-256", headerParam1) - } - - if params.XPagureSignature256 != nil { - var headerParam2 string - - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Pagure-Signature-256", runtime.ParamLocationHeader, *params.XPagureSignature256) - if err != nil { - return nil, err - } - - req.Header.Set("X-Pagure-Signature-256", headerParam2) - } - - if params.XGitLabToken != nil { - var headerParam3 string - - headerParam3, err = runtime.StyleParamWithLocation("simple", false, "X-GitLab-Token", runtime.ParamLocationHeader, *params.XGitLabToken) - if err != nil { - return nil, err - } - - req.Header.Set("X-GitLab-Token", headerParam3) - } - - if params.Authorization != nil { - var headerParam4 string - - headerParam4, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, *params.Authorization) - if err != nil { - return nil, err - } - - req.Header.Set("Authorization", headerParam4) - } - - } - - return req, nil -} - -// NewGetWorkerStatusRequest generates requests for GetWorkerStatus -func NewGetWorkerStatusRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/worker/_status") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetWorkerStatusRequest generates requests for GetWorkerStatus -func NewGetWorkerStatusRequest(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/worker/status") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetWorkerArchitectureNameWorkerIdRequest generates requests for GetWorkerArchitectureNameWorkerId -func NewGetWorkerArchitectureNameWorkerIdRequest(server string, architectureName string, workerId string) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "architecture_name", runtime.ParamLocationPath, architectureName) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "worker_id", runtime.ParamLocationPath, workerId) - if err != nil { - return nil, err - } - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/worker/%s:%s", pathParam0, pathParam1) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostWorkercmdCheckconstraintsRequestWithBody generates requests for PostWorkercmdCheckconstraints with any type of body -func NewPostWorkercmdCheckconstraintsRequestWithBody(server string, params *PostWorkercmdCheckconstraintsParams, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/worker?cmd=checkconstraints") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, params.Project); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "repository", runtime.ParamLocationQuery, params.Repository); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "arch", runtime.ParamLocationQuery, params.Arch); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "package", runtime.ParamLocationQuery, params.Package); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { - for _, r := range c.RequestEditors { - if err := r(ctx, req); err != nil { - return err - } - } - for _, r := range additionalEditors { - if err := r(ctx, req); err != nil { - return err - } - } - return nil -} - -// ClientWithResponses builds on ClientInterface to offer response payloads -type ClientWithResponses struct { - ClientInterface -} - -// NewClientWithResponses creates a new ClientWithResponses, which wraps -// Client with return type handling -func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { - client, err := NewClient(server, opts...) - if err != nil { - return nil, err - } - return &ClientWithResponses{client}, nil -} - -// WithBaseURL overrides the baseURL. -func WithBaseURL(baseURL string) ClientOption { - return func(c *Client) error { - newBaseURL, err := url.Parse(baseURL) - if err != nil { - return err - } - c.Server = newBaseURL.String() - return nil - } -} - -// ClientWithResponsesInterface is the interface specification for the client with responses above. -type ClientWithResponsesInterface interface { - // GetAboutWithResponse request - GetAboutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAboutResponse, error) - - // GetAnnouncementsWithResponse request - GetAnnouncementsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAnnouncementsResponse, error) - - // PostAnnouncementsWithBodyWithResponse request with any body - PostAnnouncementsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAnnouncementsResponse, error) - - // DeleteAnnouncementsAnnouncementIdWithResponse request - DeleteAnnouncementsAnnouncementIdWithResponse(ctx context.Context, announcementId int, reqEditors ...RequestEditorFn) (*DeleteAnnouncementsAnnouncementIdResponse, error) - - // GetAnnouncementsAnnouncementIdWithResponse request - GetAnnouncementsAnnouncementIdWithResponse(ctx context.Context, announcementId int, reqEditors ...RequestEditorFn) (*GetAnnouncementsAnnouncementIdResponse, error) - - // PutAnnouncementsAnnouncementIdWithBodyWithResponse request with any body - PutAnnouncementsAnnouncementIdWithBodyWithResponse(ctx context.Context, announcementId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAnnouncementsAnnouncementIdResponse, error) - - // GetArchitecturesWithResponse request - GetArchitecturesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetArchitecturesResponse, error) - - // GetArchitecturesArchitectureNameWithResponse request - GetArchitecturesArchitectureNameWithResponse(ctx context.Context, architectureName string, reqEditors ...RequestEditorFn) (*GetArchitecturesArchitectureNameResponse, error) - - // GetAttributeWithResponse request - GetAttributeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAttributeResponse, error) - - // DeleteAttributeNamespaceWithResponse request - DeleteAttributeNamespaceWithResponse(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*DeleteAttributeNamespaceResponse, error) - - // GetAttributeNamespaceWithResponse request - GetAttributeNamespaceWithResponse(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*GetAttributeNamespaceResponse, error) - - // DeleteAttributeNamespaceMetaWithResponse request - DeleteAttributeNamespaceMetaWithResponse(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*DeleteAttributeNamespaceMetaResponse, error) - - // GetAttributeNamespaceMetaWithResponse request - GetAttributeNamespaceMetaWithResponse(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*GetAttributeNamespaceMetaResponse, error) - - // PostAttributeNamespaceMetaWithBodyWithResponse request with any body - PostAttributeNamespaceMetaWithBodyWithResponse(ctx context.Context, namespace string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAttributeNamespaceMetaResponse, error) - - // PutAttributeNamespaceMetaWithBodyWithResponse request with any body - PutAttributeNamespaceMetaWithBodyWithResponse(ctx context.Context, namespace string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAttributeNamespaceMetaResponse, error) - - // DeleteAttributeNamespaceAttributeNameWithResponse request - DeleteAttributeNamespaceAttributeNameWithResponse(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*DeleteAttributeNamespaceAttributeNameResponse, error) - - // DeleteAttributeNamespaceAttributeNameMetaWithResponse request - DeleteAttributeNamespaceAttributeNameMetaWithResponse(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*DeleteAttributeNamespaceAttributeNameMetaResponse, error) - - // GetAttributeNamespaceAttributeNameMetaWithResponse request - GetAttributeNamespaceAttributeNameMetaWithResponse(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*GetAttributeNamespaceAttributeNameMetaResponse, error) - - // PostAttributeNamespaceAttributeNameMetaWithBodyWithResponse request with any body - PostAttributeNamespaceAttributeNameMetaWithBodyWithResponse(ctx context.Context, namespace string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAttributeNamespaceAttributeNameMetaResponse, error) - - // PutAttributeNamespaceAttributeNameMetaWithBodyWithResponse request with any body - PutAttributeNamespaceAttributeNameMetaWithBodyWithResponse(ctx context.Context, namespace string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAttributeNamespaceAttributeNameMetaResponse, error) - - // GetBuildWithResponse request - GetBuildWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBuildResponse, error) - - // GetBuildWorkerstatusWithResponse request - GetBuildWorkerstatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBuildWorkerstatusResponse, error) - - // GetBuildProjectNameWithResponse request - GetBuildProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameResponse, error) - - // PostBuildProjectNameWithResponse request - PostBuildProjectNameWithResponse(ctx context.Context, projectName string, params *PostBuildProjectNameParams, reqEditors ...RequestEditorFn) (*PostBuildProjectNameResponse, error) - - // GetBuildProjectNameResultWithResponse request - GetBuildProjectNameResultWithResponse(ctx context.Context, projectName string, params *GetBuildProjectNameResultParams, reqEditors ...RequestEditorFn) (*GetBuildProjectNameResultResponse, error) - - // GetBuildProjectNameRepositoryNameWithResponse request - GetBuildProjectNameRepositoryNameWithResponse(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameResponse, error) - - // GetBuildProjectNameRepositoryNameBuildconfigWithResponse request - GetBuildProjectNameRepositoryNameBuildconfigWithResponse(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameBuildconfigResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, params *GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParams, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse, error) - - // PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoWithResponse request - PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, params *GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryParams, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNameRepositoryWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNameRepositoryWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNameRepositoryResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse, error) - - // PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithBodyWithResponse request with any body - PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse, error) - - PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithTextBodyWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, body PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoTextRequestBody, reqEditors ...RequestEditorFn) (*PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse, error) - - // PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryWithResponse request - PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse, error) - - // PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusWithResponse request - PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse, error) - - // DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithResponse request - DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName []DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName, fileName string, reqEditors ...RequestEditorFn) (*DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, fileName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse, error) - - // PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithBodyWithResponse request with any body - PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName []PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName, fileName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse, error) - - // GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoWithResponse request - GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, fileName string, params *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParams, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoResponse, error) - - // DeleteCommentCommentIdWithResponse request - DeleteCommentCommentIdWithResponse(ctx context.Context, commentId int, reqEditors ...RequestEditorFn) (*DeleteCommentCommentIdResponse, error) - - // GetCommentCommentIdHistoryWithResponse request - GetCommentCommentIdHistoryWithResponse(ctx context.Context, commentId int, reqEditors ...RequestEditorFn) (*GetCommentCommentIdHistoryResponse, error) - - // GetCommentsPackageProjectNamePackageNameWithResponse request - GetCommentsPackageProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*GetCommentsPackageProjectNamePackageNameResponse, error) - - // PostCommentsPackageProjectNamePackageNameWithBodyWithResponse request with any body - PostCommentsPackageProjectNamePackageNameWithBodyWithResponse(ctx context.Context, projectName string, packageName string, params *PostCommentsPackageProjectNamePackageNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCommentsPackageProjectNamePackageNameResponse, error) - - PostCommentsPackageProjectNamePackageNameWithTextBodyWithResponse(ctx context.Context, projectName string, packageName string, params *PostCommentsPackageProjectNamePackageNameParams, body PostCommentsPackageProjectNamePackageNameTextRequestBody, reqEditors ...RequestEditorFn) (*PostCommentsPackageProjectNamePackageNameResponse, error) - - // GetCommentsProjectProjectNameWithResponse request - GetCommentsProjectProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetCommentsProjectProjectNameResponse, error) - - // PostCommentsProjectProjectNameWithBodyWithResponse request with any body - PostCommentsProjectProjectNameWithBodyWithResponse(ctx context.Context, projectName string, params *PostCommentsProjectProjectNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCommentsProjectProjectNameResponse, error) - - PostCommentsProjectProjectNameWithTextBodyWithResponse(ctx context.Context, projectName string, params *PostCommentsProjectProjectNameParams, body PostCommentsProjectProjectNameTextRequestBody, reqEditors ...RequestEditorFn) (*PostCommentsProjectProjectNameResponse, error) - - // GetCommentsRequestIdWithResponse request - GetCommentsRequestIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetCommentsRequestIdResponse, error) - - // PostCommentsRequestIdWithBodyWithResponse request with any body - PostCommentsRequestIdWithBodyWithResponse(ctx context.Context, id int, params *PostCommentsRequestIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCommentsRequestIdResponse, error) - - PostCommentsRequestIdWithTextBodyWithResponse(ctx context.Context, id int, params *PostCommentsRequestIdParams, body PostCommentsRequestIdTextRequestBody, reqEditors ...RequestEditorFn) (*PostCommentsRequestIdResponse, error) - - // GetCommentsUserWithResponse request - GetCommentsUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCommentsUserResponse, error) - - // GetConfigurationWithResponse request - GetConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigurationResponse, error) - - // PutConfigurationWithBodyWithResponse request with any body - PutConfigurationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutConfigurationResponse, error) - - // GetDistributionsWithResponse request - GetDistributionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDistributionsResponse, error) - - // PostDistributionsWithBodyWithResponse request with any body - PostDistributionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostDistributionsResponse, error) - - // PutDistributionsBulkReplaceWithBodyWithResponse request with any body - PutDistributionsBulkReplaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDistributionsBulkReplaceResponse, error) - - // GetDistributionsIncludeRemotesWithResponse request - GetDistributionsIncludeRemotesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDistributionsIncludeRemotesResponse, error) - - // DeleteDistributionsDistributionIdWithResponse request - DeleteDistributionsDistributionIdWithResponse(ctx context.Context, distributionId int, reqEditors ...RequestEditorFn) (*DeleteDistributionsDistributionIdResponse, error) - - // GetDistributionsDistributionIdWithResponse request - GetDistributionsDistributionIdWithResponse(ctx context.Context, distributionId int, reqEditors ...RequestEditorFn) (*GetDistributionsDistributionIdResponse, error) - - // PutDistributionsDistributionIdWithBodyWithResponse request with any body - PutDistributionsDistributionIdWithBodyWithResponse(ctx context.Context, distributionId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDistributionsDistributionIdResponse, error) - - // GetGroupWithResponse request - GetGroupWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGroupResponse, error) - - // DeleteGroupGroupTitleWithResponse request - DeleteGroupGroupTitleWithResponse(ctx context.Context, groupTitle string, reqEditors ...RequestEditorFn) (*DeleteGroupGroupTitleResponse, error) - - // GetGroupGroupTitleWithResponse request - GetGroupGroupTitleWithResponse(ctx context.Context, groupTitle string, reqEditors ...RequestEditorFn) (*GetGroupGroupTitleResponse, error) - - // PostGroupGroupTitleWithResponse request - PostGroupGroupTitleWithResponse(ctx context.Context, groupTitle string, params *PostGroupGroupTitleParams, reqEditors ...RequestEditorFn) (*PostGroupGroupTitleResponse, error) - - // PutGroupGroupTitleWithBodyWithResponse request with any body - PutGroupGroupTitleWithBodyWithResponse(ctx context.Context, groupTitle string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutGroupGroupTitleResponse, error) - - // GetImageTemplatesWithResponse request - GetImageTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetImageTemplatesResponse, error) - - // GetIssueTrackersWithResponse request - GetIssueTrackersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetIssueTrackersResponse, error) - - // PostIssueTrackersWithBodyWithResponse request with any body - PostIssueTrackersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostIssueTrackersResponse, error) - - // DeleteIssueTrackersIssueTrackerNameWithResponse request - DeleteIssueTrackersIssueTrackerNameWithResponse(ctx context.Context, issueTrackerName string, reqEditors ...RequestEditorFn) (*DeleteIssueTrackersIssueTrackerNameResponse, error) - - // GetIssueTrackersIssueTrackerNameWithResponse request - GetIssueTrackersIssueTrackerNameWithResponse(ctx context.Context, issueTrackerName string, reqEditors ...RequestEditorFn) (*GetIssueTrackersIssueTrackerNameResponse, error) - - // PutIssueTrackersIssueTrackerNameWithBodyWithResponse request with any body - PutIssueTrackersIssueTrackerNameWithBodyWithResponse(ctx context.Context, issueTrackerName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutIssueTrackersIssueTrackerNameResponse, error) - - // GetIssueTrackersIssueTrackerNameIssuesIssueNameWithResponse request - GetIssueTrackersIssueTrackerNameIssuesIssueNameWithResponse(ctx context.Context, issueTrackerName string, issueName string, reqEditors ...RequestEditorFn) (*GetIssueTrackersIssueTrackerNameIssuesIssueNameResponse, error) - - // GetMyNotificationsWithResponse request - GetMyNotificationsWithResponse(ctx context.Context, params *GetMyNotificationsParams, reqEditors ...RequestEditorFn) (*GetMyNotificationsResponse, error) - - // PutMyNotificationsIdWithResponse request - PutMyNotificationsIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*PutMyNotificationsIdResponse, error) - - // GetPersonWithResponse request - GetPersonWithResponse(ctx context.Context, params *GetPersonParams, reqEditors ...RequestEditorFn) (*GetPersonResponse, error) - - // PostPersonWithBodyWithResponse request with any body - PostPersonWithBodyWithResponse(ctx context.Context, params *PostPersonParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPersonResponse, error) - - // PostPersonRegisterWithBodyWithResponse request with any body - PostPersonRegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPersonRegisterResponse, error) - - // GetPersonLoginWithResponse request - GetPersonLoginWithResponse(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*GetPersonLoginResponse, error) - - // PostPersonLoginWithBodyWithResponse request with any body - PostPersonLoginWithBodyWithResponse(ctx context.Context, login string, params *PostPersonLoginParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPersonLoginResponse, error) - - PostPersonLoginWithTextBodyWithResponse(ctx context.Context, login string, params *PostPersonLoginParams, body PostPersonLoginTextRequestBody, reqEditors ...RequestEditorFn) (*PostPersonLoginResponse, error) - - // PutPersonLoginWithBodyWithResponse request with any body - PutPersonLoginWithBodyWithResponse(ctx context.Context, login string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutPersonLoginResponse, error) - - // GetPersonLoginGroupWithResponse request - GetPersonLoginGroupWithResponse(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*GetPersonLoginGroupResponse, error) - - // GetPersonLoginTokenWithResponse request - GetPersonLoginTokenWithResponse(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*GetPersonLoginTokenResponse, error) - - // PostPersonLoginTokenWithResponse request - PostPersonLoginTokenWithResponse(ctx context.Context, login string, params *PostPersonLoginTokenParams, reqEditors ...RequestEditorFn) (*PostPersonLoginTokenResponse, error) - - // DeletePersonLoginTokenIdWithResponse request - DeletePersonLoginTokenIdWithResponse(ctx context.Context, login string, id string, reqEditors ...RequestEditorFn) (*DeletePersonLoginTokenIdResponse, error) - - // GetPersonLoginWatchlistWithResponse request - GetPersonLoginWatchlistWithResponse(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*GetPersonLoginWatchlistResponse, error) - - // PutPersonLoginWatchlistWithBodyWithResponse request with any body - PutPersonLoginWatchlistWithBodyWithResponse(ctx context.Context, login string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutPersonLoginWatchlistResponse, error) - - // GetPublishedWithResponse request - GetPublishedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPublishedResponse, error) - - // GetPublishedProjectNameWithResponse request - GetPublishedProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameResponse, error) - - // GetPublishedProjectNameRepositoryNameWithResponse request - GetPublishedProjectNameRepositoryNameWithResponse(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameRepositoryNameResponse, error) - - // GetPublishedProjectNameRepositoryNameArchitectureNameWithResponse request - GetPublishedProjectNameRepositoryNameArchitectureNameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameRepositoryNameArchitectureNameResponse, error) - - // GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameWithResponse request - GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, binaryFilename string, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameResponse, error) - - // GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpWithResponse request - GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, binaryFilename string, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpResponse, error) - - // GetPublishedProjectNameRepositoryNameviewStatusWithResponse request - GetPublishedProjectNameRepositoryNameviewStatusWithResponse(ctx context.Context, projectName string, repositoryName string, params *GetPublishedProjectNameRepositoryNameviewStatusParams, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameRepositoryNameviewStatusResponse, error) - - // GetRequestWithResponse request - GetRequestWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRequestResponse, error) - - // PostRequestWithBodyWithResponse request with any body - PostRequestWithBodyWithResponse(ctx context.Context, params *PostRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRequestResponse, error) - - // DeleteRequestIdWithResponse request - DeleteRequestIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteRequestIdResponse, error) - - // GetRequestIdWithResponse request - GetRequestIdWithResponse(ctx context.Context, id int, params *GetRequestIdParams, reqEditors ...RequestEditorFn) (*GetRequestIdResponse, error) - - // PostRequestIdWithResponse request - PostRequestIdWithResponse(ctx context.Context, id int, params *PostRequestIdParams, reqEditors ...RequestEditorFn) (*PostRequestIdResponse, error) - - // PutRequestIdWithBodyWithResponse request with any body - PutRequestIdWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutRequestIdResponse, error) - - // PostRequestIdcmdDiffWithResponse request - PostRequestIdcmdDiffWithResponse(ctx context.Context, id int, params *PostRequestIdcmdDiffParams, reqEditors ...RequestEditorFn) (*PostRequestIdcmdDiffResponse, error) - - // GetRequestviewCollectionWithResponse request - GetRequestviewCollectionWithResponse(ctx context.Context, params *GetRequestviewCollectionParams, reqEditors ...RequestEditorFn) (*GetRequestviewCollectionResponse, error) - - // GetSearchWithResponse request - GetSearchWithResponse(ctx context.Context, params *GetSearchParams, reqEditors ...RequestEditorFn) (*GetSearchResponse, error) - - // PostSearchWithResponse request - PostSearchWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchResponse, error) - - // GetSearchChannelWithResponse request - GetSearchChannelWithResponse(ctx context.Context, params *GetSearchChannelParams, reqEditors ...RequestEditorFn) (*GetSearchChannelResponse, error) - - // PostSearchChannelWithResponse request - PostSearchChannelWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchChannelResponse, error) - - // GetSearchChannelBinaryWithResponse request - GetSearchChannelBinaryWithResponse(ctx context.Context, params *GetSearchChannelBinaryParams, reqEditors ...RequestEditorFn) (*GetSearchChannelBinaryResponse, error) - - // PostSearchChannelBinaryWithResponse request - PostSearchChannelBinaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchChannelBinaryResponse, error) - - // GetSearchChannelBinaryIdWithResponse request - GetSearchChannelBinaryIdWithResponse(ctx context.Context, params *GetSearchChannelBinaryIdParams, reqEditors ...RequestEditorFn) (*GetSearchChannelBinaryIdResponse, error) - - // PostSearchChannelBinaryIdWithResponse request - PostSearchChannelBinaryIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchChannelBinaryIdResponse, error) - - // GetSearchIssueWithResponse request - GetSearchIssueWithResponse(ctx context.Context, params *GetSearchIssueParams, reqEditors ...RequestEditorFn) (*GetSearchIssueResponse, error) - - // PostSearchIssueWithResponse request - PostSearchIssueWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchIssueResponse, error) - - // GetSearchMissingOwnerWithResponse request - GetSearchMissingOwnerWithResponse(ctx context.Context, params *GetSearchMissingOwnerParams, reqEditors ...RequestEditorFn) (*GetSearchMissingOwnerResponse, error) - - // PostSearchMissingOwnerWithResponse request - PostSearchMissingOwnerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchMissingOwnerResponse, error) - - // GetSearchOwnerWithResponse request - GetSearchOwnerWithResponse(ctx context.Context, params *GetSearchOwnerParams, reqEditors ...RequestEditorFn) (*GetSearchOwnerResponse, error) - - // PostSearchOwnerWithResponse request - PostSearchOwnerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchOwnerResponse, error) - - // GetSearchPackageWithResponse request - GetSearchPackageWithResponse(ctx context.Context, params *GetSearchPackageParams, reqEditors ...RequestEditorFn) (*GetSearchPackageResponse, error) - - // PostSearchPackageWithResponse request - PostSearchPackageWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPackageResponse, error) - - // GetSearchPackageIdWithResponse request - GetSearchPackageIdWithResponse(ctx context.Context, params *GetSearchPackageIdParams, reqEditors ...RequestEditorFn) (*GetSearchPackageIdResponse, error) - - // PostSearchPackageIdWithResponse request - PostSearchPackageIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPackageIdResponse, error) - - // GetSearchPackageIdWithResponse request - GetSearchPackageIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSearchPackageIdResponse, error) - - // PostSearchPackageIdWithResponse request - PostSearchPackageIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPackageIdResponse, error) - - // GetSearchPersonWithResponse request - GetSearchPersonWithResponse(ctx context.Context, params *GetSearchPersonParams, reqEditors ...RequestEditorFn) (*GetSearchPersonResponse, error) - - // PostSearchPersonWithResponse request - PostSearchPersonWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPersonResponse, error) - - // GetSearchProjectWithResponse request - GetSearchProjectWithResponse(ctx context.Context, params *GetSearchProjectParams, reqEditors ...RequestEditorFn) (*GetSearchProjectResponse, error) - - // PostSearchProjectWithResponse request - PostSearchProjectWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchProjectResponse, error) - - // GetSearchProjectIdWithResponse request - GetSearchProjectIdWithResponse(ctx context.Context, params *GetSearchProjectIdParams, reqEditors ...RequestEditorFn) (*GetSearchProjectIdResponse, error) - - // PostSearchProjectIdWithResponse request - PostSearchProjectIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchProjectIdResponse, error) - - // GetSearchProjectIdWithResponse request - GetSearchProjectIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSearchProjectIdResponse, error) - - // PostSearchProjectIdWithResponse request - PostSearchProjectIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchProjectIdResponse, error) - - // GetSearchPublishedBinaryIdWithResponse request - GetSearchPublishedBinaryIdWithResponse(ctx context.Context, params *GetSearchPublishedBinaryIdParams, reqEditors ...RequestEditorFn) (*GetSearchPublishedBinaryIdResponse, error) - - // PostSearchPublishedBinaryIdWithResponse request - PostSearchPublishedBinaryIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPublishedBinaryIdResponse, error) - - // GetSearchPublishedPatternIdWithResponse request - GetSearchPublishedPatternIdWithResponse(ctx context.Context, params *GetSearchPublishedPatternIdParams, reqEditors ...RequestEditorFn) (*GetSearchPublishedPatternIdResponse, error) - - // PostSearchPublishedPatternIdWithResponse request - PostSearchPublishedPatternIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPublishedPatternIdResponse, error) - - // GetSearchPublishedRepoinfoIdWithResponse request - GetSearchPublishedRepoinfoIdWithResponse(ctx context.Context, params *GetSearchPublishedRepoinfoIdParams, reqEditors ...RequestEditorFn) (*GetSearchPublishedRepoinfoIdResponse, error) - - // PostSearchPublishedRepoinfoIdWithResponse request - PostSearchPublishedRepoinfoIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPublishedRepoinfoIdResponse, error) - - // GetSearchReleasedBinaryWithResponse request - GetSearchReleasedBinaryWithResponse(ctx context.Context, params *GetSearchReleasedBinaryParams, reqEditors ...RequestEditorFn) (*GetSearchReleasedBinaryResponse, error) - - // PostSearchReleasedBinaryWithResponse request - PostSearchReleasedBinaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchReleasedBinaryResponse, error) - - // GetSearchReleasedBinaryIdWithResponse request - GetSearchReleasedBinaryIdWithResponse(ctx context.Context, params *GetSearchReleasedBinaryIdParams, reqEditors ...RequestEditorFn) (*GetSearchReleasedBinaryIdResponse, error) - - // PostSearchReleasedBinaryIdWithResponse request - PostSearchReleasedBinaryIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchReleasedBinaryIdResponse, error) - - // GetSearchRepositoryIdWithResponse request - GetSearchRepositoryIdWithResponse(ctx context.Context, params *GetSearchRepositoryIdParams, reqEditors ...RequestEditorFn) (*GetSearchRepositoryIdResponse, error) - - // PostSearchRepositoryIdWithResponse request - PostSearchRepositoryIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchRepositoryIdResponse, error) - - // GetSearchRequestWithResponse request - GetSearchRequestWithResponse(ctx context.Context, params *GetSearchRequestParams, reqEditors ...RequestEditorFn) (*GetSearchRequestResponse, error) - - // PostSearchRequestWithResponse request - PostSearchRequestWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchRequestResponse, error) - - // GetSearchRequestIdWithResponse request - GetSearchRequestIdWithResponse(ctx context.Context, params *GetSearchRequestIdParams, reqEditors ...RequestEditorFn) (*GetSearchRequestIdResponse, error) - - // PostSearchRequestIdWithResponse request - PostSearchRequestIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchRequestIdResponse, error) - - // GetServiceWithResponse request - GetServiceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServiceResponse, error) - - // GetSourceWithResponse request - GetSourceWithResponse(ctx context.Context, params *GetSourceParams, reqEditors ...RequestEditorFn) (*GetSourceResponse, error) - - // DeleteSourceProjectNameWithResponse request - DeleteSourceProjectNameWithResponse(ctx context.Context, projectName string, params *DeleteSourceProjectNameParams, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNameResponse, error) - - // GetSourceProjectNameWithResponse request - GetSourceProjectNameWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameResponse, error) - - // GetSourceProjectNameAttributeWithResponse request - GetSourceProjectNameAttributeWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameAttributeParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameAttributeResponse, error) - - // DeleteSourceProjectNameAttributeAttributeNameWithResponse request - DeleteSourceProjectNameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, attributeName string, params *DeleteSourceProjectNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNameAttributeAttributeNameResponse, error) - - // GetSourceProjectNameAttributeAttributeNameWithResponse request - GetSourceProjectNameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, attributeName string, params *GetSourceProjectNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameAttributeAttributeNameResponse, error) - - // PostSourceProjectNameAttributeAttributeNameWithBodyWithResponse request with any body - PostSourceProjectNameAttributeAttributeNameWithBodyWithResponse(ctx context.Context, projectName string, attributeName string, params *PostSourceProjectNameAttributeAttributeNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSourceProjectNameAttributeAttributeNameResponse, error) - - // GetSourceProjectNameConfigWithResponse request - GetSourceProjectNameConfigWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameConfigParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameConfigResponse, error) - - // PutSourceProjectNameConfigWithBodyWithResponse request with any body - PutSourceProjectNameConfigWithBodyWithResponse(ctx context.Context, projectName string, params *PutSourceProjectNameConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSourceProjectNameConfigResponse, error) - - PutSourceProjectNameConfigWithTextBodyWithResponse(ctx context.Context, projectName string, params *PutSourceProjectNameConfigParams, body PutSourceProjectNameConfigTextRequestBody, reqEditors ...RequestEditorFn) (*PutSourceProjectNameConfigResponse, error) - - // GetSourceProjectNameKeyinfoWithResponse request - GetSourceProjectNameKeyinfoWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetSourceProjectNameKeyinfoResponse, error) - - // GetSourceProjectNameMetaWithResponse request - GetSourceProjectNameMetaWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameMetaParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameMetaResponse, error) - - // PutSourceProjectNameMetaWithBodyWithResponse request with any body - PutSourceProjectNameMetaWithBodyWithResponse(ctx context.Context, projectName string, params *PutSourceProjectNameMetaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSourceProjectNameMetaResponse, error) - - // GetSourceProjectNamePatternWithResponse request - GetSourceProjectNamePatternWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePatternResponse, error) - - // DeleteSourceProjectNamePatternFileNameWithResponse request - DeleteSourceProjectNamePatternFileNameWithResponse(ctx context.Context, projectName string, fileName string, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePatternFileNameResponse, error) - - // GetSourceProjectNamePatternFileNameWithResponse request - GetSourceProjectNamePatternFileNameWithResponse(ctx context.Context, projectName string, fileName string, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePatternFileNameResponse, error) - - // PutSourceProjectNamePatternFileNameWithBodyWithResponse request with any body - PutSourceProjectNamePatternFileNameWithBodyWithResponse(ctx context.Context, projectName string, fileName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSourceProjectNamePatternFileNameResponse, error) - - // GetSourceProjectNameProjectWithResponse request - GetSourceProjectNameProjectWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameProjectParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameProjectResponse, error) - - // GetSourceProjectNameProjectHistoryWithResponse request - GetSourceProjectNameProjectHistoryWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameProjectHistoryParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameProjectHistoryResponse, error) - - // GetSourceProjectNameProjectFileNameWithResponse request - GetSourceProjectNameProjectFileNameWithResponse(ctx context.Context, projectName string, fileName string, params *GetSourceProjectNameProjectFileNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameProjectFileNameResponse, error) - - // DeleteSourceProjectNamePubkeyWithResponse request - DeleteSourceProjectNamePubkeyWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePubkeyResponse, error) - - // GetSourceProjectNamePubkeyWithResponse request - GetSourceProjectNamePubkeyWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePubkeyResponse, error) - - // DeleteSourceProjectNamePackageNameWithResponse request - DeleteSourceProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, params *DeleteSourceProjectNamePackageNameParams, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePackageNameResponse, error) - - // GetSourceProjectNamePackageNameWithResponse request - GetSourceProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameResponse, error) - - // GetSourceProjectNamePackageNameAttributeWithResponse request - GetSourceProjectNamePackageNameAttributeWithResponse(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameAttributeParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameAttributeResponse, error) - - // PostSourceProjectNamePackageNameAttributeWithBodyWithResponse request with any body - PostSourceProjectNamePackageNameAttributeWithBodyWithResponse(ctx context.Context, projectName string, packageName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNameAttributeResponse, error) - - // DeleteSourceProjectNamePackageNameAttributeAttributeNameWithResponse request - DeleteSourceProjectNamePackageNameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, packageName string, attributeName string, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePackageNameAttributeAttributeNameResponse, error) - - // GetSourceProjectNamePackageNameAttributeAttributeNameWithResponse request - GetSourceProjectNamePackageNameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, packageName string, attributeName string, params *GetSourceProjectNamePackageNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameAttributeAttributeNameResponse, error) - - // PostSourceProjectNamePackageNameAttributeAttributeNameWithBodyWithResponse request with any body - PostSourceProjectNamePackageNameAttributeAttributeNameWithBodyWithResponse(ctx context.Context, projectName string, packageName string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNameAttributeAttributeNameResponse, error) - - // GetSourceProjectNamePackageNameHistoryWithResponse request - GetSourceProjectNamePackageNameHistoryWithResponse(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameHistoryParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameHistoryResponse, error) - - // GetSourceProjectNamePackageNameMetaWithResponse request - GetSourceProjectNamePackageNameMetaWithResponse(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameMetaParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameMetaResponse, error) - - // PutSourceProjectNamePackageNameMetaWithBodyWithResponse request with any body - PutSourceProjectNamePackageNameMetaWithBodyWithResponse(ctx context.Context, projectName string, packageName string, params *PutSourceProjectNamePackageNameMetaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSourceProjectNamePackageNameMetaResponse, error) - - // GetSourceProjectNamePackageNameBinaryFilenameAttributeWithResponse request - GetSourceProjectNamePackageNameBinaryFilenameAttributeWithResponse(ctx context.Context, projectName string, packageName string, binaryFilename string, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameBinaryFilenameAttributeResponse, error) - - // PostSourceProjectNamePackageNameBinaryFilenameAttributeWithBodyWithResponse request with any body - PostSourceProjectNamePackageNameBinaryFilenameAttributeWithBodyWithResponse(ctx context.Context, projectName string, packageName string, binaryFilename string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNameBinaryFilenameAttributeResponse, error) - - // DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameWithResponse request - DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, packageName string, binaryFilename string, attributeName string, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse, error) - - // GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameWithResponse request - GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, packageName string, binaryFilename string, attributeName string, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse, error) - - // DeleteSourceProjectNamePackageNameFileNameWithResponse request - DeleteSourceProjectNamePackageNameFileNameWithResponse(ctx context.Context, projectName string, packageName string, fileName string, params *DeleteSourceProjectNamePackageNameFileNameParams, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePackageNameFileNameResponse, error) - - // GetSourceProjectNamePackageNameFileNameWithResponse request - GetSourceProjectNamePackageNameFileNameWithResponse(ctx context.Context, projectName string, packageName string, fileName string, params *GetSourceProjectNamePackageNameFileNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameFileNameResponse, error) - - // PutSourceProjectNamePackageNameFileNameWithBodyWithResponse request with any body - PutSourceProjectNamePackageNameFileNameWithBodyWithResponse(ctx context.Context, projectName string, packageName string, fileName string, params *PutSourceProjectNamePackageNameFileNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSourceProjectNamePackageNameFileNameResponse, error) - - // PostSourceProjectNamePackageNamecmdAddcontainersWithResponse request - PostSourceProjectNamePackageNamecmdAddcontainersWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdAddcontainersParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdAddcontainersResponse, error) - - // PostSourceProjectNamePackageNamecmdBranchWithResponse request - PostSourceProjectNamePackageNamecmdBranchWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdBranchParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdBranchResponse, error) - - // PostSourceProjectNamePackageNamecmdCollectbuildenvWithResponse request - PostSourceProjectNamePackageNamecmdCollectbuildenvWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCollectbuildenvParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdCollectbuildenvResponse, error) - - // PostSourceProjectNamePackageNamecmdCommitWithResponse request - PostSourceProjectNamePackageNamecmdCommitWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCommitParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdCommitResponse, error) - - // PostSourceProjectNamePackageNamecmdCommitfilelistWithResponse request - PostSourceProjectNamePackageNamecmdCommitfilelistWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCommitfilelistParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdCommitfilelistResponse, error) - - // PostSourceProjectNamePackageNamecmdCopyWithResponse request - PostSourceProjectNamePackageNamecmdCopyWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCopyParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdCopyResponse, error) - - // PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateWithResponse request - PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateResponse, error) - - // PostSourceProjectNamePackageNamecmdDeleteuploadrevWithResponse request - PostSourceProjectNamePackageNamecmdDeleteuploadrevWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdDeleteuploadrevResponse, error) - - // PostSourceProjectNamePackageNamecmdDiffWithResponse request - PostSourceProjectNamePackageNamecmdDiffWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdDiffParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdDiffResponse, error) - - // PostSourceProjectNamePackageNamecmdForkWithResponse request - PostSourceProjectNamePackageNamecmdForkWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdForkParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdForkResponse, error) - - // PostSourceProjectNamePackageNamecmdGetprojectservicesWithResponse request - PostSourceProjectNamePackageNamecmdGetprojectservicesWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdGetprojectservicesParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdGetprojectservicesResponse, error) - - // PostSourceProjectNamePackageNamecmdInstantiateWithResponse request - PostSourceProjectNamePackageNamecmdInstantiateWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdInstantiateParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdInstantiateResponse, error) - - // PostSourceProjectNamePackageNamecmdLinkdiffWithResponse request - PostSourceProjectNamePackageNamecmdLinkdiffWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdLinkdiffParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdLinkdiffResponse, error) - - // PostSourceProjectNamePackageNamecmdLinktobranchWithResponse request - PostSourceProjectNamePackageNamecmdLinktobranchWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdLinktobranchParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdLinktobranchResponse, error) - - // PostSourceProjectNamePackageNamecmdMergeserviceWithResponse request - PostSourceProjectNamePackageNamecmdMergeserviceWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdMergeserviceParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdMergeserviceResponse, error) - - // PostSourceProjectNamePackageNamecmdRebuildWithResponse request - PostSourceProjectNamePackageNamecmdRebuildWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdRebuildResponse, error) - - // PostSourceProjectNamePackageNamecmdReleaseWithResponse request - PostSourceProjectNamePackageNamecmdReleaseWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdReleaseParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdReleaseResponse, error) - - // PostSourceProjectNamePackageNamecmdRemoveFlagWithResponse request - PostSourceProjectNamePackageNamecmdRemoveFlagWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdRemoveFlagParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdRemoveFlagResponse, error) - - // PostSourceProjectNamePackageNamecmdRunserviceWithResponse request - PostSourceProjectNamePackageNamecmdRunserviceWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdRunserviceParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdRunserviceResponse, error) - - // PostSourceProjectNamePackageNamecmdServicediffWithResponse request - PostSourceProjectNamePackageNamecmdServicediffWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdServicediffParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdServicediffResponse, error) - - // PostSourceProjectNamePackageNamecmdSetFlagWithResponse request - PostSourceProjectNamePackageNamecmdSetFlagWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdSetFlagParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdSetFlagResponse, error) - - // PostSourceProjectNamePackageNamecmdShowlinkedWithResponse request - PostSourceProjectNamePackageNamecmdShowlinkedWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdShowlinkedResponse, error) - - // PostSourceProjectNamePackageNamecmdUndeleteWithResponse request - PostSourceProjectNamePackageNamecmdUndeleteWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdUndeleteParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdUndeleteResponse, error) - - // PostSourceProjectNamePackageNamecmdUnlockWithResponse request - PostSourceProjectNamePackageNamecmdUnlockWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdUnlockParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdUnlockResponse, error) - - // PostSourceProjectNamePackageNamecmdUpdatepatchinfoWithResponse request - PostSourceProjectNamePackageNamecmdUpdatepatchinfoWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdUpdatepatchinfoResponse, error) - - // PostSourceProjectNamePackageNamecmdWaitserviceWithResponse request - PostSourceProjectNamePackageNamecmdWaitserviceWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdWaitserviceResponse, error) - - // GetSourceProjectNamePackageNameviewInfoWithResponse request - GetSourceProjectNamePackageNameviewInfoWithResponse(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameviewInfoParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameviewInfoResponse, error) - - // PostSourceProjectNamecmdAddchannelsWithResponse request - PostSourceProjectNamecmdAddchannelsWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdAddchannelsParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdAddchannelsResponse, error) - - // PostSourceProjectNamecmdCopyWithResponse request - PostSourceProjectNamecmdCopyWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdCopyParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdCopyResponse, error) - - // PostSourceProjectNamecmdCreatekeyWithResponse request - PostSourceProjectNamecmdCreatekeyWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdCreatekeyResponse, error) - - // PostSourceProjectNamecmdCreatemaintenanceincidentWithResponse request - PostSourceProjectNamecmdCreatemaintenanceincidentWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdCreatemaintenanceincidentResponse, error) - - // PostSourceProjectNamecmdCreatepatchinfoWithResponse request - PostSourceProjectNamecmdCreatepatchinfoWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdCreatepatchinfoParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdCreatepatchinfoResponse, error) - - // PostSourceProjectNamecmdExtendkeyWithResponse request - PostSourceProjectNamecmdExtendkeyWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdExtendkeyParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdExtendkeyResponse, error) - - // PostSourceProjectNamecmdFreezelinkWithResponse request - PostSourceProjectNamecmdFreezelinkWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdFreezelinkParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdFreezelinkResponse, error) - - // PostSourceProjectNamecmdLockWithResponse request - PostSourceProjectNamecmdLockWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdLockParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdLockResponse, error) - - // PostSourceProjectNamecmdModifychannelsWithResponse request - PostSourceProjectNamecmdModifychannelsWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdModifychannelsParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdModifychannelsResponse, error) - - // PostSourceProjectNamecmdMoveWithResponse request - PostSourceProjectNamecmdMoveWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdMoveParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdMoveResponse, error) - - // PostSourceProjectNamecmdReleaseWithResponse request - PostSourceProjectNamecmdReleaseWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdReleaseParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdReleaseResponse, error) - - // PostSourceProjectNamecmdRemoveFlagWithResponse request - PostSourceProjectNamecmdRemoveFlagWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdRemoveFlagParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdRemoveFlagResponse, error) - - // PostSourceProjectNamecmdSetFlagWithResponse request - PostSourceProjectNamecmdSetFlagWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdSetFlagParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdSetFlagResponse, error) - - // PostSourceProjectNamecmdShowlinkedWithResponse request - PostSourceProjectNamecmdShowlinkedWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdShowlinkedResponse, error) - - // PostSourceProjectNamecmdUndeleteWithResponse request - PostSourceProjectNamecmdUndeleteWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdUndeleteResponse, error) - - // PostSourceProjectNamecmdUnlockWithResponse request - PostSourceProjectNamecmdUnlockWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdUnlockParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdUnlockResponse, error) - - // GetSourceProjectNameviewInfoWithResponse request - GetSourceProjectNameviewInfoWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameviewInfoParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameviewInfoResponse, error) - - // PostSourcecmdBranchWithResponse request - PostSourcecmdBranchWithResponse(ctx context.Context, params *PostSourcecmdBranchParams, reqEditors ...RequestEditorFn) (*PostSourcecmdBranchResponse, error) - - // PostSourcecmdCreatemaintenanceincidentWithResponse request - PostSourcecmdCreatemaintenanceincidentWithResponse(ctx context.Context, params *PostSourcecmdCreatemaintenanceincidentParams, reqEditors ...RequestEditorFn) (*PostSourcecmdCreatemaintenanceincidentResponse, error) - - // PostSourcecmdOrderkiwireposWithBodyWithResponse request with any body - PostSourcecmdOrderkiwireposWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSourcecmdOrderkiwireposResponse, error) - - // GetStagingProjectNameBacklogWithResponse request - GetStagingProjectNameBacklogWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStagingProjectNameBacklogResponse, error) - - // DeleteStagingProjectNameExcludedRequestsWithBodyWithResponse request with any body - DeleteStagingProjectNameExcludedRequestsWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStagingProjectNameExcludedRequestsResponse, error) - - // GetStagingProjectNameExcludedRequestsWithResponse request - GetStagingProjectNameExcludedRequestsWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStagingProjectNameExcludedRequestsResponse, error) - - // PostStagingProjectNameExcludedRequestsWithBodyWithResponse request with any body - PostStagingProjectNameExcludedRequestsWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStagingProjectNameExcludedRequestsResponse, error) - - // DeleteStagingProjectNameStagedRequestsWithBodyWithResponse request with any body - DeleteStagingProjectNameStagedRequestsWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStagingProjectNameStagedRequestsResponse, error) - - // GetStagingProjectNameStagingProjectsWithResponse request - GetStagingProjectNameStagingProjectsWithResponse(ctx context.Context, projectName string, params *GetStagingProjectNameStagingProjectsParams, reqEditors ...RequestEditorFn) (*GetStagingProjectNameStagingProjectsResponse, error) - - // PostStagingProjectNameStagingProjectsWithBodyWithResponse request with any body - PostStagingProjectNameStagingProjectsWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStagingProjectNameStagingProjectsResponse, error) - - // GetStagingProjectNameStagingProjectsStagingProjectNameWithResponse request - GetStagingProjectNameStagingProjectsStagingProjectNameWithResponse(ctx context.Context, projectName string, stagingProjectName string, params *GetStagingProjectNameStagingProjectsStagingProjectNameParams, reqEditors ...RequestEditorFn) (*GetStagingProjectNameStagingProjectsStagingProjectNameResponse, error) - - // PostStagingProjectNameStagingProjectsStagingProjectNameAcceptWithResponse request - PostStagingProjectNameStagingProjectsStagingProjectNameAcceptWithResponse(ctx context.Context, projectName string, stagingProjectName string, reqEditors ...RequestEditorFn) (*PostStagingProjectNameStagingProjectsStagingProjectNameAcceptResponse, error) - - // PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameWithResponse request - PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameWithResponse(ctx context.Context, projectName string, stagingProjectName string, stagingProjectCopyName string, reqEditors ...RequestEditorFn) (*PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameResponse, error) - - // DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBodyWithResponse request with any body - DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBodyWithResponse(ctx context.Context, projectName string, stagingProjectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse, error) - - // GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithResponse request - GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithResponse(ctx context.Context, projectName string, stagingProjectName string, reqEditors ...RequestEditorFn) (*GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse, error) - - // PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBodyWithResponse request with any body - PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBodyWithResponse(ctx context.Context, projectName string, stagingProjectName string, params *PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse, error) - - // DeleteStagingProjectNameWorkflowWithResponse request - DeleteStagingProjectNameWorkflowWithResponse(ctx context.Context, projectName string, params *DeleteStagingProjectNameWorkflowParams, reqEditors ...RequestEditorFn) (*DeleteStagingProjectNameWorkflowResponse, error) - - // PostStagingProjectNameWorkflowWithBodyWithResponse request with any body - PostStagingProjectNameWorkflowWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStagingProjectNameWorkflowResponse, error) - - // PutStagingProjectNameWorkflowWithBodyWithResponse request with any body - PutStagingProjectNameWorkflowWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutStagingProjectNameWorkflowResponse, error) - - // GetStatisticsWithResponse request - GetStatisticsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatisticsResponse, error) - - // GetStatisticsActiveRequestCreatorsProjectNameWithResponse request - GetStatisticsActiveRequestCreatorsProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStatisticsActiveRequestCreatorsProjectNameResponse, error) - - // GetStatisticsActivityProjectNamePackageNameWithResponse request - GetStatisticsActivityProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*GetStatisticsActivityProjectNamePackageNameResponse, error) - - // GetStatisticsAddedTimestampProjectNamePackageNameWithResponse request - GetStatisticsAddedTimestampProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*GetStatisticsAddedTimestampProjectNamePackageNameResponse, error) - - // GetStatisticsGlobalCountersWithResponse request - GetStatisticsGlobalCountersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatisticsGlobalCountersResponse, error) - - // GetStatisticsLatestAddedWithResponse request - GetStatisticsLatestAddedWithResponse(ctx context.Context, params *GetStatisticsLatestAddedParams, reqEditors ...RequestEditorFn) (*GetStatisticsLatestAddedResponse, error) - - // GetStatisticsLatestUpdatedWithResponse request - GetStatisticsLatestUpdatedWithResponse(ctx context.Context, params *GetStatisticsLatestUpdatedParams, reqEditors ...RequestEditorFn) (*GetStatisticsLatestUpdatedResponse, error) - - // GetStatisticsMaintenanceStatisticsProjectNameWithResponse request - GetStatisticsMaintenanceStatisticsProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStatisticsMaintenanceStatisticsProjectNameResponse, error) - - // GetStatisticsMostActivePackagesWithResponse request - GetStatisticsMostActivePackagesWithResponse(ctx context.Context, params *GetStatisticsMostActivePackagesParams, reqEditors ...RequestEditorFn) (*GetStatisticsMostActivePackagesResponse, error) - - // GetStatisticsMostActiveProjectsWithResponse request - GetStatisticsMostActiveProjectsWithResponse(ctx context.Context, params *GetStatisticsMostActiveProjectsParams, reqEditors ...RequestEditorFn) (*GetStatisticsMostActiveProjectsResponse, error) - - // GetStatisticsUpdatedTimestampProjectNamePackageNameWithResponse request - GetStatisticsUpdatedTimestampProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*GetStatisticsUpdatedTimestampProjectNamePackageNameResponse, error) - - // GetStatusMessagesWithResponse request - GetStatusMessagesWithResponse(ctx context.Context, params *GetStatusMessagesParams, reqEditors ...RequestEditorFn) (*GetStatusMessagesResponse, error) - - // PostStatusMessagesWithBodyWithResponse request with any body - PostStatusMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusMessagesResponse, error) - - // DeleteStatusMessagesIdWithResponse request - DeleteStatusMessagesIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteStatusMessagesIdResponse, error) - - // GetStatusMessagesIdWithResponse request - GetStatusMessagesIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetStatusMessagesIdResponse, error) - - // GetStatusProjectProjectNameWithResponse request - GetStatusProjectProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStatusProjectProjectNameResponse, error) - - // GetStatusWorkerstatusWithResponse request - GetStatusWorkerstatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusWorkerstatusResponse, error) - - // GetStatusMessageWithResponse request - GetStatusMessageWithResponse(ctx context.Context, params *GetStatusMessageParams, reqEditors ...RequestEditorFn) (*GetStatusMessageResponse, error) - - // GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithResponse request - GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, buildId int, reqEditors ...RequestEditorFn) (*GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse, error) - - // PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithBodyWithResponse request with any body - PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, buildId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse, error) - - // GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithResponse request - GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse, error) - - // PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithBodyWithResponse request with any body - PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse, error) - - // DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameWithResponse request - DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, checkName string, reqEditors ...RequestEditorFn) (*DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameResponse, error) - - // GetStatusReportsProjectsProjectNameRequiredChecksWithResponse request - GetStatusReportsProjectsProjectNameRequiredChecksWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStatusReportsProjectsProjectNameRequiredChecksResponse, error) - - // PostStatusReportsProjectsProjectNameRequiredChecksWithBodyWithResponse request with any body - PostStatusReportsProjectsProjectNameRequiredChecksWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsProjectsProjectNameRequiredChecksResponse, error) - - // DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameWithResponse request - DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameWithResponse(ctx context.Context, projectName string, checkName string, reqEditors ...RequestEditorFn) (*DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameResponse, error) - - // GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithResponse request - GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithResponse(ctx context.Context, projectName string, repositoryName string, buildId int, reqEditors ...RequestEditorFn) (*GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse, error) - - // PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithBodyWithResponse request with any body - PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, buildId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse, error) - - // GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithResponse request - GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithResponse(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse, error) - - // PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithBodyWithResponse request with any body - PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse, error) - - // DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameWithResponse request - DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameWithResponse(ctx context.Context, projectName string, repositoryName string, checkName string, reqEditors ...RequestEditorFn) (*DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameResponse, error) - - // GetStatusReportsRequestsIdReportsWithResponse request - GetStatusReportsRequestsIdReportsWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetStatusReportsRequestsIdReportsResponse, error) - - // PostStatusReportsRequestsIdReportsWithBodyWithResponse request with any body - PostStatusReportsRequestsIdReportsWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsRequestsIdReportsResponse, error) - - // PostTriggerWithResponse request - PostTriggerWithResponse(ctx context.Context, params *PostTriggerParams, reqEditors ...RequestEditorFn) (*PostTriggerResponse, error) - - // PostTriggerRebuildWithResponse request - PostTriggerRebuildWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostTriggerRebuildResponse, error) - - // PostTriggerReleaseWithResponse request - PostTriggerReleaseWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostTriggerReleaseResponse, error) - - // PostTriggerRunserviceWithResponse request - PostTriggerRunserviceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostTriggerRunserviceResponse, error) - - // PostTriggerWebhookWithResponse request - PostTriggerWebhookWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostTriggerWebhookResponse, error) - - // PostTriggerWorkflowWithResponse request - PostTriggerWorkflowWithResponse(ctx context.Context, params *PostTriggerWorkflowParams, reqEditors ...RequestEditorFn) (*PostTriggerWorkflowResponse, error) - - // GetWorkerStatusWithResponse request - GetWorkerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkerStatusResponse, error) - - // GetWorkerStatusWithResponse request - GetWorkerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkerStatusResponse, error) - - // GetWorkerArchitectureNameWorkerIdWithResponse request - GetWorkerArchitectureNameWorkerIdWithResponse(ctx context.Context, architectureName string, workerId string, reqEditors ...RequestEditorFn) (*GetWorkerArchitectureNameWorkerIdResponse, error) - - // PostWorkercmdCheckconstraintsWithBodyWithResponse request with any body - PostWorkercmdCheckconstraintsWithBodyWithResponse(ctx context.Context, params *PostWorkercmdCheckconstraintsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostWorkercmdCheckconstraintsResponse, error) -} - -type GetAboutResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetAboutResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAboutResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAnnouncementsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetAnnouncementsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAnnouncementsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostAnnouncementsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostAnnouncementsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostAnnouncementsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteAnnouncementsAnnouncementIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteAnnouncementsAnnouncementIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteAnnouncementsAnnouncementIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAnnouncementsAnnouncementIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetAnnouncementsAnnouncementIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAnnouncementsAnnouncementIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutAnnouncementsAnnouncementIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutAnnouncementsAnnouncementIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutAnnouncementsAnnouncementIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetArchitecturesResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetArchitecturesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetArchitecturesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetArchitecturesArchitectureNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetArchitecturesArchitectureNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetArchitecturesArchitectureNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAttributeResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetAttributeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAttributeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteAttributeNamespaceResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteAttributeNamespaceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteAttributeNamespaceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAttributeNamespaceResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetAttributeNamespaceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAttributeNamespaceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteAttributeNamespaceMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteAttributeNamespaceMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteAttributeNamespaceMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAttributeNamespaceMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetAttributeNamespaceMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAttributeNamespaceMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostAttributeNamespaceMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostAttributeNamespaceMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostAttributeNamespaceMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutAttributeNamespaceMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutAttributeNamespaceMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutAttributeNamespaceMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteAttributeNamespaceAttributeNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteAttributeNamespaceAttributeNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteAttributeNamespaceAttributeNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteAttributeNamespaceAttributeNameMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteAttributeNamespaceAttributeNameMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteAttributeNamespaceAttributeNameMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetAttributeNamespaceAttributeNameMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetAttributeNamespaceAttributeNameMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetAttributeNamespaceAttributeNameMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostAttributeNamespaceAttributeNameMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostAttributeNamespaceAttributeNameMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostAttributeNamespaceAttributeNameMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutAttributeNamespaceAttributeNameMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutAttributeNamespaceAttributeNameMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutAttributeNamespaceAttributeNameMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildWorkerstatusResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildWorkerstatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildWorkerstatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostBuildProjectNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostBuildProjectNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostBuildProjectNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameResultResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameResultResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameResultResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameBuildconfigResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameBuildconfigResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameBuildconfigResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNameRepositoryResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNameRepositoryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNameRepositoryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteCommentCommentIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteCommentCommentIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteCommentCommentIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetCommentCommentIdHistoryResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetCommentCommentIdHistoryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetCommentCommentIdHistoryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetCommentsPackageProjectNamePackageNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetCommentsPackageProjectNamePackageNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetCommentsPackageProjectNamePackageNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostCommentsPackageProjectNamePackageNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostCommentsPackageProjectNamePackageNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostCommentsPackageProjectNamePackageNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetCommentsProjectProjectNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetCommentsProjectProjectNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetCommentsProjectProjectNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostCommentsProjectProjectNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostCommentsProjectProjectNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostCommentsProjectProjectNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetCommentsRequestIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetCommentsRequestIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetCommentsRequestIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostCommentsRequestIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostCommentsRequestIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostCommentsRequestIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetCommentsUserResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetCommentsUserResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetCommentsUserResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetConfigurationResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetConfigurationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetConfigurationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutConfigurationResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutConfigurationResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutConfigurationResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetDistributionsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetDistributionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetDistributionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostDistributionsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostDistributionsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostDistributionsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutDistributionsBulkReplaceResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutDistributionsBulkReplaceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutDistributionsBulkReplaceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetDistributionsIncludeRemotesResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetDistributionsIncludeRemotesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetDistributionsIncludeRemotesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteDistributionsDistributionIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteDistributionsDistributionIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteDistributionsDistributionIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetDistributionsDistributionIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetDistributionsDistributionIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetDistributionsDistributionIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutDistributionsDistributionIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutDistributionsDistributionIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutDistributionsDistributionIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetGroupResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteGroupGroupTitleResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteGroupGroupTitleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteGroupGroupTitleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetGroupGroupTitleResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetGroupGroupTitleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetGroupGroupTitleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostGroupGroupTitleResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostGroupGroupTitleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostGroupGroupTitleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutGroupGroupTitleResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutGroupGroupTitleResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutGroupGroupTitleResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetImageTemplatesResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetImageTemplatesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetImageTemplatesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetIssueTrackersResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetIssueTrackersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetIssueTrackersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostIssueTrackersResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostIssueTrackersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostIssueTrackersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteIssueTrackersIssueTrackerNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteIssueTrackersIssueTrackerNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteIssueTrackersIssueTrackerNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetIssueTrackersIssueTrackerNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetIssueTrackersIssueTrackerNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetIssueTrackersIssueTrackerNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutIssueTrackersIssueTrackerNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutIssueTrackersIssueTrackerNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutIssueTrackersIssueTrackerNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetIssueTrackersIssueTrackerNameIssuesIssueNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetIssueTrackersIssueTrackerNameIssuesIssueNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetIssueTrackersIssueTrackerNameIssuesIssueNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetMyNotificationsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetMyNotificationsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetMyNotificationsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutMyNotificationsIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutMyNotificationsIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutMyNotificationsIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPersonResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetPersonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPersonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostPersonResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostPersonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostPersonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostPersonRegisterResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostPersonRegisterResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostPersonRegisterResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPersonLoginResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetPersonLoginResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPersonLoginResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostPersonLoginResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostPersonLoginResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostPersonLoginResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutPersonLoginResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutPersonLoginResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutPersonLoginResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPersonLoginGroupResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetPersonLoginGroupResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPersonLoginGroupResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPersonLoginTokenResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetPersonLoginTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPersonLoginTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostPersonLoginTokenResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostPersonLoginTokenResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostPersonLoginTokenResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeletePersonLoginTokenIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeletePersonLoginTokenIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeletePersonLoginTokenIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPersonLoginWatchlistResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetPersonLoginWatchlistResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPersonLoginWatchlistResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutPersonLoginWatchlistResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutPersonLoginWatchlistResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutPersonLoginWatchlistResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPublishedResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetPublishedResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPublishedResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPublishedProjectNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetPublishedProjectNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPublishedProjectNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPublishedProjectNameRepositoryNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetPublishedProjectNameRepositoryNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPublishedProjectNameRepositoryNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPublishedProjectNameRepositoryNameArchitectureNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetPublishedProjectNameRepositoryNameArchitectureNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPublishedProjectNameRepositoryNameArchitectureNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameResponse struct { - Body []byte - HTTPResponse *http.Response - XML200 *openapi_types.File -} - -// Status returns HTTPResponse.Status -func (r GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetPublishedProjectNameRepositoryNameviewStatusResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetPublishedProjectNameRepositoryNameviewStatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetPublishedProjectNameRepositoryNameviewStatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetRequestResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostRequestResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteRequestIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteRequestIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteRequestIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetRequestIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetRequestIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetRequestIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostRequestIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostRequestIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostRequestIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutRequestIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutRequestIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutRequestIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostRequestIdcmdDiffResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostRequestIdcmdDiffResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostRequestIdcmdDiffResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetRequestviewCollectionResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetRequestviewCollectionResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetRequestviewCollectionResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchChannelResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchChannelResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchChannelResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchChannelResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchChannelResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchChannelResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchChannelBinaryResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchChannelBinaryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchChannelBinaryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchChannelBinaryResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchChannelBinaryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchChannelBinaryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchChannelBinaryIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchChannelBinaryIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchChannelBinaryIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchChannelBinaryIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchChannelBinaryIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchChannelBinaryIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchIssueResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchIssueResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchIssueResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchIssueResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchIssueResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchIssueResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchMissingOwnerResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchMissingOwnerResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchMissingOwnerResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchMissingOwnerResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchMissingOwnerResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchMissingOwnerResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchOwnerResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchOwnerResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchOwnerResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchOwnerResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchOwnerResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchOwnerResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchPackageResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchPackageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchPackageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchPackageResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchPackageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchPackageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchPackageIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchPackageIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchPackageIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchPackageIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchPackageIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchPackageIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchPackageIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchPackageIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchPackageIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchPackageIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchPackageIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchPackageIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchPersonResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchPersonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchPersonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchPersonResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchPersonResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchPersonResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchProjectResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchProjectResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchProjectResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchProjectResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchProjectResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchProjectResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchProjectIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchProjectIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchProjectIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchProjectIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchProjectIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchProjectIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchProjectIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchProjectIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchProjectIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchProjectIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchProjectIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchProjectIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchPublishedBinaryIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchPublishedBinaryIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchPublishedBinaryIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchPublishedBinaryIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchPublishedBinaryIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchPublishedBinaryIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchPublishedPatternIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchPublishedPatternIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchPublishedPatternIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchPublishedPatternIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchPublishedPatternIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchPublishedPatternIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchPublishedRepoinfoIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchPublishedRepoinfoIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchPublishedRepoinfoIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchPublishedRepoinfoIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchPublishedRepoinfoIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchPublishedRepoinfoIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchReleasedBinaryResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchReleasedBinaryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchReleasedBinaryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchReleasedBinaryResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchReleasedBinaryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchReleasedBinaryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchReleasedBinaryIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchReleasedBinaryIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchReleasedBinaryIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchReleasedBinaryIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchReleasedBinaryIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchReleasedBinaryIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchRepositoryIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchRepositoryIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchRepositoryIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchRepositoryIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchRepositoryIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchRepositoryIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchRequestResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchRequestResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchRequestResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchRequestResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSearchRequestIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSearchRequestIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSearchRequestIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSearchRequestIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSearchRequestIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSearchRequestIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetServiceResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetServiceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetServiceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSourceProjectNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteSourceProjectNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSourceProjectNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNameAttributeResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNameAttributeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNameAttributeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSourceProjectNameAttributeAttributeNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteSourceProjectNameAttributeAttributeNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSourceProjectNameAttributeAttributeNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNameAttributeAttributeNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNameAttributeAttributeNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNameAttributeAttributeNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNameAttributeAttributeNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNameAttributeAttributeNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNameAttributeAttributeNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNameConfigResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNameConfigResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNameConfigResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutSourceProjectNameConfigResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutSourceProjectNameConfigResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutSourceProjectNameConfigResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNameKeyinfoResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNameKeyinfoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNameKeyinfoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNameMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNameMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNameMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutSourceProjectNameMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutSourceProjectNameMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutSourceProjectNameMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePatternResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePatternResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePatternResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSourceProjectNamePatternFileNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteSourceProjectNamePatternFileNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSourceProjectNamePatternFileNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePatternFileNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePatternFileNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePatternFileNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutSourceProjectNamePatternFileNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutSourceProjectNamePatternFileNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutSourceProjectNamePatternFileNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNameProjectResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNameProjectResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNameProjectResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNameProjectHistoryResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNameProjectHistoryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNameProjectHistoryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNameProjectFileNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNameProjectFileNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNameProjectFileNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSourceProjectNamePubkeyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteSourceProjectNamePubkeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSourceProjectNamePubkeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePubkeyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePubkeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePubkeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSourceProjectNamePackageNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteSourceProjectNamePackageNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSourceProjectNamePackageNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePackageNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePackageNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePackageNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePackageNameAttributeResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePackageNameAttributeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePackageNameAttributeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNameAttributeResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNameAttributeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNameAttributeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSourceProjectNamePackageNameAttributeAttributeNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteSourceProjectNamePackageNameAttributeAttributeNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSourceProjectNamePackageNameAttributeAttributeNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePackageNameAttributeAttributeNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePackageNameAttributeAttributeNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePackageNameAttributeAttributeNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNameAttributeAttributeNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNameAttributeAttributeNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNameAttributeAttributeNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePackageNameHistoryResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePackageNameHistoryResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePackageNameHistoryResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePackageNameMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePackageNameMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePackageNameMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutSourceProjectNamePackageNameMetaResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutSourceProjectNamePackageNameMetaResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutSourceProjectNamePackageNameMetaResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePackageNameBinaryFilenameAttributeResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePackageNameBinaryFilenameAttributeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePackageNameBinaryFilenameAttributeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNameBinaryFilenameAttributeResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNameBinaryFilenameAttributeResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNameBinaryFilenameAttributeResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteSourceProjectNamePackageNameFileNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteSourceProjectNamePackageNameFileNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteSourceProjectNamePackageNameFileNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePackageNameFileNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePackageNameFileNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePackageNameFileNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutSourceProjectNamePackageNameFileNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutSourceProjectNamePackageNameFileNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutSourceProjectNamePackageNameFileNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdAddcontainersResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdAddcontainersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdAddcontainersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdBranchResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdBranchResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdBranchResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdCollectbuildenvResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdCollectbuildenvResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdCollectbuildenvResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdCommitResponse struct { - Body []byte - HTTPResponse *http.Response - XML200 *struct { - Comment *string `json:"comment,omitempty"` - Requestid *string `json:"requestid,omitempty"` - Rev *string `json:"rev,omitempty"` - Srcmd5 *string `json:"srcmd5,omitempty"` - Time *string `json:"time,omitempty"` - User *string `json:"user,omitempty"` - Version *string `json:"version,omitempty"` - Vrev *string `json:"vrev,omitempty"` - } -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdCommitResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdCommitResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdCommitfilelistResponse struct { - Body []byte - HTTPResponse *http.Response - XML200 *struct { - Comment *string `json:"comment,omitempty"` - Requestid *string `json:"requestid,omitempty"` - Rev *string `json:"rev,omitempty"` - Srcmd5 *string `json:"srcmd5,omitempty"` - Time *string `json:"time,omitempty"` - User *string `json:"user,omitempty"` - Version *string `json:"version,omitempty"` - Vrev *string `json:"vrev,omitempty"` - } -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdCommitfilelistResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdCommitfilelistResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdCopyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdCopyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdCopyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdDeleteuploadrevResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdDeleteuploadrevResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdDeleteuploadrevResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdDiffResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdDiffResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdDiffResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdForkResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdForkResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdForkResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdGetprojectservicesResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdGetprojectservicesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdGetprojectservicesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdInstantiateResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdInstantiateResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdInstantiateResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdLinkdiffResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdLinkdiffResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdLinkdiffResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdLinktobranchResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdLinktobranchResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdLinktobranchResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdMergeserviceResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdMergeserviceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdMergeserviceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdRebuildResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdRebuildResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdRebuildResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdReleaseResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdReleaseResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdReleaseResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdRemoveFlagResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdRemoveFlagResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdRemoveFlagResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdRunserviceResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdRunserviceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdRunserviceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdServicediffResponse struct { - Body []byte - HTTPResponse *http.Response - XML200 *struct { - Name *interface{} `json:"name,omitempty"` - } -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdServicediffResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdServicediffResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdSetFlagResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdSetFlagResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdSetFlagResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdShowlinkedResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdShowlinkedResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdShowlinkedResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdUndeleteResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdUndeleteResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdUndeleteResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdUnlockResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdUnlockResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdUnlockResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdUpdatepatchinfoResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdUpdatepatchinfoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdUpdatepatchinfoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamePackageNamecmdWaitserviceResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamePackageNamecmdWaitserviceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamePackageNamecmdWaitserviceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNamePackageNameviewInfoResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNamePackageNameviewInfoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNamePackageNameviewInfoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdAddchannelsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdAddchannelsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdAddchannelsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdCopyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdCopyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdCopyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdCreatekeyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdCreatekeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdCreatekeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdCreatemaintenanceincidentResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdCreatemaintenanceincidentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdCreatemaintenanceincidentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdCreatepatchinfoResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdCreatepatchinfoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdCreatepatchinfoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdExtendkeyResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdExtendkeyResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdExtendkeyResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdFreezelinkResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdFreezelinkResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdFreezelinkResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdLockResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdLockResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdLockResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdModifychannelsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdModifychannelsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdModifychannelsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdMoveResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdMoveResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdMoveResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdReleaseResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdReleaseResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdReleaseResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdRemoveFlagResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdRemoveFlagResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdRemoveFlagResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdSetFlagResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdSetFlagResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdSetFlagResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdShowlinkedResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdShowlinkedResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdShowlinkedResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdUndeleteResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdUndeleteResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdUndeleteResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourceProjectNamecmdUnlockResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourceProjectNamecmdUnlockResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourceProjectNamecmdUnlockResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetSourceProjectNameviewInfoResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetSourceProjectNameviewInfoResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetSourceProjectNameviewInfoResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourcecmdBranchResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourcecmdBranchResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourcecmdBranchResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourcecmdCreatemaintenanceincidentResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostSourcecmdCreatemaintenanceincidentResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourcecmdCreatemaintenanceincidentResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostSourcecmdOrderkiwireposResponse struct { - Body []byte - HTTPResponse *http.Response - XML200 *struct { - Name *string `json:"name,omitempty"` - Repository *[]struct { - Source *struct { - Path *string `json:"path,omitempty"` - } `json:"source,omitempty"` - } `json:"repository,omitempty"` - Schemaversion *string `json:"schemaversion,omitempty"` - } -} - -// Status returns HTTPResponse.Status -func (r PostSourcecmdOrderkiwireposResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostSourcecmdOrderkiwireposResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStagingProjectNameBacklogResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStagingProjectNameBacklogResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStagingProjectNameBacklogResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteStagingProjectNameExcludedRequestsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteStagingProjectNameExcludedRequestsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteStagingProjectNameExcludedRequestsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStagingProjectNameExcludedRequestsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStagingProjectNameExcludedRequestsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStagingProjectNameExcludedRequestsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStagingProjectNameExcludedRequestsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStagingProjectNameExcludedRequestsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStagingProjectNameExcludedRequestsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteStagingProjectNameStagedRequestsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteStagingProjectNameStagedRequestsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteStagingProjectNameStagedRequestsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStagingProjectNameStagingProjectsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStagingProjectNameStagingProjectsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStagingProjectNameStagingProjectsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStagingProjectNameStagingProjectsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStagingProjectNameStagingProjectsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStagingProjectNameStagingProjectsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStagingProjectNameStagingProjectsStagingProjectNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStagingProjectNameStagingProjectsStagingProjectNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStagingProjectNameStagingProjectsStagingProjectNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStagingProjectNameStagingProjectsStagingProjectNameAcceptResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStagingProjectNameStagingProjectsStagingProjectNameAcceptResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStagingProjectNameStagingProjectsStagingProjectNameAcceptResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteStagingProjectNameWorkflowResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteStagingProjectNameWorkflowResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteStagingProjectNameWorkflowResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStagingProjectNameWorkflowResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStagingProjectNameWorkflowResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStagingProjectNameWorkflowResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PutStagingProjectNameWorkflowResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PutStagingProjectNameWorkflowResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PutStagingProjectNameWorkflowResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatisticsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatisticsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatisticsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatisticsActiveRequestCreatorsProjectNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatisticsActiveRequestCreatorsProjectNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatisticsActiveRequestCreatorsProjectNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatisticsActivityProjectNamePackageNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatisticsActivityProjectNamePackageNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatisticsActivityProjectNamePackageNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatisticsAddedTimestampProjectNamePackageNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatisticsAddedTimestampProjectNamePackageNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatisticsAddedTimestampProjectNamePackageNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatisticsGlobalCountersResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatisticsGlobalCountersResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatisticsGlobalCountersResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatisticsLatestAddedResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatisticsLatestAddedResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatisticsLatestAddedResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatisticsLatestUpdatedResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatisticsLatestUpdatedResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatisticsLatestUpdatedResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatisticsMaintenanceStatisticsProjectNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatisticsMaintenanceStatisticsProjectNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatisticsMaintenanceStatisticsProjectNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatisticsMostActivePackagesResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatisticsMostActivePackagesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatisticsMostActivePackagesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatisticsMostActiveProjectsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatisticsMostActiveProjectsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatisticsMostActiveProjectsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatisticsUpdatedTimestampProjectNamePackageNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatisticsUpdatedTimestampProjectNamePackageNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatisticsUpdatedTimestampProjectNamePackageNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatusMessagesResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatusMessagesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusMessagesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStatusMessagesResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStatusMessagesResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStatusMessagesResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteStatusMessagesIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteStatusMessagesIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteStatusMessagesIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatusMessagesIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatusMessagesIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusMessagesIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatusProjectProjectNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatusProjectProjectNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusProjectProjectNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatusWorkerstatusResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatusWorkerstatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusWorkerstatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatusMessageResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatusMessageResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusMessageResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatusReportsProjectsProjectNameRequiredChecksResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatusReportsProjectsProjectNameRequiredChecksResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusReportsProjectsProjectNameRequiredChecksResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStatusReportsProjectsProjectNameRequiredChecksResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStatusReportsProjectsProjectNameRequiredChecksResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStatusReportsProjectsProjectNameRequiredChecksResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetStatusReportsRequestsIdReportsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetStatusReportsRequestsIdReportsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetStatusReportsRequestsIdReportsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostStatusReportsRequestsIdReportsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostStatusReportsRequestsIdReportsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostStatusReportsRequestsIdReportsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostTriggerResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostTriggerResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostTriggerResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostTriggerRebuildResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostTriggerRebuildResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostTriggerRebuildResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostTriggerReleaseResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostTriggerReleaseResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostTriggerReleaseResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostTriggerRunserviceResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostTriggerRunserviceResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostTriggerRunserviceResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostTriggerWebhookResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostTriggerWebhookResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostTriggerWebhookResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostTriggerWorkflowResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostTriggerWorkflowResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostTriggerWorkflowResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetWorkerStatusResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetWorkerStatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetWorkerStatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetWorkerStatusResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetWorkerStatusResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetWorkerStatusResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type GetWorkerArchitectureNameWorkerIdResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r GetWorkerArchitectureNameWorkerIdResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetWorkerArchitectureNameWorkerIdResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -type PostWorkercmdCheckconstraintsResponse struct { - Body []byte - HTTPResponse *http.Response -} - -// Status returns HTTPResponse.Status -func (r PostWorkercmdCheckconstraintsResponse) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostWorkercmdCheckconstraintsResponse) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 -} - -// GetAboutWithResponse request returning *GetAboutResponse -func (c *ClientWithResponses) GetAboutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAboutResponse, error) { - rsp, err := c.GetAbout(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAboutResponse(rsp) -} - -// GetAnnouncementsWithResponse request returning *GetAnnouncementsResponse -func (c *ClientWithResponses) GetAnnouncementsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAnnouncementsResponse, error) { - rsp, err := c.GetAnnouncements(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAnnouncementsResponse(rsp) -} - -// PostAnnouncementsWithBodyWithResponse request with arbitrary body returning *PostAnnouncementsResponse -func (c *ClientWithResponses) PostAnnouncementsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAnnouncementsResponse, error) { - rsp, err := c.PostAnnouncementsWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostAnnouncementsResponse(rsp) -} - -// DeleteAnnouncementsAnnouncementIdWithResponse request returning *DeleteAnnouncementsAnnouncementIdResponse -func (c *ClientWithResponses) DeleteAnnouncementsAnnouncementIdWithResponse(ctx context.Context, announcementId int, reqEditors ...RequestEditorFn) (*DeleteAnnouncementsAnnouncementIdResponse, error) { - rsp, err := c.DeleteAnnouncementsAnnouncementId(ctx, announcementId, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteAnnouncementsAnnouncementIdResponse(rsp) -} - -// GetAnnouncementsAnnouncementIdWithResponse request returning *GetAnnouncementsAnnouncementIdResponse -func (c *ClientWithResponses) GetAnnouncementsAnnouncementIdWithResponse(ctx context.Context, announcementId int, reqEditors ...RequestEditorFn) (*GetAnnouncementsAnnouncementIdResponse, error) { - rsp, err := c.GetAnnouncementsAnnouncementId(ctx, announcementId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAnnouncementsAnnouncementIdResponse(rsp) -} - -// PutAnnouncementsAnnouncementIdWithBodyWithResponse request with arbitrary body returning *PutAnnouncementsAnnouncementIdResponse -func (c *ClientWithResponses) PutAnnouncementsAnnouncementIdWithBodyWithResponse(ctx context.Context, announcementId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAnnouncementsAnnouncementIdResponse, error) { - rsp, err := c.PutAnnouncementsAnnouncementIdWithBody(ctx, announcementId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutAnnouncementsAnnouncementIdResponse(rsp) -} - -// GetArchitecturesWithResponse request returning *GetArchitecturesResponse -func (c *ClientWithResponses) GetArchitecturesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetArchitecturesResponse, error) { - rsp, err := c.GetArchitectures(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetArchitecturesResponse(rsp) -} - -// GetArchitecturesArchitectureNameWithResponse request returning *GetArchitecturesArchitectureNameResponse -func (c *ClientWithResponses) GetArchitecturesArchitectureNameWithResponse(ctx context.Context, architectureName string, reqEditors ...RequestEditorFn) (*GetArchitecturesArchitectureNameResponse, error) { - rsp, err := c.GetArchitecturesArchitectureName(ctx, architectureName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetArchitecturesArchitectureNameResponse(rsp) -} - -// GetAttributeWithResponse request returning *GetAttributeResponse -func (c *ClientWithResponses) GetAttributeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAttributeResponse, error) { - rsp, err := c.GetAttribute(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAttributeResponse(rsp) -} - -// DeleteAttributeNamespaceWithResponse request returning *DeleteAttributeNamespaceResponse -func (c *ClientWithResponses) DeleteAttributeNamespaceWithResponse(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*DeleteAttributeNamespaceResponse, error) { - rsp, err := c.DeleteAttributeNamespace(ctx, namespace, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteAttributeNamespaceResponse(rsp) -} - -// GetAttributeNamespaceWithResponse request returning *GetAttributeNamespaceResponse -func (c *ClientWithResponses) GetAttributeNamespaceWithResponse(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*GetAttributeNamespaceResponse, error) { - rsp, err := c.GetAttributeNamespace(ctx, namespace, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAttributeNamespaceResponse(rsp) -} - -// DeleteAttributeNamespaceMetaWithResponse request returning *DeleteAttributeNamespaceMetaResponse -func (c *ClientWithResponses) DeleteAttributeNamespaceMetaWithResponse(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*DeleteAttributeNamespaceMetaResponse, error) { - rsp, err := c.DeleteAttributeNamespaceMeta(ctx, namespace, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteAttributeNamespaceMetaResponse(rsp) -} - -// GetAttributeNamespaceMetaWithResponse request returning *GetAttributeNamespaceMetaResponse -func (c *ClientWithResponses) GetAttributeNamespaceMetaWithResponse(ctx context.Context, namespace string, reqEditors ...RequestEditorFn) (*GetAttributeNamespaceMetaResponse, error) { - rsp, err := c.GetAttributeNamespaceMeta(ctx, namespace, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAttributeNamespaceMetaResponse(rsp) -} - -// PostAttributeNamespaceMetaWithBodyWithResponse request with arbitrary body returning *PostAttributeNamespaceMetaResponse -func (c *ClientWithResponses) PostAttributeNamespaceMetaWithBodyWithResponse(ctx context.Context, namespace string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAttributeNamespaceMetaResponse, error) { - rsp, err := c.PostAttributeNamespaceMetaWithBody(ctx, namespace, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostAttributeNamespaceMetaResponse(rsp) -} - -// PutAttributeNamespaceMetaWithBodyWithResponse request with arbitrary body returning *PutAttributeNamespaceMetaResponse -func (c *ClientWithResponses) PutAttributeNamespaceMetaWithBodyWithResponse(ctx context.Context, namespace string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAttributeNamespaceMetaResponse, error) { - rsp, err := c.PutAttributeNamespaceMetaWithBody(ctx, namespace, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutAttributeNamespaceMetaResponse(rsp) -} - -// DeleteAttributeNamespaceAttributeNameWithResponse request returning *DeleteAttributeNamespaceAttributeNameResponse -func (c *ClientWithResponses) DeleteAttributeNamespaceAttributeNameWithResponse(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*DeleteAttributeNamespaceAttributeNameResponse, error) { - rsp, err := c.DeleteAttributeNamespaceAttributeName(ctx, namespace, attributeName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteAttributeNamespaceAttributeNameResponse(rsp) -} - -// DeleteAttributeNamespaceAttributeNameMetaWithResponse request returning *DeleteAttributeNamespaceAttributeNameMetaResponse -func (c *ClientWithResponses) DeleteAttributeNamespaceAttributeNameMetaWithResponse(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*DeleteAttributeNamespaceAttributeNameMetaResponse, error) { - rsp, err := c.DeleteAttributeNamespaceAttributeNameMeta(ctx, namespace, attributeName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteAttributeNamespaceAttributeNameMetaResponse(rsp) -} - -// GetAttributeNamespaceAttributeNameMetaWithResponse request returning *GetAttributeNamespaceAttributeNameMetaResponse -func (c *ClientWithResponses) GetAttributeNamespaceAttributeNameMetaWithResponse(ctx context.Context, namespace string, attributeName string, reqEditors ...RequestEditorFn) (*GetAttributeNamespaceAttributeNameMetaResponse, error) { - rsp, err := c.GetAttributeNamespaceAttributeNameMeta(ctx, namespace, attributeName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetAttributeNamespaceAttributeNameMetaResponse(rsp) -} - -// PostAttributeNamespaceAttributeNameMetaWithBodyWithResponse request with arbitrary body returning *PostAttributeNamespaceAttributeNameMetaResponse -func (c *ClientWithResponses) PostAttributeNamespaceAttributeNameMetaWithBodyWithResponse(ctx context.Context, namespace string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAttributeNamespaceAttributeNameMetaResponse, error) { - rsp, err := c.PostAttributeNamespaceAttributeNameMetaWithBody(ctx, namespace, attributeName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostAttributeNamespaceAttributeNameMetaResponse(rsp) -} - -// PutAttributeNamespaceAttributeNameMetaWithBodyWithResponse request with arbitrary body returning *PutAttributeNamespaceAttributeNameMetaResponse -func (c *ClientWithResponses) PutAttributeNamespaceAttributeNameMetaWithBodyWithResponse(ctx context.Context, namespace string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAttributeNamespaceAttributeNameMetaResponse, error) { - rsp, err := c.PutAttributeNamespaceAttributeNameMetaWithBody(ctx, namespace, attributeName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutAttributeNamespaceAttributeNameMetaResponse(rsp) -} - -// GetBuildWithResponse request returning *GetBuildResponse -func (c *ClientWithResponses) GetBuildWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBuildResponse, error) { - rsp, err := c.GetBuild(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildResponse(rsp) -} - -// GetBuildWorkerstatusWithResponse request returning *GetBuildWorkerstatusResponse -func (c *ClientWithResponses) GetBuildWorkerstatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBuildWorkerstatusResponse, error) { - rsp, err := c.GetBuildWorkerstatus(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildWorkerstatusResponse(rsp) -} - -// GetBuildProjectNameWithResponse request returning *GetBuildProjectNameResponse -func (c *ClientWithResponses) GetBuildProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameResponse, error) { - rsp, err := c.GetBuildProjectName(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameResponse(rsp) -} - -// PostBuildProjectNameWithResponse request returning *PostBuildProjectNameResponse -func (c *ClientWithResponses) PostBuildProjectNameWithResponse(ctx context.Context, projectName string, params *PostBuildProjectNameParams, reqEditors ...RequestEditorFn) (*PostBuildProjectNameResponse, error) { - rsp, err := c.PostBuildProjectName(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostBuildProjectNameResponse(rsp) -} - -// GetBuildProjectNameResultWithResponse request returning *GetBuildProjectNameResultResponse -func (c *ClientWithResponses) GetBuildProjectNameResultWithResponse(ctx context.Context, projectName string, params *GetBuildProjectNameResultParams, reqEditors ...RequestEditorFn) (*GetBuildProjectNameResultResponse, error) { - rsp, err := c.GetBuildProjectNameResult(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameResultResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameWithResponse request returning *GetBuildProjectNameRepositoryNameResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameWithResponse(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryName(ctx, projectName, repositoryName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameBuildconfigWithResponse request returning *GetBuildProjectNameRepositoryNameBuildconfigResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameBuildconfigWithResponse(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameBuildconfigResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameBuildconfig(ctx, projectName, repositoryName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameBuildconfigResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, params *GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoParams, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo(ctx, projectName, repositoryName, architectureName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse(rsp) -} - -// PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoWithResponse request returning *PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse -func (c *ClientWithResponses) PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse, error) { - rsp, err := c.PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfo(ctx, projectName, repositoryName, architectureName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, params *GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryParams, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNameJobhistory(ctx, projectName, repositoryName, architectureName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNameJobhistoryResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNameRepositoryWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNameRepositoryResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNameRepositoryWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNameRepositoryResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNameRepository(ctx, projectName, repositoryName, architectureName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNameRepositoryResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNamePackageName(ctx, projectName, repositoryName, architectureName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenv(ctx, projectName, repositoryName, architectureName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfo(ctx, projectName, repositoryName, architectureName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse(rsp) -} - -// PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithBodyWithResponse request with arbitrary body returning *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse -func (c *ClientWithResponses) PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse, error) { - rsp, err := c.PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithBody(ctx, projectName, repositoryName, architectureName, packageName, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse(rsp) -} - -func (c *ClientWithResponses) PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithTextBodyWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, params *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoParams, body PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoTextRequestBody, reqEditors ...RequestEditorFn) (*PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse, error) { - rsp, err := c.PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithTextBody(ctx, projectName, repositoryName, architectureName, packageName, params, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistory(ctx, projectName, repositoryName, architectureName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse(rsp) -} - -// PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryWithResponse request returning *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse -func (c *ClientWithResponses) PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse, error) { - rsp, err := c.PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistory(ctx, projectName, repositoryName, architectureName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatus(ctx, projectName, repositoryName, architectureName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLog(ctx, projectName, repositoryName, architectureName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReason(ctx, projectName, repositoryName, architectureName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatistics(ctx, projectName, repositoryName, architectureName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatus(ctx, projectName, repositoryName, architectureName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse(rsp) -} - -// PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusWithResponse request returning *PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse -func (c *ClientWithResponses) PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, reqEditors ...RequestEditorFn) (*PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse, error) { - rsp, err := c.PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatus(ctx, projectName, repositoryName, architectureName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse(rsp) -} - -// DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithResponse request returning *DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse -func (c *ClientWithResponses) DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName []DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName, fileName string, reqEditors ...RequestEditorFn) (*DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse, error) { - rsp, err := c.DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName(ctx, projectName, repositoryName, architectureName, packageName, fileName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, fileName string, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileName(ctx, projectName, repositoryName, architectureName, packageName, fileName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse(rsp) -} - -// PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithBodyWithResponse request with arbitrary body returning *PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse -func (c *ClientWithResponses) PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName []PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameParamsPackageName, fileName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse, error) { - rsp, err := c.PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithBody(ctx, projectName, repositoryName, architectureName, packageName, fileName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse(rsp) -} - -// GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoWithResponse request returning *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoResponse -func (c *ClientWithResponses) GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, packageName string, fileName string, params *GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoParams, reqEditors ...RequestEditorFn) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoResponse, error) { - rsp, err := c.GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfo(ctx, projectName, repositoryName, architectureName, packageName, fileName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoResponse(rsp) -} - -// DeleteCommentCommentIdWithResponse request returning *DeleteCommentCommentIdResponse -func (c *ClientWithResponses) DeleteCommentCommentIdWithResponse(ctx context.Context, commentId int, reqEditors ...RequestEditorFn) (*DeleteCommentCommentIdResponse, error) { - rsp, err := c.DeleteCommentCommentId(ctx, commentId, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteCommentCommentIdResponse(rsp) -} - -// GetCommentCommentIdHistoryWithResponse request returning *GetCommentCommentIdHistoryResponse -func (c *ClientWithResponses) GetCommentCommentIdHistoryWithResponse(ctx context.Context, commentId int, reqEditors ...RequestEditorFn) (*GetCommentCommentIdHistoryResponse, error) { - rsp, err := c.GetCommentCommentIdHistory(ctx, commentId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetCommentCommentIdHistoryResponse(rsp) -} - -// GetCommentsPackageProjectNamePackageNameWithResponse request returning *GetCommentsPackageProjectNamePackageNameResponse -func (c *ClientWithResponses) GetCommentsPackageProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*GetCommentsPackageProjectNamePackageNameResponse, error) { - rsp, err := c.GetCommentsPackageProjectNamePackageName(ctx, projectName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetCommentsPackageProjectNamePackageNameResponse(rsp) -} - -// PostCommentsPackageProjectNamePackageNameWithBodyWithResponse request with arbitrary body returning *PostCommentsPackageProjectNamePackageNameResponse -func (c *ClientWithResponses) PostCommentsPackageProjectNamePackageNameWithBodyWithResponse(ctx context.Context, projectName string, packageName string, params *PostCommentsPackageProjectNamePackageNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCommentsPackageProjectNamePackageNameResponse, error) { - rsp, err := c.PostCommentsPackageProjectNamePackageNameWithBody(ctx, projectName, packageName, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostCommentsPackageProjectNamePackageNameResponse(rsp) -} - -func (c *ClientWithResponses) PostCommentsPackageProjectNamePackageNameWithTextBodyWithResponse(ctx context.Context, projectName string, packageName string, params *PostCommentsPackageProjectNamePackageNameParams, body PostCommentsPackageProjectNamePackageNameTextRequestBody, reqEditors ...RequestEditorFn) (*PostCommentsPackageProjectNamePackageNameResponse, error) { - rsp, err := c.PostCommentsPackageProjectNamePackageNameWithTextBody(ctx, projectName, packageName, params, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostCommentsPackageProjectNamePackageNameResponse(rsp) -} - -// GetCommentsProjectProjectNameWithResponse request returning *GetCommentsProjectProjectNameResponse -func (c *ClientWithResponses) GetCommentsProjectProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetCommentsProjectProjectNameResponse, error) { - rsp, err := c.GetCommentsProjectProjectName(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetCommentsProjectProjectNameResponse(rsp) -} - -// PostCommentsProjectProjectNameWithBodyWithResponse request with arbitrary body returning *PostCommentsProjectProjectNameResponse -func (c *ClientWithResponses) PostCommentsProjectProjectNameWithBodyWithResponse(ctx context.Context, projectName string, params *PostCommentsProjectProjectNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCommentsProjectProjectNameResponse, error) { - rsp, err := c.PostCommentsProjectProjectNameWithBody(ctx, projectName, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostCommentsProjectProjectNameResponse(rsp) -} - -func (c *ClientWithResponses) PostCommentsProjectProjectNameWithTextBodyWithResponse(ctx context.Context, projectName string, params *PostCommentsProjectProjectNameParams, body PostCommentsProjectProjectNameTextRequestBody, reqEditors ...RequestEditorFn) (*PostCommentsProjectProjectNameResponse, error) { - rsp, err := c.PostCommentsProjectProjectNameWithTextBody(ctx, projectName, params, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostCommentsProjectProjectNameResponse(rsp) -} - -// GetCommentsRequestIdWithResponse request returning *GetCommentsRequestIdResponse -func (c *ClientWithResponses) GetCommentsRequestIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetCommentsRequestIdResponse, error) { - rsp, err := c.GetCommentsRequestId(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetCommentsRequestIdResponse(rsp) -} - -// PostCommentsRequestIdWithBodyWithResponse request with arbitrary body returning *PostCommentsRequestIdResponse -func (c *ClientWithResponses) PostCommentsRequestIdWithBodyWithResponse(ctx context.Context, id int, params *PostCommentsRequestIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCommentsRequestIdResponse, error) { - rsp, err := c.PostCommentsRequestIdWithBody(ctx, id, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostCommentsRequestIdResponse(rsp) -} - -func (c *ClientWithResponses) PostCommentsRequestIdWithTextBodyWithResponse(ctx context.Context, id int, params *PostCommentsRequestIdParams, body PostCommentsRequestIdTextRequestBody, reqEditors ...RequestEditorFn) (*PostCommentsRequestIdResponse, error) { - rsp, err := c.PostCommentsRequestIdWithTextBody(ctx, id, params, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostCommentsRequestIdResponse(rsp) -} - -// GetCommentsUserWithResponse request returning *GetCommentsUserResponse -func (c *ClientWithResponses) GetCommentsUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCommentsUserResponse, error) { - rsp, err := c.GetCommentsUser(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetCommentsUserResponse(rsp) -} - -// GetConfigurationWithResponse request returning *GetConfigurationResponse -func (c *ClientWithResponses) GetConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigurationResponse, error) { - rsp, err := c.GetConfiguration(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetConfigurationResponse(rsp) -} - -// PutConfigurationWithBodyWithResponse request with arbitrary body returning *PutConfigurationResponse -func (c *ClientWithResponses) PutConfigurationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutConfigurationResponse, error) { - rsp, err := c.PutConfigurationWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutConfigurationResponse(rsp) -} - -// GetDistributionsWithResponse request returning *GetDistributionsResponse -func (c *ClientWithResponses) GetDistributionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDistributionsResponse, error) { - rsp, err := c.GetDistributions(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetDistributionsResponse(rsp) -} - -// PostDistributionsWithBodyWithResponse request with arbitrary body returning *PostDistributionsResponse -func (c *ClientWithResponses) PostDistributionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostDistributionsResponse, error) { - rsp, err := c.PostDistributionsWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostDistributionsResponse(rsp) -} - -// PutDistributionsBulkReplaceWithBodyWithResponse request with arbitrary body returning *PutDistributionsBulkReplaceResponse -func (c *ClientWithResponses) PutDistributionsBulkReplaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDistributionsBulkReplaceResponse, error) { - rsp, err := c.PutDistributionsBulkReplaceWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutDistributionsBulkReplaceResponse(rsp) -} - -// GetDistributionsIncludeRemotesWithResponse request returning *GetDistributionsIncludeRemotesResponse -func (c *ClientWithResponses) GetDistributionsIncludeRemotesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDistributionsIncludeRemotesResponse, error) { - rsp, err := c.GetDistributionsIncludeRemotes(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetDistributionsIncludeRemotesResponse(rsp) -} - -// DeleteDistributionsDistributionIdWithResponse request returning *DeleteDistributionsDistributionIdResponse -func (c *ClientWithResponses) DeleteDistributionsDistributionIdWithResponse(ctx context.Context, distributionId int, reqEditors ...RequestEditorFn) (*DeleteDistributionsDistributionIdResponse, error) { - rsp, err := c.DeleteDistributionsDistributionId(ctx, distributionId, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteDistributionsDistributionIdResponse(rsp) -} - -// GetDistributionsDistributionIdWithResponse request returning *GetDistributionsDistributionIdResponse -func (c *ClientWithResponses) GetDistributionsDistributionIdWithResponse(ctx context.Context, distributionId int, reqEditors ...RequestEditorFn) (*GetDistributionsDistributionIdResponse, error) { - rsp, err := c.GetDistributionsDistributionId(ctx, distributionId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetDistributionsDistributionIdResponse(rsp) -} - -// PutDistributionsDistributionIdWithBodyWithResponse request with arbitrary body returning *PutDistributionsDistributionIdResponse -func (c *ClientWithResponses) PutDistributionsDistributionIdWithBodyWithResponse(ctx context.Context, distributionId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutDistributionsDistributionIdResponse, error) { - rsp, err := c.PutDistributionsDistributionIdWithBody(ctx, distributionId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutDistributionsDistributionIdResponse(rsp) -} - -// GetGroupWithResponse request returning *GetGroupResponse -func (c *ClientWithResponses) GetGroupWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGroupResponse, error) { - rsp, err := c.GetGroup(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetGroupResponse(rsp) -} - -// DeleteGroupGroupTitleWithResponse request returning *DeleteGroupGroupTitleResponse -func (c *ClientWithResponses) DeleteGroupGroupTitleWithResponse(ctx context.Context, groupTitle string, reqEditors ...RequestEditorFn) (*DeleteGroupGroupTitleResponse, error) { - rsp, err := c.DeleteGroupGroupTitle(ctx, groupTitle, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteGroupGroupTitleResponse(rsp) -} - -// GetGroupGroupTitleWithResponse request returning *GetGroupGroupTitleResponse -func (c *ClientWithResponses) GetGroupGroupTitleWithResponse(ctx context.Context, groupTitle string, reqEditors ...RequestEditorFn) (*GetGroupGroupTitleResponse, error) { - rsp, err := c.GetGroupGroupTitle(ctx, groupTitle, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetGroupGroupTitleResponse(rsp) -} - -// PostGroupGroupTitleWithResponse request returning *PostGroupGroupTitleResponse -func (c *ClientWithResponses) PostGroupGroupTitleWithResponse(ctx context.Context, groupTitle string, params *PostGroupGroupTitleParams, reqEditors ...RequestEditorFn) (*PostGroupGroupTitleResponse, error) { - rsp, err := c.PostGroupGroupTitle(ctx, groupTitle, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostGroupGroupTitleResponse(rsp) -} - -// PutGroupGroupTitleWithBodyWithResponse request with arbitrary body returning *PutGroupGroupTitleResponse -func (c *ClientWithResponses) PutGroupGroupTitleWithBodyWithResponse(ctx context.Context, groupTitle string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutGroupGroupTitleResponse, error) { - rsp, err := c.PutGroupGroupTitleWithBody(ctx, groupTitle, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutGroupGroupTitleResponse(rsp) -} - -// GetImageTemplatesWithResponse request returning *GetImageTemplatesResponse -func (c *ClientWithResponses) GetImageTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetImageTemplatesResponse, error) { - rsp, err := c.GetImageTemplates(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetImageTemplatesResponse(rsp) -} - -// GetIssueTrackersWithResponse request returning *GetIssueTrackersResponse -func (c *ClientWithResponses) GetIssueTrackersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetIssueTrackersResponse, error) { - rsp, err := c.GetIssueTrackers(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetIssueTrackersResponse(rsp) -} - -// PostIssueTrackersWithBodyWithResponse request with arbitrary body returning *PostIssueTrackersResponse -func (c *ClientWithResponses) PostIssueTrackersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostIssueTrackersResponse, error) { - rsp, err := c.PostIssueTrackersWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostIssueTrackersResponse(rsp) -} - -// DeleteIssueTrackersIssueTrackerNameWithResponse request returning *DeleteIssueTrackersIssueTrackerNameResponse -func (c *ClientWithResponses) DeleteIssueTrackersIssueTrackerNameWithResponse(ctx context.Context, issueTrackerName string, reqEditors ...RequestEditorFn) (*DeleteIssueTrackersIssueTrackerNameResponse, error) { - rsp, err := c.DeleteIssueTrackersIssueTrackerName(ctx, issueTrackerName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteIssueTrackersIssueTrackerNameResponse(rsp) -} - -// GetIssueTrackersIssueTrackerNameWithResponse request returning *GetIssueTrackersIssueTrackerNameResponse -func (c *ClientWithResponses) GetIssueTrackersIssueTrackerNameWithResponse(ctx context.Context, issueTrackerName string, reqEditors ...RequestEditorFn) (*GetIssueTrackersIssueTrackerNameResponse, error) { - rsp, err := c.GetIssueTrackersIssueTrackerName(ctx, issueTrackerName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetIssueTrackersIssueTrackerNameResponse(rsp) -} - -// PutIssueTrackersIssueTrackerNameWithBodyWithResponse request with arbitrary body returning *PutIssueTrackersIssueTrackerNameResponse -func (c *ClientWithResponses) PutIssueTrackersIssueTrackerNameWithBodyWithResponse(ctx context.Context, issueTrackerName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutIssueTrackersIssueTrackerNameResponse, error) { - rsp, err := c.PutIssueTrackersIssueTrackerNameWithBody(ctx, issueTrackerName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutIssueTrackersIssueTrackerNameResponse(rsp) -} - -// GetIssueTrackersIssueTrackerNameIssuesIssueNameWithResponse request returning *GetIssueTrackersIssueTrackerNameIssuesIssueNameResponse -func (c *ClientWithResponses) GetIssueTrackersIssueTrackerNameIssuesIssueNameWithResponse(ctx context.Context, issueTrackerName string, issueName string, reqEditors ...RequestEditorFn) (*GetIssueTrackersIssueTrackerNameIssuesIssueNameResponse, error) { - rsp, err := c.GetIssueTrackersIssueTrackerNameIssuesIssueName(ctx, issueTrackerName, issueName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetIssueTrackersIssueTrackerNameIssuesIssueNameResponse(rsp) -} - -// GetMyNotificationsWithResponse request returning *GetMyNotificationsResponse -func (c *ClientWithResponses) GetMyNotificationsWithResponse(ctx context.Context, params *GetMyNotificationsParams, reqEditors ...RequestEditorFn) (*GetMyNotificationsResponse, error) { - rsp, err := c.GetMyNotifications(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetMyNotificationsResponse(rsp) -} - -// PutMyNotificationsIdWithResponse request returning *PutMyNotificationsIdResponse -func (c *ClientWithResponses) PutMyNotificationsIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*PutMyNotificationsIdResponse, error) { - rsp, err := c.PutMyNotificationsId(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutMyNotificationsIdResponse(rsp) -} - -// GetPersonWithResponse request returning *GetPersonResponse -func (c *ClientWithResponses) GetPersonWithResponse(ctx context.Context, params *GetPersonParams, reqEditors ...RequestEditorFn) (*GetPersonResponse, error) { - rsp, err := c.GetPerson(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPersonResponse(rsp) -} - -// PostPersonWithBodyWithResponse request with arbitrary body returning *PostPersonResponse -func (c *ClientWithResponses) PostPersonWithBodyWithResponse(ctx context.Context, params *PostPersonParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPersonResponse, error) { - rsp, err := c.PostPersonWithBody(ctx, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostPersonResponse(rsp) -} - -// PostPersonRegisterWithBodyWithResponse request with arbitrary body returning *PostPersonRegisterResponse -func (c *ClientWithResponses) PostPersonRegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPersonRegisterResponse, error) { - rsp, err := c.PostPersonRegisterWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostPersonRegisterResponse(rsp) -} - -// GetPersonLoginWithResponse request returning *GetPersonLoginResponse -func (c *ClientWithResponses) GetPersonLoginWithResponse(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*GetPersonLoginResponse, error) { - rsp, err := c.GetPersonLogin(ctx, login, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPersonLoginResponse(rsp) -} - -// PostPersonLoginWithBodyWithResponse request with arbitrary body returning *PostPersonLoginResponse -func (c *ClientWithResponses) PostPersonLoginWithBodyWithResponse(ctx context.Context, login string, params *PostPersonLoginParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPersonLoginResponse, error) { - rsp, err := c.PostPersonLoginWithBody(ctx, login, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostPersonLoginResponse(rsp) -} - -func (c *ClientWithResponses) PostPersonLoginWithTextBodyWithResponse(ctx context.Context, login string, params *PostPersonLoginParams, body PostPersonLoginTextRequestBody, reqEditors ...RequestEditorFn) (*PostPersonLoginResponse, error) { - rsp, err := c.PostPersonLoginWithTextBody(ctx, login, params, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostPersonLoginResponse(rsp) -} - -// PutPersonLoginWithBodyWithResponse request with arbitrary body returning *PutPersonLoginResponse -func (c *ClientWithResponses) PutPersonLoginWithBodyWithResponse(ctx context.Context, login string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutPersonLoginResponse, error) { - rsp, err := c.PutPersonLoginWithBody(ctx, login, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutPersonLoginResponse(rsp) -} - -// GetPersonLoginGroupWithResponse request returning *GetPersonLoginGroupResponse -func (c *ClientWithResponses) GetPersonLoginGroupWithResponse(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*GetPersonLoginGroupResponse, error) { - rsp, err := c.GetPersonLoginGroup(ctx, login, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPersonLoginGroupResponse(rsp) -} - -// GetPersonLoginTokenWithResponse request returning *GetPersonLoginTokenResponse -func (c *ClientWithResponses) GetPersonLoginTokenWithResponse(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*GetPersonLoginTokenResponse, error) { - rsp, err := c.GetPersonLoginToken(ctx, login, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPersonLoginTokenResponse(rsp) -} - -// PostPersonLoginTokenWithResponse request returning *PostPersonLoginTokenResponse -func (c *ClientWithResponses) PostPersonLoginTokenWithResponse(ctx context.Context, login string, params *PostPersonLoginTokenParams, reqEditors ...RequestEditorFn) (*PostPersonLoginTokenResponse, error) { - rsp, err := c.PostPersonLoginToken(ctx, login, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostPersonLoginTokenResponse(rsp) -} - -// DeletePersonLoginTokenIdWithResponse request returning *DeletePersonLoginTokenIdResponse -func (c *ClientWithResponses) DeletePersonLoginTokenIdWithResponse(ctx context.Context, login string, id string, reqEditors ...RequestEditorFn) (*DeletePersonLoginTokenIdResponse, error) { - rsp, err := c.DeletePersonLoginTokenId(ctx, login, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeletePersonLoginTokenIdResponse(rsp) -} - -// GetPersonLoginWatchlistWithResponse request returning *GetPersonLoginWatchlistResponse -func (c *ClientWithResponses) GetPersonLoginWatchlistWithResponse(ctx context.Context, login string, reqEditors ...RequestEditorFn) (*GetPersonLoginWatchlistResponse, error) { - rsp, err := c.GetPersonLoginWatchlist(ctx, login, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPersonLoginWatchlistResponse(rsp) -} - -// PutPersonLoginWatchlistWithBodyWithResponse request with arbitrary body returning *PutPersonLoginWatchlistResponse -func (c *ClientWithResponses) PutPersonLoginWatchlistWithBodyWithResponse(ctx context.Context, login string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutPersonLoginWatchlistResponse, error) { - rsp, err := c.PutPersonLoginWatchlistWithBody(ctx, login, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutPersonLoginWatchlistResponse(rsp) -} - -// GetPublishedWithResponse request returning *GetPublishedResponse -func (c *ClientWithResponses) GetPublishedWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPublishedResponse, error) { - rsp, err := c.GetPublished(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPublishedResponse(rsp) -} - -// GetPublishedProjectNameWithResponse request returning *GetPublishedProjectNameResponse -func (c *ClientWithResponses) GetPublishedProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameResponse, error) { - rsp, err := c.GetPublishedProjectName(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPublishedProjectNameResponse(rsp) -} - -// GetPublishedProjectNameRepositoryNameWithResponse request returning *GetPublishedProjectNameRepositoryNameResponse -func (c *ClientWithResponses) GetPublishedProjectNameRepositoryNameWithResponse(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameRepositoryNameResponse, error) { - rsp, err := c.GetPublishedProjectNameRepositoryName(ctx, projectName, repositoryName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPublishedProjectNameRepositoryNameResponse(rsp) -} - -// GetPublishedProjectNameRepositoryNameArchitectureNameWithResponse request returning *GetPublishedProjectNameRepositoryNameArchitectureNameResponse -func (c *ClientWithResponses) GetPublishedProjectNameRepositoryNameArchitectureNameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameRepositoryNameArchitectureNameResponse, error) { - rsp, err := c.GetPublishedProjectNameRepositoryNameArchitectureName(ctx, projectName, repositoryName, architectureName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPublishedProjectNameRepositoryNameArchitectureNameResponse(rsp) -} - -// GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameWithResponse request returning *GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameResponse -func (c *ClientWithResponses) GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, binaryFilename string, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameResponse, error) { - rsp, err := c.GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilename(ctx, projectName, repositoryName, architectureName, binaryFilename, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameResponse(rsp) -} - -// GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpWithResponse request returning *GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpResponse -func (c *ClientWithResponses) GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, binaryFilename string, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpResponse, error) { - rsp, err := c.GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmp(ctx, projectName, repositoryName, architectureName, binaryFilename, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpResponse(rsp) -} - -// GetPublishedProjectNameRepositoryNameviewStatusWithResponse request returning *GetPublishedProjectNameRepositoryNameviewStatusResponse -func (c *ClientWithResponses) GetPublishedProjectNameRepositoryNameviewStatusWithResponse(ctx context.Context, projectName string, repositoryName string, params *GetPublishedProjectNameRepositoryNameviewStatusParams, reqEditors ...RequestEditorFn) (*GetPublishedProjectNameRepositoryNameviewStatusResponse, error) { - rsp, err := c.GetPublishedProjectNameRepositoryNameviewStatus(ctx, projectName, repositoryName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetPublishedProjectNameRepositoryNameviewStatusResponse(rsp) -} - -// GetRequestWithResponse request returning *GetRequestResponse -func (c *ClientWithResponses) GetRequestWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRequestResponse, error) { - rsp, err := c.GetRequest(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetRequestResponse(rsp) -} - -// PostRequestWithBodyWithResponse request with arbitrary body returning *PostRequestResponse -func (c *ClientWithResponses) PostRequestWithBodyWithResponse(ctx context.Context, params *PostRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRequestResponse, error) { - rsp, err := c.PostRequestWithBody(ctx, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostRequestResponse(rsp) -} - -// DeleteRequestIdWithResponse request returning *DeleteRequestIdResponse -func (c *ClientWithResponses) DeleteRequestIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteRequestIdResponse, error) { - rsp, err := c.DeleteRequestId(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteRequestIdResponse(rsp) -} - -// GetRequestIdWithResponse request returning *GetRequestIdResponse -func (c *ClientWithResponses) GetRequestIdWithResponse(ctx context.Context, id int, params *GetRequestIdParams, reqEditors ...RequestEditorFn) (*GetRequestIdResponse, error) { - rsp, err := c.GetRequestId(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetRequestIdResponse(rsp) -} - -// PostRequestIdWithResponse request returning *PostRequestIdResponse -func (c *ClientWithResponses) PostRequestIdWithResponse(ctx context.Context, id int, params *PostRequestIdParams, reqEditors ...RequestEditorFn) (*PostRequestIdResponse, error) { - rsp, err := c.PostRequestId(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostRequestIdResponse(rsp) -} - -// PutRequestIdWithBodyWithResponse request with arbitrary body returning *PutRequestIdResponse -func (c *ClientWithResponses) PutRequestIdWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutRequestIdResponse, error) { - rsp, err := c.PutRequestIdWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutRequestIdResponse(rsp) -} - -// PostRequestIdcmdDiffWithResponse request returning *PostRequestIdcmdDiffResponse -func (c *ClientWithResponses) PostRequestIdcmdDiffWithResponse(ctx context.Context, id int, params *PostRequestIdcmdDiffParams, reqEditors ...RequestEditorFn) (*PostRequestIdcmdDiffResponse, error) { - rsp, err := c.PostRequestIdcmdDiff(ctx, id, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostRequestIdcmdDiffResponse(rsp) -} - -// GetRequestviewCollectionWithResponse request returning *GetRequestviewCollectionResponse -func (c *ClientWithResponses) GetRequestviewCollectionWithResponse(ctx context.Context, params *GetRequestviewCollectionParams, reqEditors ...RequestEditorFn) (*GetRequestviewCollectionResponse, error) { - rsp, err := c.GetRequestviewCollection(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetRequestviewCollectionResponse(rsp) -} - -// GetSearchWithResponse request returning *GetSearchResponse -func (c *ClientWithResponses) GetSearchWithResponse(ctx context.Context, params *GetSearchParams, reqEditors ...RequestEditorFn) (*GetSearchResponse, error) { - rsp, err := c.GetSearch(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchResponse(rsp) -} - -// PostSearchWithResponse request returning *PostSearchResponse -func (c *ClientWithResponses) PostSearchWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchResponse, error) { - rsp, err := c.PostSearch(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchResponse(rsp) -} - -// GetSearchChannelWithResponse request returning *GetSearchChannelResponse -func (c *ClientWithResponses) GetSearchChannelWithResponse(ctx context.Context, params *GetSearchChannelParams, reqEditors ...RequestEditorFn) (*GetSearchChannelResponse, error) { - rsp, err := c.GetSearchChannel(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchChannelResponse(rsp) -} - -// PostSearchChannelWithResponse request returning *PostSearchChannelResponse -func (c *ClientWithResponses) PostSearchChannelWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchChannelResponse, error) { - rsp, err := c.PostSearchChannel(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchChannelResponse(rsp) -} - -// GetSearchChannelBinaryWithResponse request returning *GetSearchChannelBinaryResponse -func (c *ClientWithResponses) GetSearchChannelBinaryWithResponse(ctx context.Context, params *GetSearchChannelBinaryParams, reqEditors ...RequestEditorFn) (*GetSearchChannelBinaryResponse, error) { - rsp, err := c.GetSearchChannelBinary(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchChannelBinaryResponse(rsp) -} - -// PostSearchChannelBinaryWithResponse request returning *PostSearchChannelBinaryResponse -func (c *ClientWithResponses) PostSearchChannelBinaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchChannelBinaryResponse, error) { - rsp, err := c.PostSearchChannelBinary(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchChannelBinaryResponse(rsp) -} - -// GetSearchChannelBinaryIdWithResponse request returning *GetSearchChannelBinaryIdResponse -func (c *ClientWithResponses) GetSearchChannelBinaryIdWithResponse(ctx context.Context, params *GetSearchChannelBinaryIdParams, reqEditors ...RequestEditorFn) (*GetSearchChannelBinaryIdResponse, error) { - rsp, err := c.GetSearchChannelBinaryId(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchChannelBinaryIdResponse(rsp) -} - -// PostSearchChannelBinaryIdWithResponse request returning *PostSearchChannelBinaryIdResponse -func (c *ClientWithResponses) PostSearchChannelBinaryIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchChannelBinaryIdResponse, error) { - rsp, err := c.PostSearchChannelBinaryId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchChannelBinaryIdResponse(rsp) -} - -// GetSearchIssueWithResponse request returning *GetSearchIssueResponse -func (c *ClientWithResponses) GetSearchIssueWithResponse(ctx context.Context, params *GetSearchIssueParams, reqEditors ...RequestEditorFn) (*GetSearchIssueResponse, error) { - rsp, err := c.GetSearchIssue(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchIssueResponse(rsp) -} - -// PostSearchIssueWithResponse request returning *PostSearchIssueResponse -func (c *ClientWithResponses) PostSearchIssueWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchIssueResponse, error) { - rsp, err := c.PostSearchIssue(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchIssueResponse(rsp) -} - -// GetSearchMissingOwnerWithResponse request returning *GetSearchMissingOwnerResponse -func (c *ClientWithResponses) GetSearchMissingOwnerWithResponse(ctx context.Context, params *GetSearchMissingOwnerParams, reqEditors ...RequestEditorFn) (*GetSearchMissingOwnerResponse, error) { - rsp, err := c.GetSearchMissingOwner(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchMissingOwnerResponse(rsp) -} - -// PostSearchMissingOwnerWithResponse request returning *PostSearchMissingOwnerResponse -func (c *ClientWithResponses) PostSearchMissingOwnerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchMissingOwnerResponse, error) { - rsp, err := c.PostSearchMissingOwner(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchMissingOwnerResponse(rsp) -} - -// GetSearchOwnerWithResponse request returning *GetSearchOwnerResponse -func (c *ClientWithResponses) GetSearchOwnerWithResponse(ctx context.Context, params *GetSearchOwnerParams, reqEditors ...RequestEditorFn) (*GetSearchOwnerResponse, error) { - rsp, err := c.GetSearchOwner(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchOwnerResponse(rsp) -} - -// PostSearchOwnerWithResponse request returning *PostSearchOwnerResponse -func (c *ClientWithResponses) PostSearchOwnerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchOwnerResponse, error) { - rsp, err := c.PostSearchOwner(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchOwnerResponse(rsp) -} - -// GetSearchPackageWithResponse request returning *GetSearchPackageResponse -func (c *ClientWithResponses) GetSearchPackageWithResponse(ctx context.Context, params *GetSearchPackageParams, reqEditors ...RequestEditorFn) (*GetSearchPackageResponse, error) { - rsp, err := c.GetSearchPackage(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchPackageResponse(rsp) -} - -// PostSearchPackageWithResponse request returning *PostSearchPackageResponse -func (c *ClientWithResponses) PostSearchPackageWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPackageResponse, error) { - rsp, err := c.PostSearchPackage(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchPackageResponse(rsp) -} - -// GetSearchPackageIdWithResponse request returning *GetSearchPackageIdResponse -func (c *ClientWithResponses) GetSearchPackageIdWithResponse(ctx context.Context, params *GetSearchPackageIdParams, reqEditors ...RequestEditorFn) (*GetSearchPackageIdResponse, error) { - rsp, err := c.GetSearchPackageId(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchPackageIdResponse(rsp) -} - -// PostSearchPackageIdWithResponse request returning *PostSearchPackageIdResponse -func (c *ClientWithResponses) PostSearchPackageIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPackageIdResponse, error) { - rsp, err := c.PostSearchPackageId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchPackageIdResponse(rsp) -} - -// GetSearchPackageIdWithResponse request returning *GetSearchPackageIdResponse -func (c *ClientWithResponses) GetSearchPackageIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSearchPackageIdResponse, error) { - rsp, err := c.GetSearchPackageId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchPackageIdResponse(rsp) -} - -// PostSearchPackageIdWithResponse request returning *PostSearchPackageIdResponse -func (c *ClientWithResponses) PostSearchPackageIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPackageIdResponse, error) { - rsp, err := c.PostSearchPackageId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchPackageIdResponse(rsp) -} - -// GetSearchPersonWithResponse request returning *GetSearchPersonResponse -func (c *ClientWithResponses) GetSearchPersonWithResponse(ctx context.Context, params *GetSearchPersonParams, reqEditors ...RequestEditorFn) (*GetSearchPersonResponse, error) { - rsp, err := c.GetSearchPerson(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchPersonResponse(rsp) -} - -// PostSearchPersonWithResponse request returning *PostSearchPersonResponse -func (c *ClientWithResponses) PostSearchPersonWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPersonResponse, error) { - rsp, err := c.PostSearchPerson(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchPersonResponse(rsp) -} - -// GetSearchProjectWithResponse request returning *GetSearchProjectResponse -func (c *ClientWithResponses) GetSearchProjectWithResponse(ctx context.Context, params *GetSearchProjectParams, reqEditors ...RequestEditorFn) (*GetSearchProjectResponse, error) { - rsp, err := c.GetSearchProject(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchProjectResponse(rsp) -} - -// PostSearchProjectWithResponse request returning *PostSearchProjectResponse -func (c *ClientWithResponses) PostSearchProjectWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchProjectResponse, error) { - rsp, err := c.PostSearchProject(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchProjectResponse(rsp) -} - -// GetSearchProjectIdWithResponse request returning *GetSearchProjectIdResponse -func (c *ClientWithResponses) GetSearchProjectIdWithResponse(ctx context.Context, params *GetSearchProjectIdParams, reqEditors ...RequestEditorFn) (*GetSearchProjectIdResponse, error) { - rsp, err := c.GetSearchProjectId(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchProjectIdResponse(rsp) -} - -// PostSearchProjectIdWithResponse request returning *PostSearchProjectIdResponse -func (c *ClientWithResponses) PostSearchProjectIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchProjectIdResponse, error) { - rsp, err := c.PostSearchProjectId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchProjectIdResponse(rsp) -} - -// GetSearchProjectIdWithResponse request returning *GetSearchProjectIdResponse -func (c *ClientWithResponses) GetSearchProjectIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSearchProjectIdResponse, error) { - rsp, err := c.GetSearchProjectId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchProjectIdResponse(rsp) -} - -// PostSearchProjectIdWithResponse request returning *PostSearchProjectIdResponse -func (c *ClientWithResponses) PostSearchProjectIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchProjectIdResponse, error) { - rsp, err := c.PostSearchProjectId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchProjectIdResponse(rsp) -} - -// GetSearchPublishedBinaryIdWithResponse request returning *GetSearchPublishedBinaryIdResponse -func (c *ClientWithResponses) GetSearchPublishedBinaryIdWithResponse(ctx context.Context, params *GetSearchPublishedBinaryIdParams, reqEditors ...RequestEditorFn) (*GetSearchPublishedBinaryIdResponse, error) { - rsp, err := c.GetSearchPublishedBinaryId(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchPublishedBinaryIdResponse(rsp) -} - -// PostSearchPublishedBinaryIdWithResponse request returning *PostSearchPublishedBinaryIdResponse -func (c *ClientWithResponses) PostSearchPublishedBinaryIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPublishedBinaryIdResponse, error) { - rsp, err := c.PostSearchPublishedBinaryId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchPublishedBinaryIdResponse(rsp) -} - -// GetSearchPublishedPatternIdWithResponse request returning *GetSearchPublishedPatternIdResponse -func (c *ClientWithResponses) GetSearchPublishedPatternIdWithResponse(ctx context.Context, params *GetSearchPublishedPatternIdParams, reqEditors ...RequestEditorFn) (*GetSearchPublishedPatternIdResponse, error) { - rsp, err := c.GetSearchPublishedPatternId(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchPublishedPatternIdResponse(rsp) -} - -// PostSearchPublishedPatternIdWithResponse request returning *PostSearchPublishedPatternIdResponse -func (c *ClientWithResponses) PostSearchPublishedPatternIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPublishedPatternIdResponse, error) { - rsp, err := c.PostSearchPublishedPatternId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchPublishedPatternIdResponse(rsp) -} - -// GetSearchPublishedRepoinfoIdWithResponse request returning *GetSearchPublishedRepoinfoIdResponse -func (c *ClientWithResponses) GetSearchPublishedRepoinfoIdWithResponse(ctx context.Context, params *GetSearchPublishedRepoinfoIdParams, reqEditors ...RequestEditorFn) (*GetSearchPublishedRepoinfoIdResponse, error) { - rsp, err := c.GetSearchPublishedRepoinfoId(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchPublishedRepoinfoIdResponse(rsp) -} - -// PostSearchPublishedRepoinfoIdWithResponse request returning *PostSearchPublishedRepoinfoIdResponse -func (c *ClientWithResponses) PostSearchPublishedRepoinfoIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchPublishedRepoinfoIdResponse, error) { - rsp, err := c.PostSearchPublishedRepoinfoId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchPublishedRepoinfoIdResponse(rsp) -} - -// GetSearchReleasedBinaryWithResponse request returning *GetSearchReleasedBinaryResponse -func (c *ClientWithResponses) GetSearchReleasedBinaryWithResponse(ctx context.Context, params *GetSearchReleasedBinaryParams, reqEditors ...RequestEditorFn) (*GetSearchReleasedBinaryResponse, error) { - rsp, err := c.GetSearchReleasedBinary(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchReleasedBinaryResponse(rsp) -} - -// PostSearchReleasedBinaryWithResponse request returning *PostSearchReleasedBinaryResponse -func (c *ClientWithResponses) PostSearchReleasedBinaryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchReleasedBinaryResponse, error) { - rsp, err := c.PostSearchReleasedBinary(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchReleasedBinaryResponse(rsp) -} - -// GetSearchReleasedBinaryIdWithResponse request returning *GetSearchReleasedBinaryIdResponse -func (c *ClientWithResponses) GetSearchReleasedBinaryIdWithResponse(ctx context.Context, params *GetSearchReleasedBinaryIdParams, reqEditors ...RequestEditorFn) (*GetSearchReleasedBinaryIdResponse, error) { - rsp, err := c.GetSearchReleasedBinaryId(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchReleasedBinaryIdResponse(rsp) -} - -// PostSearchReleasedBinaryIdWithResponse request returning *PostSearchReleasedBinaryIdResponse -func (c *ClientWithResponses) PostSearchReleasedBinaryIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchReleasedBinaryIdResponse, error) { - rsp, err := c.PostSearchReleasedBinaryId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchReleasedBinaryIdResponse(rsp) -} - -// GetSearchRepositoryIdWithResponse request returning *GetSearchRepositoryIdResponse -func (c *ClientWithResponses) GetSearchRepositoryIdWithResponse(ctx context.Context, params *GetSearchRepositoryIdParams, reqEditors ...RequestEditorFn) (*GetSearchRepositoryIdResponse, error) { - rsp, err := c.GetSearchRepositoryId(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchRepositoryIdResponse(rsp) -} - -// PostSearchRepositoryIdWithResponse request returning *PostSearchRepositoryIdResponse -func (c *ClientWithResponses) PostSearchRepositoryIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchRepositoryIdResponse, error) { - rsp, err := c.PostSearchRepositoryId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchRepositoryIdResponse(rsp) -} - -// GetSearchRequestWithResponse request returning *GetSearchRequestResponse -func (c *ClientWithResponses) GetSearchRequestWithResponse(ctx context.Context, params *GetSearchRequestParams, reqEditors ...RequestEditorFn) (*GetSearchRequestResponse, error) { - rsp, err := c.GetSearchRequest(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchRequestResponse(rsp) -} - -// PostSearchRequestWithResponse request returning *PostSearchRequestResponse -func (c *ClientWithResponses) PostSearchRequestWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchRequestResponse, error) { - rsp, err := c.PostSearchRequest(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchRequestResponse(rsp) -} - -// GetSearchRequestIdWithResponse request returning *GetSearchRequestIdResponse -func (c *ClientWithResponses) GetSearchRequestIdWithResponse(ctx context.Context, params *GetSearchRequestIdParams, reqEditors ...RequestEditorFn) (*GetSearchRequestIdResponse, error) { - rsp, err := c.GetSearchRequestId(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSearchRequestIdResponse(rsp) -} - -// PostSearchRequestIdWithResponse request returning *PostSearchRequestIdResponse -func (c *ClientWithResponses) PostSearchRequestIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostSearchRequestIdResponse, error) { - rsp, err := c.PostSearchRequestId(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSearchRequestIdResponse(rsp) -} - -// GetServiceWithResponse request returning *GetServiceResponse -func (c *ClientWithResponses) GetServiceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetServiceResponse, error) { - rsp, err := c.GetService(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetServiceResponse(rsp) -} - -// GetSourceWithResponse request returning *GetSourceResponse -func (c *ClientWithResponses) GetSourceWithResponse(ctx context.Context, params *GetSourceParams, reqEditors ...RequestEditorFn) (*GetSourceResponse, error) { - rsp, err := c.GetSource(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceResponse(rsp) -} - -// DeleteSourceProjectNameWithResponse request returning *DeleteSourceProjectNameResponse -func (c *ClientWithResponses) DeleteSourceProjectNameWithResponse(ctx context.Context, projectName string, params *DeleteSourceProjectNameParams, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNameResponse, error) { - rsp, err := c.DeleteSourceProjectName(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteSourceProjectNameResponse(rsp) -} - -// GetSourceProjectNameWithResponse request returning *GetSourceProjectNameResponse -func (c *ClientWithResponses) GetSourceProjectNameWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameResponse, error) { - rsp, err := c.GetSourceProjectName(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNameResponse(rsp) -} - -// GetSourceProjectNameAttributeWithResponse request returning *GetSourceProjectNameAttributeResponse -func (c *ClientWithResponses) GetSourceProjectNameAttributeWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameAttributeParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameAttributeResponse, error) { - rsp, err := c.GetSourceProjectNameAttribute(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNameAttributeResponse(rsp) -} - -// DeleteSourceProjectNameAttributeAttributeNameWithResponse request returning *DeleteSourceProjectNameAttributeAttributeNameResponse -func (c *ClientWithResponses) DeleteSourceProjectNameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, attributeName string, params *DeleteSourceProjectNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNameAttributeAttributeNameResponse, error) { - rsp, err := c.DeleteSourceProjectNameAttributeAttributeName(ctx, projectName, attributeName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteSourceProjectNameAttributeAttributeNameResponse(rsp) -} - -// GetSourceProjectNameAttributeAttributeNameWithResponse request returning *GetSourceProjectNameAttributeAttributeNameResponse -func (c *ClientWithResponses) GetSourceProjectNameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, attributeName string, params *GetSourceProjectNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameAttributeAttributeNameResponse, error) { - rsp, err := c.GetSourceProjectNameAttributeAttributeName(ctx, projectName, attributeName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNameAttributeAttributeNameResponse(rsp) -} - -// PostSourceProjectNameAttributeAttributeNameWithBodyWithResponse request with arbitrary body returning *PostSourceProjectNameAttributeAttributeNameResponse -func (c *ClientWithResponses) PostSourceProjectNameAttributeAttributeNameWithBodyWithResponse(ctx context.Context, projectName string, attributeName string, params *PostSourceProjectNameAttributeAttributeNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSourceProjectNameAttributeAttributeNameResponse, error) { - rsp, err := c.PostSourceProjectNameAttributeAttributeNameWithBody(ctx, projectName, attributeName, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNameAttributeAttributeNameResponse(rsp) -} - -// GetSourceProjectNameConfigWithResponse request returning *GetSourceProjectNameConfigResponse -func (c *ClientWithResponses) GetSourceProjectNameConfigWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameConfigParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameConfigResponse, error) { - rsp, err := c.GetSourceProjectNameConfig(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNameConfigResponse(rsp) -} - -// PutSourceProjectNameConfigWithBodyWithResponse request with arbitrary body returning *PutSourceProjectNameConfigResponse -func (c *ClientWithResponses) PutSourceProjectNameConfigWithBodyWithResponse(ctx context.Context, projectName string, params *PutSourceProjectNameConfigParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSourceProjectNameConfigResponse, error) { - rsp, err := c.PutSourceProjectNameConfigWithBody(ctx, projectName, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutSourceProjectNameConfigResponse(rsp) -} - -func (c *ClientWithResponses) PutSourceProjectNameConfigWithTextBodyWithResponse(ctx context.Context, projectName string, params *PutSourceProjectNameConfigParams, body PutSourceProjectNameConfigTextRequestBody, reqEditors ...RequestEditorFn) (*PutSourceProjectNameConfigResponse, error) { - rsp, err := c.PutSourceProjectNameConfigWithTextBody(ctx, projectName, params, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutSourceProjectNameConfigResponse(rsp) -} - -// GetSourceProjectNameKeyinfoWithResponse request returning *GetSourceProjectNameKeyinfoResponse -func (c *ClientWithResponses) GetSourceProjectNameKeyinfoWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetSourceProjectNameKeyinfoResponse, error) { - rsp, err := c.GetSourceProjectNameKeyinfo(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNameKeyinfoResponse(rsp) -} - -// GetSourceProjectNameMetaWithResponse request returning *GetSourceProjectNameMetaResponse -func (c *ClientWithResponses) GetSourceProjectNameMetaWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameMetaParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameMetaResponse, error) { - rsp, err := c.GetSourceProjectNameMeta(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNameMetaResponse(rsp) -} - -// PutSourceProjectNameMetaWithBodyWithResponse request with arbitrary body returning *PutSourceProjectNameMetaResponse -func (c *ClientWithResponses) PutSourceProjectNameMetaWithBodyWithResponse(ctx context.Context, projectName string, params *PutSourceProjectNameMetaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSourceProjectNameMetaResponse, error) { - rsp, err := c.PutSourceProjectNameMetaWithBody(ctx, projectName, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutSourceProjectNameMetaResponse(rsp) -} - -// GetSourceProjectNamePatternWithResponse request returning *GetSourceProjectNamePatternResponse -func (c *ClientWithResponses) GetSourceProjectNamePatternWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePatternResponse, error) { - rsp, err := c.GetSourceProjectNamePattern(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePatternResponse(rsp) -} - -// DeleteSourceProjectNamePatternFileNameWithResponse request returning *DeleteSourceProjectNamePatternFileNameResponse -func (c *ClientWithResponses) DeleteSourceProjectNamePatternFileNameWithResponse(ctx context.Context, projectName string, fileName string, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePatternFileNameResponse, error) { - rsp, err := c.DeleteSourceProjectNamePatternFileName(ctx, projectName, fileName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteSourceProjectNamePatternFileNameResponse(rsp) -} - -// GetSourceProjectNamePatternFileNameWithResponse request returning *GetSourceProjectNamePatternFileNameResponse -func (c *ClientWithResponses) GetSourceProjectNamePatternFileNameWithResponse(ctx context.Context, projectName string, fileName string, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePatternFileNameResponse, error) { - rsp, err := c.GetSourceProjectNamePatternFileName(ctx, projectName, fileName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePatternFileNameResponse(rsp) -} - -// PutSourceProjectNamePatternFileNameWithBodyWithResponse request with arbitrary body returning *PutSourceProjectNamePatternFileNameResponse -func (c *ClientWithResponses) PutSourceProjectNamePatternFileNameWithBodyWithResponse(ctx context.Context, projectName string, fileName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSourceProjectNamePatternFileNameResponse, error) { - rsp, err := c.PutSourceProjectNamePatternFileNameWithBody(ctx, projectName, fileName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutSourceProjectNamePatternFileNameResponse(rsp) -} - -// GetSourceProjectNameProjectWithResponse request returning *GetSourceProjectNameProjectResponse -func (c *ClientWithResponses) GetSourceProjectNameProjectWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameProjectParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameProjectResponse, error) { - rsp, err := c.GetSourceProjectNameProject(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNameProjectResponse(rsp) -} - -// GetSourceProjectNameProjectHistoryWithResponse request returning *GetSourceProjectNameProjectHistoryResponse -func (c *ClientWithResponses) GetSourceProjectNameProjectHistoryWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameProjectHistoryParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameProjectHistoryResponse, error) { - rsp, err := c.GetSourceProjectNameProjectHistory(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNameProjectHistoryResponse(rsp) -} - -// GetSourceProjectNameProjectFileNameWithResponse request returning *GetSourceProjectNameProjectFileNameResponse -func (c *ClientWithResponses) GetSourceProjectNameProjectFileNameWithResponse(ctx context.Context, projectName string, fileName string, params *GetSourceProjectNameProjectFileNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameProjectFileNameResponse, error) { - rsp, err := c.GetSourceProjectNameProjectFileName(ctx, projectName, fileName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNameProjectFileNameResponse(rsp) -} - -// DeleteSourceProjectNamePubkeyWithResponse request returning *DeleteSourceProjectNamePubkeyResponse -func (c *ClientWithResponses) DeleteSourceProjectNamePubkeyWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePubkeyResponse, error) { - rsp, err := c.DeleteSourceProjectNamePubkey(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteSourceProjectNamePubkeyResponse(rsp) -} - -// GetSourceProjectNamePubkeyWithResponse request returning *GetSourceProjectNamePubkeyResponse -func (c *ClientWithResponses) GetSourceProjectNamePubkeyWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePubkeyResponse, error) { - rsp, err := c.GetSourceProjectNamePubkey(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePubkeyResponse(rsp) -} - -// DeleteSourceProjectNamePackageNameWithResponse request returning *DeleteSourceProjectNamePackageNameResponse -func (c *ClientWithResponses) DeleteSourceProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, params *DeleteSourceProjectNamePackageNameParams, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePackageNameResponse, error) { - rsp, err := c.DeleteSourceProjectNamePackageName(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteSourceProjectNamePackageNameResponse(rsp) -} - -// GetSourceProjectNamePackageNameWithResponse request returning *GetSourceProjectNamePackageNameResponse -func (c *ClientWithResponses) GetSourceProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameResponse, error) { - rsp, err := c.GetSourceProjectNamePackageName(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePackageNameResponse(rsp) -} - -// GetSourceProjectNamePackageNameAttributeWithResponse request returning *GetSourceProjectNamePackageNameAttributeResponse -func (c *ClientWithResponses) GetSourceProjectNamePackageNameAttributeWithResponse(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameAttributeParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameAttributeResponse, error) { - rsp, err := c.GetSourceProjectNamePackageNameAttribute(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePackageNameAttributeResponse(rsp) -} - -// PostSourceProjectNamePackageNameAttributeWithBodyWithResponse request with arbitrary body returning *PostSourceProjectNamePackageNameAttributeResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNameAttributeWithBodyWithResponse(ctx context.Context, projectName string, packageName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNameAttributeResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNameAttributeWithBody(ctx, projectName, packageName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNameAttributeResponse(rsp) -} - -// DeleteSourceProjectNamePackageNameAttributeAttributeNameWithResponse request returning *DeleteSourceProjectNamePackageNameAttributeAttributeNameResponse -func (c *ClientWithResponses) DeleteSourceProjectNamePackageNameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, packageName string, attributeName string, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePackageNameAttributeAttributeNameResponse, error) { - rsp, err := c.DeleteSourceProjectNamePackageNameAttributeAttributeName(ctx, projectName, packageName, attributeName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteSourceProjectNamePackageNameAttributeAttributeNameResponse(rsp) -} - -// GetSourceProjectNamePackageNameAttributeAttributeNameWithResponse request returning *GetSourceProjectNamePackageNameAttributeAttributeNameResponse -func (c *ClientWithResponses) GetSourceProjectNamePackageNameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, packageName string, attributeName string, params *GetSourceProjectNamePackageNameAttributeAttributeNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameAttributeAttributeNameResponse, error) { - rsp, err := c.GetSourceProjectNamePackageNameAttributeAttributeName(ctx, projectName, packageName, attributeName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePackageNameAttributeAttributeNameResponse(rsp) -} - -// PostSourceProjectNamePackageNameAttributeAttributeNameWithBodyWithResponse request with arbitrary body returning *PostSourceProjectNamePackageNameAttributeAttributeNameResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNameAttributeAttributeNameWithBodyWithResponse(ctx context.Context, projectName string, packageName string, attributeName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNameAttributeAttributeNameResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNameAttributeAttributeNameWithBody(ctx, projectName, packageName, attributeName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNameAttributeAttributeNameResponse(rsp) -} - -// GetSourceProjectNamePackageNameHistoryWithResponse request returning *GetSourceProjectNamePackageNameHistoryResponse -func (c *ClientWithResponses) GetSourceProjectNamePackageNameHistoryWithResponse(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameHistoryParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameHistoryResponse, error) { - rsp, err := c.GetSourceProjectNamePackageNameHistory(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePackageNameHistoryResponse(rsp) -} - -// GetSourceProjectNamePackageNameMetaWithResponse request returning *GetSourceProjectNamePackageNameMetaResponse -func (c *ClientWithResponses) GetSourceProjectNamePackageNameMetaWithResponse(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameMetaParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameMetaResponse, error) { - rsp, err := c.GetSourceProjectNamePackageNameMeta(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePackageNameMetaResponse(rsp) -} - -// PutSourceProjectNamePackageNameMetaWithBodyWithResponse request with arbitrary body returning *PutSourceProjectNamePackageNameMetaResponse -func (c *ClientWithResponses) PutSourceProjectNamePackageNameMetaWithBodyWithResponse(ctx context.Context, projectName string, packageName string, params *PutSourceProjectNamePackageNameMetaParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSourceProjectNamePackageNameMetaResponse, error) { - rsp, err := c.PutSourceProjectNamePackageNameMetaWithBody(ctx, projectName, packageName, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutSourceProjectNamePackageNameMetaResponse(rsp) -} - -// GetSourceProjectNamePackageNameBinaryFilenameAttributeWithResponse request returning *GetSourceProjectNamePackageNameBinaryFilenameAttributeResponse -func (c *ClientWithResponses) GetSourceProjectNamePackageNameBinaryFilenameAttributeWithResponse(ctx context.Context, projectName string, packageName string, binaryFilename string, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameBinaryFilenameAttributeResponse, error) { - rsp, err := c.GetSourceProjectNamePackageNameBinaryFilenameAttribute(ctx, projectName, packageName, binaryFilename, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePackageNameBinaryFilenameAttributeResponse(rsp) -} - -// PostSourceProjectNamePackageNameBinaryFilenameAttributeWithBodyWithResponse request with arbitrary body returning *PostSourceProjectNamePackageNameBinaryFilenameAttributeResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNameBinaryFilenameAttributeWithBodyWithResponse(ctx context.Context, projectName string, packageName string, binaryFilename string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNameBinaryFilenameAttributeResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNameBinaryFilenameAttributeWithBody(ctx, projectName, packageName, binaryFilename, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNameBinaryFilenameAttributeResponse(rsp) -} - -// DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameWithResponse request returning *DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse -func (c *ClientWithResponses) DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, packageName string, binaryFilename string, attributeName string, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse, error) { - rsp, err := c.DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeName(ctx, projectName, packageName, binaryFilename, attributeName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse(rsp) -} - -// GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameWithResponse request returning *GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse -func (c *ClientWithResponses) GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameWithResponse(ctx context.Context, projectName string, packageName string, binaryFilename string, attributeName string, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse, error) { - rsp, err := c.GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeName(ctx, projectName, packageName, binaryFilename, attributeName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse(rsp) -} - -// DeleteSourceProjectNamePackageNameFileNameWithResponse request returning *DeleteSourceProjectNamePackageNameFileNameResponse -func (c *ClientWithResponses) DeleteSourceProjectNamePackageNameFileNameWithResponse(ctx context.Context, projectName string, packageName string, fileName string, params *DeleteSourceProjectNamePackageNameFileNameParams, reqEditors ...RequestEditorFn) (*DeleteSourceProjectNamePackageNameFileNameResponse, error) { - rsp, err := c.DeleteSourceProjectNamePackageNameFileName(ctx, projectName, packageName, fileName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteSourceProjectNamePackageNameFileNameResponse(rsp) -} - -// GetSourceProjectNamePackageNameFileNameWithResponse request returning *GetSourceProjectNamePackageNameFileNameResponse -func (c *ClientWithResponses) GetSourceProjectNamePackageNameFileNameWithResponse(ctx context.Context, projectName string, packageName string, fileName string, params *GetSourceProjectNamePackageNameFileNameParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameFileNameResponse, error) { - rsp, err := c.GetSourceProjectNamePackageNameFileName(ctx, projectName, packageName, fileName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePackageNameFileNameResponse(rsp) -} - -// PutSourceProjectNamePackageNameFileNameWithBodyWithResponse request with arbitrary body returning *PutSourceProjectNamePackageNameFileNameResponse -func (c *ClientWithResponses) PutSourceProjectNamePackageNameFileNameWithBodyWithResponse(ctx context.Context, projectName string, packageName string, fileName string, params *PutSourceProjectNamePackageNameFileNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutSourceProjectNamePackageNameFileNameResponse, error) { - rsp, err := c.PutSourceProjectNamePackageNameFileNameWithBody(ctx, projectName, packageName, fileName, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutSourceProjectNamePackageNameFileNameResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdAddcontainersWithResponse request returning *PostSourceProjectNamePackageNamecmdAddcontainersResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdAddcontainersWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdAddcontainersParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdAddcontainersResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdAddcontainers(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdAddcontainersResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdBranchWithResponse request returning *PostSourceProjectNamePackageNamecmdBranchResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdBranchWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdBranchParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdBranchResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdBranch(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdBranchResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdCollectbuildenvWithResponse request returning *PostSourceProjectNamePackageNamecmdCollectbuildenvResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdCollectbuildenvWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCollectbuildenvParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdCollectbuildenvResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdCollectbuildenv(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdCollectbuildenvResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdCommitWithResponse request returning *PostSourceProjectNamePackageNamecmdCommitResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdCommitWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCommitParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdCommitResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdCommit(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdCommitResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdCommitfilelistWithResponse request returning *PostSourceProjectNamePackageNamecmdCommitfilelistResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdCommitfilelistWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCommitfilelistParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdCommitfilelistResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdCommitfilelist(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdCommitfilelistResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdCopyWithResponse request returning *PostSourceProjectNamePackageNamecmdCopyResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdCopyWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdCopyParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdCopyResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdCopy(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdCopyResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateWithResponse request returning *PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdCreateSpecFileTemplate(ctx, projectName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdCreateSpecFileTemplateResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdDeleteuploadrevWithResponse request returning *PostSourceProjectNamePackageNamecmdDeleteuploadrevResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdDeleteuploadrevWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdDeleteuploadrevResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdDeleteuploadrev(ctx, projectName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdDeleteuploadrevResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdDiffWithResponse request returning *PostSourceProjectNamePackageNamecmdDiffResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdDiffWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdDiffParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdDiffResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdDiff(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdDiffResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdForkWithResponse request returning *PostSourceProjectNamePackageNamecmdForkResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdForkWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdForkParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdForkResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdFork(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdForkResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdGetprojectservicesWithResponse request returning *PostSourceProjectNamePackageNamecmdGetprojectservicesResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdGetprojectservicesWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdGetprojectservicesParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdGetprojectservicesResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdGetprojectservices(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdGetprojectservicesResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdInstantiateWithResponse request returning *PostSourceProjectNamePackageNamecmdInstantiateResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdInstantiateWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdInstantiateParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdInstantiateResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdInstantiate(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdInstantiateResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdLinkdiffWithResponse request returning *PostSourceProjectNamePackageNamecmdLinkdiffResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdLinkdiffWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdLinkdiffParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdLinkdiffResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdLinkdiff(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdLinkdiffResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdLinktobranchWithResponse request returning *PostSourceProjectNamePackageNamecmdLinktobranchResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdLinktobranchWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdLinktobranchParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdLinktobranchResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdLinktobranch(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdLinktobranchResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdMergeserviceWithResponse request returning *PostSourceProjectNamePackageNamecmdMergeserviceResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdMergeserviceWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdMergeserviceParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdMergeserviceResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdMergeservice(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdMergeserviceResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdRebuildWithResponse request returning *PostSourceProjectNamePackageNamecmdRebuildResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdRebuildWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdRebuildResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdRebuild(ctx, projectName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdRebuildResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdReleaseWithResponse request returning *PostSourceProjectNamePackageNamecmdReleaseResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdReleaseWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdReleaseParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdReleaseResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdRelease(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdReleaseResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdRemoveFlagWithResponse request returning *PostSourceProjectNamePackageNamecmdRemoveFlagResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdRemoveFlagWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdRemoveFlagParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdRemoveFlagResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdRemoveFlag(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdRemoveFlagResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdRunserviceWithResponse request returning *PostSourceProjectNamePackageNamecmdRunserviceResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdRunserviceWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdRunserviceParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdRunserviceResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdRunservice(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdRunserviceResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdServicediffWithResponse request returning *PostSourceProjectNamePackageNamecmdServicediffResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdServicediffWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdServicediffParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdServicediffResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdServicediff(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdServicediffResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdSetFlagWithResponse request returning *PostSourceProjectNamePackageNamecmdSetFlagResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdSetFlagWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdSetFlagParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdSetFlagResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdSetFlag(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdSetFlagResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdShowlinkedWithResponse request returning *PostSourceProjectNamePackageNamecmdShowlinkedResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdShowlinkedWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdShowlinkedResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdShowlinked(ctx, projectName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdShowlinkedResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdUndeleteWithResponse request returning *PostSourceProjectNamePackageNamecmdUndeleteResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdUndeleteWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdUndeleteParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdUndeleteResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdUndelete(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdUndeleteResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdUnlockWithResponse request returning *PostSourceProjectNamePackageNamecmdUnlockResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdUnlockWithResponse(ctx context.Context, projectName string, packageName string, params *PostSourceProjectNamePackageNamecmdUnlockParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdUnlockResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdUnlock(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdUnlockResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdUpdatepatchinfoWithResponse request returning *PostSourceProjectNamePackageNamecmdUpdatepatchinfoResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdUpdatepatchinfoWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdUpdatepatchinfoResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdUpdatepatchinfo(ctx, projectName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdUpdatepatchinfoResponse(rsp) -} - -// PostSourceProjectNamePackageNamecmdWaitserviceWithResponse request returning *PostSourceProjectNamePackageNamecmdWaitserviceResponse -func (c *ClientWithResponses) PostSourceProjectNamePackageNamecmdWaitserviceWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamePackageNamecmdWaitserviceResponse, error) { - rsp, err := c.PostSourceProjectNamePackageNamecmdWaitservice(ctx, projectName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamePackageNamecmdWaitserviceResponse(rsp) -} - -// GetSourceProjectNamePackageNameviewInfoWithResponse request returning *GetSourceProjectNamePackageNameviewInfoResponse -func (c *ClientWithResponses) GetSourceProjectNamePackageNameviewInfoWithResponse(ctx context.Context, projectName string, packageName string, params *GetSourceProjectNamePackageNameviewInfoParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNamePackageNameviewInfoResponse, error) { - rsp, err := c.GetSourceProjectNamePackageNameviewInfo(ctx, projectName, packageName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNamePackageNameviewInfoResponse(rsp) -} - -// PostSourceProjectNamecmdAddchannelsWithResponse request returning *PostSourceProjectNamecmdAddchannelsResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdAddchannelsWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdAddchannelsParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdAddchannelsResponse, error) { - rsp, err := c.PostSourceProjectNamecmdAddchannels(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdAddchannelsResponse(rsp) -} - -// PostSourceProjectNamecmdCopyWithResponse request returning *PostSourceProjectNamecmdCopyResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdCopyWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdCopyParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdCopyResponse, error) { - rsp, err := c.PostSourceProjectNamecmdCopy(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdCopyResponse(rsp) -} - -// PostSourceProjectNamecmdCreatekeyWithResponse request returning *PostSourceProjectNamecmdCreatekeyResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdCreatekeyWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdCreatekeyResponse, error) { - rsp, err := c.PostSourceProjectNamecmdCreatekey(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdCreatekeyResponse(rsp) -} - -// PostSourceProjectNamecmdCreatemaintenanceincidentWithResponse request returning *PostSourceProjectNamecmdCreatemaintenanceincidentResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdCreatemaintenanceincidentWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdCreatemaintenanceincidentResponse, error) { - rsp, err := c.PostSourceProjectNamecmdCreatemaintenanceincident(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdCreatemaintenanceincidentResponse(rsp) -} - -// PostSourceProjectNamecmdCreatepatchinfoWithResponse request returning *PostSourceProjectNamecmdCreatepatchinfoResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdCreatepatchinfoWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdCreatepatchinfoParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdCreatepatchinfoResponse, error) { - rsp, err := c.PostSourceProjectNamecmdCreatepatchinfo(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdCreatepatchinfoResponse(rsp) -} - -// PostSourceProjectNamecmdExtendkeyWithResponse request returning *PostSourceProjectNamecmdExtendkeyResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdExtendkeyWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdExtendkeyParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdExtendkeyResponse, error) { - rsp, err := c.PostSourceProjectNamecmdExtendkey(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdExtendkeyResponse(rsp) -} - -// PostSourceProjectNamecmdFreezelinkWithResponse request returning *PostSourceProjectNamecmdFreezelinkResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdFreezelinkWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdFreezelinkParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdFreezelinkResponse, error) { - rsp, err := c.PostSourceProjectNamecmdFreezelink(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdFreezelinkResponse(rsp) -} - -// PostSourceProjectNamecmdLockWithResponse request returning *PostSourceProjectNamecmdLockResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdLockWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdLockParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdLockResponse, error) { - rsp, err := c.PostSourceProjectNamecmdLock(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdLockResponse(rsp) -} - -// PostSourceProjectNamecmdModifychannelsWithResponse request returning *PostSourceProjectNamecmdModifychannelsResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdModifychannelsWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdModifychannelsParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdModifychannelsResponse, error) { - rsp, err := c.PostSourceProjectNamecmdModifychannels(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdModifychannelsResponse(rsp) -} - -// PostSourceProjectNamecmdMoveWithResponse request returning *PostSourceProjectNamecmdMoveResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdMoveWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdMoveParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdMoveResponse, error) { - rsp, err := c.PostSourceProjectNamecmdMove(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdMoveResponse(rsp) -} - -// PostSourceProjectNamecmdReleaseWithResponse request returning *PostSourceProjectNamecmdReleaseResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdReleaseWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdReleaseParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdReleaseResponse, error) { - rsp, err := c.PostSourceProjectNamecmdRelease(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdReleaseResponse(rsp) -} - -// PostSourceProjectNamecmdRemoveFlagWithResponse request returning *PostSourceProjectNamecmdRemoveFlagResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdRemoveFlagWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdRemoveFlagParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdRemoveFlagResponse, error) { - rsp, err := c.PostSourceProjectNamecmdRemoveFlag(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdRemoveFlagResponse(rsp) -} - -// PostSourceProjectNamecmdSetFlagWithResponse request returning *PostSourceProjectNamecmdSetFlagResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdSetFlagWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdSetFlagParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdSetFlagResponse, error) { - rsp, err := c.PostSourceProjectNamecmdSetFlag(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdSetFlagResponse(rsp) -} - -// PostSourceProjectNamecmdShowlinkedWithResponse request returning *PostSourceProjectNamecmdShowlinkedResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdShowlinkedWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdShowlinkedResponse, error) { - rsp, err := c.PostSourceProjectNamecmdShowlinked(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdShowlinkedResponse(rsp) -} - -// PostSourceProjectNamecmdUndeleteWithResponse request returning *PostSourceProjectNamecmdUndeleteResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdUndeleteWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdUndeleteResponse, error) { - rsp, err := c.PostSourceProjectNamecmdUndelete(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdUndeleteResponse(rsp) -} - -// PostSourceProjectNamecmdUnlockWithResponse request returning *PostSourceProjectNamecmdUnlockResponse -func (c *ClientWithResponses) PostSourceProjectNamecmdUnlockWithResponse(ctx context.Context, projectName string, params *PostSourceProjectNamecmdUnlockParams, reqEditors ...RequestEditorFn) (*PostSourceProjectNamecmdUnlockResponse, error) { - rsp, err := c.PostSourceProjectNamecmdUnlock(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourceProjectNamecmdUnlockResponse(rsp) -} - -// GetSourceProjectNameviewInfoWithResponse request returning *GetSourceProjectNameviewInfoResponse -func (c *ClientWithResponses) GetSourceProjectNameviewInfoWithResponse(ctx context.Context, projectName string, params *GetSourceProjectNameviewInfoParams, reqEditors ...RequestEditorFn) (*GetSourceProjectNameviewInfoResponse, error) { - rsp, err := c.GetSourceProjectNameviewInfo(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetSourceProjectNameviewInfoResponse(rsp) -} - -// PostSourcecmdBranchWithResponse request returning *PostSourcecmdBranchResponse -func (c *ClientWithResponses) PostSourcecmdBranchWithResponse(ctx context.Context, params *PostSourcecmdBranchParams, reqEditors ...RequestEditorFn) (*PostSourcecmdBranchResponse, error) { - rsp, err := c.PostSourcecmdBranch(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourcecmdBranchResponse(rsp) -} - -// PostSourcecmdCreatemaintenanceincidentWithResponse request returning *PostSourcecmdCreatemaintenanceincidentResponse -func (c *ClientWithResponses) PostSourcecmdCreatemaintenanceincidentWithResponse(ctx context.Context, params *PostSourcecmdCreatemaintenanceincidentParams, reqEditors ...RequestEditorFn) (*PostSourcecmdCreatemaintenanceincidentResponse, error) { - rsp, err := c.PostSourcecmdCreatemaintenanceincident(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourcecmdCreatemaintenanceincidentResponse(rsp) -} - -// PostSourcecmdOrderkiwireposWithBodyWithResponse request with arbitrary body returning *PostSourcecmdOrderkiwireposResponse -func (c *ClientWithResponses) PostSourcecmdOrderkiwireposWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSourcecmdOrderkiwireposResponse, error) { - rsp, err := c.PostSourcecmdOrderkiwireposWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostSourcecmdOrderkiwireposResponse(rsp) -} - -// GetStagingProjectNameBacklogWithResponse request returning *GetStagingProjectNameBacklogResponse -func (c *ClientWithResponses) GetStagingProjectNameBacklogWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStagingProjectNameBacklogResponse, error) { - rsp, err := c.GetStagingProjectNameBacklog(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStagingProjectNameBacklogResponse(rsp) -} - -// DeleteStagingProjectNameExcludedRequestsWithBodyWithResponse request with arbitrary body returning *DeleteStagingProjectNameExcludedRequestsResponse -func (c *ClientWithResponses) DeleteStagingProjectNameExcludedRequestsWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStagingProjectNameExcludedRequestsResponse, error) { - rsp, err := c.DeleteStagingProjectNameExcludedRequestsWithBody(ctx, projectName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteStagingProjectNameExcludedRequestsResponse(rsp) -} - -// GetStagingProjectNameExcludedRequestsWithResponse request returning *GetStagingProjectNameExcludedRequestsResponse -func (c *ClientWithResponses) GetStagingProjectNameExcludedRequestsWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStagingProjectNameExcludedRequestsResponse, error) { - rsp, err := c.GetStagingProjectNameExcludedRequests(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStagingProjectNameExcludedRequestsResponse(rsp) -} - -// PostStagingProjectNameExcludedRequestsWithBodyWithResponse request with arbitrary body returning *PostStagingProjectNameExcludedRequestsResponse -func (c *ClientWithResponses) PostStagingProjectNameExcludedRequestsWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStagingProjectNameExcludedRequestsResponse, error) { - rsp, err := c.PostStagingProjectNameExcludedRequestsWithBody(ctx, projectName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStagingProjectNameExcludedRequestsResponse(rsp) -} - -// DeleteStagingProjectNameStagedRequestsWithBodyWithResponse request with arbitrary body returning *DeleteStagingProjectNameStagedRequestsResponse -func (c *ClientWithResponses) DeleteStagingProjectNameStagedRequestsWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStagingProjectNameStagedRequestsResponse, error) { - rsp, err := c.DeleteStagingProjectNameStagedRequestsWithBody(ctx, projectName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteStagingProjectNameStagedRequestsResponse(rsp) -} - -// GetStagingProjectNameStagingProjectsWithResponse request returning *GetStagingProjectNameStagingProjectsResponse -func (c *ClientWithResponses) GetStagingProjectNameStagingProjectsWithResponse(ctx context.Context, projectName string, params *GetStagingProjectNameStagingProjectsParams, reqEditors ...RequestEditorFn) (*GetStagingProjectNameStagingProjectsResponse, error) { - rsp, err := c.GetStagingProjectNameStagingProjects(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStagingProjectNameStagingProjectsResponse(rsp) -} - -// PostStagingProjectNameStagingProjectsWithBodyWithResponse request with arbitrary body returning *PostStagingProjectNameStagingProjectsResponse -func (c *ClientWithResponses) PostStagingProjectNameStagingProjectsWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStagingProjectNameStagingProjectsResponse, error) { - rsp, err := c.PostStagingProjectNameStagingProjectsWithBody(ctx, projectName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStagingProjectNameStagingProjectsResponse(rsp) -} - -// GetStagingProjectNameStagingProjectsStagingProjectNameWithResponse request returning *GetStagingProjectNameStagingProjectsStagingProjectNameResponse -func (c *ClientWithResponses) GetStagingProjectNameStagingProjectsStagingProjectNameWithResponse(ctx context.Context, projectName string, stagingProjectName string, params *GetStagingProjectNameStagingProjectsStagingProjectNameParams, reqEditors ...RequestEditorFn) (*GetStagingProjectNameStagingProjectsStagingProjectNameResponse, error) { - rsp, err := c.GetStagingProjectNameStagingProjectsStagingProjectName(ctx, projectName, stagingProjectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStagingProjectNameStagingProjectsStagingProjectNameResponse(rsp) -} - -// PostStagingProjectNameStagingProjectsStagingProjectNameAcceptWithResponse request returning *PostStagingProjectNameStagingProjectsStagingProjectNameAcceptResponse -func (c *ClientWithResponses) PostStagingProjectNameStagingProjectsStagingProjectNameAcceptWithResponse(ctx context.Context, projectName string, stagingProjectName string, reqEditors ...RequestEditorFn) (*PostStagingProjectNameStagingProjectsStagingProjectNameAcceptResponse, error) { - rsp, err := c.PostStagingProjectNameStagingProjectsStagingProjectNameAccept(ctx, projectName, stagingProjectName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStagingProjectNameStagingProjectsStagingProjectNameAcceptResponse(rsp) -} - -// PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameWithResponse request returning *PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameResponse -func (c *ClientWithResponses) PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameWithResponse(ctx context.Context, projectName string, stagingProjectName string, stagingProjectCopyName string, reqEditors ...RequestEditorFn) (*PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameResponse, error) { - rsp, err := c.PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyName(ctx, projectName, stagingProjectName, stagingProjectCopyName, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameResponse(rsp) -} - -// DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBodyWithResponse request with arbitrary body returning *DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse -func (c *ClientWithResponses) DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBodyWithResponse(ctx context.Context, projectName string, stagingProjectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse, error) { - rsp, err := c.DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBody(ctx, projectName, stagingProjectName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse(rsp) -} - -// GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithResponse request returning *GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse -func (c *ClientWithResponses) GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithResponse(ctx context.Context, projectName string, stagingProjectName string, reqEditors ...RequestEditorFn) (*GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse, error) { - rsp, err := c.GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequests(ctx, projectName, stagingProjectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse(rsp) -} - -// PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBodyWithResponse request with arbitrary body returning *PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse -func (c *ClientWithResponses) PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBodyWithResponse(ctx context.Context, projectName string, stagingProjectName string, params *PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse, error) { - rsp, err := c.PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithBody(ctx, projectName, stagingProjectName, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse(rsp) -} - -// DeleteStagingProjectNameWorkflowWithResponse request returning *DeleteStagingProjectNameWorkflowResponse -func (c *ClientWithResponses) DeleteStagingProjectNameWorkflowWithResponse(ctx context.Context, projectName string, params *DeleteStagingProjectNameWorkflowParams, reqEditors ...RequestEditorFn) (*DeleteStagingProjectNameWorkflowResponse, error) { - rsp, err := c.DeleteStagingProjectNameWorkflow(ctx, projectName, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteStagingProjectNameWorkflowResponse(rsp) -} - -// PostStagingProjectNameWorkflowWithBodyWithResponse request with arbitrary body returning *PostStagingProjectNameWorkflowResponse -func (c *ClientWithResponses) PostStagingProjectNameWorkflowWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStagingProjectNameWorkflowResponse, error) { - rsp, err := c.PostStagingProjectNameWorkflowWithBody(ctx, projectName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStagingProjectNameWorkflowResponse(rsp) -} - -// PutStagingProjectNameWorkflowWithBodyWithResponse request with arbitrary body returning *PutStagingProjectNameWorkflowResponse -func (c *ClientWithResponses) PutStagingProjectNameWorkflowWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutStagingProjectNameWorkflowResponse, error) { - rsp, err := c.PutStagingProjectNameWorkflowWithBody(ctx, projectName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePutStagingProjectNameWorkflowResponse(rsp) -} - -// GetStatisticsWithResponse request returning *GetStatisticsResponse -func (c *ClientWithResponses) GetStatisticsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatisticsResponse, error) { - rsp, err := c.GetStatistics(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatisticsResponse(rsp) -} - -// GetStatisticsActiveRequestCreatorsProjectNameWithResponse request returning *GetStatisticsActiveRequestCreatorsProjectNameResponse -func (c *ClientWithResponses) GetStatisticsActiveRequestCreatorsProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStatisticsActiveRequestCreatorsProjectNameResponse, error) { - rsp, err := c.GetStatisticsActiveRequestCreatorsProjectName(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatisticsActiveRequestCreatorsProjectNameResponse(rsp) -} - -// GetStatisticsActivityProjectNamePackageNameWithResponse request returning *GetStatisticsActivityProjectNamePackageNameResponse -func (c *ClientWithResponses) GetStatisticsActivityProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*GetStatisticsActivityProjectNamePackageNameResponse, error) { - rsp, err := c.GetStatisticsActivityProjectNamePackageName(ctx, projectName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatisticsActivityProjectNamePackageNameResponse(rsp) -} - -// GetStatisticsAddedTimestampProjectNamePackageNameWithResponse request returning *GetStatisticsAddedTimestampProjectNamePackageNameResponse -func (c *ClientWithResponses) GetStatisticsAddedTimestampProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*GetStatisticsAddedTimestampProjectNamePackageNameResponse, error) { - rsp, err := c.GetStatisticsAddedTimestampProjectNamePackageName(ctx, projectName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatisticsAddedTimestampProjectNamePackageNameResponse(rsp) -} - -// GetStatisticsGlobalCountersWithResponse request returning *GetStatisticsGlobalCountersResponse -func (c *ClientWithResponses) GetStatisticsGlobalCountersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatisticsGlobalCountersResponse, error) { - rsp, err := c.GetStatisticsGlobalCounters(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatisticsGlobalCountersResponse(rsp) -} - -// GetStatisticsLatestAddedWithResponse request returning *GetStatisticsLatestAddedResponse -func (c *ClientWithResponses) GetStatisticsLatestAddedWithResponse(ctx context.Context, params *GetStatisticsLatestAddedParams, reqEditors ...RequestEditorFn) (*GetStatisticsLatestAddedResponse, error) { - rsp, err := c.GetStatisticsLatestAdded(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatisticsLatestAddedResponse(rsp) -} - -// GetStatisticsLatestUpdatedWithResponse request returning *GetStatisticsLatestUpdatedResponse -func (c *ClientWithResponses) GetStatisticsLatestUpdatedWithResponse(ctx context.Context, params *GetStatisticsLatestUpdatedParams, reqEditors ...RequestEditorFn) (*GetStatisticsLatestUpdatedResponse, error) { - rsp, err := c.GetStatisticsLatestUpdated(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatisticsLatestUpdatedResponse(rsp) -} - -// GetStatisticsMaintenanceStatisticsProjectNameWithResponse request returning *GetStatisticsMaintenanceStatisticsProjectNameResponse -func (c *ClientWithResponses) GetStatisticsMaintenanceStatisticsProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStatisticsMaintenanceStatisticsProjectNameResponse, error) { - rsp, err := c.GetStatisticsMaintenanceStatisticsProjectName(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatisticsMaintenanceStatisticsProjectNameResponse(rsp) -} - -// GetStatisticsMostActivePackagesWithResponse request returning *GetStatisticsMostActivePackagesResponse -func (c *ClientWithResponses) GetStatisticsMostActivePackagesWithResponse(ctx context.Context, params *GetStatisticsMostActivePackagesParams, reqEditors ...RequestEditorFn) (*GetStatisticsMostActivePackagesResponse, error) { - rsp, err := c.GetStatisticsMostActivePackages(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatisticsMostActivePackagesResponse(rsp) -} - -// GetStatisticsMostActiveProjectsWithResponse request returning *GetStatisticsMostActiveProjectsResponse -func (c *ClientWithResponses) GetStatisticsMostActiveProjectsWithResponse(ctx context.Context, params *GetStatisticsMostActiveProjectsParams, reqEditors ...RequestEditorFn) (*GetStatisticsMostActiveProjectsResponse, error) { - rsp, err := c.GetStatisticsMostActiveProjects(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatisticsMostActiveProjectsResponse(rsp) -} - -// GetStatisticsUpdatedTimestampProjectNamePackageNameWithResponse request returning *GetStatisticsUpdatedTimestampProjectNamePackageNameResponse -func (c *ClientWithResponses) GetStatisticsUpdatedTimestampProjectNamePackageNameWithResponse(ctx context.Context, projectName string, packageName string, reqEditors ...RequestEditorFn) (*GetStatisticsUpdatedTimestampProjectNamePackageNameResponse, error) { - rsp, err := c.GetStatisticsUpdatedTimestampProjectNamePackageName(ctx, projectName, packageName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatisticsUpdatedTimestampProjectNamePackageNameResponse(rsp) -} - -// GetStatusMessagesWithResponse request returning *GetStatusMessagesResponse -func (c *ClientWithResponses) GetStatusMessagesWithResponse(ctx context.Context, params *GetStatusMessagesParams, reqEditors ...RequestEditorFn) (*GetStatusMessagesResponse, error) { - rsp, err := c.GetStatusMessages(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatusMessagesResponse(rsp) -} - -// PostStatusMessagesWithBodyWithResponse request with arbitrary body returning *PostStatusMessagesResponse -func (c *ClientWithResponses) PostStatusMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusMessagesResponse, error) { - rsp, err := c.PostStatusMessagesWithBody(ctx, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStatusMessagesResponse(rsp) -} - -// DeleteStatusMessagesIdWithResponse request returning *DeleteStatusMessagesIdResponse -func (c *ClientWithResponses) DeleteStatusMessagesIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteStatusMessagesIdResponse, error) { - rsp, err := c.DeleteStatusMessagesId(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteStatusMessagesIdResponse(rsp) -} - -// GetStatusMessagesIdWithResponse request returning *GetStatusMessagesIdResponse -func (c *ClientWithResponses) GetStatusMessagesIdWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetStatusMessagesIdResponse, error) { - rsp, err := c.GetStatusMessagesId(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatusMessagesIdResponse(rsp) -} - -// GetStatusProjectProjectNameWithResponse request returning *GetStatusProjectProjectNameResponse -func (c *ClientWithResponses) GetStatusProjectProjectNameWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStatusProjectProjectNameResponse, error) { - rsp, err := c.GetStatusProjectProjectName(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatusProjectProjectNameResponse(rsp) -} - -// GetStatusWorkerstatusWithResponse request returning *GetStatusWorkerstatusResponse -func (c *ClientWithResponses) GetStatusWorkerstatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusWorkerstatusResponse, error) { - rsp, err := c.GetStatusWorkerstatus(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatusWorkerstatusResponse(rsp) -} - -// GetStatusMessageWithResponse request returning *GetStatusMessageResponse -func (c *ClientWithResponses) GetStatusMessageWithResponse(ctx context.Context, params *GetStatusMessageParams, reqEditors ...RequestEditorFn) (*GetStatusMessageResponse, error) { - rsp, err := c.GetStatusMessage(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatusMessageResponse(rsp) -} - -// GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithResponse request returning *GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse -func (c *ClientWithResponses) GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, buildId int, reqEditors ...RequestEditorFn) (*GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse, error) { - rsp, err := c.GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildId(ctx, projectName, repositoryName, architectureName, buildId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse(rsp) -} - -// PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithBodyWithResponse request with arbitrary body returning *PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse -func (c *ClientWithResponses) PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, buildId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse, error) { - rsp, err := c.PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithBody(ctx, projectName, repositoryName, architectureName, buildId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse(rsp) -} - -// GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithResponse request returning *GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse -func (c *ClientWithResponses) GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, reqEditors ...RequestEditorFn) (*GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse, error) { - rsp, err := c.GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecks(ctx, projectName, repositoryName, architectureName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse(rsp) -} - -// PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithBodyWithResponse request with arbitrary body returning *PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse -func (c *ClientWithResponses) PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse, error) { - rsp, err := c.PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithBody(ctx, projectName, repositoryName, architectureName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse(rsp) -} - -// DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameWithResponse request returning *DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameResponse -func (c *ClientWithResponses) DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameWithResponse(ctx context.Context, projectName string, repositoryName string, architectureName string, checkName string, reqEditors ...RequestEditorFn) (*DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameResponse, error) { - rsp, err := c.DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckName(ctx, projectName, repositoryName, architectureName, checkName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameResponse(rsp) -} - -// GetStatusReportsProjectsProjectNameRequiredChecksWithResponse request returning *GetStatusReportsProjectsProjectNameRequiredChecksResponse -func (c *ClientWithResponses) GetStatusReportsProjectsProjectNameRequiredChecksWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetStatusReportsProjectsProjectNameRequiredChecksResponse, error) { - rsp, err := c.GetStatusReportsProjectsProjectNameRequiredChecks(ctx, projectName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatusReportsProjectsProjectNameRequiredChecksResponse(rsp) -} - -// PostStatusReportsProjectsProjectNameRequiredChecksWithBodyWithResponse request with arbitrary body returning *PostStatusReportsProjectsProjectNameRequiredChecksResponse -func (c *ClientWithResponses) PostStatusReportsProjectsProjectNameRequiredChecksWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsProjectsProjectNameRequiredChecksResponse, error) { - rsp, err := c.PostStatusReportsProjectsProjectNameRequiredChecksWithBody(ctx, projectName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStatusReportsProjectsProjectNameRequiredChecksResponse(rsp) -} - -// DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameWithResponse request returning *DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameResponse -func (c *ClientWithResponses) DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameWithResponse(ctx context.Context, projectName string, checkName string, reqEditors ...RequestEditorFn) (*DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameResponse, error) { - rsp, err := c.DeleteStatusReportsProjectsProjectNameRequiredChecksCheckName(ctx, projectName, checkName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameResponse(rsp) -} - -// GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithResponse request returning *GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse -func (c *ClientWithResponses) GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithResponse(ctx context.Context, projectName string, repositoryName string, buildId int, reqEditors ...RequestEditorFn) (*GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse, error) { - rsp, err := c.GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildId(ctx, projectName, repositoryName, buildId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse(rsp) -} - -// PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithBodyWithResponse request with arbitrary body returning *PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse -func (c *ClientWithResponses) PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, buildId int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse, error) { - rsp, err := c.PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithBody(ctx, projectName, repositoryName, buildId, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse(rsp) -} - -// GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithResponse request returning *GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse -func (c *ClientWithResponses) GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithResponse(ctx context.Context, projectName string, repositoryName string, reqEditors ...RequestEditorFn) (*GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse, error) { - rsp, err := c.GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecks(ctx, projectName, repositoryName, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse(rsp) -} - -// PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithBodyWithResponse request with arbitrary body returning *PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse -func (c *ClientWithResponses) PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithBodyWithResponse(ctx context.Context, projectName string, repositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse, error) { - rsp, err := c.PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithBody(ctx, projectName, repositoryName, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse(rsp) -} - -// DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameWithResponse request returning *DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameResponse -func (c *ClientWithResponses) DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameWithResponse(ctx context.Context, projectName string, repositoryName string, checkName string, reqEditors ...RequestEditorFn) (*DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameResponse, error) { - rsp, err := c.DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckName(ctx, projectName, repositoryName, checkName, reqEditors...) - if err != nil { - return nil, err - } - return ParseDeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameResponse(rsp) -} - -// GetStatusReportsRequestsIdReportsWithResponse request returning *GetStatusReportsRequestsIdReportsResponse -func (c *ClientWithResponses) GetStatusReportsRequestsIdReportsWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetStatusReportsRequestsIdReportsResponse, error) { - rsp, err := c.GetStatusReportsRequestsIdReports(ctx, id, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetStatusReportsRequestsIdReportsResponse(rsp) -} - -// PostStatusReportsRequestsIdReportsWithBodyWithResponse request with arbitrary body returning *PostStatusReportsRequestsIdReportsResponse -func (c *ClientWithResponses) PostStatusReportsRequestsIdReportsWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStatusReportsRequestsIdReportsResponse, error) { - rsp, err := c.PostStatusReportsRequestsIdReportsWithBody(ctx, id, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostStatusReportsRequestsIdReportsResponse(rsp) -} - -// PostTriggerWithResponse request returning *PostTriggerResponse -func (c *ClientWithResponses) PostTriggerWithResponse(ctx context.Context, params *PostTriggerParams, reqEditors ...RequestEditorFn) (*PostTriggerResponse, error) { - rsp, err := c.PostTrigger(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostTriggerResponse(rsp) -} - -// PostTriggerRebuildWithResponse request returning *PostTriggerRebuildResponse -func (c *ClientWithResponses) PostTriggerRebuildWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostTriggerRebuildResponse, error) { - rsp, err := c.PostTriggerRebuild(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostTriggerRebuildResponse(rsp) -} - -// PostTriggerReleaseWithResponse request returning *PostTriggerReleaseResponse -func (c *ClientWithResponses) PostTriggerReleaseWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostTriggerReleaseResponse, error) { - rsp, err := c.PostTriggerRelease(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostTriggerReleaseResponse(rsp) -} - -// PostTriggerRunserviceWithResponse request returning *PostTriggerRunserviceResponse -func (c *ClientWithResponses) PostTriggerRunserviceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostTriggerRunserviceResponse, error) { - rsp, err := c.PostTriggerRunservice(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostTriggerRunserviceResponse(rsp) -} - -// PostTriggerWebhookWithResponse request returning *PostTriggerWebhookResponse -func (c *ClientWithResponses) PostTriggerWebhookWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PostTriggerWebhookResponse, error) { - rsp, err := c.PostTriggerWebhook(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostTriggerWebhookResponse(rsp) -} - -// PostTriggerWorkflowWithResponse request returning *PostTriggerWorkflowResponse -func (c *ClientWithResponses) PostTriggerWorkflowWithResponse(ctx context.Context, params *PostTriggerWorkflowParams, reqEditors ...RequestEditorFn) (*PostTriggerWorkflowResponse, error) { - rsp, err := c.PostTriggerWorkflow(ctx, params, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostTriggerWorkflowResponse(rsp) -} - -// GetWorkerStatusWithResponse request returning *GetWorkerStatusResponse -func (c *ClientWithResponses) GetWorkerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkerStatusResponse, error) { - rsp, err := c.GetWorkerStatus(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWorkerStatusResponse(rsp) -} - -// GetWorkerStatusWithResponse request returning *GetWorkerStatusResponse -func (c *ClientWithResponses) GetWorkerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkerStatusResponse, error) { - rsp, err := c.GetWorkerStatus(ctx, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWorkerStatusResponse(rsp) -} - -// GetWorkerArchitectureNameWorkerIdWithResponse request returning *GetWorkerArchitectureNameWorkerIdResponse -func (c *ClientWithResponses) GetWorkerArchitectureNameWorkerIdWithResponse(ctx context.Context, architectureName string, workerId string, reqEditors ...RequestEditorFn) (*GetWorkerArchitectureNameWorkerIdResponse, error) { - rsp, err := c.GetWorkerArchitectureNameWorkerId(ctx, architectureName, workerId, reqEditors...) - if err != nil { - return nil, err - } - return ParseGetWorkerArchitectureNameWorkerIdResponse(rsp) -} - -// PostWorkercmdCheckconstraintsWithBodyWithResponse request with arbitrary body returning *PostWorkercmdCheckconstraintsResponse -func (c *ClientWithResponses) PostWorkercmdCheckconstraintsWithBodyWithResponse(ctx context.Context, params *PostWorkercmdCheckconstraintsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostWorkercmdCheckconstraintsResponse, error) { - rsp, err := c.PostWorkercmdCheckconstraintsWithBody(ctx, params, contentType, body, reqEditors...) - if err != nil { - return nil, err - } - return ParsePostWorkercmdCheckconstraintsResponse(rsp) -} - -// ParseGetAboutResponse parses an HTTP response from a GetAboutWithResponse call -func ParseGetAboutResponse(rsp *http.Response) (*GetAboutResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAboutResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetAnnouncementsResponse parses an HTTP response from a GetAnnouncementsWithResponse call -func ParseGetAnnouncementsResponse(rsp *http.Response) (*GetAnnouncementsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAnnouncementsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostAnnouncementsResponse parses an HTTP response from a PostAnnouncementsWithResponse call -func ParsePostAnnouncementsResponse(rsp *http.Response) (*PostAnnouncementsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostAnnouncementsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteAnnouncementsAnnouncementIdResponse parses an HTTP response from a DeleteAnnouncementsAnnouncementIdWithResponse call -func ParseDeleteAnnouncementsAnnouncementIdResponse(rsp *http.Response) (*DeleteAnnouncementsAnnouncementIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteAnnouncementsAnnouncementIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetAnnouncementsAnnouncementIdResponse parses an HTTP response from a GetAnnouncementsAnnouncementIdWithResponse call -func ParseGetAnnouncementsAnnouncementIdResponse(rsp *http.Response) (*GetAnnouncementsAnnouncementIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAnnouncementsAnnouncementIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutAnnouncementsAnnouncementIdResponse parses an HTTP response from a PutAnnouncementsAnnouncementIdWithResponse call -func ParsePutAnnouncementsAnnouncementIdResponse(rsp *http.Response) (*PutAnnouncementsAnnouncementIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutAnnouncementsAnnouncementIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetArchitecturesResponse parses an HTTP response from a GetArchitecturesWithResponse call -func ParseGetArchitecturesResponse(rsp *http.Response) (*GetArchitecturesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetArchitecturesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetArchitecturesArchitectureNameResponse parses an HTTP response from a GetArchitecturesArchitectureNameWithResponse call -func ParseGetArchitecturesArchitectureNameResponse(rsp *http.Response) (*GetArchitecturesArchitectureNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetArchitecturesArchitectureNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetAttributeResponse parses an HTTP response from a GetAttributeWithResponse call -func ParseGetAttributeResponse(rsp *http.Response) (*GetAttributeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAttributeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteAttributeNamespaceResponse parses an HTTP response from a DeleteAttributeNamespaceWithResponse call -func ParseDeleteAttributeNamespaceResponse(rsp *http.Response) (*DeleteAttributeNamespaceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteAttributeNamespaceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetAttributeNamespaceResponse parses an HTTP response from a GetAttributeNamespaceWithResponse call -func ParseGetAttributeNamespaceResponse(rsp *http.Response) (*GetAttributeNamespaceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAttributeNamespaceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteAttributeNamespaceMetaResponse parses an HTTP response from a DeleteAttributeNamespaceMetaWithResponse call -func ParseDeleteAttributeNamespaceMetaResponse(rsp *http.Response) (*DeleteAttributeNamespaceMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteAttributeNamespaceMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetAttributeNamespaceMetaResponse parses an HTTP response from a GetAttributeNamespaceMetaWithResponse call -func ParseGetAttributeNamespaceMetaResponse(rsp *http.Response) (*GetAttributeNamespaceMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAttributeNamespaceMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostAttributeNamespaceMetaResponse parses an HTTP response from a PostAttributeNamespaceMetaWithResponse call -func ParsePostAttributeNamespaceMetaResponse(rsp *http.Response) (*PostAttributeNamespaceMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostAttributeNamespaceMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutAttributeNamespaceMetaResponse parses an HTTP response from a PutAttributeNamespaceMetaWithResponse call -func ParsePutAttributeNamespaceMetaResponse(rsp *http.Response) (*PutAttributeNamespaceMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutAttributeNamespaceMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteAttributeNamespaceAttributeNameResponse parses an HTTP response from a DeleteAttributeNamespaceAttributeNameWithResponse call -func ParseDeleteAttributeNamespaceAttributeNameResponse(rsp *http.Response) (*DeleteAttributeNamespaceAttributeNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteAttributeNamespaceAttributeNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteAttributeNamespaceAttributeNameMetaResponse parses an HTTP response from a DeleteAttributeNamespaceAttributeNameMetaWithResponse call -func ParseDeleteAttributeNamespaceAttributeNameMetaResponse(rsp *http.Response) (*DeleteAttributeNamespaceAttributeNameMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteAttributeNamespaceAttributeNameMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetAttributeNamespaceAttributeNameMetaResponse parses an HTTP response from a GetAttributeNamespaceAttributeNameMetaWithResponse call -func ParseGetAttributeNamespaceAttributeNameMetaResponse(rsp *http.Response) (*GetAttributeNamespaceAttributeNameMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetAttributeNamespaceAttributeNameMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostAttributeNamespaceAttributeNameMetaResponse parses an HTTP response from a PostAttributeNamespaceAttributeNameMetaWithResponse call -func ParsePostAttributeNamespaceAttributeNameMetaResponse(rsp *http.Response) (*PostAttributeNamespaceAttributeNameMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostAttributeNamespaceAttributeNameMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutAttributeNamespaceAttributeNameMetaResponse parses an HTTP response from a PutAttributeNamespaceAttributeNameMetaWithResponse call -func ParsePutAttributeNamespaceAttributeNameMetaResponse(rsp *http.Response) (*PutAttributeNamespaceAttributeNameMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutAttributeNamespaceAttributeNameMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildResponse parses an HTTP response from a GetBuildWithResponse call -func ParseGetBuildResponse(rsp *http.Response) (*GetBuildResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildWorkerstatusResponse parses an HTTP response from a GetBuildWorkerstatusWithResponse call -func ParseGetBuildWorkerstatusResponse(rsp *http.Response) (*GetBuildWorkerstatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildWorkerstatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameResponse parses an HTTP response from a GetBuildProjectNameWithResponse call -func ParseGetBuildProjectNameResponse(rsp *http.Response) (*GetBuildProjectNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostBuildProjectNameResponse parses an HTTP response from a PostBuildProjectNameWithResponse call -func ParsePostBuildProjectNameResponse(rsp *http.Response) (*PostBuildProjectNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostBuildProjectNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameResultResponse parses an HTTP response from a GetBuildProjectNameResultWithResponse call -func ParseGetBuildProjectNameResultResponse(rsp *http.Response) (*GetBuildProjectNameResultResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameResultResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameWithResponse call -func ParseGetBuildProjectNameRepositoryNameResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameBuildconfigResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameBuildconfigWithResponse call -func ParseGetBuildProjectNameRepositoryNameBuildconfigResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameBuildconfigResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameBuildconfigResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse parses an HTTP response from a PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoWithResponse call -func ParsePostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse(rsp *http.Response) (*PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostBuildProjectNameRepositoryNameArchitectureNameBuilddepinfoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNameJobhistoryResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNameJobhistoryResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNameJobhistoryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNameRepositoryResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNameRepositoryWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNameRepositoryResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNameRepositoryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNameRepositoryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNamePackageNameWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNamePackageNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildenvResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse parses an HTTP response from a PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoWithResponse call -func ParsePostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse(rsp *http.Response) (*PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostBuildProjectNameRepositoryNameArchitectureNamePackageNameBuildinfoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse parses an HTTP response from a PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryWithResponse call -func ParsePostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse(rsp *http.Response) (*PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostBuildProjectNameRepositoryNameArchitectureNamePackageNameHistoryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNamePackageNameJobstatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNamePackageNameLogResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNamePackageNameReasonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatisticsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse parses an HTTP response from a PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusWithResponse call -func ParsePostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse(rsp *http.Response) (*PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostBuildProjectNameRepositoryNameArchitectureNamePackageNameStatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse parses an HTTP response from a DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithResponse call -func ParseDeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse(rsp *http.Response) (*DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse parses an HTTP response from a PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameWithResponse call -func ParsePutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse(rsp *http.Response) (*PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoResponse parses an HTTP response from a GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoWithResponse call -func ParseGetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoResponse(rsp *http.Response) (*GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetBuildProjectNameRepositoryNameArchitectureNamePackageNameFileNameviewFileinfoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteCommentCommentIdResponse parses an HTTP response from a DeleteCommentCommentIdWithResponse call -func ParseDeleteCommentCommentIdResponse(rsp *http.Response) (*DeleteCommentCommentIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteCommentCommentIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetCommentCommentIdHistoryResponse parses an HTTP response from a GetCommentCommentIdHistoryWithResponse call -func ParseGetCommentCommentIdHistoryResponse(rsp *http.Response) (*GetCommentCommentIdHistoryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetCommentCommentIdHistoryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetCommentsPackageProjectNamePackageNameResponse parses an HTTP response from a GetCommentsPackageProjectNamePackageNameWithResponse call -func ParseGetCommentsPackageProjectNamePackageNameResponse(rsp *http.Response) (*GetCommentsPackageProjectNamePackageNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetCommentsPackageProjectNamePackageNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostCommentsPackageProjectNamePackageNameResponse parses an HTTP response from a PostCommentsPackageProjectNamePackageNameWithResponse call -func ParsePostCommentsPackageProjectNamePackageNameResponse(rsp *http.Response) (*PostCommentsPackageProjectNamePackageNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostCommentsPackageProjectNamePackageNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetCommentsProjectProjectNameResponse parses an HTTP response from a GetCommentsProjectProjectNameWithResponse call -func ParseGetCommentsProjectProjectNameResponse(rsp *http.Response) (*GetCommentsProjectProjectNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetCommentsProjectProjectNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostCommentsProjectProjectNameResponse parses an HTTP response from a PostCommentsProjectProjectNameWithResponse call -func ParsePostCommentsProjectProjectNameResponse(rsp *http.Response) (*PostCommentsProjectProjectNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostCommentsProjectProjectNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetCommentsRequestIdResponse parses an HTTP response from a GetCommentsRequestIdWithResponse call -func ParseGetCommentsRequestIdResponse(rsp *http.Response) (*GetCommentsRequestIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetCommentsRequestIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostCommentsRequestIdResponse parses an HTTP response from a PostCommentsRequestIdWithResponse call -func ParsePostCommentsRequestIdResponse(rsp *http.Response) (*PostCommentsRequestIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostCommentsRequestIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetCommentsUserResponse parses an HTTP response from a GetCommentsUserWithResponse call -func ParseGetCommentsUserResponse(rsp *http.Response) (*GetCommentsUserResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetCommentsUserResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetConfigurationResponse parses an HTTP response from a GetConfigurationWithResponse call -func ParseGetConfigurationResponse(rsp *http.Response) (*GetConfigurationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetConfigurationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutConfigurationResponse parses an HTTP response from a PutConfigurationWithResponse call -func ParsePutConfigurationResponse(rsp *http.Response) (*PutConfigurationResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutConfigurationResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetDistributionsResponse parses an HTTP response from a GetDistributionsWithResponse call -func ParseGetDistributionsResponse(rsp *http.Response) (*GetDistributionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetDistributionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostDistributionsResponse parses an HTTP response from a PostDistributionsWithResponse call -func ParsePostDistributionsResponse(rsp *http.Response) (*PostDistributionsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostDistributionsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutDistributionsBulkReplaceResponse parses an HTTP response from a PutDistributionsBulkReplaceWithResponse call -func ParsePutDistributionsBulkReplaceResponse(rsp *http.Response) (*PutDistributionsBulkReplaceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutDistributionsBulkReplaceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetDistributionsIncludeRemotesResponse parses an HTTP response from a GetDistributionsIncludeRemotesWithResponse call -func ParseGetDistributionsIncludeRemotesResponse(rsp *http.Response) (*GetDistributionsIncludeRemotesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetDistributionsIncludeRemotesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteDistributionsDistributionIdResponse parses an HTTP response from a DeleteDistributionsDistributionIdWithResponse call -func ParseDeleteDistributionsDistributionIdResponse(rsp *http.Response) (*DeleteDistributionsDistributionIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteDistributionsDistributionIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetDistributionsDistributionIdResponse parses an HTTP response from a GetDistributionsDistributionIdWithResponse call -func ParseGetDistributionsDistributionIdResponse(rsp *http.Response) (*GetDistributionsDistributionIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetDistributionsDistributionIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutDistributionsDistributionIdResponse parses an HTTP response from a PutDistributionsDistributionIdWithResponse call -func ParsePutDistributionsDistributionIdResponse(rsp *http.Response) (*PutDistributionsDistributionIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutDistributionsDistributionIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetGroupResponse parses an HTTP response from a GetGroupWithResponse call -func ParseGetGroupResponse(rsp *http.Response) (*GetGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteGroupGroupTitleResponse parses an HTTP response from a DeleteGroupGroupTitleWithResponse call -func ParseDeleteGroupGroupTitleResponse(rsp *http.Response) (*DeleteGroupGroupTitleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteGroupGroupTitleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetGroupGroupTitleResponse parses an HTTP response from a GetGroupGroupTitleWithResponse call -func ParseGetGroupGroupTitleResponse(rsp *http.Response) (*GetGroupGroupTitleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetGroupGroupTitleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostGroupGroupTitleResponse parses an HTTP response from a PostGroupGroupTitleWithResponse call -func ParsePostGroupGroupTitleResponse(rsp *http.Response) (*PostGroupGroupTitleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostGroupGroupTitleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutGroupGroupTitleResponse parses an HTTP response from a PutGroupGroupTitleWithResponse call -func ParsePutGroupGroupTitleResponse(rsp *http.Response) (*PutGroupGroupTitleResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutGroupGroupTitleResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetImageTemplatesResponse parses an HTTP response from a GetImageTemplatesWithResponse call -func ParseGetImageTemplatesResponse(rsp *http.Response) (*GetImageTemplatesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetImageTemplatesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetIssueTrackersResponse parses an HTTP response from a GetIssueTrackersWithResponse call -func ParseGetIssueTrackersResponse(rsp *http.Response) (*GetIssueTrackersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetIssueTrackersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostIssueTrackersResponse parses an HTTP response from a PostIssueTrackersWithResponse call -func ParsePostIssueTrackersResponse(rsp *http.Response) (*PostIssueTrackersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostIssueTrackersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteIssueTrackersIssueTrackerNameResponse parses an HTTP response from a DeleteIssueTrackersIssueTrackerNameWithResponse call -func ParseDeleteIssueTrackersIssueTrackerNameResponse(rsp *http.Response) (*DeleteIssueTrackersIssueTrackerNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteIssueTrackersIssueTrackerNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetIssueTrackersIssueTrackerNameResponse parses an HTTP response from a GetIssueTrackersIssueTrackerNameWithResponse call -func ParseGetIssueTrackersIssueTrackerNameResponse(rsp *http.Response) (*GetIssueTrackersIssueTrackerNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetIssueTrackersIssueTrackerNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutIssueTrackersIssueTrackerNameResponse parses an HTTP response from a PutIssueTrackersIssueTrackerNameWithResponse call -func ParsePutIssueTrackersIssueTrackerNameResponse(rsp *http.Response) (*PutIssueTrackersIssueTrackerNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutIssueTrackersIssueTrackerNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetIssueTrackersIssueTrackerNameIssuesIssueNameResponse parses an HTTP response from a GetIssueTrackersIssueTrackerNameIssuesIssueNameWithResponse call -func ParseGetIssueTrackersIssueTrackerNameIssuesIssueNameResponse(rsp *http.Response) (*GetIssueTrackersIssueTrackerNameIssuesIssueNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetIssueTrackersIssueTrackerNameIssuesIssueNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetMyNotificationsResponse parses an HTTP response from a GetMyNotificationsWithResponse call -func ParseGetMyNotificationsResponse(rsp *http.Response) (*GetMyNotificationsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetMyNotificationsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutMyNotificationsIdResponse parses an HTTP response from a PutMyNotificationsIdWithResponse call -func ParsePutMyNotificationsIdResponse(rsp *http.Response) (*PutMyNotificationsIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutMyNotificationsIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetPersonResponse parses an HTTP response from a GetPersonWithResponse call -func ParseGetPersonResponse(rsp *http.Response) (*GetPersonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPersonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostPersonResponse parses an HTTP response from a PostPersonWithResponse call -func ParsePostPersonResponse(rsp *http.Response) (*PostPersonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostPersonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostPersonRegisterResponse parses an HTTP response from a PostPersonRegisterWithResponse call -func ParsePostPersonRegisterResponse(rsp *http.Response) (*PostPersonRegisterResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostPersonRegisterResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetPersonLoginResponse parses an HTTP response from a GetPersonLoginWithResponse call -func ParseGetPersonLoginResponse(rsp *http.Response) (*GetPersonLoginResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPersonLoginResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostPersonLoginResponse parses an HTTP response from a PostPersonLoginWithResponse call -func ParsePostPersonLoginResponse(rsp *http.Response) (*PostPersonLoginResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostPersonLoginResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutPersonLoginResponse parses an HTTP response from a PutPersonLoginWithResponse call -func ParsePutPersonLoginResponse(rsp *http.Response) (*PutPersonLoginResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutPersonLoginResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetPersonLoginGroupResponse parses an HTTP response from a GetPersonLoginGroupWithResponse call -func ParseGetPersonLoginGroupResponse(rsp *http.Response) (*GetPersonLoginGroupResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPersonLoginGroupResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetPersonLoginTokenResponse parses an HTTP response from a GetPersonLoginTokenWithResponse call -func ParseGetPersonLoginTokenResponse(rsp *http.Response) (*GetPersonLoginTokenResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPersonLoginTokenResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostPersonLoginTokenResponse parses an HTTP response from a PostPersonLoginTokenWithResponse call -func ParsePostPersonLoginTokenResponse(rsp *http.Response) (*PostPersonLoginTokenResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostPersonLoginTokenResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeletePersonLoginTokenIdResponse parses an HTTP response from a DeletePersonLoginTokenIdWithResponse call -func ParseDeletePersonLoginTokenIdResponse(rsp *http.Response) (*DeletePersonLoginTokenIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeletePersonLoginTokenIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetPersonLoginWatchlistResponse parses an HTTP response from a GetPersonLoginWatchlistWithResponse call -func ParseGetPersonLoginWatchlistResponse(rsp *http.Response) (*GetPersonLoginWatchlistResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPersonLoginWatchlistResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutPersonLoginWatchlistResponse parses an HTTP response from a PutPersonLoginWatchlistWithResponse call -func ParsePutPersonLoginWatchlistResponse(rsp *http.Response) (*PutPersonLoginWatchlistResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutPersonLoginWatchlistResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetPublishedResponse parses an HTTP response from a GetPublishedWithResponse call -func ParseGetPublishedResponse(rsp *http.Response) (*GetPublishedResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPublishedResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetPublishedProjectNameResponse parses an HTTP response from a GetPublishedProjectNameWithResponse call -func ParseGetPublishedProjectNameResponse(rsp *http.Response) (*GetPublishedProjectNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPublishedProjectNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetPublishedProjectNameRepositoryNameResponse parses an HTTP response from a GetPublishedProjectNameRepositoryNameWithResponse call -func ParseGetPublishedProjectNameRepositoryNameResponse(rsp *http.Response) (*GetPublishedProjectNameRepositoryNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPublishedProjectNameRepositoryNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetPublishedProjectNameRepositoryNameArchitectureNameResponse parses an HTTP response from a GetPublishedProjectNameRepositoryNameArchitectureNameWithResponse call -func ParseGetPublishedProjectNameRepositoryNameArchitectureNameResponse(rsp *http.Response) (*GetPublishedProjectNameRepositoryNameArchitectureNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPublishedProjectNameRepositoryNameArchitectureNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameResponse parses an HTTP response from a GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameWithResponse call -func ParseGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameResponse(rsp *http.Response) (*GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "xml") && rsp.StatusCode == 200: - var dest openapi_types.File - if err := xml.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.XML200 = &dest - - case rsp.StatusCode == 200: - // Content-type (application/*) unsupported - - } - - return response, nil -} - -// ParseGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpResponse parses an HTTP response from a GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpWithResponse call -func ParseGetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpResponse(rsp *http.Response) (*GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPublishedProjectNameRepositoryNameArchitectureNameBinaryFilenameviewYmpResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetPublishedProjectNameRepositoryNameviewStatusResponse parses an HTTP response from a GetPublishedProjectNameRepositoryNameviewStatusWithResponse call -func ParseGetPublishedProjectNameRepositoryNameviewStatusResponse(rsp *http.Response) (*GetPublishedProjectNameRepositoryNameviewStatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetPublishedProjectNameRepositoryNameviewStatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetRequestResponse parses an HTTP response from a GetRequestWithResponse call -func ParseGetRequestResponse(rsp *http.Response) (*GetRequestResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetRequestResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostRequestResponse parses an HTTP response from a PostRequestWithResponse call -func ParsePostRequestResponse(rsp *http.Response) (*PostRequestResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostRequestResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteRequestIdResponse parses an HTTP response from a DeleteRequestIdWithResponse call -func ParseDeleteRequestIdResponse(rsp *http.Response) (*DeleteRequestIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteRequestIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetRequestIdResponse parses an HTTP response from a GetRequestIdWithResponse call -func ParseGetRequestIdResponse(rsp *http.Response) (*GetRequestIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetRequestIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostRequestIdResponse parses an HTTP response from a PostRequestIdWithResponse call -func ParsePostRequestIdResponse(rsp *http.Response) (*PostRequestIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostRequestIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutRequestIdResponse parses an HTTP response from a PutRequestIdWithResponse call -func ParsePutRequestIdResponse(rsp *http.Response) (*PutRequestIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutRequestIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostRequestIdcmdDiffResponse parses an HTTP response from a PostRequestIdcmdDiffWithResponse call -func ParsePostRequestIdcmdDiffResponse(rsp *http.Response) (*PostRequestIdcmdDiffResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostRequestIdcmdDiffResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetRequestviewCollectionResponse parses an HTTP response from a GetRequestviewCollectionWithResponse call -func ParseGetRequestviewCollectionResponse(rsp *http.Response) (*GetRequestviewCollectionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetRequestviewCollectionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchResponse parses an HTTP response from a GetSearchWithResponse call -func ParseGetSearchResponse(rsp *http.Response) (*GetSearchResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchResponse parses an HTTP response from a PostSearchWithResponse call -func ParsePostSearchResponse(rsp *http.Response) (*PostSearchResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchChannelResponse parses an HTTP response from a GetSearchChannelWithResponse call -func ParseGetSearchChannelResponse(rsp *http.Response) (*GetSearchChannelResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchChannelResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchChannelResponse parses an HTTP response from a PostSearchChannelWithResponse call -func ParsePostSearchChannelResponse(rsp *http.Response) (*PostSearchChannelResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchChannelResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchChannelBinaryResponse parses an HTTP response from a GetSearchChannelBinaryWithResponse call -func ParseGetSearchChannelBinaryResponse(rsp *http.Response) (*GetSearchChannelBinaryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchChannelBinaryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchChannelBinaryResponse parses an HTTP response from a PostSearchChannelBinaryWithResponse call -func ParsePostSearchChannelBinaryResponse(rsp *http.Response) (*PostSearchChannelBinaryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchChannelBinaryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchChannelBinaryIdResponse parses an HTTP response from a GetSearchChannelBinaryIdWithResponse call -func ParseGetSearchChannelBinaryIdResponse(rsp *http.Response) (*GetSearchChannelBinaryIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchChannelBinaryIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchChannelBinaryIdResponse parses an HTTP response from a PostSearchChannelBinaryIdWithResponse call -func ParsePostSearchChannelBinaryIdResponse(rsp *http.Response) (*PostSearchChannelBinaryIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchChannelBinaryIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchIssueResponse parses an HTTP response from a GetSearchIssueWithResponse call -func ParseGetSearchIssueResponse(rsp *http.Response) (*GetSearchIssueResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchIssueResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchIssueResponse parses an HTTP response from a PostSearchIssueWithResponse call -func ParsePostSearchIssueResponse(rsp *http.Response) (*PostSearchIssueResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchIssueResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchMissingOwnerResponse parses an HTTP response from a GetSearchMissingOwnerWithResponse call -func ParseGetSearchMissingOwnerResponse(rsp *http.Response) (*GetSearchMissingOwnerResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchMissingOwnerResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchMissingOwnerResponse parses an HTTP response from a PostSearchMissingOwnerWithResponse call -func ParsePostSearchMissingOwnerResponse(rsp *http.Response) (*PostSearchMissingOwnerResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchMissingOwnerResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchOwnerResponse parses an HTTP response from a GetSearchOwnerWithResponse call -func ParseGetSearchOwnerResponse(rsp *http.Response) (*GetSearchOwnerResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchOwnerResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchOwnerResponse parses an HTTP response from a PostSearchOwnerWithResponse call -func ParsePostSearchOwnerResponse(rsp *http.Response) (*PostSearchOwnerResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchOwnerResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchPackageResponse parses an HTTP response from a GetSearchPackageWithResponse call -func ParseGetSearchPackageResponse(rsp *http.Response) (*GetSearchPackageResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchPackageResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchPackageResponse parses an HTTP response from a PostSearchPackageWithResponse call -func ParsePostSearchPackageResponse(rsp *http.Response) (*PostSearchPackageResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchPackageResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchPackageIdResponse parses an HTTP response from a GetSearchPackageIdWithResponse call -func ParseGetSearchPackageIdResponse(rsp *http.Response) (*GetSearchPackageIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchPackageIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchPackageIdResponse parses an HTTP response from a PostSearchPackageIdWithResponse call -func ParsePostSearchPackageIdResponse(rsp *http.Response) (*PostSearchPackageIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchPackageIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchPackageIdResponse parses an HTTP response from a GetSearchPackageIdWithResponse call -func ParseGetSearchPackageIdResponse(rsp *http.Response) (*GetSearchPackageIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchPackageIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchPackageIdResponse parses an HTTP response from a PostSearchPackageIdWithResponse call -func ParsePostSearchPackageIdResponse(rsp *http.Response) (*PostSearchPackageIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchPackageIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchPersonResponse parses an HTTP response from a GetSearchPersonWithResponse call -func ParseGetSearchPersonResponse(rsp *http.Response) (*GetSearchPersonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchPersonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchPersonResponse parses an HTTP response from a PostSearchPersonWithResponse call -func ParsePostSearchPersonResponse(rsp *http.Response) (*PostSearchPersonResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchPersonResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchProjectResponse parses an HTTP response from a GetSearchProjectWithResponse call -func ParseGetSearchProjectResponse(rsp *http.Response) (*GetSearchProjectResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchProjectResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchProjectResponse parses an HTTP response from a PostSearchProjectWithResponse call -func ParsePostSearchProjectResponse(rsp *http.Response) (*PostSearchProjectResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchProjectResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchProjectIdResponse parses an HTTP response from a GetSearchProjectIdWithResponse call -func ParseGetSearchProjectIdResponse(rsp *http.Response) (*GetSearchProjectIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchProjectIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchProjectIdResponse parses an HTTP response from a PostSearchProjectIdWithResponse call -func ParsePostSearchProjectIdResponse(rsp *http.Response) (*PostSearchProjectIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchProjectIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchProjectIdResponse parses an HTTP response from a GetSearchProjectIdWithResponse call -func ParseGetSearchProjectIdResponse(rsp *http.Response) (*GetSearchProjectIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchProjectIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchProjectIdResponse parses an HTTP response from a PostSearchProjectIdWithResponse call -func ParsePostSearchProjectIdResponse(rsp *http.Response) (*PostSearchProjectIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchProjectIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchPublishedBinaryIdResponse parses an HTTP response from a GetSearchPublishedBinaryIdWithResponse call -func ParseGetSearchPublishedBinaryIdResponse(rsp *http.Response) (*GetSearchPublishedBinaryIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchPublishedBinaryIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchPublishedBinaryIdResponse parses an HTTP response from a PostSearchPublishedBinaryIdWithResponse call -func ParsePostSearchPublishedBinaryIdResponse(rsp *http.Response) (*PostSearchPublishedBinaryIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchPublishedBinaryIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchPublishedPatternIdResponse parses an HTTP response from a GetSearchPublishedPatternIdWithResponse call -func ParseGetSearchPublishedPatternIdResponse(rsp *http.Response) (*GetSearchPublishedPatternIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchPublishedPatternIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchPublishedPatternIdResponse parses an HTTP response from a PostSearchPublishedPatternIdWithResponse call -func ParsePostSearchPublishedPatternIdResponse(rsp *http.Response) (*PostSearchPublishedPatternIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchPublishedPatternIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchPublishedRepoinfoIdResponse parses an HTTP response from a GetSearchPublishedRepoinfoIdWithResponse call -func ParseGetSearchPublishedRepoinfoIdResponse(rsp *http.Response) (*GetSearchPublishedRepoinfoIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchPublishedRepoinfoIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchPublishedRepoinfoIdResponse parses an HTTP response from a PostSearchPublishedRepoinfoIdWithResponse call -func ParsePostSearchPublishedRepoinfoIdResponse(rsp *http.Response) (*PostSearchPublishedRepoinfoIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchPublishedRepoinfoIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchReleasedBinaryResponse parses an HTTP response from a GetSearchReleasedBinaryWithResponse call -func ParseGetSearchReleasedBinaryResponse(rsp *http.Response) (*GetSearchReleasedBinaryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchReleasedBinaryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchReleasedBinaryResponse parses an HTTP response from a PostSearchReleasedBinaryWithResponse call -func ParsePostSearchReleasedBinaryResponse(rsp *http.Response) (*PostSearchReleasedBinaryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchReleasedBinaryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchReleasedBinaryIdResponse parses an HTTP response from a GetSearchReleasedBinaryIdWithResponse call -func ParseGetSearchReleasedBinaryIdResponse(rsp *http.Response) (*GetSearchReleasedBinaryIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchReleasedBinaryIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchReleasedBinaryIdResponse parses an HTTP response from a PostSearchReleasedBinaryIdWithResponse call -func ParsePostSearchReleasedBinaryIdResponse(rsp *http.Response) (*PostSearchReleasedBinaryIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchReleasedBinaryIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchRepositoryIdResponse parses an HTTP response from a GetSearchRepositoryIdWithResponse call -func ParseGetSearchRepositoryIdResponse(rsp *http.Response) (*GetSearchRepositoryIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchRepositoryIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchRepositoryIdResponse parses an HTTP response from a PostSearchRepositoryIdWithResponse call -func ParsePostSearchRepositoryIdResponse(rsp *http.Response) (*PostSearchRepositoryIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchRepositoryIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchRequestResponse parses an HTTP response from a GetSearchRequestWithResponse call -func ParseGetSearchRequestResponse(rsp *http.Response) (*GetSearchRequestResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchRequestResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchRequestResponse parses an HTTP response from a PostSearchRequestWithResponse call -func ParsePostSearchRequestResponse(rsp *http.Response) (*PostSearchRequestResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchRequestResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSearchRequestIdResponse parses an HTTP response from a GetSearchRequestIdWithResponse call -func ParseGetSearchRequestIdResponse(rsp *http.Response) (*GetSearchRequestIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSearchRequestIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSearchRequestIdResponse parses an HTTP response from a PostSearchRequestIdWithResponse call -func ParsePostSearchRequestIdResponse(rsp *http.Response) (*PostSearchRequestIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSearchRequestIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetServiceResponse parses an HTTP response from a GetServiceWithResponse call -func ParseGetServiceResponse(rsp *http.Response) (*GetServiceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetServiceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceResponse parses an HTTP response from a GetSourceWithResponse call -func ParseGetSourceResponse(rsp *http.Response) (*GetSourceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteSourceProjectNameResponse parses an HTTP response from a DeleteSourceProjectNameWithResponse call -func ParseDeleteSourceProjectNameResponse(rsp *http.Response) (*DeleteSourceProjectNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteSourceProjectNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNameResponse parses an HTTP response from a GetSourceProjectNameWithResponse call -func ParseGetSourceProjectNameResponse(rsp *http.Response) (*GetSourceProjectNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNameAttributeResponse parses an HTTP response from a GetSourceProjectNameAttributeWithResponse call -func ParseGetSourceProjectNameAttributeResponse(rsp *http.Response) (*GetSourceProjectNameAttributeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNameAttributeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteSourceProjectNameAttributeAttributeNameResponse parses an HTTP response from a DeleteSourceProjectNameAttributeAttributeNameWithResponse call -func ParseDeleteSourceProjectNameAttributeAttributeNameResponse(rsp *http.Response) (*DeleteSourceProjectNameAttributeAttributeNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteSourceProjectNameAttributeAttributeNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNameAttributeAttributeNameResponse parses an HTTP response from a GetSourceProjectNameAttributeAttributeNameWithResponse call -func ParseGetSourceProjectNameAttributeAttributeNameResponse(rsp *http.Response) (*GetSourceProjectNameAttributeAttributeNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNameAttributeAttributeNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNameAttributeAttributeNameResponse parses an HTTP response from a PostSourceProjectNameAttributeAttributeNameWithResponse call -func ParsePostSourceProjectNameAttributeAttributeNameResponse(rsp *http.Response) (*PostSourceProjectNameAttributeAttributeNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNameAttributeAttributeNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNameConfigResponse parses an HTTP response from a GetSourceProjectNameConfigWithResponse call -func ParseGetSourceProjectNameConfigResponse(rsp *http.Response) (*GetSourceProjectNameConfigResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNameConfigResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutSourceProjectNameConfigResponse parses an HTTP response from a PutSourceProjectNameConfigWithResponse call -func ParsePutSourceProjectNameConfigResponse(rsp *http.Response) (*PutSourceProjectNameConfigResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutSourceProjectNameConfigResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNameKeyinfoResponse parses an HTTP response from a GetSourceProjectNameKeyinfoWithResponse call -func ParseGetSourceProjectNameKeyinfoResponse(rsp *http.Response) (*GetSourceProjectNameKeyinfoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNameKeyinfoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNameMetaResponse parses an HTTP response from a GetSourceProjectNameMetaWithResponse call -func ParseGetSourceProjectNameMetaResponse(rsp *http.Response) (*GetSourceProjectNameMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNameMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutSourceProjectNameMetaResponse parses an HTTP response from a PutSourceProjectNameMetaWithResponse call -func ParsePutSourceProjectNameMetaResponse(rsp *http.Response) (*PutSourceProjectNameMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutSourceProjectNameMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePatternResponse parses an HTTP response from a GetSourceProjectNamePatternWithResponse call -func ParseGetSourceProjectNamePatternResponse(rsp *http.Response) (*GetSourceProjectNamePatternResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePatternResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteSourceProjectNamePatternFileNameResponse parses an HTTP response from a DeleteSourceProjectNamePatternFileNameWithResponse call -func ParseDeleteSourceProjectNamePatternFileNameResponse(rsp *http.Response) (*DeleteSourceProjectNamePatternFileNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteSourceProjectNamePatternFileNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePatternFileNameResponse parses an HTTP response from a GetSourceProjectNamePatternFileNameWithResponse call -func ParseGetSourceProjectNamePatternFileNameResponse(rsp *http.Response) (*GetSourceProjectNamePatternFileNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePatternFileNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutSourceProjectNamePatternFileNameResponse parses an HTTP response from a PutSourceProjectNamePatternFileNameWithResponse call -func ParsePutSourceProjectNamePatternFileNameResponse(rsp *http.Response) (*PutSourceProjectNamePatternFileNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutSourceProjectNamePatternFileNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNameProjectResponse parses an HTTP response from a GetSourceProjectNameProjectWithResponse call -func ParseGetSourceProjectNameProjectResponse(rsp *http.Response) (*GetSourceProjectNameProjectResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNameProjectResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNameProjectHistoryResponse parses an HTTP response from a GetSourceProjectNameProjectHistoryWithResponse call -func ParseGetSourceProjectNameProjectHistoryResponse(rsp *http.Response) (*GetSourceProjectNameProjectHistoryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNameProjectHistoryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNameProjectFileNameResponse parses an HTTP response from a GetSourceProjectNameProjectFileNameWithResponse call -func ParseGetSourceProjectNameProjectFileNameResponse(rsp *http.Response) (*GetSourceProjectNameProjectFileNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNameProjectFileNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteSourceProjectNamePubkeyResponse parses an HTTP response from a DeleteSourceProjectNamePubkeyWithResponse call -func ParseDeleteSourceProjectNamePubkeyResponse(rsp *http.Response) (*DeleteSourceProjectNamePubkeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteSourceProjectNamePubkeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePubkeyResponse parses an HTTP response from a GetSourceProjectNamePubkeyWithResponse call -func ParseGetSourceProjectNamePubkeyResponse(rsp *http.Response) (*GetSourceProjectNamePubkeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePubkeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteSourceProjectNamePackageNameResponse parses an HTTP response from a DeleteSourceProjectNamePackageNameWithResponse call -func ParseDeleteSourceProjectNamePackageNameResponse(rsp *http.Response) (*DeleteSourceProjectNamePackageNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteSourceProjectNamePackageNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePackageNameResponse parses an HTTP response from a GetSourceProjectNamePackageNameWithResponse call -func ParseGetSourceProjectNamePackageNameResponse(rsp *http.Response) (*GetSourceProjectNamePackageNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePackageNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePackageNameAttributeResponse parses an HTTP response from a GetSourceProjectNamePackageNameAttributeWithResponse call -func ParseGetSourceProjectNamePackageNameAttributeResponse(rsp *http.Response) (*GetSourceProjectNamePackageNameAttributeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePackageNameAttributeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNameAttributeResponse parses an HTTP response from a PostSourceProjectNamePackageNameAttributeWithResponse call -func ParsePostSourceProjectNamePackageNameAttributeResponse(rsp *http.Response) (*PostSourceProjectNamePackageNameAttributeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNameAttributeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteSourceProjectNamePackageNameAttributeAttributeNameResponse parses an HTTP response from a DeleteSourceProjectNamePackageNameAttributeAttributeNameWithResponse call -func ParseDeleteSourceProjectNamePackageNameAttributeAttributeNameResponse(rsp *http.Response) (*DeleteSourceProjectNamePackageNameAttributeAttributeNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteSourceProjectNamePackageNameAttributeAttributeNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePackageNameAttributeAttributeNameResponse parses an HTTP response from a GetSourceProjectNamePackageNameAttributeAttributeNameWithResponse call -func ParseGetSourceProjectNamePackageNameAttributeAttributeNameResponse(rsp *http.Response) (*GetSourceProjectNamePackageNameAttributeAttributeNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePackageNameAttributeAttributeNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNameAttributeAttributeNameResponse parses an HTTP response from a PostSourceProjectNamePackageNameAttributeAttributeNameWithResponse call -func ParsePostSourceProjectNamePackageNameAttributeAttributeNameResponse(rsp *http.Response) (*PostSourceProjectNamePackageNameAttributeAttributeNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNameAttributeAttributeNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePackageNameHistoryResponse parses an HTTP response from a GetSourceProjectNamePackageNameHistoryWithResponse call -func ParseGetSourceProjectNamePackageNameHistoryResponse(rsp *http.Response) (*GetSourceProjectNamePackageNameHistoryResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePackageNameHistoryResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePackageNameMetaResponse parses an HTTP response from a GetSourceProjectNamePackageNameMetaWithResponse call -func ParseGetSourceProjectNamePackageNameMetaResponse(rsp *http.Response) (*GetSourceProjectNamePackageNameMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePackageNameMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutSourceProjectNamePackageNameMetaResponse parses an HTTP response from a PutSourceProjectNamePackageNameMetaWithResponse call -func ParsePutSourceProjectNamePackageNameMetaResponse(rsp *http.Response) (*PutSourceProjectNamePackageNameMetaResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutSourceProjectNamePackageNameMetaResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePackageNameBinaryFilenameAttributeResponse parses an HTTP response from a GetSourceProjectNamePackageNameBinaryFilenameAttributeWithResponse call -func ParseGetSourceProjectNamePackageNameBinaryFilenameAttributeResponse(rsp *http.Response) (*GetSourceProjectNamePackageNameBinaryFilenameAttributeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePackageNameBinaryFilenameAttributeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNameBinaryFilenameAttributeResponse parses an HTTP response from a PostSourceProjectNamePackageNameBinaryFilenameAttributeWithResponse call -func ParsePostSourceProjectNamePackageNameBinaryFilenameAttributeResponse(rsp *http.Response) (*PostSourceProjectNamePackageNameBinaryFilenameAttributeResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNameBinaryFilenameAttributeResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse parses an HTTP response from a DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameWithResponse call -func ParseDeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse(rsp *http.Response) (*DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse parses an HTTP response from a GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameWithResponse call -func ParseGetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse(rsp *http.Response) (*GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePackageNameBinaryFilenameAttributeAttributeNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteSourceProjectNamePackageNameFileNameResponse parses an HTTP response from a DeleteSourceProjectNamePackageNameFileNameWithResponse call -func ParseDeleteSourceProjectNamePackageNameFileNameResponse(rsp *http.Response) (*DeleteSourceProjectNamePackageNameFileNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteSourceProjectNamePackageNameFileNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePackageNameFileNameResponse parses an HTTP response from a GetSourceProjectNamePackageNameFileNameWithResponse call -func ParseGetSourceProjectNamePackageNameFileNameResponse(rsp *http.Response) (*GetSourceProjectNamePackageNameFileNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePackageNameFileNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutSourceProjectNamePackageNameFileNameResponse parses an HTTP response from a PutSourceProjectNamePackageNameFileNameWithResponse call -func ParsePutSourceProjectNamePackageNameFileNameResponse(rsp *http.Response) (*PutSourceProjectNamePackageNameFileNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutSourceProjectNamePackageNameFileNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdAddcontainersResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdAddcontainersWithResponse call -func ParsePostSourceProjectNamePackageNamecmdAddcontainersResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdAddcontainersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdAddcontainersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdBranchResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdBranchWithResponse call -func ParsePostSourceProjectNamePackageNamecmdBranchResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdBranchResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdBranchResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdCollectbuildenvResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdCollectbuildenvWithResponse call -func ParsePostSourceProjectNamePackageNamecmdCollectbuildenvResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdCollectbuildenvResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdCollectbuildenvResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdCommitResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdCommitWithResponse call -func ParsePostSourceProjectNamePackageNamecmdCommitResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdCommitResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdCommitResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "xml") && rsp.StatusCode == 200: - var dest struct { - Comment *string `json:"comment,omitempty"` - Requestid *string `json:"requestid,omitempty"` - Rev *string `json:"rev,omitempty"` - Srcmd5 *string `json:"srcmd5,omitempty"` - Time *string `json:"time,omitempty"` - User *string `json:"user,omitempty"` - Version *string `json:"version,omitempty"` - Vrev *string `json:"vrev,omitempty"` - } - if err := xml.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.XML200 = &dest - - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdCommitfilelistResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdCommitfilelistWithResponse call -func ParsePostSourceProjectNamePackageNamecmdCommitfilelistResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdCommitfilelistResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdCommitfilelistResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "xml") && rsp.StatusCode == 200: - var dest struct { - Comment *string `json:"comment,omitempty"` - Requestid *string `json:"requestid,omitempty"` - Rev *string `json:"rev,omitempty"` - Srcmd5 *string `json:"srcmd5,omitempty"` - Time *string `json:"time,omitempty"` - User *string `json:"user,omitempty"` - Version *string `json:"version,omitempty"` - Vrev *string `json:"vrev,omitempty"` - } - if err := xml.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.XML200 = &dest - - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdCopyResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdCopyWithResponse call -func ParsePostSourceProjectNamePackageNamecmdCopyResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdCopyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdCopyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdCreateSpecFileTemplateResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateWithResponse call -func ParsePostSourceProjectNamePackageNamecmdCreateSpecFileTemplateResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdCreateSpecFileTemplateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdDeleteuploadrevResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdDeleteuploadrevWithResponse call -func ParsePostSourceProjectNamePackageNamecmdDeleteuploadrevResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdDeleteuploadrevResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdDeleteuploadrevResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdDiffResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdDiffWithResponse call -func ParsePostSourceProjectNamePackageNamecmdDiffResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdDiffResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdDiffResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdForkResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdForkWithResponse call -func ParsePostSourceProjectNamePackageNamecmdForkResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdForkResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdForkResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdGetprojectservicesResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdGetprojectservicesWithResponse call -func ParsePostSourceProjectNamePackageNamecmdGetprojectservicesResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdGetprojectservicesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdGetprojectservicesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdInstantiateResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdInstantiateWithResponse call -func ParsePostSourceProjectNamePackageNamecmdInstantiateResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdInstantiateResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdInstantiateResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdLinkdiffResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdLinkdiffWithResponse call -func ParsePostSourceProjectNamePackageNamecmdLinkdiffResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdLinkdiffResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdLinkdiffResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdLinktobranchResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdLinktobranchWithResponse call -func ParsePostSourceProjectNamePackageNamecmdLinktobranchResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdLinktobranchResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdLinktobranchResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdMergeserviceResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdMergeserviceWithResponse call -func ParsePostSourceProjectNamePackageNamecmdMergeserviceResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdMergeserviceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdMergeserviceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdRebuildResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdRebuildWithResponse call -func ParsePostSourceProjectNamePackageNamecmdRebuildResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdRebuildResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdRebuildResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdReleaseResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdReleaseWithResponse call -func ParsePostSourceProjectNamePackageNamecmdReleaseResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdReleaseResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdReleaseResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdRemoveFlagResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdRemoveFlagWithResponse call -func ParsePostSourceProjectNamePackageNamecmdRemoveFlagResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdRemoveFlagResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdRemoveFlagResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdRunserviceResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdRunserviceWithResponse call -func ParsePostSourceProjectNamePackageNamecmdRunserviceResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdRunserviceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdRunserviceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdServicediffResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdServicediffWithResponse call -func ParsePostSourceProjectNamePackageNamecmdServicediffResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdServicediffResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdServicediffResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "xml") && rsp.StatusCode == 200: - var dest struct { - Name *interface{} `json:"name,omitempty"` - } - if err := xml.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.XML200 = &dest - - case rsp.StatusCode == 200: - // Content-type (text/plain) unsupported - - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdSetFlagResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdSetFlagWithResponse call -func ParsePostSourceProjectNamePackageNamecmdSetFlagResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdSetFlagResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdSetFlagResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdShowlinkedResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdShowlinkedWithResponse call -func ParsePostSourceProjectNamePackageNamecmdShowlinkedResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdShowlinkedResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdShowlinkedResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdUndeleteResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdUndeleteWithResponse call -func ParsePostSourceProjectNamePackageNamecmdUndeleteResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdUndeleteResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdUndeleteResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdUnlockResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdUnlockWithResponse call -func ParsePostSourceProjectNamePackageNamecmdUnlockResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdUnlockResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdUnlockResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdUpdatepatchinfoResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdUpdatepatchinfoWithResponse call -func ParsePostSourceProjectNamePackageNamecmdUpdatepatchinfoResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdUpdatepatchinfoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdUpdatepatchinfoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamePackageNamecmdWaitserviceResponse parses an HTTP response from a PostSourceProjectNamePackageNamecmdWaitserviceWithResponse call -func ParsePostSourceProjectNamePackageNamecmdWaitserviceResponse(rsp *http.Response) (*PostSourceProjectNamePackageNamecmdWaitserviceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamePackageNamecmdWaitserviceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNamePackageNameviewInfoResponse parses an HTTP response from a GetSourceProjectNamePackageNameviewInfoWithResponse call -func ParseGetSourceProjectNamePackageNameviewInfoResponse(rsp *http.Response) (*GetSourceProjectNamePackageNameviewInfoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNamePackageNameviewInfoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdAddchannelsResponse parses an HTTP response from a PostSourceProjectNamecmdAddchannelsWithResponse call -func ParsePostSourceProjectNamecmdAddchannelsResponse(rsp *http.Response) (*PostSourceProjectNamecmdAddchannelsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdAddchannelsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdCopyResponse parses an HTTP response from a PostSourceProjectNamecmdCopyWithResponse call -func ParsePostSourceProjectNamecmdCopyResponse(rsp *http.Response) (*PostSourceProjectNamecmdCopyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdCopyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdCreatekeyResponse parses an HTTP response from a PostSourceProjectNamecmdCreatekeyWithResponse call -func ParsePostSourceProjectNamecmdCreatekeyResponse(rsp *http.Response) (*PostSourceProjectNamecmdCreatekeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdCreatekeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdCreatemaintenanceincidentResponse parses an HTTP response from a PostSourceProjectNamecmdCreatemaintenanceincidentWithResponse call -func ParsePostSourceProjectNamecmdCreatemaintenanceincidentResponse(rsp *http.Response) (*PostSourceProjectNamecmdCreatemaintenanceincidentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdCreatemaintenanceincidentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdCreatepatchinfoResponse parses an HTTP response from a PostSourceProjectNamecmdCreatepatchinfoWithResponse call -func ParsePostSourceProjectNamecmdCreatepatchinfoResponse(rsp *http.Response) (*PostSourceProjectNamecmdCreatepatchinfoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdCreatepatchinfoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdExtendkeyResponse parses an HTTP response from a PostSourceProjectNamecmdExtendkeyWithResponse call -func ParsePostSourceProjectNamecmdExtendkeyResponse(rsp *http.Response) (*PostSourceProjectNamecmdExtendkeyResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdExtendkeyResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdFreezelinkResponse parses an HTTP response from a PostSourceProjectNamecmdFreezelinkWithResponse call -func ParsePostSourceProjectNamecmdFreezelinkResponse(rsp *http.Response) (*PostSourceProjectNamecmdFreezelinkResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdFreezelinkResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdLockResponse parses an HTTP response from a PostSourceProjectNamecmdLockWithResponse call -func ParsePostSourceProjectNamecmdLockResponse(rsp *http.Response) (*PostSourceProjectNamecmdLockResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdLockResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdModifychannelsResponse parses an HTTP response from a PostSourceProjectNamecmdModifychannelsWithResponse call -func ParsePostSourceProjectNamecmdModifychannelsResponse(rsp *http.Response) (*PostSourceProjectNamecmdModifychannelsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdModifychannelsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdMoveResponse parses an HTTP response from a PostSourceProjectNamecmdMoveWithResponse call -func ParsePostSourceProjectNamecmdMoveResponse(rsp *http.Response) (*PostSourceProjectNamecmdMoveResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdMoveResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdReleaseResponse parses an HTTP response from a PostSourceProjectNamecmdReleaseWithResponse call -func ParsePostSourceProjectNamecmdReleaseResponse(rsp *http.Response) (*PostSourceProjectNamecmdReleaseResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdReleaseResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdRemoveFlagResponse parses an HTTP response from a PostSourceProjectNamecmdRemoveFlagWithResponse call -func ParsePostSourceProjectNamecmdRemoveFlagResponse(rsp *http.Response) (*PostSourceProjectNamecmdRemoveFlagResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdRemoveFlagResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdSetFlagResponse parses an HTTP response from a PostSourceProjectNamecmdSetFlagWithResponse call -func ParsePostSourceProjectNamecmdSetFlagResponse(rsp *http.Response) (*PostSourceProjectNamecmdSetFlagResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdSetFlagResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdShowlinkedResponse parses an HTTP response from a PostSourceProjectNamecmdShowlinkedWithResponse call -func ParsePostSourceProjectNamecmdShowlinkedResponse(rsp *http.Response) (*PostSourceProjectNamecmdShowlinkedResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdShowlinkedResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdUndeleteResponse parses an HTTP response from a PostSourceProjectNamecmdUndeleteWithResponse call -func ParsePostSourceProjectNamecmdUndeleteResponse(rsp *http.Response) (*PostSourceProjectNamecmdUndeleteResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdUndeleteResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourceProjectNamecmdUnlockResponse parses an HTTP response from a PostSourceProjectNamecmdUnlockWithResponse call -func ParsePostSourceProjectNamecmdUnlockResponse(rsp *http.Response) (*PostSourceProjectNamecmdUnlockResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourceProjectNamecmdUnlockResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetSourceProjectNameviewInfoResponse parses an HTTP response from a GetSourceProjectNameviewInfoWithResponse call -func ParseGetSourceProjectNameviewInfoResponse(rsp *http.Response) (*GetSourceProjectNameviewInfoResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetSourceProjectNameviewInfoResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourcecmdBranchResponse parses an HTTP response from a PostSourcecmdBranchWithResponse call -func ParsePostSourcecmdBranchResponse(rsp *http.Response) (*PostSourcecmdBranchResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourcecmdBranchResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourcecmdCreatemaintenanceincidentResponse parses an HTTP response from a PostSourcecmdCreatemaintenanceincidentWithResponse call -func ParsePostSourcecmdCreatemaintenanceincidentResponse(rsp *http.Response) (*PostSourcecmdCreatemaintenanceincidentResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourcecmdCreatemaintenanceincidentResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostSourcecmdOrderkiwireposResponse parses an HTTP response from a PostSourcecmdOrderkiwireposWithResponse call -func ParsePostSourcecmdOrderkiwireposResponse(rsp *http.Response) (*PostSourcecmdOrderkiwireposResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostSourcecmdOrderkiwireposResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "xml") && rsp.StatusCode == 200: - var dest struct { - Name *string `json:"name,omitempty"` - Repository *[]struct { - Source *struct { - Path *string `json:"path,omitempty"` - } `json:"source,omitempty"` - } `json:"repository,omitempty"` - Schemaversion *string `json:"schemaversion,omitempty"` - } - if err := xml.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.XML200 = &dest - - } - - return response, nil -} - -// ParseGetStagingProjectNameBacklogResponse parses an HTTP response from a GetStagingProjectNameBacklogWithResponse call -func ParseGetStagingProjectNameBacklogResponse(rsp *http.Response) (*GetStagingProjectNameBacklogResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStagingProjectNameBacklogResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteStagingProjectNameExcludedRequestsResponse parses an HTTP response from a DeleteStagingProjectNameExcludedRequestsWithResponse call -func ParseDeleteStagingProjectNameExcludedRequestsResponse(rsp *http.Response) (*DeleteStagingProjectNameExcludedRequestsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteStagingProjectNameExcludedRequestsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStagingProjectNameExcludedRequestsResponse parses an HTTP response from a GetStagingProjectNameExcludedRequestsWithResponse call -func ParseGetStagingProjectNameExcludedRequestsResponse(rsp *http.Response) (*GetStagingProjectNameExcludedRequestsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStagingProjectNameExcludedRequestsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStagingProjectNameExcludedRequestsResponse parses an HTTP response from a PostStagingProjectNameExcludedRequestsWithResponse call -func ParsePostStagingProjectNameExcludedRequestsResponse(rsp *http.Response) (*PostStagingProjectNameExcludedRequestsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStagingProjectNameExcludedRequestsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteStagingProjectNameStagedRequestsResponse parses an HTTP response from a DeleteStagingProjectNameStagedRequestsWithResponse call -func ParseDeleteStagingProjectNameStagedRequestsResponse(rsp *http.Response) (*DeleteStagingProjectNameStagedRequestsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteStagingProjectNameStagedRequestsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStagingProjectNameStagingProjectsResponse parses an HTTP response from a GetStagingProjectNameStagingProjectsWithResponse call -func ParseGetStagingProjectNameStagingProjectsResponse(rsp *http.Response) (*GetStagingProjectNameStagingProjectsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStagingProjectNameStagingProjectsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStagingProjectNameStagingProjectsResponse parses an HTTP response from a PostStagingProjectNameStagingProjectsWithResponse call -func ParsePostStagingProjectNameStagingProjectsResponse(rsp *http.Response) (*PostStagingProjectNameStagingProjectsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStagingProjectNameStagingProjectsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStagingProjectNameStagingProjectsStagingProjectNameResponse parses an HTTP response from a GetStagingProjectNameStagingProjectsStagingProjectNameWithResponse call -func ParseGetStagingProjectNameStagingProjectsStagingProjectNameResponse(rsp *http.Response) (*GetStagingProjectNameStagingProjectsStagingProjectNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStagingProjectNameStagingProjectsStagingProjectNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStagingProjectNameStagingProjectsStagingProjectNameAcceptResponse parses an HTTP response from a PostStagingProjectNameStagingProjectsStagingProjectNameAcceptWithResponse call -func ParsePostStagingProjectNameStagingProjectsStagingProjectNameAcceptResponse(rsp *http.Response) (*PostStagingProjectNameStagingProjectsStagingProjectNameAcceptResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStagingProjectNameStagingProjectsStagingProjectNameAcceptResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameResponse parses an HTTP response from a PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameWithResponse call -func ParsePostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameResponse(rsp *http.Response) (*PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStagingProjectNameStagingProjectsStagingProjectNameCopyStagingProjectCopyNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse parses an HTTP response from a DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithResponse call -func ParseDeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse(rsp *http.Response) (*DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse parses an HTTP response from a GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithResponse call -func ParseGetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse(rsp *http.Response) (*GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse parses an HTTP response from a PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsWithResponse call -func ParsePostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse(rsp *http.Response) (*PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStagingProjectNameStagingProjectsStagingProjectNameStagedRequestsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteStagingProjectNameWorkflowResponse parses an HTTP response from a DeleteStagingProjectNameWorkflowWithResponse call -func ParseDeleteStagingProjectNameWorkflowResponse(rsp *http.Response) (*DeleteStagingProjectNameWorkflowResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteStagingProjectNameWorkflowResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStagingProjectNameWorkflowResponse parses an HTTP response from a PostStagingProjectNameWorkflowWithResponse call -func ParsePostStagingProjectNameWorkflowResponse(rsp *http.Response) (*PostStagingProjectNameWorkflowResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStagingProjectNameWorkflowResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePutStagingProjectNameWorkflowResponse parses an HTTP response from a PutStagingProjectNameWorkflowWithResponse call -func ParsePutStagingProjectNameWorkflowResponse(rsp *http.Response) (*PutStagingProjectNameWorkflowResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PutStagingProjectNameWorkflowResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatisticsResponse parses an HTTP response from a GetStatisticsWithResponse call -func ParseGetStatisticsResponse(rsp *http.Response) (*GetStatisticsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatisticsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatisticsActiveRequestCreatorsProjectNameResponse parses an HTTP response from a GetStatisticsActiveRequestCreatorsProjectNameWithResponse call -func ParseGetStatisticsActiveRequestCreatorsProjectNameResponse(rsp *http.Response) (*GetStatisticsActiveRequestCreatorsProjectNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatisticsActiveRequestCreatorsProjectNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatisticsActivityProjectNamePackageNameResponse parses an HTTP response from a GetStatisticsActivityProjectNamePackageNameWithResponse call -func ParseGetStatisticsActivityProjectNamePackageNameResponse(rsp *http.Response) (*GetStatisticsActivityProjectNamePackageNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatisticsActivityProjectNamePackageNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatisticsAddedTimestampProjectNamePackageNameResponse parses an HTTP response from a GetStatisticsAddedTimestampProjectNamePackageNameWithResponse call -func ParseGetStatisticsAddedTimestampProjectNamePackageNameResponse(rsp *http.Response) (*GetStatisticsAddedTimestampProjectNamePackageNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatisticsAddedTimestampProjectNamePackageNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatisticsGlobalCountersResponse parses an HTTP response from a GetStatisticsGlobalCountersWithResponse call -func ParseGetStatisticsGlobalCountersResponse(rsp *http.Response) (*GetStatisticsGlobalCountersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatisticsGlobalCountersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatisticsLatestAddedResponse parses an HTTP response from a GetStatisticsLatestAddedWithResponse call -func ParseGetStatisticsLatestAddedResponse(rsp *http.Response) (*GetStatisticsLatestAddedResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatisticsLatestAddedResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatisticsLatestUpdatedResponse parses an HTTP response from a GetStatisticsLatestUpdatedWithResponse call -func ParseGetStatisticsLatestUpdatedResponse(rsp *http.Response) (*GetStatisticsLatestUpdatedResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatisticsLatestUpdatedResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatisticsMaintenanceStatisticsProjectNameResponse parses an HTTP response from a GetStatisticsMaintenanceStatisticsProjectNameWithResponse call -func ParseGetStatisticsMaintenanceStatisticsProjectNameResponse(rsp *http.Response) (*GetStatisticsMaintenanceStatisticsProjectNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatisticsMaintenanceStatisticsProjectNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatisticsMostActivePackagesResponse parses an HTTP response from a GetStatisticsMostActivePackagesWithResponse call -func ParseGetStatisticsMostActivePackagesResponse(rsp *http.Response) (*GetStatisticsMostActivePackagesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatisticsMostActivePackagesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatisticsMostActiveProjectsResponse parses an HTTP response from a GetStatisticsMostActiveProjectsWithResponse call -func ParseGetStatisticsMostActiveProjectsResponse(rsp *http.Response) (*GetStatisticsMostActiveProjectsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatisticsMostActiveProjectsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatisticsUpdatedTimestampProjectNamePackageNameResponse parses an HTTP response from a GetStatisticsUpdatedTimestampProjectNamePackageNameWithResponse call -func ParseGetStatisticsUpdatedTimestampProjectNamePackageNameResponse(rsp *http.Response) (*GetStatisticsUpdatedTimestampProjectNamePackageNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatisticsUpdatedTimestampProjectNamePackageNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatusMessagesResponse parses an HTTP response from a GetStatusMessagesWithResponse call -func ParseGetStatusMessagesResponse(rsp *http.Response) (*GetStatusMessagesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatusMessagesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStatusMessagesResponse parses an HTTP response from a PostStatusMessagesWithResponse call -func ParsePostStatusMessagesResponse(rsp *http.Response) (*PostStatusMessagesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStatusMessagesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteStatusMessagesIdResponse parses an HTTP response from a DeleteStatusMessagesIdWithResponse call -func ParseDeleteStatusMessagesIdResponse(rsp *http.Response) (*DeleteStatusMessagesIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteStatusMessagesIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatusMessagesIdResponse parses an HTTP response from a GetStatusMessagesIdWithResponse call -func ParseGetStatusMessagesIdResponse(rsp *http.Response) (*GetStatusMessagesIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatusMessagesIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatusProjectProjectNameResponse parses an HTTP response from a GetStatusProjectProjectNameWithResponse call -func ParseGetStatusProjectProjectNameResponse(rsp *http.Response) (*GetStatusProjectProjectNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatusProjectProjectNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatusWorkerstatusResponse parses an HTTP response from a GetStatusWorkerstatusWithResponse call -func ParseGetStatusWorkerstatusResponse(rsp *http.Response) (*GetStatusWorkerstatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatusWorkerstatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatusMessageResponse parses an HTTP response from a GetStatusMessageWithResponse call -func ParseGetStatusMessageResponse(rsp *http.Response) (*GetStatusMessageResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatusMessageResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse parses an HTTP response from a GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithResponse call -func ParseGetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse(rsp *http.Response) (*GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse parses an HTTP response from a PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdWithResponse call -func ParsePostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse(rsp *http.Response) (*PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStatusReportsBuiltProjectNameRepositoryNameArchitectureNameReportsBuildIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse parses an HTTP response from a GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithResponse call -func ParseGetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse(rsp *http.Response) (*GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse parses an HTTP response from a PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksWithResponse call -func ParsePostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse(rsp *http.Response) (*PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameResponse parses an HTTP response from a DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameWithResponse call -func ParseDeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameResponse(rsp *http.Response) (*DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteStatusReportsBuiltRepositoriesProjectNameRepositoryNameArchitectureNameRequiredChecksCheckNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatusReportsProjectsProjectNameRequiredChecksResponse parses an HTTP response from a GetStatusReportsProjectsProjectNameRequiredChecksWithResponse call -func ParseGetStatusReportsProjectsProjectNameRequiredChecksResponse(rsp *http.Response) (*GetStatusReportsProjectsProjectNameRequiredChecksResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatusReportsProjectsProjectNameRequiredChecksResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStatusReportsProjectsProjectNameRequiredChecksResponse parses an HTTP response from a PostStatusReportsProjectsProjectNameRequiredChecksWithResponse call -func ParsePostStatusReportsProjectsProjectNameRequiredChecksResponse(rsp *http.Response) (*PostStatusReportsProjectsProjectNameRequiredChecksResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStatusReportsProjectsProjectNameRequiredChecksResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameResponse parses an HTTP response from a DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameWithResponse call -func ParseDeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameResponse(rsp *http.Response) (*DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteStatusReportsProjectsProjectNameRequiredChecksCheckNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse parses an HTTP response from a GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithResponse call -func ParseGetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse(rsp *http.Response) (*GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse parses an HTTP response from a PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdWithResponse call -func ParsePostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse(rsp *http.Response) (*PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStatusReportsPublishedProjectNameRepositoryNameReportsBuildIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse parses an HTTP response from a GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithResponse call -func ParseGetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse(rsp *http.Response) (*GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse parses an HTTP response from a PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksWithResponse call -func ParsePostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse(rsp *http.Response) (*PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseDeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameResponse parses an HTTP response from a DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameWithResponse call -func ParseDeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameResponse(rsp *http.Response) (*DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &DeleteStatusReportsRepositoriesProjectNameRepositoryNameRequiredChecksCheckNameResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetStatusReportsRequestsIdReportsResponse parses an HTTP response from a GetStatusReportsRequestsIdReportsWithResponse call -func ParseGetStatusReportsRequestsIdReportsResponse(rsp *http.Response) (*GetStatusReportsRequestsIdReportsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetStatusReportsRequestsIdReportsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostStatusReportsRequestsIdReportsResponse parses an HTTP response from a PostStatusReportsRequestsIdReportsWithResponse call -func ParsePostStatusReportsRequestsIdReportsResponse(rsp *http.Response) (*PostStatusReportsRequestsIdReportsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostStatusReportsRequestsIdReportsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostTriggerResponse parses an HTTP response from a PostTriggerWithResponse call -func ParsePostTriggerResponse(rsp *http.Response) (*PostTriggerResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostTriggerResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostTriggerRebuildResponse parses an HTTP response from a PostTriggerRebuildWithResponse call -func ParsePostTriggerRebuildResponse(rsp *http.Response) (*PostTriggerRebuildResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostTriggerRebuildResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostTriggerReleaseResponse parses an HTTP response from a PostTriggerReleaseWithResponse call -func ParsePostTriggerReleaseResponse(rsp *http.Response) (*PostTriggerReleaseResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostTriggerReleaseResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostTriggerRunserviceResponse parses an HTTP response from a PostTriggerRunserviceWithResponse call -func ParsePostTriggerRunserviceResponse(rsp *http.Response) (*PostTriggerRunserviceResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostTriggerRunserviceResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostTriggerWebhookResponse parses an HTTP response from a PostTriggerWebhookWithResponse call -func ParsePostTriggerWebhookResponse(rsp *http.Response) (*PostTriggerWebhookResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostTriggerWebhookResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostTriggerWorkflowResponse parses an HTTP response from a PostTriggerWorkflowWithResponse call -func ParsePostTriggerWorkflowResponse(rsp *http.Response) (*PostTriggerWorkflowResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostTriggerWorkflowResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetWorkerStatusResponse parses an HTTP response from a GetWorkerStatusWithResponse call -func ParseGetWorkerStatusResponse(rsp *http.Response) (*GetWorkerStatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetWorkerStatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetWorkerStatusResponse parses an HTTP response from a GetWorkerStatusWithResponse call -func ParseGetWorkerStatusResponse(rsp *http.Response) (*GetWorkerStatusResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetWorkerStatusResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParseGetWorkerArchitectureNameWorkerIdResponse parses an HTTP response from a GetWorkerArchitectureNameWorkerIdWithResponse call -func ParseGetWorkerArchitectureNameWorkerIdResponse(rsp *http.Response) (*GetWorkerArchitectureNameWorkerIdResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetWorkerArchitectureNameWorkerIdResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -} - -// ParsePostWorkercmdCheckconstraintsResponse parses an HTTP response from a PostWorkercmdCheckconstraintsWithResponse call -func ParsePostWorkercmdCheckconstraintsResponse(rsp *http.Response) (*PostWorkercmdCheckconstraintsResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostWorkercmdCheckconstraintsResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - return response, nil -}