Skip to content

Commit c5e5cbd

Browse files
feat(artifactregistry): update the api
#### artifactregistry:v1 The following keys were added: - resources.projects.resources.locations.resources.repositories.methods.exportArtifact (Total Keys: 12) - schemas.ExportArtifactMetadata (Total Keys: 4) - schemas.ExportArtifactRequest (Total Keys: 4) - schemas.ExportArtifactResponse (Total Keys: 3) - schemas.ExportedFile (Total Keys: 6)
1 parent 0cde10d commit c5e5cbd

File tree

2 files changed

+147
-4
lines changed

2 files changed

+147
-4
lines changed

docs/dyn/artifactregistry_v1.projects.locations.repositories.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ <h2>Instance Methods</h2>
153153
<p class="toc_element">
154154
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
155155
<p class="firstline">Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.</p>
156+
<p class="toc_element">
157+
<code><a href="#exportArtifact">exportArtifact(repository, body=None, x__xgafv=None)</a></code></p>
158+
<p class="firstline">Exports an artifact.</p>
156159
<p class="toc_element">
157160
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
158161
<p class="firstline">Gets a repository.</p>
@@ -376,6 +379,50 @@ <h3>Method Details</h3>
376379
}</pre>
377380
</div>
378381

382+
<div class="method">
383+
<code class="details" id="exportArtifact">exportArtifact(repository, body=None, x__xgafv=None)</code>
384+
<pre>Exports an artifact.
385+
386+
Args:
387+
repository: string, Required. The repository of the artifact to export. Format: projects/{project}/locations/{location}/repositories/{repository} (required)
388+
body: object, The request body.
389+
The object takes the form of:
390+
391+
{ # The request for exporting an artifact to a destination.
392+
&quot;gcsPath&quot;: &quot;A String&quot;, # The Cloud Storage path to export the artifact to. Should start with the bucket name, and optionally have a directory path. Examples: `dst_bucket`, `dst_bucket/sub_dir`. Existing objects with the same path will be overwritten.
393+
&quot;sourceTag&quot;: &quot;A String&quot;, # The artifact tag to export. Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
394+
&quot;sourceVersion&quot;: &quot;A String&quot;, # The artifact version to export. Format: projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
395+
}
396+
397+
x__xgafv: string, V1 error format.
398+
Allowed values
399+
1 - v1 error format
400+
2 - v2 error format
401+
402+
Returns:
403+
An object of the form:
404+
405+
{ # This resource represents a long-running operation that is the result of a network API call.
406+
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
407+
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
408+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
409+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
410+
{
411+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
412+
},
413+
],
414+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
415+
},
416+
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
417+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
418+
},
419+
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
420+
&quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
421+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
422+
},
423+
}</pre>
424+
</div>
425+
379426
<div class="method">
380427
<code class="details" id="get">get(name, x__xgafv=None)</code>
381428
<pre>Gets a repository.

googleapiclient/discovery_cache/documents/artifactregistry.v1.json

Lines changed: 100 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,34 @@
637637
"https://www.googleapis.com/auth/cloud-platform"
638638
]
639639
},
640+
"exportArtifact": {
641+
"description": "Exports an artifact.",
642+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:exportArtifact",
643+
"httpMethod": "POST",
644+
"id": "artifactregistry.projects.locations.repositories.exportArtifact",
645+
"parameterOrder": [
646+
"repository"
647+
],
648+
"parameters": {
649+
"repository": {
650+
"description": "Required. The repository of the artifact to export. Format: projects/{project}/locations/{location}/repositories/{repository}",
651+
"location": "path",
652+
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$",
653+
"required": true,
654+
"type": "string"
655+
}
656+
},
657+
"path": "v1/{+repository}:exportArtifact",
658+
"request": {
659+
"$ref": "ExportArtifactRequest"
660+
},
661+
"response": {
662+
"$ref": "Operation"
663+
},
664+
"scopes": [
665+
"https://www.googleapis.com/auth/cloud-platform"
666+
]
667+
},
640668
"get": {
641669
"description": "Gets a repository.",
642670
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}",
@@ -2465,7 +2493,7 @@
24652493
}
24662494
}
24672495
},
2468-
"revision": "20250925",
2496+
"revision": "20251017",
24692497
"rootUrl": "https://artifactregistry.googleapis.com/",
24702498
"schemas": {
24712499
"AptArtifact": {
@@ -2849,6 +2877,72 @@
28492877
"properties": {},
28502878
"type": "object"
28512879
},
2880+
"ExportArtifactMetadata": {
2881+
"description": "The LRO metadata for exporting an artifact.",
2882+
"id": "ExportArtifactMetadata",
2883+
"properties": {
2884+
"exportedFiles": {
2885+
"description": "The exported artifact files.",
2886+
"items": {
2887+
"$ref": "ExportedFile"
2888+
},
2889+
"type": "array"
2890+
}
2891+
},
2892+
"type": "object"
2893+
},
2894+
"ExportArtifactRequest": {
2895+
"description": "The request for exporting an artifact to a destination.",
2896+
"id": "ExportArtifactRequest",
2897+
"properties": {
2898+
"gcsPath": {
2899+
"description": "The Cloud Storage path to export the artifact to. Should start with the bucket name, and optionally have a directory path. Examples: `dst_bucket`, `dst_bucket/sub_dir`. Existing objects with the same path will be overwritten.",
2900+
"type": "string"
2901+
},
2902+
"sourceTag": {
2903+
"description": "The artifact tag to export. Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}",
2904+
"type": "string"
2905+
},
2906+
"sourceVersion": {
2907+
"description": "The artifact version to export. Format: projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}",
2908+
"type": "string"
2909+
}
2910+
},
2911+
"type": "object"
2912+
},
2913+
"ExportArtifactResponse": {
2914+
"description": "The response for exporting an artifact to a destination.",
2915+
"id": "ExportArtifactResponse",
2916+
"properties": {
2917+
"exportedVersion": {
2918+
"$ref": "Version",
2919+
"description": "The exported version. Should be the same as the request version with fingerprint resource name."
2920+
}
2921+
},
2922+
"type": "object"
2923+
},
2924+
"ExportedFile": {
2925+
"description": "The exported artifact file.",
2926+
"id": "ExportedFile",
2927+
"properties": {
2928+
"gcsObjectPath": {
2929+
"description": "Cloud Storage Object path of the exported file. Examples: `dst_bucket/file1`, `dst_bucket/sub_dir/file1`",
2930+
"type": "string"
2931+
},
2932+
"hashes": {
2933+
"description": "The hashes of the file content.",
2934+
"items": {
2935+
"$ref": "Hash"
2936+
},
2937+
"type": "array"
2938+
},
2939+
"name": {
2940+
"description": "Name of the exported artifact file. Format: `projects/p1/locations/us/repositories/repo1/files/file1`",
2941+
"type": "string"
2942+
}
2943+
},
2944+
"type": "object"
2945+
},
28522946
"Expr": {
28532947
"description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() < 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' && document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.",
28542948
"id": "Expr",
@@ -4115,7 +4209,8 @@ false
41154209
"PYTHON",
41164210
"KFP",
41174211
"GO",
4118-
"GENERIC"
4212+
"GENERIC",
4213+
"RUBY"
41194214
],
41204215
"enumDescriptions": [
41214216
"Unspecified package format.",
@@ -4128,7 +4223,8 @@ false
41284223
"Python package format.",
41294224
"Kubeflow Pipelines package format.",
41304225
"Go package format.",
4131-
"Generic package format."
4226+
"Generic package format.",
4227+
"Ruby package format."
41324228
],
41334229
"type": "string"
41344230
},
@@ -4666,7 +4762,7 @@ false
46664762
"DISABLED"
46674763
],
46684764
"enumDescriptions": [
4669-
"Not set. This will be treated as INHERITED.",
4765+
"Not set. This will be treated as INHERITED for Docker repositories and DISABLED for non-Docker repositories.",
46704766
"Scanning is Enabled, but dependent on API enablement.",
46714767
"No automatic vulnerability scanning will be performed for this repository."
46724768
],

0 commit comments

Comments
 (0)