示例#1
0
RequestOptionalQueryParams = typing.TypedDict('RequestOptionalQueryParams', {
    'credentialId': CredentialIdSchema,
    'pageSize': PageSizeSchema,
    'pageNumber': PageNumberSchema,
},
                                              total=False)


class RequestQueryParams(RequestRequiredQueryParams,
                         RequestOptionalQueryParams):
    pass


request_query_credential_id = api_client.QueryParameter(
    name="credentialId",
    style=api_client.ParameterStyle.FORM,
    schema=CredentialIdSchema,
    explode=True,
)
request_query_page_size = api_client.QueryParameter(
    name="pageSize",
    style=api_client.ParameterStyle.FORM,
    schema=PageSizeSchema,
    explode=True,
)
request_query_page_number = api_client.QueryParameter(
    name="pageNumber",
    style=api_client.ParameterStyle.FORM,
    schema=PageNumberSchema,
    explode=True,
)
# path params
示例#2
0
    {
        'from': ModelFromSchema,
        'mode': ModeSchema,
    },
    total=False
)


class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
    pass


request_query_name = api_client.QueryParameter(
    name="name",
    style=api_client.ParameterStyle.FORM,
    schema=NameSchema,
    required=True,
    explode=True,
)
request_query__from = api_client.QueryParameter(
    name="from",
    style=api_client.ParameterStyle.FORM,
    schema=ModelFromSchema,
    explode=True,
)
request_query_mode = api_client.QueryParameter(
    name="mode",
    style=api_client.ParameterStyle.FORM,
    schema=ModeSchema,
    explode=True,
)
示例#3
0
RequestRequiredQueryParams = typing.TypedDict('RequestRequiredQueryParams', {
    'q': QSchema,
})
RequestOptionalQueryParams = typing.TypedDict('RequestOptionalQueryParams', {},
                                              total=False)


class RequestQueryParams(RequestRequiredQueryParams,
                         RequestOptionalQueryParams):
    pass


request_query_q = api_client.QueryParameter(
    name="q",
    style=api_client.ParameterStyle.FORM,
    schema=QSchema,
    required=True,
    explode=True,
)
_path = '/blue/rest/search/'
_method = 'GET'
_auth = [
    'jenkins_auth',
]
SchemaFor200ResponseBodyApplicationJson = StrSchema


@dataclass
class ApiResponseFor200(api_client.ApiResponse):
    response: urllib3.HTTPResponse
    body: typing.Union[SchemaFor200ResponseBodyApplicationJson, ]
示例#4
0
RequestRequiredQueryParams = typing.TypedDict('RequestRequiredQueryParams', {})
RequestOptionalQueryParams = typing.TypedDict('RequestOptionalQueryParams', {
    'format': FormatSchema,
    'callback': CallbackSchema,
},
                                              total=False)


class RequestQueryParams(RequestRequiredQueryParams,
                         RequestOptionalQueryParams):
    pass


request_query_format = api_client.QueryParameter(
    name="format",
    style=api_client.ParameterStyle.FORM,
    schema=FormatSchema,
    explode=True,
)
request_query_param_callback = api_client.QueryParameter(
    name="callback",
    style=api_client.ParameterStyle.FORM,
    schema=CallbackSchema,
    explode=True,
)
_path = '/'
_method = 'GET'
SchemaFor200ResponseBodyApplicationJson = Ip
SchemaFor200ResponseBodyApplicationJavascript = StrSchema
SchemaFor200ResponseBodyTextPlain = StrSchema

示例#5
0
RequestRequiredQueryParams = typing.TypedDict('RequestRequiredQueryParams', {})
RequestOptionalQueryParams = typing.TypedDict(
    'RequestOptionalQueryParams', {
        'credentialId': CredentialIdSchema,
    },
    total=False)


class RequestQueryParams(RequestRequiredQueryParams,
                         RequestOptionalQueryParams):
    pass


request_query_credential_id = api_client.QueryParameter(
    name="credentialId",
    style=api_client.ParameterStyle.FORM,
    schema=CredentialIdSchema,
    explode=True,
)
# path params
OrganizationSchema = StrSchema
ScmSchema = StrSchema
ScmOrganisationSchema = StrSchema
RepositorySchema = StrSchema
RequestRequiredPathParams = typing.TypedDict(
    'RequestRequiredPathParams', {
        'organization': OrganizationSchema,
        'scm': ScmSchema,
        'scmOrganisation': ScmOrganisationSchema,
        'repository': RepositorySchema,
    })
RequestOptionalPathParams = typing.TypedDict('RequestOptionalPathParams', {},
示例#6
0
RequestRequiredQueryParams = typing.TypedDict('RequestRequiredQueryParams', {})
RequestOptionalQueryParams = typing.TypedDict('RequestOptionalQueryParams', {
    'start': StartSchema,
    'download': DownloadSchema,
},
                                              total=False)


class RequestQueryParams(RequestRequiredQueryParams,
                         RequestOptionalQueryParams):
    pass


request_query_start = api_client.QueryParameter(
    name="start",
    style=api_client.ParameterStyle.FORM,
    schema=StartSchema,
    explode=True,
)
request_query_download = api_client.QueryParameter(
    name="download",
    style=api_client.ParameterStyle.FORM,
    schema=DownloadSchema,
    explode=True,
)
# path params
OrganizationSchema = StrSchema
PipelineSchema = StrSchema
RunSchema = StrSchema
RequestRequiredPathParams = typing.TypedDict(
    'RequestRequiredPathParams', {
        'organization': OrganizationSchema,
示例#7
0
RequestRequiredQueryParams = typing.TypedDict('RequestRequiredQueryParams', {
    'start': StartSchema,
})
RequestOptionalQueryParams = typing.TypedDict('RequestOptionalQueryParams', {},
                                              total=False)


class RequestQueryParams(RequestRequiredQueryParams,
                         RequestOptionalQueryParams):
    pass


request_query_start = api_client.QueryParameter(
    name="start",
    style=api_client.ParameterStyle.FORM,
    schema=StartSchema,
    required=True,
    explode=True,
)
# path params
NameSchema = StrSchema
NumberSchema = StrSchema
RequestRequiredPathParams = typing.TypedDict('RequestRequiredPathParams', {
    'name': NameSchema,
    'number': NumberSchema,
})
RequestOptionalPathParams = typing.TypedDict('RequestOptionalPathParams', {},
                                             total=False)


class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
示例#8
0
RequestRequiredQueryParams = typing.TypedDict('RequestRequiredQueryParams', {
    'depth': DepthSchema,
})
RequestOptionalQueryParams = typing.TypedDict('RequestOptionalQueryParams', {},
                                              total=False)


class RequestQueryParams(RequestRequiredQueryParams,
                         RequestOptionalQueryParams):
    pass


request_query_depth = api_client.QueryParameter(
    name="depth",
    style=api_client.ParameterStyle.FORM,
    schema=DepthSchema,
    required=True,
    explode=True,
)
_path = '/computer/api/json'
_method = 'GET'
_auth = [
    'jenkins_auth',
]
SchemaFor200ResponseBodyApplicationJson = ComputerSet


@dataclass
class ApiResponseFor200(api_client.ApiResponse):
    response: urllib3.HTTPResponse
    body: typing.Union[SchemaFor200ResponseBodyApplicationJson, ]
示例#9
0
RequestOptionalQueryParams = typing.TypedDict(
    'RequestOptionalQueryParams', {
        'blocking': BlockingSchema,
        'timeOutInSecs': TimeOutInSecsSchema,
    },
    total=False)


class RequestQueryParams(RequestRequiredQueryParams,
                         RequestOptionalQueryParams):
    pass


request_query_blocking = api_client.QueryParameter(
    name="blocking",
    style=api_client.ParameterStyle.FORM,
    schema=BlockingSchema,
    explode=True,
)
request_query_time_out_in_secs = api_client.QueryParameter(
    name="timeOutInSecs",
    style=api_client.ParameterStyle.FORM,
    schema=TimeOutInSecsSchema,
    explode=True,
)
# path params
OrganizationSchema = StrSchema
PipelineSchema = StrSchema
RunSchema = StrSchema
RequestRequiredPathParams = typing.TypedDict(
    'RequestRequiredPathParams', {
        'organization': OrganizationSchema,
示例#10
0
})
RequestOptionalQueryParams = typing.TypedDict('RequestOptionalQueryParams', {
    'token': TokenSchema,
},
                                              total=False)


class RequestQueryParams(RequestRequiredQueryParams,
                         RequestOptionalQueryParams):
    pass


request_query_json = api_client.QueryParameter(
    name="json",
    style=api_client.ParameterStyle.FORM,
    schema=JsonSchema,
    required=True,
    explode=True,
)
request_query_token = api_client.QueryParameter(
    name="token",
    style=api_client.ParameterStyle.FORM,
    schema=TokenSchema,
    explode=True,
)
# header params
JenkinsCrumbSchema = StrSchema
RequestRequiredHeaderParams = typing.TypedDict('RequestRequiredHeaderParams',
                                               {})
RequestOptionalHeaderParams = typing.TypedDict(
    'RequestOptionalHeaderParams', {