Debian Codegraph @

docs/dyn/datacatalog_v1beta1.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_v1beta1.html">Google Cloud Data Catalog API</a> . <a href="datacatalog_v1beta1.projects.html">projects</a> . <a href="datacatalog_v1beta1.projects.locations.html">locations</a> . <a href="datacatalog_v1beta1.projects.locations.tagTemplates.html">tagTemplates</a> . <a href="datacatalog_v1beta1.projects.locations.tagTemplates.fields.html">fields</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="datacatalog_v1beta1.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. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).</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 that field. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).</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. This method cannot be used to update the field type. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).</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. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).</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. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
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). Example: * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id} (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.
115 &quot;isRequired&quot;: True or False, # Whether this is a required field. Defaults to false.
116 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the tag template field in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} Note that this TagTemplateField may not actually be stored in the location in this name.
117 &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. A higher value indicates a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag do not have to be sequential.
118 &quot;type&quot;: { # Required. The type of value this tag field can contain.
119 &quot;enumType&quot;: { # Represents an enum type.
120 &quot;allowedValues&quot;: [
121 {
122 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string.
123 },
124 ],
125 },
126 &quot;primitiveType&quot;: &quot;A String&quot;, # Represents primitive types - string, bool etc.
127 },
128 }
129
130 tagTemplateFieldId: string, Required. The ID of the tag template field to create. 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.
142 &quot;isRequired&quot;: True or False, # Whether this is a required field. Defaults to false.
143 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the tag template field in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} Note that this TagTemplateField may not actually be stored in the location in this name.
144 &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. A higher value indicates a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag do not have to be sequential.
145 &quot;type&quot;: { # Required. The type of value this tag field can contain.
146 &quot;enumType&quot;: { # Represents an enum type.
147 &quot;allowedValues&quot;: [
148 {
149 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string.
150 },
151 ],
152 },
153 &quot;primitiveType&quot;: &quot;A String&quot;, # Represents primitive types - string, bool 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 that field. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
161
162 Args:
163 name: string, Required. The name of the tag template field to delete. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} (required)
164 force: boolean, Required. Currently, this field must always be set to `true`. This confirms the deletion of this field from any tags using this field. `force = false` will be supported in the future.
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. This method cannot be used to update the field type. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
180
181 Args:
182 name: string, Required. The name of the tag template field. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} (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.
189 &quot;isRequired&quot;: True or False, # Whether this is a required field. Defaults to false.
190 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the tag template field in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} Note that this TagTemplateField may not actually be stored in the location in this name.
191 &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. A higher value indicates a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag do not have to be sequential.
192 &quot;type&quot;: { # Required. The type of value this tag field can contain.
193 &quot;enumType&quot;: { # Represents an enum type.
194 &quot;allowedValues&quot;: [
195 {
196 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string.
197 },
198 ],
199 },
200 &quot;primitiveType&quot;: &quot;A String&quot;, # Represents primitive types - string, bool 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.
216 &quot;isRequired&quot;: True or False, # Whether this is a required field. Defaults to false.
217 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the tag template field in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} Note that this TagTemplateField may not actually be stored in the location in this name.
218 &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. A higher value indicates a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag do not have to be sequential.
219 &quot;type&quot;: { # Required. The type of value this tag field can contain.
220 &quot;enumType&quot;: { # Represents an enum type.
221 &quot;allowedValues&quot;: [
222 {
223 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string.
224 },
225 ],
226 },
227 &quot;primitiveType&quot;: &quot;A String&quot;, # Represents primitive types - string, bool 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. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).
235
236 Args:
237 name: string, Required. The name of the tag template. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} (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.
256 &quot;isRequired&quot;: True or False, # Whether this is a required field. Defaults to false.
257 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the tag template field in URL format. Example: * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} Note that this TagTemplateField may not actually be stored in the location in this name.
258 &quot;order&quot;: 42, # The order of this field with respect to other fields in this tag template. A higher value indicates a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag do not have to be sequential.
259 &quot;type&quot;: { # Required. The type of value this tag field can contain.
260 &quot;enumType&quot;: { # Represents an enum type.
261 &quot;allowedValues&quot;: [
262 {
263 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the enum value. Must not be an empty string.
264 },
265 ],
266 },
267 &quot;primitiveType&quot;: &quot;A String&quot;, # Represents primitive types - string, bool etc.
268 },
269 }</pre>
270 </div>
271
272 </body></html>