Debian Codegraph @

glanceclient/v2/resource_type_schema.py

raw symbols SCIP
1 # Copyright 2015 OpenStack Foundation
2 # All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
14 # under the License.
15
16
17 # NOTE(flaper87): Keep a copy of the current default schema so that
18 # we can react on cases where there's no connection to an OpenStack
19 # deployment. See #1481729
20 BASE_SCHEMA = {
21 "additionalProperties": False,
22 "required": ["name"],
23 "name": "resource_type_association",
24 "properties": {
25 "name": {
26 "type": "string",
27 "description": "Resource type names should be aligned with Heat "
28 "resource types whenever possible: https://docs."
29 "openstack.org/heat/latest/template_guide/"
30 "openstack.html",
31 "maxLength": 80
32
33 },
34 "prefix": {
35 "type": "string",
36 "description": "Specifies the prefix to use for the given resource"
37 " type. Any properties in the namespace should be"
38 " prefixed with this prefix when being applied to"
39 " the specified resource type. Must include prefix"
40 " separator (e.g. a colon :).",
41 "maxLength": 80
42 },
43 "properties_target": {
44 "type": "string",
45 "description": "Some resource types allow more than one key / "
46 "value pair per instance. For example, Cinder "
47 "allows user and image metadata on volumes. Only "
48 "the image properties metadata is evaluated by Nova"
49 " (scheduling or drivers). This property allows a "
50 "namespace target to remove the ambiguity.",
51 "maxLength": 80
52 },
53 "created_at": {
54 "type": "string",
55 "readOnly": True,
56 "description": "Date and time of resource type association.",
57 "format": "date-time"
58 },
59 "updated_at": {
60 "type": "string",
61 "readOnly": True,
62 "description": "Date and time of the last resource type "
63 "association modification.",
64 "format": "date-time"
65 }
66 }
67 }