Beispiel #1
0
# path params
NameSchema = StrSchema
RequestRequiredPathParams = typing.TypedDict('RequestRequiredPathParams', {
    'name': NameSchema,
})
RequestOptionalPathParams = typing.TypedDict('RequestOptionalPathParams', {},
                                             total=False)


class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
    pass


request_path_name = api_client.PathParameter(
    name="name",
    style=api_client.ParameterStyle.SIMPLE,
    schema=NameSchema,
    required=True,
)
# body param
SchemaForRequestBodyApplicationJson = StrSchema

request_body_body = api_client.RequestBody(
    content={
        'application/json':
        api_client.MediaType(schema=SchemaForRequestBodyApplicationJson),
    },
    required=True,
)
_path = '/view/{name}/config.xml'
_method = 'POST'
_auth = [
Beispiel #2
0
OrganizationSchema = StrSchema
RequestRequiredPathParams = typing.TypedDict(
    'RequestRequiredPathParams', {
        'organization': OrganizationSchema,
    })
RequestOptionalPathParams = typing.TypedDict('RequestOptionalPathParams', {},
                                             total=False)


class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
    pass


request_path_organization = api_client.PathParameter(
    name="organization",
    style=api_client.ParameterStyle.SIMPLE,
    schema=OrganizationSchema,
    required=True,
)
_path = '/blue/rest/organizations/{organization}/pipelines/'
_method = 'GET'
_auth = [
    'jenkins_auth',
]
SchemaFor200ResponseBodyApplicationJson = Pipelines


@dataclass
class ApiResponseFor200(api_client.ApiResponse):
    response: urllib3.HTTPResponse
    body: typing.Union[SchemaFor200ResponseBodyApplicationJson, ]
    headers: Unset = unset
Beispiel #3
0
# path params
UserSchema = StrSchema
RequestRequiredPathParams = typing.TypedDict('RequestRequiredPathParams', {
    'user': UserSchema,
})
RequestOptionalPathParams = typing.TypedDict('RequestOptionalPathParams', {},
                                             total=False)


class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
    pass


request_path_user = api_client.PathParameter(
    name="user",
    style=api_client.ParameterStyle.SIMPLE,
    schema=UserSchema,
    required=True,
)
_path = '/blue/rest/users/{user}/favorites'
_method = 'GET'
_auth = [
    'jenkins_auth',
]
SchemaFor200ResponseBodyApplicationJson = UserFavorites


@dataclass
class ApiResponseFor200(api_client.ApiResponse):
    response: urllib3.HTTPResponse
    body: typing.Union[SchemaFor200ResponseBodyApplicationJson, ]
    headers: Unset = unset
Beispiel #4
0
    'RequestRequiredPathParams', {
        'organization': OrganizationSchema,
        'pipeline': PipelineSchema,
        'run': RunSchema,
    })
RequestOptionalPathParams = typing.TypedDict('RequestOptionalPathParams', {},
                                             total=False)


class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
    pass


request_path_organization = api_client.PathParameter(
    name="organization",
    style=api_client.ParameterStyle.SIMPLE,
    schema=OrganizationSchema,
    required=True,
)
request_path_pipeline = api_client.PathParameter(
    name="pipeline",
    style=api_client.ParameterStyle.SIMPLE,
    schema=PipelineSchema,
    required=True,
)
request_path_run = api_client.PathParameter(
    name="run",
    style=api_client.ParameterStyle.SIMPLE,
    schema=RunSchema,
    required=True,
)
_path = '/blue/rest/organizations/{organization}/pipelines/{pipeline}/runs/{run}/nodes'
Beispiel #5
0
        'organization': OrganizationSchema,
        'scm': ScmSchema,
        'scmOrganisation': ScmOrganisationSchema,
        'repository': RepositorySchema,
    })
RequestOptionalPathParams = typing.TypedDict('RequestOptionalPathParams', {},
                                             total=False)


class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
    pass


request_path_organization = api_client.PathParameter(
    name="organization",
    style=api_client.ParameterStyle.SIMPLE,
    schema=OrganizationSchema,
    required=True,
)
request_path_scm = api_client.PathParameter(
    name="scm",
    style=api_client.ParameterStyle.SIMPLE,
    schema=ScmSchema,
    required=True,
)
request_path_scm_organisation = api_client.PathParameter(
    name="scmOrganisation",
    style=api_client.ParameterStyle.SIMPLE,
    schema=ScmOrganisationSchema,
    required=True,
)
request_path_repository = api_client.PathParameter(
Beispiel #6
0
# path params
ModelClassSchema = StrSchema
RequestRequiredPathParams = typing.TypedDict('RequestRequiredPathParams', {
    'class': ModelClassSchema,
})
RequestOptionalPathParams = typing.TypedDict('RequestOptionalPathParams', {},
                                             total=False)


class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
    pass


request_path__class = api_client.PathParameter(
    name="class",
    style=api_client.ParameterStyle.SIMPLE,
    schema=ModelClassSchema,
    required=True,
)
_path = '/blue/rest/classes/{class}'
_method = 'GET'
_auth = [
    'jenkins_auth',
]
SchemaFor200ResponseBodyApplicationJson = StrSchema


@dataclass
class ApiResponseFor200(api_client.ApiResponse):
    response: urllib3.HTTPResponse
    body: typing.Union[SchemaFor200ResponseBodyApplicationJson, ]
    headers: Unset = unset
Beispiel #7
0
# path params
KeySchema = IntSchema
RequestRequiredPathParams = typing.TypedDict('RequestRequiredPathParams', {
    'key': KeySchema,
})
RequestOptionalPathParams = typing.TypedDict('RequestOptionalPathParams', {},
                                             total=False)


class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
    pass


request_path_key = api_client.PathParameter(
    name="key",
    style=api_client.ParameterStyle.SIMPLE,
    schema=KeySchema,
    required=True,
)
_path = '/jwt-auth/jwks/{key}'
_method = 'GET'
SchemaFor200ResponseBodyApplicationJson = StrSchema


@dataclass
class ApiResponseFor200(api_client.ApiResponse):
    response: urllib3.HTTPResponse
    body: typing.Union[SchemaFor200ResponseBodyApplicationJson, ]
    headers: Unset = unset


_response_for_200 = api_client.OpenApiResponse(