6.6 Library
Library definitions and definition examples are shown below. For details on Library, see “Library”.
| Label | Default value | Required | Description | |||
|---|---|---|---|---|---|---|
| apiVersion: | 1.0 | Yes | API version | |||
| kind: | Yes | Specify "library" for Library. | ||||
| type: | No | Only "container" can be specified for Library. | ||||
| name: | Yes | Internal name of the Library definition. Specify the directory name for this YAML file. | ||||
| label: | Yes | YAML file display name | ||||
| includes: | No | List the related YAML files for use in this YAML file | ||||
| - kind: | Yes | Type of YAML file to be loaded | ||||
| name: | Yes | Internal name of YAML file to be loaded | ||||
| description: | No | Specify a detailed description of this YAML file | ||||
| nameRule: | No | - | ||||
| type: | fixed | No | Naming rule for documents stored in the container. Only "fixed" can be specified for Library |
|||
| items: | Yes | - | ||||
| - name: | Yes | Internal name of the item folder in the container. | ||||
| label: | Yes | Display name of the item folder in the container. The template function can be used. | ||||
| description: | No | Detailed description of the item folder in the container. The template function can be used. | ||||
<Definition example>
apiVersion: 1.0
kind: library
type: container
name: Template of checklist
label: Template of checklist
description: A folder for storing the sample check list used when generating and deleting VMs
nameRule:
type: fixed
items:
- name: create
label: create
- name: delete
label: delete