Debian Codegraph @

docs/dyn/apihub_v1.projects.locations.apis.versions.specs.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.apis.html">apis</a> . <a href="apihub_v1.projects.locations.apis.versions.html">versions</a> . <a href="apihub_v1.projects.locations.apis.versions.specs.html">specs</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, body=None, specId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Add a spec to an API version in the API hub. Multiple specs can be added to an API version. Note, while adding a spec, at least one of `contents` or `source_uri` must be provided. If `contents` is provided, then `spec_type` must also be provided. On adding a spec with contents to the version, the operations present in it will be added to the version.Note that the file contents in the spec should be of the same type as defined in the `projects/{project}/locations/{location}/attributes/system-spec-type` attribute associated with spec resource. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently. In order to access the information parsed from the spec, use the GetSpec method. In order to access the raw contents for a particular spec, use the GetSpecContents method. In order to access the operations parsed from the spec, use the ListAPIOperations 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 a spec. Deleting a spec will also delete the associated operations from the version.</p>
86 <p class="toc_element">
87 <code><a href="#fetchAdditionalSpecContent">fetchAdditionalSpecContent(name, specContentType=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Fetch additional spec content.</p>
89 <p class="toc_element">
90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
91 <p class="firstline">Get details about the information parsed from a spec. Note that this method does not return the raw spec contents. Use GetSpecContents method to retrieve the same.</p>
92 <p class="toc_element">
93 <code><a href="#getContents">getContents(name, x__xgafv=None)</a></code></p>
94 <p class="firstline">Get spec contents.</p>
95 <p class="toc_element">
96 <code><a href="#lint">lint(name, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Lints the requested spec and updates the corresponding API Spec with the lint response. This lint response will be available in all subsequent Get and List Spec calls to Core service.</p>
98 <p class="toc_element">
99 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">List specs corresponding to a particular API resource.</p>
101 <p class="toc_element">
102 <code><a href="#list_next">list_next()</a></code></p>
103 <p class="firstline">Retrieves the next page of results.</p>
104 <p class="toc_element">
105 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Update spec. The following fields in the spec can be updated: * display_name * source_uri * lint_response * attributes * contents * spec_type In case of an OAS spec, updating spec contents can lead to: 1. Creation, deletion and update of operations. 2. Creation, deletion and update of definitions. 3. Update of other info parsed out from the new spec. In case of contents or source_uri being present in update mask, spec_type must also be present. Also, spec_type can not be present in update mask if contents or source_uri is not present. The update_mask should be used to specify the fields being updated.</p>
107 <h3>Method Details</h3>
108 <div class="method">
109 <code class="details" id="close">close()</code>
110 <pre>Close httplib2 connections.</pre>
111 </div>
112
113 <div class="method">
114 <code class="details" id="create">create(parent, body=None, specId=None, x__xgafv=None)</code>
115 <pre>Add a spec to an API version in the API hub. Multiple specs can be added to an API version. Note, while adding a spec, at least one of `contents` or `source_uri` must be provided. If `contents` is provided, then `spec_type` must also be provided. On adding a spec with contents to the version, the operations present in it will be added to the version.Note that the file contents in the spec should be of the same type as defined in the `projects/{project}/locations/{location}/attributes/system-spec-type` attribute associated with spec resource. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently. In order to access the information parsed from the spec, use the GetSpec method. In order to access the raw contents for a particular spec, use the GetSpecContents method. In order to access the operations parsed from the spec, use the ListAPIOperations method.
116
117 Args:
118 parent: string, Required. The parent resource for Spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}` (required)
119 body: object, The request body.
120 The object takes the form of:
121
122 { # Represents a spec associated with an API version in the API Hub. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently.
123 &quot;additionalSpecContents&quot;: [ # Output only. The additional spec contents for the spec.
124 { # The additional spec content for the spec. This contains the metadata and the last update time for the additional spec content.
125 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was created.
126 &quot;labels&quot;: { # Optional. The labels of the spec content e.g. specboost addon version.
127 &quot;a_key&quot;: &quot;A String&quot;,
128 },
129 &quot;specContentType&quot;: &quot;A String&quot;, # Required. The type of the spec content.
130 &quot;specContents&quot;: { # The spec contents. # Optional. The additional spec contents.
131 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
132 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
133 },
134 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was last updated.
135 },
136 ],
137 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the spec. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
138 &quot;a_key&quot;: { # The attribute values associated with resource.
139 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
140 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
141 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
142 { # The value that can be assigned to the attribute when the data type is enum.
143 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
144 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
145 &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-/.
146 &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.
147 },
148 ],
149 },
150 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
151 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
152 &quot;A String&quot;,
153 ],
154 },
155 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
156 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
157 &quot;A String&quot;,
158 ],
159 },
160 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
161 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
162 &quot;A String&quot;,
163 ],
164 },
165 },
166 },
167 &quot;contents&quot;: { # The spec contents. # Optional. Input only. The contents of the uploaded spec.
168 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
169 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
170 },
171 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was created.
172 &quot;details&quot;: { # SpecDetails contains the details parsed from supported spec types. # Output only. Details parsed from the spec.
173 &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the spec.
174 &quot;openApiSpecDetails&quot;: { # OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in SpecDetails. # Output only. Additional details apart from `OperationDetails` parsed from an OpenAPI spec. The OperationDetails parsed from the spec can be obtained by using ListAPIOperations method.
175 &quot;format&quot;: &quot;A String&quot;, # Output only. The format of the spec.
176 &quot;owner&quot;: { # Owner details. # Output only. Owner details for the spec. This maps to `info.contact` in OpenAPI spec.
177 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The name of the owner.
178 &quot;email&quot;: &quot;A String&quot;, # Required. The email of the owner.
179 },
180 &quot;version&quot;: &quot;A String&quot;, # Output only. The version in the spec. This maps to `info.version` in OpenAPI spec.
181 },
182 },
183 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the spec. This can contain the file name of the spec.
184 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the spec. For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI spec.
185 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
186 },
187 &quot;lintResponse&quot;: { # LintResponse contains the response from the linter. # Optional. The lint response for the spec.
188 &quot;createTime&quot;: &quot;A String&quot;, # Required. Timestamp when the linting response was generated.
189 &quot;issues&quot;: [ # Optional. Array of issues found in the analyzed document.
190 { # Issue contains the details of a single issue found by the linter.
191 &quot;code&quot;: &quot;A String&quot;, # Required. Rule code unique to each rule defined in linter.
192 &quot;message&quot;: &quot;A String&quot;, # Required. Human-readable message describing the issue found by the linter.
193 &quot;path&quot;: [ # Required. An array of strings indicating the location in the analyzed document where the rule was triggered.
194 &quot;A String&quot;,
195 ],
196 &quot;range&quot;: { # Object describing where in the file the issue was found. # Required. Object describing where in the file the issue was found.
197 &quot;end&quot;: { # Point within the file (line and character). # Required. End of the issue.
198 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
199 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
200 },
201 &quot;start&quot;: { # Point within the file (line and character). # Required. Start of the issue.
202 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
203 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
204 },
205 },
206 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity level of the rule violation.
207 },
208 ],
209 &quot;linter&quot;: &quot;A String&quot;, # Required. Name of the linter used.
210 &quot;source&quot;: &quot;A String&quot;, # Required. Name of the linting application.
211 &quot;state&quot;: &quot;A String&quot;, # Required. Lint state represents success or failure for linting.
212 &quot;summary&quot;: [ # Optional. Summary of all issue types and counts for each severity level.
213 { # Count of issues with a given severity.
214 &quot;count&quot;: 42, # Required. Count of issues with the given severity.
215 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity of the issue.
216 },
217 ],
218 },
219 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
220 &quot;parsingMode&quot;: &quot;A String&quot;, # Optional. Input only. Enum specifying the parsing mode for OpenAPI Specification (OAS) parsing.
221 &quot;sourceMetadata&quot;: [ # Output only. The list of sources and metadata from the sources of the spec.
222 { # SourceMetadata represents the metadata for a resource at the source.
223 &quot;originalResourceCreateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was created at the source.
224 &quot;originalResourceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the resource at the source.
225 &quot;originalResourceUpdateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was last updated at the source.
226 &quot;pluginInstanceActionSource&quot;: { # PluginInstanceActionSource represents the plugin instance action source. # Output only. The source of the resource is a plugin instance action.
227 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The id of the plugin instance action.
228 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. The resource name of the source plugin instance. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
229 },
230 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. The type of the source.
231 },
232 ],
233 &quot;sourceUri&quot;: &quot;A String&quot;, # Optional. The URI of the spec source in case file is uploaded from an external version control system.
234 &quot;specType&quot;: { # The attribute values associated with resource. # Required. The type of spec. The value should be one of the allowed values defined for `projects/{project}/locations/{location}/attributes/system-spec-type` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. Note, this field is mandatory if content is provided.
235 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
236 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
237 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
238 { # The value that can be assigned to the attribute when the data type is enum.
239 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
240 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
241 &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-/.
242 &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.
243 },
244 ],
245 },
246 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
247 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
248 &quot;A String&quot;,
249 ],
250 },
251 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
252 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
253 &quot;A String&quot;,
254 ],
255 },
256 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
257 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
258 &quot;A String&quot;,
259 ],
260 },
261 },
262 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was last updated.
263 }
264
265 specId: string, Optional. The ID to use for the spec, which will become the final component of the spec&#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 spec in the API resource. * If not provided, a system generated id will be used. This value should be 4-500 characters, overall resource name which will be of format `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`, its length is limited to 1000 characters and valid characters are /a-z[0-9]-_/.
266 x__xgafv: string, V1 error format.
267 Allowed values
268 1 - v1 error format
269 2 - v2 error format
270
271 Returns:
272 An object of the form:
273
274 { # Represents a spec associated with an API version in the API Hub. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently.
275 &quot;additionalSpecContents&quot;: [ # Output only. The additional spec contents for the spec.
276 { # The additional spec content for the spec. This contains the metadata and the last update time for the additional spec content.
277 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was created.
278 &quot;labels&quot;: { # Optional. The labels of the spec content e.g. specboost addon version.
279 &quot;a_key&quot;: &quot;A String&quot;,
280 },
281 &quot;specContentType&quot;: &quot;A String&quot;, # Required. The type of the spec content.
282 &quot;specContents&quot;: { # The spec contents. # Optional. The additional spec contents.
283 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
284 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
285 },
286 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was last updated.
287 },
288 ],
289 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the spec. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
290 &quot;a_key&quot;: { # The attribute values associated with resource.
291 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
292 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
293 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
294 { # The value that can be assigned to the attribute when the data type is enum.
295 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
296 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
297 &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-/.
298 &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.
299 },
300 ],
301 },
302 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
303 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
304 &quot;A String&quot;,
305 ],
306 },
307 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
308 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
309 &quot;A String&quot;,
310 ],
311 },
312 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
313 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
314 &quot;A String&quot;,
315 ],
316 },
317 },
318 },
319 &quot;contents&quot;: { # The spec contents. # Optional. Input only. The contents of the uploaded spec.
320 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
321 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
322 },
323 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was created.
324 &quot;details&quot;: { # SpecDetails contains the details parsed from supported spec types. # Output only. Details parsed from the spec.
325 &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the spec.
326 &quot;openApiSpecDetails&quot;: { # OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in SpecDetails. # Output only. Additional details apart from `OperationDetails` parsed from an OpenAPI spec. The OperationDetails parsed from the spec can be obtained by using ListAPIOperations method.
327 &quot;format&quot;: &quot;A String&quot;, # Output only. The format of the spec.
328 &quot;owner&quot;: { # Owner details. # Output only. Owner details for the spec. This maps to `info.contact` in OpenAPI spec.
329 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The name of the owner.
330 &quot;email&quot;: &quot;A String&quot;, # Required. The email of the owner.
331 },
332 &quot;version&quot;: &quot;A String&quot;, # Output only. The version in the spec. This maps to `info.version` in OpenAPI spec.
333 },
334 },
335 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the spec. This can contain the file name of the spec.
336 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the spec. For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI spec.
337 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
338 },
339 &quot;lintResponse&quot;: { # LintResponse contains the response from the linter. # Optional. The lint response for the spec.
340 &quot;createTime&quot;: &quot;A String&quot;, # Required. Timestamp when the linting response was generated.
341 &quot;issues&quot;: [ # Optional. Array of issues found in the analyzed document.
342 { # Issue contains the details of a single issue found by the linter.
343 &quot;code&quot;: &quot;A String&quot;, # Required. Rule code unique to each rule defined in linter.
344 &quot;message&quot;: &quot;A String&quot;, # Required. Human-readable message describing the issue found by the linter.
345 &quot;path&quot;: [ # Required. An array of strings indicating the location in the analyzed document where the rule was triggered.
346 &quot;A String&quot;,
347 ],
348 &quot;range&quot;: { # Object describing where in the file the issue was found. # Required. Object describing where in the file the issue was found.
349 &quot;end&quot;: { # Point within the file (line and character). # Required. End of the issue.
350 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
351 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
352 },
353 &quot;start&quot;: { # Point within the file (line and character). # Required. Start of the issue.
354 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
355 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
356 },
357 },
358 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity level of the rule violation.
359 },
360 ],
361 &quot;linter&quot;: &quot;A String&quot;, # Required. Name of the linter used.
362 &quot;source&quot;: &quot;A String&quot;, # Required. Name of the linting application.
363 &quot;state&quot;: &quot;A String&quot;, # Required. Lint state represents success or failure for linting.
364 &quot;summary&quot;: [ # Optional. Summary of all issue types and counts for each severity level.
365 { # Count of issues with a given severity.
366 &quot;count&quot;: 42, # Required. Count of issues with the given severity.
367 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity of the issue.
368 },
369 ],
370 },
371 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
372 &quot;parsingMode&quot;: &quot;A String&quot;, # Optional. Input only. Enum specifying the parsing mode for OpenAPI Specification (OAS) parsing.
373 &quot;sourceMetadata&quot;: [ # Output only. The list of sources and metadata from the sources of the spec.
374 { # SourceMetadata represents the metadata for a resource at the source.
375 &quot;originalResourceCreateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was created at the source.
376 &quot;originalResourceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the resource at the source.
377 &quot;originalResourceUpdateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was last updated at the source.
378 &quot;pluginInstanceActionSource&quot;: { # PluginInstanceActionSource represents the plugin instance action source. # Output only. The source of the resource is a plugin instance action.
379 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The id of the plugin instance action.
380 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. The resource name of the source plugin instance. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
381 },
382 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. The type of the source.
383 },
384 ],
385 &quot;sourceUri&quot;: &quot;A String&quot;, # Optional. The URI of the spec source in case file is uploaded from an external version control system.
386 &quot;specType&quot;: { # The attribute values associated with resource. # Required. The type of spec. The value should be one of the allowed values defined for `projects/{project}/locations/{location}/attributes/system-spec-type` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. Note, this field is mandatory if content is provided.
387 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
388 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
389 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
390 { # The value that can be assigned to the attribute when the data type is enum.
391 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
392 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
393 &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-/.
394 &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.
395 },
396 ],
397 },
398 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
399 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
400 &quot;A String&quot;,
401 ],
402 },
403 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
404 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
405 &quot;A String&quot;,
406 ],
407 },
408 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
409 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
410 &quot;A String&quot;,
411 ],
412 },
413 },
414 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was last updated.
415 }</pre>
416 </div>
417
418 <div class="method">
419 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
420 <pre>Delete a spec. Deleting a spec will also delete the associated operations from the version.
421
422 Args:
423 name: string, Required. The name of the spec to delete. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` (required)
424 x__xgafv: string, V1 error format.
425 Allowed values
426 1 - v1 error format
427 2 - v2 error format
428
429 Returns:
430 An object of the form:
431
432 { # 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); }
433 }</pre>
434 </div>
435
436 <div class="method">
437 <code class="details" id="fetchAdditionalSpecContent">fetchAdditionalSpecContent(name, specContentType=None, x__xgafv=None)</code>
438 <pre>Fetch additional spec content.
439
440 Args:
441 name: string, Required. The name of the spec whose contents need to be retrieved. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` (required)
442 specContentType: string, Optional. The type of the spec contents to be retrieved.
443 Allowed values
444 SPEC_CONTENT_TYPE_UNSPECIFIED - Unspecified spec content type. Defaults to spec content uploaded by the user.
445 BOOSTED_SPEC_CONTENT - The spec content type for boosted spec.
446 GATEWAY_OPEN_API_SPEC - The spec content type for OpenAPI spec. This enum is used for OpenAPI specs ingested via APIGEE X Gateway.
447 x__xgafv: string, V1 error format.
448 Allowed values
449 1 - v1 error format
450 2 - v2 error format
451
452 Returns:
453 An object of the form:
454
455 { # The FetchAdditionalSpecContent method&#x27;s response.
456 &quot;additionalSpecContent&quot;: { # The additional spec content for the spec. This contains the metadata and the last update time for the additional spec content. # The additional spec content.
457 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was created.
458 &quot;labels&quot;: { # Optional. The labels of the spec content e.g. specboost addon version.
459 &quot;a_key&quot;: &quot;A String&quot;,
460 },
461 &quot;specContentType&quot;: &quot;A String&quot;, # Required. The type of the spec content.
462 &quot;specContents&quot;: { # The spec contents. # Optional. The additional spec contents.
463 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
464 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
465 },
466 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was last updated.
467 },
468 }</pre>
469 </div>
470
471 <div class="method">
472 <code class="details" id="get">get(name, x__xgafv=None)</code>
473 <pre>Get details about the information parsed from a spec. Note that this method does not return the raw spec contents. Use GetSpecContents method to retrieve the same.
474
475 Args:
476 name: string, Required. The name of the spec to retrieve. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` (required)
477 x__xgafv: string, V1 error format.
478 Allowed values
479 1 - v1 error format
480 2 - v2 error format
481
482 Returns:
483 An object of the form:
484
485 { # Represents a spec associated with an API version in the API Hub. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently.
486 &quot;additionalSpecContents&quot;: [ # Output only. The additional spec contents for the spec.
487 { # The additional spec content for the spec. This contains the metadata and the last update time for the additional spec content.
488 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was created.
489 &quot;labels&quot;: { # Optional. The labels of the spec content e.g. specboost addon version.
490 &quot;a_key&quot;: &quot;A String&quot;,
491 },
492 &quot;specContentType&quot;: &quot;A String&quot;, # Required. The type of the spec content.
493 &quot;specContents&quot;: { # The spec contents. # Optional. The additional spec contents.
494 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
495 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
496 },
497 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was last updated.
498 },
499 ],
500 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the spec. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
501 &quot;a_key&quot;: { # The attribute values associated with resource.
502 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
503 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
504 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
505 { # The value that can be assigned to the attribute when the data type is enum.
506 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
507 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
508 &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-/.
509 &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.
510 },
511 ],
512 },
513 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
514 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
515 &quot;A String&quot;,
516 ],
517 },
518 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
519 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
520 &quot;A String&quot;,
521 ],
522 },
523 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
524 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
525 &quot;A String&quot;,
526 ],
527 },
528 },
529 },
530 &quot;contents&quot;: { # The spec contents. # Optional. Input only. The contents of the uploaded spec.
531 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
532 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
533 },
534 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was created.
535 &quot;details&quot;: { # SpecDetails contains the details parsed from supported spec types. # Output only. Details parsed from the spec.
536 &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the spec.
537 &quot;openApiSpecDetails&quot;: { # OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in SpecDetails. # Output only. Additional details apart from `OperationDetails` parsed from an OpenAPI spec. The OperationDetails parsed from the spec can be obtained by using ListAPIOperations method.
538 &quot;format&quot;: &quot;A String&quot;, # Output only. The format of the spec.
539 &quot;owner&quot;: { # Owner details. # Output only. Owner details for the spec. This maps to `info.contact` in OpenAPI spec.
540 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The name of the owner.
541 &quot;email&quot;: &quot;A String&quot;, # Required. The email of the owner.
542 },
543 &quot;version&quot;: &quot;A String&quot;, # Output only. The version in the spec. This maps to `info.version` in OpenAPI spec.
544 },
545 },
546 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the spec. This can contain the file name of the spec.
547 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the spec. For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI spec.
548 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
549 },
550 &quot;lintResponse&quot;: { # LintResponse contains the response from the linter. # Optional. The lint response for the spec.
551 &quot;createTime&quot;: &quot;A String&quot;, # Required. Timestamp when the linting response was generated.
552 &quot;issues&quot;: [ # Optional. Array of issues found in the analyzed document.
553 { # Issue contains the details of a single issue found by the linter.
554 &quot;code&quot;: &quot;A String&quot;, # Required. Rule code unique to each rule defined in linter.
555 &quot;message&quot;: &quot;A String&quot;, # Required. Human-readable message describing the issue found by the linter.
556 &quot;path&quot;: [ # Required. An array of strings indicating the location in the analyzed document where the rule was triggered.
557 &quot;A String&quot;,
558 ],
559 &quot;range&quot;: { # Object describing where in the file the issue was found. # Required. Object describing where in the file the issue was found.
560 &quot;end&quot;: { # Point within the file (line and character). # Required. End of the issue.
561 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
562 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
563 },
564 &quot;start&quot;: { # Point within the file (line and character). # Required. Start of the issue.
565 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
566 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
567 },
568 },
569 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity level of the rule violation.
570 },
571 ],
572 &quot;linter&quot;: &quot;A String&quot;, # Required. Name of the linter used.
573 &quot;source&quot;: &quot;A String&quot;, # Required. Name of the linting application.
574 &quot;state&quot;: &quot;A String&quot;, # Required. Lint state represents success or failure for linting.
575 &quot;summary&quot;: [ # Optional. Summary of all issue types and counts for each severity level.
576 { # Count of issues with a given severity.
577 &quot;count&quot;: 42, # Required. Count of issues with the given severity.
578 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity of the issue.
579 },
580 ],
581 },
582 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
583 &quot;parsingMode&quot;: &quot;A String&quot;, # Optional. Input only. Enum specifying the parsing mode for OpenAPI Specification (OAS) parsing.
584 &quot;sourceMetadata&quot;: [ # Output only. The list of sources and metadata from the sources of the spec.
585 { # SourceMetadata represents the metadata for a resource at the source.
586 &quot;originalResourceCreateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was created at the source.
587 &quot;originalResourceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the resource at the source.
588 &quot;originalResourceUpdateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was last updated at the source.
589 &quot;pluginInstanceActionSource&quot;: { # PluginInstanceActionSource represents the plugin instance action source. # Output only. The source of the resource is a plugin instance action.
590 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The id of the plugin instance action.
591 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. The resource name of the source plugin instance. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
592 },
593 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. The type of the source.
594 },
595 ],
596 &quot;sourceUri&quot;: &quot;A String&quot;, # Optional. The URI of the spec source in case file is uploaded from an external version control system.
597 &quot;specType&quot;: { # The attribute values associated with resource. # Required. The type of spec. The value should be one of the allowed values defined for `projects/{project}/locations/{location}/attributes/system-spec-type` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. Note, this field is mandatory if content is provided.
598 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
599 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
600 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
601 { # The value that can be assigned to the attribute when the data type is enum.
602 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
603 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
604 &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-/.
605 &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.
606 },
607 ],
608 },
609 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
610 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
611 &quot;A String&quot;,
612 ],
613 },
614 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
615 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
616 &quot;A String&quot;,
617 ],
618 },
619 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
620 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
621 &quot;A String&quot;,
622 ],
623 },
624 },
625 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was last updated.
626 }</pre>
627 </div>
628
629 <div class="method">
630 <code class="details" id="getContents">getContents(name, x__xgafv=None)</code>
631 <pre>Get spec contents.
632
633 Args:
634 name: string, Required. The name of the spec whose contents need to be retrieved. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` (required)
635 x__xgafv: string, V1 error format.
636 Allowed values
637 1 - v1 error format
638 2 - v2 error format
639
640 Returns:
641 An object of the form:
642
643 { # The spec contents.
644 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
645 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
646 }</pre>
647 </div>
648
649 <div class="method">
650 <code class="details" id="lint">lint(name, body=None, x__xgafv=None)</code>
651 <pre>Lints the requested spec and updates the corresponding API Spec with the lint response. This lint response will be available in all subsequent Get and List Spec calls to Core service.
652
653 Args:
654 name: string, Required. The name of the spec to be linted. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` (required)
655 body: object, The request body.
656 The object takes the form of:
657
658 { # The LintSpec method&#x27;s request.
659 }
660
661 x__xgafv: string, V1 error format.
662 Allowed values
663 1 - v1 error format
664 2 - v2 error format
665
666 Returns:
667 An object of the form:
668
669 { # 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); }
670 }</pre>
671 </div>
672
673 <div class="method">
674 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
675 <pre>List specs corresponding to a particular API resource.
676
677 Args:
678 parent: string, Required. The parent, which owns this collection of specs. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}` (required)
679 filter: string, Optional. An expression that filters the list of Specs. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. The comparison operator must be one of: `&lt;`, `&gt;`, `:` or `=`. Filters are not case sensitive. The following fields in the `Spec` are eligible for filtering: * `display_name` - The display name of the Spec. Allowed comparison operators: `=`. * `create_time` - The time at which the Spec was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `&gt;` and `&lt;`. * `spec_type.enum_values.values.id` - The allowed value id of the spec_type attribute associated with the Spec. Allowed comparison operators: `:`. * `spec_type.enum_values.values.display_name` - The allowed value display name of the spec_type attribute associated with the Spec. Allowed comparison operators: `:`. * `lint_response.json_values.values` - The json value of the lint_response attribute associated with the Spec. Allowed comparison operators: `:`. * `mime_type` - The MIME type of the Spec. Allowed comparison operators: `=`. * `attributes.projects/test-project-id/locations/test-location-id/ attributes/user-defined-attribute-id.enum_values.values.id` - The allowed value id of the user defined enum attribute associated with the Resource. Allowed comparison operator is `:`. Here user-defined-attribute-enum-id is a placeholder that can be replaced with any user defined enum attribute name. * `attributes.projects/test-project-id/locations/test-location-id/ attributes/user-defined-attribute-id.enum_values.values.display_name` - The allowed value display name of the user defined enum attribute associated with the Resource. Allowed comparison operator is `:`. Here user-defined-attribute-enum-display-name is a placeholder that can be replaced with any user defined enum attribute enum name. * `attributes.projects/test-project-id/locations/test-location-id/ attributes/user-defined-attribute-id.string_values.values` - The allowed value of the user defined string attribute associated with the Resource. Allowed comparison operator is `:`. Here user-defined-attribute-string is a placeholder that can be replaced with any user defined string attribute name. * `attributes.projects/test-project-id/locations/test-location-id/ attributes/user-defined-attribute-id.json_values.values` - The allowed value of the user defined JSON attribute associated with the Resource. Allowed comparison operator is `:`. Here user-defined-attribute-json is a placeholder that can be replaced with any user defined JSON attribute name. 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: * `spec_type.enum_values.values.id: rest-id` - The filter string specifies that the id of the allowed value associated with the spec_type attribute is _rest-id_. * `spec_type.enum_values.values.display_name: \&quot;Rest Display Name\&quot;` - The filter string specifies that the display name of the allowed value associated with the spec_type attribute is `Rest Display Name`. * `spec_type.enum_values.values.id: grpc-id AND create_time &lt; \&quot;2021-08-15T14:50:00Z\&quot; AND create_time &gt; \&quot;2021-08-10T12:00:00Z\&quot;` - The id of the allowed value associated with the spec_type attribute is _grpc-id_ and the spec was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_. * `spec_type.enum_values.values.id: rest-id OR spec_type.enum_values.values.id: grpc-id` - The id of the allowed value associated with the spec_type attribute is _rest-id_ or _grpc-id_. * `spec_type.enum_values.values.id: rest-id AND attributes.projects/test-project-id/locations/test-location-id/ attributes/17650f90-4a29-4971-b3c0-d5532da3764b.enum_values.values.id: test` - The filter string specifies that the id of the allowed value associated with the spec_type attribute is _rest-id_ and the id of the allowed value associated with the user defined attribute of type enum is _test_.
680 pageSize: integer, Optional. The maximum number of specs to return. The service may return fewer than this value. If unspecified, at most 50 specs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
681 pageToken: string, Optional. A page token, received from a previous `ListSpecs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSpecs` must match the call that provided the page token.
682 x__xgafv: string, V1 error format.
683 Allowed values
684 1 - v1 error format
685 2 - v2 error format
686
687 Returns:
688 An object of the form:
689
690 { # The ListSpecs method&#x27;s response.
691 &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.
692 &quot;specs&quot;: [ # The specs corresponding to an API Version.
693 { # Represents a spec associated with an API version in the API Hub. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently.
694 &quot;additionalSpecContents&quot;: [ # Output only. The additional spec contents for the spec.
695 { # The additional spec content for the spec. This contains the metadata and the last update time for the additional spec content.
696 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was created.
697 &quot;labels&quot;: { # Optional. The labels of the spec content e.g. specboost addon version.
698 &quot;a_key&quot;: &quot;A String&quot;,
699 },
700 &quot;specContentType&quot;: &quot;A String&quot;, # Required. The type of the spec content.
701 &quot;specContents&quot;: { # The spec contents. # Optional. The additional spec contents.
702 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
703 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
704 },
705 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was last updated.
706 },
707 ],
708 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the spec. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
709 &quot;a_key&quot;: { # The attribute values associated with resource.
710 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
711 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
712 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
713 { # The value that can be assigned to the attribute when the data type is enum.
714 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
715 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
716 &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-/.
717 &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.
718 },
719 ],
720 },
721 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
722 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
723 &quot;A String&quot;,
724 ],
725 },
726 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
727 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
728 &quot;A String&quot;,
729 ],
730 },
731 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
732 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
733 &quot;A String&quot;,
734 ],
735 },
736 },
737 },
738 &quot;contents&quot;: { # The spec contents. # Optional. Input only. The contents of the uploaded spec.
739 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
740 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
741 },
742 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was created.
743 &quot;details&quot;: { # SpecDetails contains the details parsed from supported spec types. # Output only. Details parsed from the spec.
744 &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the spec.
745 &quot;openApiSpecDetails&quot;: { # OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in SpecDetails. # Output only. Additional details apart from `OperationDetails` parsed from an OpenAPI spec. The OperationDetails parsed from the spec can be obtained by using ListAPIOperations method.
746 &quot;format&quot;: &quot;A String&quot;, # Output only. The format of the spec.
747 &quot;owner&quot;: { # Owner details. # Output only. Owner details for the spec. This maps to `info.contact` in OpenAPI spec.
748 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The name of the owner.
749 &quot;email&quot;: &quot;A String&quot;, # Required. The email of the owner.
750 },
751 &quot;version&quot;: &quot;A String&quot;, # Output only. The version in the spec. This maps to `info.version` in OpenAPI spec.
752 },
753 },
754 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the spec. This can contain the file name of the spec.
755 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the spec. For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI spec.
756 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
757 },
758 &quot;lintResponse&quot;: { # LintResponse contains the response from the linter. # Optional. The lint response for the spec.
759 &quot;createTime&quot;: &quot;A String&quot;, # Required. Timestamp when the linting response was generated.
760 &quot;issues&quot;: [ # Optional. Array of issues found in the analyzed document.
761 { # Issue contains the details of a single issue found by the linter.
762 &quot;code&quot;: &quot;A String&quot;, # Required. Rule code unique to each rule defined in linter.
763 &quot;message&quot;: &quot;A String&quot;, # Required. Human-readable message describing the issue found by the linter.
764 &quot;path&quot;: [ # Required. An array of strings indicating the location in the analyzed document where the rule was triggered.
765 &quot;A String&quot;,
766 ],
767 &quot;range&quot;: { # Object describing where in the file the issue was found. # Required. Object describing where in the file the issue was found.
768 &quot;end&quot;: { # Point within the file (line and character). # Required. End of the issue.
769 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
770 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
771 },
772 &quot;start&quot;: { # Point within the file (line and character). # Required. Start of the issue.
773 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
774 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
775 },
776 },
777 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity level of the rule violation.
778 },
779 ],
780 &quot;linter&quot;: &quot;A String&quot;, # Required. Name of the linter used.
781 &quot;source&quot;: &quot;A String&quot;, # Required. Name of the linting application.
782 &quot;state&quot;: &quot;A String&quot;, # Required. Lint state represents success or failure for linting.
783 &quot;summary&quot;: [ # Optional. Summary of all issue types and counts for each severity level.
784 { # Count of issues with a given severity.
785 &quot;count&quot;: 42, # Required. Count of issues with the given severity.
786 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity of the issue.
787 },
788 ],
789 },
790 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
791 &quot;parsingMode&quot;: &quot;A String&quot;, # Optional. Input only. Enum specifying the parsing mode for OpenAPI Specification (OAS) parsing.
792 &quot;sourceMetadata&quot;: [ # Output only. The list of sources and metadata from the sources of the spec.
793 { # SourceMetadata represents the metadata for a resource at the source.
794 &quot;originalResourceCreateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was created at the source.
795 &quot;originalResourceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the resource at the source.
796 &quot;originalResourceUpdateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was last updated at the source.
797 &quot;pluginInstanceActionSource&quot;: { # PluginInstanceActionSource represents the plugin instance action source. # Output only. The source of the resource is a plugin instance action.
798 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The id of the plugin instance action.
799 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. The resource name of the source plugin instance. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
800 },
801 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. The type of the source.
802 },
803 ],
804 &quot;sourceUri&quot;: &quot;A String&quot;, # Optional. The URI of the spec source in case file is uploaded from an external version control system.
805 &quot;specType&quot;: { # The attribute values associated with resource. # Required. The type of spec. The value should be one of the allowed values defined for `projects/{project}/locations/{location}/attributes/system-spec-type` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. Note, this field is mandatory if content is provided.
806 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
807 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
808 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
809 { # The value that can be assigned to the attribute when the data type is enum.
810 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
811 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
812 &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-/.
813 &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.
814 },
815 ],
816 },
817 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
818 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
819 &quot;A String&quot;,
820 ],
821 },
822 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
823 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
824 &quot;A String&quot;,
825 ],
826 },
827 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
828 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
829 &quot;A String&quot;,
830 ],
831 },
832 },
833 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was last updated.
834 },
835 ],
836 }</pre>
837 </div>
838
839 <div class="method">
840 <code class="details" id="list_next">list_next()</code>
841 <pre>Retrieves the next page of results.
842
843 Args:
844 previous_request: The request for the previous page. (required)
845 previous_response: The response from the request for the previous page. (required)
846
847 Returns:
848 A request object that you can call &#x27;execute()&#x27; on to request the next
849 page. Returns None if there are no more items in the collection.
850 </pre>
851 </div>
852
853 <div class="method">
854 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
855 <pre>Update spec. The following fields in the spec can be updated: * display_name * source_uri * lint_response * attributes * contents * spec_type In case of an OAS spec, updating spec contents can lead to: 1. Creation, deletion and update of operations. 2. Creation, deletion and update of definitions. 3. Update of other info parsed out from the new spec. In case of contents or source_uri being present in update mask, spec_type must also be present. Also, spec_type can not be present in update mask if contents or source_uri is not present. The update_mask should be used to specify the fields being updated.
856
857 Args:
858 name: string, Identifier. The name of the spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}` (required)
859 body: object, The request body.
860 The object takes the form of:
861
862 { # Represents a spec associated with an API version in the API Hub. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently.
863 &quot;additionalSpecContents&quot;: [ # Output only. The additional spec contents for the spec.
864 { # The additional spec content for the spec. This contains the metadata and the last update time for the additional spec content.
865 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was created.
866 &quot;labels&quot;: { # Optional. The labels of the spec content e.g. specboost addon version.
867 &quot;a_key&quot;: &quot;A String&quot;,
868 },
869 &quot;specContentType&quot;: &quot;A String&quot;, # Required. The type of the spec content.
870 &quot;specContents&quot;: { # The spec contents. # Optional. The additional spec contents.
871 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
872 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
873 },
874 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was last updated.
875 },
876 ],
877 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the spec. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
878 &quot;a_key&quot;: { # The attribute values associated with resource.
879 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
880 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
881 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
882 { # The value that can be assigned to the attribute when the data type is enum.
883 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
884 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
885 &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-/.
886 &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.
887 },
888 ],
889 },
890 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
891 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
892 &quot;A String&quot;,
893 ],
894 },
895 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
896 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
897 &quot;A String&quot;,
898 ],
899 },
900 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
901 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
902 &quot;A String&quot;,
903 ],
904 },
905 },
906 },
907 &quot;contents&quot;: { # The spec contents. # Optional. Input only. The contents of the uploaded spec.
908 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
909 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
910 },
911 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was created.
912 &quot;details&quot;: { # SpecDetails contains the details parsed from supported spec types. # Output only. Details parsed from the spec.
913 &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the spec.
914 &quot;openApiSpecDetails&quot;: { # OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in SpecDetails. # Output only. Additional details apart from `OperationDetails` parsed from an OpenAPI spec. The OperationDetails parsed from the spec can be obtained by using ListAPIOperations method.
915 &quot;format&quot;: &quot;A String&quot;, # Output only. The format of the spec.
916 &quot;owner&quot;: { # Owner details. # Output only. Owner details for the spec. This maps to `info.contact` in OpenAPI spec.
917 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The name of the owner.
918 &quot;email&quot;: &quot;A String&quot;, # Required. The email of the owner.
919 },
920 &quot;version&quot;: &quot;A String&quot;, # Output only. The version in the spec. This maps to `info.version` in OpenAPI spec.
921 },
922 },
923 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the spec. This can contain the file name of the spec.
924 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the spec. For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI spec.
925 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
926 },
927 &quot;lintResponse&quot;: { # LintResponse contains the response from the linter. # Optional. The lint response for the spec.
928 &quot;createTime&quot;: &quot;A String&quot;, # Required. Timestamp when the linting response was generated.
929 &quot;issues&quot;: [ # Optional. Array of issues found in the analyzed document.
930 { # Issue contains the details of a single issue found by the linter.
931 &quot;code&quot;: &quot;A String&quot;, # Required. Rule code unique to each rule defined in linter.
932 &quot;message&quot;: &quot;A String&quot;, # Required. Human-readable message describing the issue found by the linter.
933 &quot;path&quot;: [ # Required. An array of strings indicating the location in the analyzed document where the rule was triggered.
934 &quot;A String&quot;,
935 ],
936 &quot;range&quot;: { # Object describing where in the file the issue was found. # Required. Object describing where in the file the issue was found.
937 &quot;end&quot;: { # Point within the file (line and character). # Required. End of the issue.
938 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
939 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
940 },
941 &quot;start&quot;: { # Point within the file (line and character). # Required. Start of the issue.
942 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
943 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
944 },
945 },
946 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity level of the rule violation.
947 },
948 ],
949 &quot;linter&quot;: &quot;A String&quot;, # Required. Name of the linter used.
950 &quot;source&quot;: &quot;A String&quot;, # Required. Name of the linting application.
951 &quot;state&quot;: &quot;A String&quot;, # Required. Lint state represents success or failure for linting.
952 &quot;summary&quot;: [ # Optional. Summary of all issue types and counts for each severity level.
953 { # Count of issues with a given severity.
954 &quot;count&quot;: 42, # Required. Count of issues with the given severity.
955 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity of the issue.
956 },
957 ],
958 },
959 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
960 &quot;parsingMode&quot;: &quot;A String&quot;, # Optional. Input only. Enum specifying the parsing mode for OpenAPI Specification (OAS) parsing.
961 &quot;sourceMetadata&quot;: [ # Output only. The list of sources and metadata from the sources of the spec.
962 { # SourceMetadata represents the metadata for a resource at the source.
963 &quot;originalResourceCreateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was created at the source.
964 &quot;originalResourceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the resource at the source.
965 &quot;originalResourceUpdateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was last updated at the source.
966 &quot;pluginInstanceActionSource&quot;: { # PluginInstanceActionSource represents the plugin instance action source. # Output only. The source of the resource is a plugin instance action.
967 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The id of the plugin instance action.
968 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. The resource name of the source plugin instance. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
969 },
970 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. The type of the source.
971 },
972 ],
973 &quot;sourceUri&quot;: &quot;A String&quot;, # Optional. The URI of the spec source in case file is uploaded from an external version control system.
974 &quot;specType&quot;: { # The attribute values associated with resource. # Required. The type of spec. The value should be one of the allowed values defined for `projects/{project}/locations/{location}/attributes/system-spec-type` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. Note, this field is mandatory if content is provided.
975 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
976 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
977 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
978 { # The value that can be assigned to the attribute when the data type is enum.
979 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
980 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
981 &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-/.
982 &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.
983 },
984 ],
985 },
986 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
987 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
988 &quot;A String&quot;,
989 ],
990 },
991 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
992 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
993 &quot;A String&quot;,
994 ],
995 },
996 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
997 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
998 &quot;A String&quot;,
999 ],
1000 },
1001 },
1002 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was last updated.
1003 }
1004
1005 updateMask: string, Required. The list of fields to update.
1006 x__xgafv: string, V1 error format.
1007 Allowed values
1008 1 - v1 error format
1009 2 - v2 error format
1010
1011 Returns:
1012 An object of the form:
1013
1014 { # Represents a spec associated with an API version in the API Hub. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently.
1015 &quot;additionalSpecContents&quot;: [ # Output only. The additional spec contents for the spec.
1016 { # The additional spec content for the spec. This contains the metadata and the last update time for the additional spec content.
1017 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was created.
1018 &quot;labels&quot;: { # Optional. The labels of the spec content e.g. specboost addon version.
1019 &quot;a_key&quot;: &quot;A String&quot;,
1020 },
1021 &quot;specContentType&quot;: &quot;A String&quot;, # Required. The type of the spec content.
1022 &quot;specContents&quot;: { # The spec contents. # Optional. The additional spec contents.
1023 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
1024 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
1025 },
1026 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec content was last updated.
1027 },
1028 ],
1029 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the spec. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
1030 &quot;a_key&quot;: { # The attribute values associated with resource.
1031 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
1032 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
1033 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
1034 { # The value that can be assigned to the attribute when the data type is enum.
1035 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
1036 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
1037 &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-/.
1038 &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.
1039 },
1040 ],
1041 },
1042 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
1043 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
1044 &quot;A String&quot;,
1045 ],
1046 },
1047 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
1048 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
1049 &quot;A String&quot;,
1050 ],
1051 },
1052 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
1053 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
1054 &quot;A String&quot;,
1055 ],
1056 },
1057 },
1058 },
1059 &quot;contents&quot;: { # The spec contents. # Optional. Input only. The contents of the uploaded spec.
1060 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the spec.
1061 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content for example application/json, application/yaml, application/wsdl etc.
1062 },
1063 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was created.
1064 &quot;details&quot;: { # SpecDetails contains the details parsed from supported spec types. # Output only. Details parsed from the spec.
1065 &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the spec.
1066 &quot;openApiSpecDetails&quot;: { # OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in SpecDetails. # Output only. Additional details apart from `OperationDetails` parsed from an OpenAPI spec. The OperationDetails parsed from the spec can be obtained by using ListAPIOperations method.
1067 &quot;format&quot;: &quot;A String&quot;, # Output only. The format of the spec.
1068 &quot;owner&quot;: { # Owner details. # Output only. Owner details for the spec. This maps to `info.contact` in OpenAPI spec.
1069 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The name of the owner.
1070 &quot;email&quot;: &quot;A String&quot;, # Required. The email of the owner.
1071 },
1072 &quot;version&quot;: &quot;A String&quot;, # Output only. The version in the spec. This maps to `info.version` in OpenAPI spec.
1073 },
1074 },
1075 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the spec. This can contain the file name of the spec.
1076 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the spec. For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI spec.
1077 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
1078 },
1079 &quot;lintResponse&quot;: { # LintResponse contains the response from the linter. # Optional. The lint response for the spec.
1080 &quot;createTime&quot;: &quot;A String&quot;, # Required. Timestamp when the linting response was generated.
1081 &quot;issues&quot;: [ # Optional. Array of issues found in the analyzed document.
1082 { # Issue contains the details of a single issue found by the linter.
1083 &quot;code&quot;: &quot;A String&quot;, # Required. Rule code unique to each rule defined in linter.
1084 &quot;message&quot;: &quot;A String&quot;, # Required. Human-readable message describing the issue found by the linter.
1085 &quot;path&quot;: [ # Required. An array of strings indicating the location in the analyzed document where the rule was triggered.
1086 &quot;A String&quot;,
1087 ],
1088 &quot;range&quot;: { # Object describing where in the file the issue was found. # Required. Object describing where in the file the issue was found.
1089 &quot;end&quot;: { # Point within the file (line and character). # Required. End of the issue.
1090 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
1091 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
1092 },
1093 &quot;start&quot;: { # Point within the file (line and character). # Required. Start of the issue.
1094 &quot;character&quot;: 42, # Required. Character position within the line (zero-indexed).
1095 &quot;line&quot;: 42, # Required. Line number (zero-indexed).
1096 },
1097 },
1098 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity level of the rule violation.
1099 },
1100 ],
1101 &quot;linter&quot;: &quot;A String&quot;, # Required. Name of the linter used.
1102 &quot;source&quot;: &quot;A String&quot;, # Required. Name of the linting application.
1103 &quot;state&quot;: &quot;A String&quot;, # Required. Lint state represents success or failure for linting.
1104 &quot;summary&quot;: [ # Optional. Summary of all issue types and counts for each severity level.
1105 { # Count of issues with a given severity.
1106 &quot;count&quot;: 42, # Required. Count of issues with the given severity.
1107 &quot;severity&quot;: &quot;A String&quot;, # Required. Severity of the issue.
1108 },
1109 ],
1110 },
1111 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
1112 &quot;parsingMode&quot;: &quot;A String&quot;, # Optional. Input only. Enum specifying the parsing mode for OpenAPI Specification (OAS) parsing.
1113 &quot;sourceMetadata&quot;: [ # Output only. The list of sources and metadata from the sources of the spec.
1114 { # SourceMetadata represents the metadata for a resource at the source.
1115 &quot;originalResourceCreateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was created at the source.
1116 &quot;originalResourceId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the resource at the source.
1117 &quot;originalResourceUpdateTime&quot;: &quot;A String&quot;, # Output only. The time at which the resource was last updated at the source.
1118 &quot;pluginInstanceActionSource&quot;: { # PluginInstanceActionSource represents the plugin instance action source. # Output only. The source of the resource is a plugin instance action.
1119 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The id of the plugin instance action.
1120 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. The resource name of the source plugin instance. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
1121 },
1122 &quot;sourceType&quot;: &quot;A String&quot;, # Output only. The type of the source.
1123 },
1124 ],
1125 &quot;sourceUri&quot;: &quot;A String&quot;, # Optional. The URI of the spec source in case file is uploaded from an external version control system.
1126 &quot;specType&quot;: { # The attribute values associated with resource. # Required. The type of spec. The value should be one of the allowed values defined for `projects/{project}/locations/{location}/attributes/system-spec-type` attribute. The number of values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. Note, this field is mandatory if content is provided.
1127 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
1128 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
1129 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
1130 { # The value that can be assigned to the attribute when the data type is enum.
1131 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
1132 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
1133 &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-/.
1134 &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.
1135 },
1136 ],
1137 },
1138 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
1139 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
1140 &quot;A String&quot;,
1141 ],
1142 },
1143 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
1144 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
1145 &quot;A String&quot;,
1146 ],
1147 },
1148 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
1149 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
1150 &quot;A String&quot;,
1151 ],
1152 },
1153 },
1154 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the spec was last updated.
1155 }</pre>
1156 </div>
1157
1158 </body></html>