Debian Codegraph @

docs/dyn/datacatalog_v1.projects.locations.tagTemplates.fields.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="datacatalog_v1.html">Google Cloud Data Catalog API</a> . <a href="datacatalog_v1.projects.html">projects</a> . <a href="datacatalog_v1.projects.locations.html">locations</a> . <a href="datacatalog_v1.projects.locations.tagTemplates.html">tagTemplates</a> . <a href="datacatalog_v1.projects.locations.tagTemplates.fields.html">fields</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="datacatalog_v1.projects.locations.tagTemplates.fields.enumValues.html">enumValues()</a></code>
79 </p>
80 <p class="firstline">Returns the enumValues Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, tagTemplateFieldId=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates a field in a tag template. You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes a field in a tag template and all uses of this field from the tags based on this template. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).</p>
91 <p class="toc_element">
92 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">Updates a field in a tag template. You can't update the field type with this method. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).</p>
94 <p class="toc_element">
95 <code><a href="#rename">rename(name, body=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Renames a field in a tag template. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project).</p>
97 <h3>Method Details</h3>
98 <div class="method">
99 <code class="details" id="close">close()</code>
100 <pre>Close httplib2 connections.</pre>
101 </div>
102
103 <div class="method">
104 <code class="details" id="create">create(parent, body=None, tagTemplateFieldId=None, x__xgafv=None)</code>
105 <pre>Creates a field in a tag template. You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
106
107 Args:
108 parent: string, Required. The name of the project and the template location [region](https://cloud.google.com/data-catalog/docs/concepts/regions). (required)
109 body: object, The request body.
110 The object takes the form of:
111
112 { # The template for an individual field within a tag template.
113 &quot;description&quot;: &quot;A String&quot;, # The description for this field. Defaults to an empty string.
114 &quot;displayName&quot;: &quot;A String&quot;, # The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
115 &quot;isRequired&quot;: True or False, # If true, this field is required. Defaults to false.
116 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.
117 &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don&#x27;t have to be sequential.
118 &quot;type&quot;: { # Required. The type of value this tag field can contain.
119 &quot;enumType&quot;: { # An enum type.
120 &quot;allowedValues&quot;: [ # The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the `RenameTagTemplateFieldEnumValue` method.
121 {
122 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
123 },
124 ],
125 },
126 &quot;primitiveType&quot;: &quot;A String&quot;, # Primitive types, such as string, boolean, etc.
127 },
128 }
129
130 tagTemplateFieldId: string, Required. The ID of the tag template field to create. Note: Adding a required field to an existing template is *not* allowed. Field IDs can contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs must also be unique within their template.
131 x__xgafv: string, V1 error format.
132 Allowed values
133 1 - v1 error format
134 2 - v2 error format
135
136 Returns:
137 An object of the form:
138
139 { # The template for an individual field within a tag template.
140 &quot;description&quot;: &quot;A String&quot;, # The description for this field. Defaults to an empty string.
141 &quot;displayName&quot;: &quot;A String&quot;, # The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
142 &quot;isRequired&quot;: True or False, # If true, this field is required. Defaults to false.
143 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.
144 &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don&#x27;t have to be sequential.
145 &quot;type&quot;: { # Required. The type of value this tag field can contain.
146 &quot;enumType&quot;: { # An enum type.
147 &quot;allowedValues&quot;: [ # The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the `RenameTagTemplateFieldEnumValue` method.
148 {
149 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
150 },
151 ],
152 },
153 &quot;primitiveType&quot;: &quot;A String&quot;, # Primitive types, such as string, boolean, etc.
154 },
155 }</pre>
156 </div>
157
158 <div class="method">
159 <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
160 <pre>Deletes a field in a tag template and all uses of this field from the tags based on this template. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
161
162 Args:
163 name: string, Required. The name of the tag template field to delete. (required)
164 force: boolean, Required. If true, deletes this field from any tags that use it. Currently, `true` is the only supported value.
165 x__xgafv: string, V1 error format.
166 Allowed values
167 1 - v1 error format
168 2 - v2 error format
169
170 Returns:
171 An object of the form:
172
173 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
174 }</pre>
175 </div>
176
177 <div class="method">
178 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
179 <pre>Updates a field in a tag template. You can&#x27;t update the field type with this method. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
180
181 Args:
182 name: string, Required. The name of the tag template field. (required)
183 body: object, The request body.
184 The object takes the form of:
185
186 { # The template for an individual field within a tag template.
187 &quot;description&quot;: &quot;A String&quot;, # The description for this field. Defaults to an empty string.
188 &quot;displayName&quot;: &quot;A String&quot;, # The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
189 &quot;isRequired&quot;: True or False, # If true, this field is required. Defaults to false.
190 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.
191 &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don&#x27;t have to be sequential.
192 &quot;type&quot;: { # Required. The type of value this tag field can contain.
193 &quot;enumType&quot;: { # An enum type.
194 &quot;allowedValues&quot;: [ # The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the `RenameTagTemplateFieldEnumValue` method.
195 {
196 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
197 },
198 ],
199 },
200 &quot;primitiveType&quot;: &quot;A String&quot;, # Primitive types, such as string, boolean, etc.
201 },
202 }
203
204 updateMask: string, Optional. Names of fields whose values to overwrite on an individual field of a tag template. The following fields are modifiable: * `display_name` * `type.enum_type` * `is_required` If this parameter is absent or empty, all modifiable fields are overwritten. If such fields are non-required and omitted in the request body, their values are emptied with one exception: when updating an enum type, the provided values are merged with the existing values. Therefore, enum values can only be added, existing enum values cannot be deleted or renamed. Additionally, updating a template field from optional to required is *not* allowed.
205 x__xgafv: string, V1 error format.
206 Allowed values
207 1 - v1 error format
208 2 - v2 error format
209
210 Returns:
211 An object of the form:
212
213 { # The template for an individual field within a tag template.
214 &quot;description&quot;: &quot;A String&quot;, # The description for this field. Defaults to an empty string.
215 &quot;displayName&quot;: &quot;A String&quot;, # The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
216 &quot;isRequired&quot;: True or False, # If true, this field is required. Defaults to false.
217 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.
218 &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don&#x27;t have to be sequential.
219 &quot;type&quot;: { # Required. The type of value this tag field can contain.
220 &quot;enumType&quot;: { # An enum type.
221 &quot;allowedValues&quot;: [ # The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the `RenameTagTemplateFieldEnumValue` method.
222 {
223 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
224 },
225 ],
226 },
227 &quot;primitiveType&quot;: &quot;A String&quot;, # Primitive types, such as string, boolean, etc.
228 },
229 }</pre>
230 </div>
231
232 <div class="method">
233 <code class="details" id="rename">rename(name, body=None, x__xgafv=None)</code>
234 <pre>Renames a field in a tag template. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
235
236 Args:
237 name: string, Required. The name of the tag template field. (required)
238 body: object, The request body.
239 The object takes the form of:
240
241 { # Request message for RenameTagTemplateField.
242 &quot;newTagTemplateFieldId&quot;: &quot;A String&quot;, # Required. The new ID of this tag template field. For example, `my_new_field`.
243 }
244
245 x__xgafv: string, V1 error format.
246 Allowed values
247 1 - v1 error format
248 2 - v2 error format
249
250 Returns:
251 An object of the form:
252
253 { # The template for an individual field within a tag template.
254 &quot;description&quot;: &quot;A String&quot;, # The description for this field. Defaults to an empty string.
255 &quot;displayName&quot;: &quot;A String&quot;, # The display name for this field. Defaults to an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
256 &quot;isRequired&quot;: True or False, # If true, this field is required. Defaults to false.
257 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the tag template field in URL format. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: The tag template field itself might not be stored in the location specified in its name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 64 characters.
258 &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order and field orders within a tag don&#x27;t have to be sequential.
259 &quot;type&quot;: { # Required. The type of value this tag field can contain.
260 &quot;enumType&quot;: { # An enum type.
261 &quot;allowedValues&quot;: [ # The set of allowed values for this enum. This set must not be empty and can include up to 100 allowed values. The display names of the values in this set must not be empty and must be case-insensitively unique within this set. The order of items in this set is preserved. This field can be used to create, remove, and reorder enum values. To rename enum values, use the `RenameTagTemplateFieldEnumValue` method.
262 {
263 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string. The name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can&#x27;t start or end with spaces. The maximum length is 200 characters.
264 },
265 ],
266 },
267 &quot;primitiveType&quot;: &quot;A String&quot;, # Primitive types, such as string, boolean, etc.
268 },
269 }</pre>
270 </div>
271
272 </body></html>