github.com/go-swagger/go-swagger@v0.31.0/fixtures/bugs/2919/edge-api/client/posture-response.yml (about)

     1  ---
     2  paths:
     3    posture-response:
     4      post:
     5        summary: Submit a posture response to a posture query
     6        description: Submits posture responses
     7        security:
     8          - ztSession: [ ]
     9        tags:
    10          - Posture Checks
    11        operationId: createPostureResponse
    12        parameters:
    13          - name: postureResponse
    14            in: body
    15            required: true
    16            description: A Posture Response
    17            schema:
    18              $ref: '#/definitions/postureResponseCreate'
    19        responses:
    20          '201':
    21            $ref: '#/responses/postureResponse'
    22          '400':
    23            $ref: '../shared/standard-responses.yml#/responses/badRequestResponse'
    24          '401':
    25            $ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
    26    posture-response-bulk:
    27      post:
    28        summary: Submit multiple posture responses
    29        description: Submits posture responses
    30        security:
    31          - ztSession: [ ]
    32        tags:
    33          - Posture Checks
    34        operationId: createPostureResponseBulk
    35        parameters:
    36          - name: postureResponse
    37            in: body
    38            required: true
    39            description: A Posture Response
    40            schema:
    41              # using a named array definition causes issues w/ code gen
    42              type: array
    43              items:
    44                $ref: "#/definitions/postureResponseCreate"
    45        responses:
    46          '200':
    47            $ref: '#/responses/postureResponse'
    48          '400':
    49            $ref: '../shared/standard-responses.yml#/responses/badRequestResponse'
    50          '401':
    51            $ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
    52  responses:
    53    postureResponse:
    54      description: Contains a list of services that have had their timers altered
    55      schema:
    56        $ref: '#/definitions/postureResponseEnvelope'
    57  
    58  definitions:
    59    postureResponseEnvelope:
    60      type: object
    61      required:
    62        - meta
    63        - data
    64      properties:
    65        meta:
    66          $ref: '../shared/standard-responses.yml#/definitions/meta'
    67        data:
    68          $ref: '#/definitions/postureResponse'
    69    postureResponseService:
    70      type: object
    71      required:
    72        - id
    73        - name
    74        - postureQueryType
    75        - timeout
    76        - timeoutRemaining
    77      properties:
    78        id:
    79          type: string
    80        name:
    81          type: string
    82        postureQueryType:
    83          type: string
    84        timeout:
    85          type: integer
    86        timeoutRemaining:
    87          type: integer
    88    postureResponse:
    89      type: object
    90      required:
    91        - services
    92      properties:
    93        services:
    94          type: array
    95          items:
    96            $ref: '#/definitions/postureResponseService'
    97    postureResponseCreate:
    98      type: object
    99      discriminator: typeId
   100      required:
   101        - id
   102        - typeId
   103      properties:
   104        id:
   105          type: string
   106        typeId:
   107          $ref: '../shared/posture-checks.yml#/definitions/postureCheckType'
   108  
   109    postureResponseOperatingSystemCreate:
   110      allOf:
   111        - $ref: '#/definitions/postureResponseCreate'
   112        - type: object
   113          required:
   114            - type
   115            - version
   116          properties:
   117            type:
   118              type: string
   119            version:
   120              type: string
   121            build:
   122              type: string
   123      x-class: "OS"
   124  
   125    postureResponseDomainCreate:
   126      allOf:
   127        - $ref: '#/definitions/postureResponseCreate'
   128        - type: object
   129          required:
   130            - domain
   131          properties:
   132            domain:
   133              type: string
   134      x-class: "DOMAIN"
   135  
   136    postureResponseMacAddressCreate:
   137      allOf:
   138        - $ref: '#/definitions/postureResponseCreate'
   139        - type: object
   140          required:
   141            - macAddresses
   142          properties:
   143            macAddresses:
   144              type: array
   145              items:
   146                type: string
   147      x-class: "MAC"
   148  
   149    postureResponseProcessCreate:
   150      allOf:
   151        - $ref: '#/definitions/postureResponseCreate'
   152        - type: object
   153          required:
   154            - process
   155          properties:
   156            path:
   157              type: string
   158            isRunning:
   159              type: boolean
   160            hash:
   161              type: string
   162            signerFingerprints:
   163              type: array
   164              items:
   165                type: string
   166      x-class: "PROCESS"
   167  
   168    postureResponseEndpointStateCreate:
   169      allOf:
   170        - $ref: '#/definitions/postureResponseCreate'
   171        - type: object
   172          properties:
   173            unlocked:
   174              type: boolean
   175            woken:
   176              type: boolean
   177      x-class: "ENDPOINT_STATE"