Debian Codegraph @

docs/dyn/apihub_v1.projects.locations.attributes.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="apihub_v1.html">API hub API</a> . <a href="apihub_v1.projects.html">projects</a> . <a href="apihub_v1.projects.locations.html">locations</a> . <a href="apihub_v1.projects.locations.attributes.html">attributes</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, attributeId=None, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Create a user defined attribute. Certain pre defined attributes are already created by the API hub. These attributes will have type as `SYSTEM_DEFINED` and can be listed via ListAttributes method. Allowed values for the same can be updated via UpdateAttribute method.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Delete an attribute. Note: System defined attributes cannot be deleted. All associations of the attribute being deleted with any API hub resource will also get deleted.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Get details about the attribute.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">List all attributes.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Update the attribute. The following fields in the Attribute resource can be updated: * display_name The display name can be updated for user defined attributes only. * description The description can be updated for user defined attributes only. * allowed_values To update the list of allowed values, clients need to use the fetched list of allowed values and add or remove values to or from the same list. The mutable allowed values can be updated for both user defined and System defined attributes. The immutable allowed values cannot be updated or deleted. The updated list of allowed values cannot be empty. If an allowed value that is already used by some resource's attribute is deleted, then the association between the resource and the attribute value will also be deleted. * cardinality The cardinality can be updated for user defined attributes only. Cardinality can only be increased during an update. The update_mask should be used to specify the fields being updated.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, attributeId=None, body=None, x__xgafv=None)</code>
106 <pre>Create a user defined attribute. Certain pre defined attributes are already created by the API hub. These attributes will have type as `SYSTEM_DEFINED` and can be listed via ListAttributes method. Allowed values for the same can be updated via UpdateAttribute method.
107
108 Args:
109 parent: string, Required. The parent resource for Attribute. Format: `projects/{project}/locations/{location}` (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # An attribute in the API Hub. An attribute is a name value pair which can be attached to different resources in the API hub based on the scope of the attribute. Attributes can either be pre-defined by the API Hub or created by users.
114 &quot;allowedValues&quot;: [ # Optional. The list of allowed values when the attribute value is of type enum. This is required when the data_type of the attribute is ENUM. The maximum number of allowed values of an attribute will be 1000.
115 { # The value that can be assigned to the attribute when the data type is enum.
116 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
117 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
118 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
119 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
120 },
121 ],
122 &quot;cardinality&quot;: 42, # Optional. The maximum number of values that the attribute can have when associated with an API Hub resource. Cardinality 1 would represent a single-valued attribute. It must not be less than 1 or greater than 20. If not specified, the cardinality would be set to 1 by default and represent a single-valued attribute.
123 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was created.
124 &quot;dataType&quot;: &quot;A String&quot;, # Required. The type of the data of the attribute.
125 &quot;definitionType&quot;: &quot;A String&quot;, # Output only. The definition type of the attribute.
126 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the attribute.
127 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the attribute.
128 &quot;mandatory&quot;: True or False, # Output only. When mandatory is true, the attribute is mandatory for the resource specified in the scope. Only System defined attributes can be mandatory.
129 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the attribute in the API Hub. Format: `projects/{project}/locations/{location}/attributes/{attribute}`
130 &quot;scope&quot;: &quot;A String&quot;, # Required. The scope of the attribute. It represents the resource in the API Hub to which the attribute can be linked.
131 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was last updated.
132 }
133
134 attributeId: string, Optional. The ID to use for the attribute, which will become the final component of the attribute&#x27;s resource name. This field is optional. * If provided, the same will be used. The service will throw an error if the specified id is already used by another attribute resource in the API hub. * If not provided, a system generated id will be used. This value should be 4-500 characters, and valid characters are /a-z[0-9]-_/.
135 x__xgafv: string, V1 error format.
136 Allowed values
137 1 - v1 error format
138 2 - v2 error format
139
140 Returns:
141 An object of the form:
142
143 { # An attribute in the API Hub. An attribute is a name value pair which can be attached to different resources in the API hub based on the scope of the attribute. Attributes can either be pre-defined by the API Hub or created by users.
144 &quot;allowedValues&quot;: [ # Optional. The list of allowed values when the attribute value is of type enum. This is required when the data_type of the attribute is ENUM. The maximum number of allowed values of an attribute will be 1000.
145 { # The value that can be assigned to the attribute when the data type is enum.
146 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
147 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
148 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
149 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
150 },
151 ],
152 &quot;cardinality&quot;: 42, # Optional. The maximum number of values that the attribute can have when associated with an API Hub resource. Cardinality 1 would represent a single-valued attribute. It must not be less than 1 or greater than 20. If not specified, the cardinality would be set to 1 by default and represent a single-valued attribute.
153 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was created.
154 &quot;dataType&quot;: &quot;A String&quot;, # Required. The type of the data of the attribute.
155 &quot;definitionType&quot;: &quot;A String&quot;, # Output only. The definition type of the attribute.
156 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the attribute.
157 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the attribute.
158 &quot;mandatory&quot;: True or False, # Output only. When mandatory is true, the attribute is mandatory for the resource specified in the scope. Only System defined attributes can be mandatory.
159 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the attribute in the API Hub. Format: `projects/{project}/locations/{location}/attributes/{attribute}`
160 &quot;scope&quot;: &quot;A String&quot;, # Required. The scope of the attribute. It represents the resource in the API Hub to which the attribute can be linked.
161 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was last updated.
162 }</pre>
163 </div>
164
165 <div class="method">
166 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
167 <pre>Delete an attribute. Note: System defined attributes cannot be deleted. All associations of the attribute being deleted with any API hub resource will also get deleted.
168
169 Args:
170 name: string, Required. The name of the attribute to delete. Format: `projects/{project}/locations/{location}/attributes/{attribute}` (required)
171 x__xgafv: string, V1 error format.
172 Allowed values
173 1 - v1 error format
174 2 - v2 error format
175
176 Returns:
177 An object of the form:
178
179 { # 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); }
180 }</pre>
181 </div>
182
183 <div class="method">
184 <code class="details" id="get">get(name, x__xgafv=None)</code>
185 <pre>Get details about the attribute.
186
187 Args:
188 name: string, Required. The name of the attribute to retrieve. Format: `projects/{project}/locations/{location}/attributes/{attribute}` (required)
189 x__xgafv: string, V1 error format.
190 Allowed values
191 1 - v1 error format
192 2 - v2 error format
193
194 Returns:
195 An object of the form:
196
197 { # An attribute in the API Hub. An attribute is a name value pair which can be attached to different resources in the API hub based on the scope of the attribute. Attributes can either be pre-defined by the API Hub or created by users.
198 &quot;allowedValues&quot;: [ # Optional. The list of allowed values when the attribute value is of type enum. This is required when the data_type of the attribute is ENUM. The maximum number of allowed values of an attribute will be 1000.
199 { # The value that can be assigned to the attribute when the data type is enum.
200 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
201 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
202 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
203 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
204 },
205 ],
206 &quot;cardinality&quot;: 42, # Optional. The maximum number of values that the attribute can have when associated with an API Hub resource. Cardinality 1 would represent a single-valued attribute. It must not be less than 1 or greater than 20. If not specified, the cardinality would be set to 1 by default and represent a single-valued attribute.
207 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was created.
208 &quot;dataType&quot;: &quot;A String&quot;, # Required. The type of the data of the attribute.
209 &quot;definitionType&quot;: &quot;A String&quot;, # Output only. The definition type of the attribute.
210 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the attribute.
211 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the attribute.
212 &quot;mandatory&quot;: True or False, # Output only. When mandatory is true, the attribute is mandatory for the resource specified in the scope. Only System defined attributes can be mandatory.
213 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the attribute in the API Hub. Format: `projects/{project}/locations/{location}/attributes/{attribute}`
214 &quot;scope&quot;: &quot;A String&quot;, # Required. The scope of the attribute. It represents the resource in the API Hub to which the attribute can be linked.
215 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was last updated.
216 }</pre>
217 </div>
218
219 <div class="method">
220 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
221 <pre>List all attributes.
222
223 Args:
224 parent: string, Required. The parent resource for Attribute. Format: `projects/{project}/locations/{location}` (required)
225 filter: string, Optional. An expression that filters the list of Attributes. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string or a boolean. The comparison operator must be one of: `&lt;`, `&gt;` or `=`. Filters are not case sensitive. The following fields in the `Attribute` are eligible for filtering: * `display_name` - The display name of the Attribute. Allowed comparison operators: `=`. * `definition_type` - The definition type of the attribute. Allowed comparison operators: `=`. * `scope` - The scope of the attribute. Allowed comparison operators: `=`. * `data_type` - The type of the data of the attribute. Allowed comparison operators: `=`. * `mandatory` - Denotes whether the attribute is mandatory or not. Allowed comparison operators: `=`. * `create_time` - The time at which the Attribute was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `&gt;` and `&lt;`. Expressions are combined with either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one of the `AND` or `OR` operator can be used throughout the filter string and both the operators cannot be used together. No other logical operators are supported. At most three filter fields are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is returned by the API. Here are a few examples: * `display_name = production` - - The display name of the attribute is _production_. * `(display_name = production) AND (create_time &lt; \&quot;2021-08-15T14:50:00Z\&quot;) AND (create_time &gt; \&quot;2021-08-10T12:00:00Z\&quot;)` - The display name of the attribute is _production_ and the attribute was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. * `display_name = production OR scope = api` - The attribute where the display name is _production_ or the scope is _api_.
226 pageSize: integer, Optional. The maximum number of attribute resources to return. The service may return fewer than this value. If unspecified, at most 50 attributes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
227 pageToken: string, Optional. A page token, received from a previous `ListAttributes` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAttributes` must match the call that provided the page token.
228 x__xgafv: string, V1 error format.
229 Allowed values
230 1 - v1 error format
231 2 - v2 error format
232
233 Returns:
234 An object of the form:
235
236 { # The ListAttributes method&#x27;s response.
237 &quot;attributes&quot;: [ # The list of all attributes.
238 { # An attribute in the API Hub. An attribute is a name value pair which can be attached to different resources in the API hub based on the scope of the attribute. Attributes can either be pre-defined by the API Hub or created by users.
239 &quot;allowedValues&quot;: [ # Optional. The list of allowed values when the attribute value is of type enum. This is required when the data_type of the attribute is ENUM. The maximum number of allowed values of an attribute will be 1000.
240 { # The value that can be assigned to the attribute when the data type is enum.
241 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
242 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
243 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
244 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
245 },
246 ],
247 &quot;cardinality&quot;: 42, # Optional. The maximum number of values that the attribute can have when associated with an API Hub resource. Cardinality 1 would represent a single-valued attribute. It must not be less than 1 or greater than 20. If not specified, the cardinality would be set to 1 by default and represent a single-valued attribute.
248 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was created.
249 &quot;dataType&quot;: &quot;A String&quot;, # Required. The type of the data of the attribute.
250 &quot;definitionType&quot;: &quot;A String&quot;, # Output only. The definition type of the attribute.
251 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the attribute.
252 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the attribute.
253 &quot;mandatory&quot;: True or False, # Output only. When mandatory is true, the attribute is mandatory for the resource specified in the scope. Only System defined attributes can be mandatory.
254 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the attribute in the API Hub. Format: `projects/{project}/locations/{location}/attributes/{attribute}`
255 &quot;scope&quot;: &quot;A String&quot;, # Required. The scope of the attribute. It represents the resource in the API Hub to which the attribute can be linked.
256 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was last updated.
257 },
258 ],
259 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
260 }</pre>
261 </div>
262
263 <div class="method">
264 <code class="details" id="list_next">list_next()</code>
265 <pre>Retrieves the next page of results.
266
267 Args:
268 previous_request: The request for the previous page. (required)
269 previous_response: The response from the request for the previous page. (required)
270
271 Returns:
272 A request object that you can call &#x27;execute()&#x27; on to request the next
273 page. Returns None if there are no more items in the collection.
274 </pre>
275 </div>
276
277 <div class="method">
278 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
279 <pre>Update the attribute. The following fields in the Attribute resource can be updated: * display_name The display name can be updated for user defined attributes only. * description The description can be updated for user defined attributes only. * allowed_values To update the list of allowed values, clients need to use the fetched list of allowed values and add or remove values to or from the same list. The mutable allowed values can be updated for both user defined and System defined attributes. The immutable allowed values cannot be updated or deleted. The updated list of allowed values cannot be empty. If an allowed value that is already used by some resource&#x27;s attribute is deleted, then the association between the resource and the attribute value will also be deleted. * cardinality The cardinality can be updated for user defined attributes only. Cardinality can only be increased during an update. The update_mask should be used to specify the fields being updated.
280
281 Args:
282 name: string, Identifier. The name of the attribute in the API Hub. Format: `projects/{project}/locations/{location}/attributes/{attribute}` (required)
283 body: object, The request body.
284 The object takes the form of:
285
286 { # An attribute in the API Hub. An attribute is a name value pair which can be attached to different resources in the API hub based on the scope of the attribute. Attributes can either be pre-defined by the API Hub or created by users.
287 &quot;allowedValues&quot;: [ # Optional. The list of allowed values when the attribute value is of type enum. This is required when the data_type of the attribute is ENUM. The maximum number of allowed values of an attribute will be 1000.
288 { # The value that can be assigned to the attribute when the data type is enum.
289 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
290 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
291 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
292 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
293 },
294 ],
295 &quot;cardinality&quot;: 42, # Optional. The maximum number of values that the attribute can have when associated with an API Hub resource. Cardinality 1 would represent a single-valued attribute. It must not be less than 1 or greater than 20. If not specified, the cardinality would be set to 1 by default and represent a single-valued attribute.
296 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was created.
297 &quot;dataType&quot;: &quot;A String&quot;, # Required. The type of the data of the attribute.
298 &quot;definitionType&quot;: &quot;A String&quot;, # Output only. The definition type of the attribute.
299 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the attribute.
300 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the attribute.
301 &quot;mandatory&quot;: True or False, # Output only. When mandatory is true, the attribute is mandatory for the resource specified in the scope. Only System defined attributes can be mandatory.
302 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the attribute in the API Hub. Format: `projects/{project}/locations/{location}/attributes/{attribute}`
303 &quot;scope&quot;: &quot;A String&quot;, # Required. The scope of the attribute. It represents the resource in the API Hub to which the attribute can be linked.
304 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was last updated.
305 }
306
307 updateMask: string, Required. The list of fields to update.
308 x__xgafv: string, V1 error format.
309 Allowed values
310 1 - v1 error format
311 2 - v2 error format
312
313 Returns:
314 An object of the form:
315
316 { # An attribute in the API Hub. An attribute is a name value pair which can be attached to different resources in the API hub based on the scope of the attribute. Attributes can either be pre-defined by the API Hub or created by users.
317 &quot;allowedValues&quot;: [ # Optional. The list of allowed values when the attribute value is of type enum. This is required when the data_type of the attribute is ENUM. The maximum number of allowed values of an attribute will be 1000.
318 { # The value that can be assigned to the attribute when the data type is enum.
319 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
320 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
321 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
322 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
323 },
324 ],
325 &quot;cardinality&quot;: 42, # Optional. The maximum number of values that the attribute can have when associated with an API Hub resource. Cardinality 1 would represent a single-valued attribute. It must not be less than 1 or greater than 20. If not specified, the cardinality would be set to 1 by default and represent a single-valued attribute.
326 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was created.
327 &quot;dataType&quot;: &quot;A String&quot;, # Required. The type of the data of the attribute.
328 &quot;definitionType&quot;: &quot;A String&quot;, # Output only. The definition type of the attribute.
329 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the attribute.
330 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the attribute.
331 &quot;mandatory&quot;: True or False, # Output only. When mandatory is true, the attribute is mandatory for the resource specified in the scope. Only System defined attributes can be mandatory.
332 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the attribute in the API Hub. Format: `projects/{project}/locations/{location}/attributes/{attribute}`
333 &quot;scope&quot;: &quot;A String&quot;, # Required. The scope of the attribute. It represents the resource in the API Hub to which the attribute can be linked.
334 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the attribute was last updated.
335 }</pre>
336 </div>
337
338 </body></html>