Skip to content

Commit 566a0af

Browse files
feat(artifactregistry): update the api
#### artifactregistry:v1 The following keys were added: - resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import (Total Keys: 12) - resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload (Total Keys: 16) - schemas.GoogetArtifact (Total Keys: 8) - schemas.ImportGoogetArtifactsErrorInfo (Total Keys: 4) - schemas.ImportGoogetArtifactsGcsSource (Total Keys: 5) - schemas.ImportGoogetArtifactsMetadata (Total Keys: 2) - schemas.ImportGoogetArtifactsRequest (Total Keys: 3) - schemas.ImportGoogetArtifactsResponse (Total Keys: 6) - schemas.UploadGoogetArtifactMediaResponse (Total Keys: 3) - schemas.UploadGoogetArtifactMetadata (Total Keys: 2) - schemas.UploadGoogetArtifactRequest (Total Keys: 2) - schemas.UploadGoogetArtifactResponse (Total Keys: 4)
1 parent 038b092 commit 566a0af

8 files changed

+275
-12
lines changed

docs/dyn/artifactregistry_v1.projects.locations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ <h3>Method Details</h3>
122122
Returns:
123123
An object of the form:
124124

125-
{ # A resource that represents Google Cloud Platform location.
125+
{ # A resource that represents a Google Cloud location.
126126
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
127127
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
128128
&quot;a_key&quot;: &quot;A String&quot;,
@@ -174,7 +174,7 @@ <h3>Method Details</h3>
174174

175175
{ # The response message for Locations.ListLocations.
176176
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
177-
{ # A resource that represents Google Cloud Platform location.
177+
{ # A resource that represents a Google Cloud location.
178178
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
179179
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
180180
&quot;a_key&quot;: &quot;A String&quot;,

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

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ <h2>Instance Methods</h2>
7777
<p class="toc_element">
7878
<code><a href="#close">close()</a></code></p>
7979
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#import_">import_(parent, body=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.</p>
8083
<p class="toc_element">
8184
<code><a href="#upload">upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)</a></code></p>
8285
<p class="firstline">Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.</p>
@@ -86,6 +89,53 @@ <h3>Method Details</h3>
8689
<pre>Close httplib2 connections.</pre>
8790
</div>
8891

92+
<div class="method">
93+
<code class="details" id="import_">import_(parent, body=None, x__xgafv=None)</code>
94+
<pre>Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
95+
96+
Args:
97+
parent: string, The name of the parent resource where the artifacts will be imported. (required)
98+
body: object, The request body.
99+
The object takes the form of:
100+
101+
{ # The request to import new googet artifacts.
102+
&quot;gcsSource&quot;: { # Google Cloud Storage location where the artifacts currently reside. # Google Cloud Storage location where input content is located.
103+
&quot;uris&quot;: [ # Cloud Storage paths URI (e.g., gs://my_bucket/my_object).
104+
&quot;A String&quot;,
105+
],
106+
&quot;useWildcards&quot;: True or False, # Supports URI wildcards for matching multiple objects from a single URI.
107+
},
108+
}
109+
110+
x__xgafv: string, V1 error format.
111+
Allowed values
112+
1 - v1 error format
113+
2 - v2 error format
114+
115+
Returns:
116+
An object of the form:
117+
118+
{ # This resource represents a long-running operation that is the result of a network API call.
119+
&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.
120+
&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.
121+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
122+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
123+
{
124+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
125+
},
126+
],
127+
&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.
128+
},
129+
&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.
130+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
131+
},
132+
&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}`.
133+
&quot;response&quot;: { # The normal response of the operation in case of success. 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`.
134+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
135+
},
136+
}</pre>
137+
</div>
138+
89139
<div class="method">
90140
<code class="details" id="upload">upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)</code>
91141
<pre>Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ <h2>Instance Methods</h2>
8989
</p>
9090
<p class="firstline">Returns the files Resource.</p>
9191

92+
<p class="toc_element">
93+
<code><a href="artifactregistry_v1.projects.locations.repositories.googetArtifacts.html">googetArtifacts()</a></code>
94+
</p>
95+
<p class="firstline">Returns the googetArtifacts Resource.</p>
96+
9297
<p class="toc_element">
9398
<code><a href="artifactregistry_v1.projects.locations.repositories.kfpArtifacts.html">kfpArtifacts()</a></code>
9499
</p>

docs/dyn/artifactregistry_v1beta1.projects.locations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h3>Method Details</h3>
116116
Returns:
117117
An object of the form:
118118

119-
{ # A resource that represents Google Cloud Platform location.
119+
{ # A resource that represents a Google Cloud location.
120120
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
121121
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
122122
&quot;a_key&quot;: &quot;A String&quot;,
@@ -148,7 +148,7 @@ <h3>Method Details</h3>
148148

149149
{ # The response message for Locations.ListLocations.
150150
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
151-
{ # A resource that represents Google Cloud Platform location.
151+
{ # A resource that represents a Google Cloud location.
152152
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
153153
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
154154
&quot;a_key&quot;: &quot;A String&quot;,

docs/dyn/artifactregistry_v1beta2.projects.locations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h3>Method Details</h3>
116116
Returns:
117117
An object of the form:
118118

119-
{ # A resource that represents Google Cloud Platform location.
119+
{ # A resource that represents a Google Cloud location.
120120
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
121121
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
122122
&quot;a_key&quot;: &quot;A String&quot;,
@@ -148,7 +148,7 @@ <h3>Method Details</h3>
148148

149149
{ # The response message for Locations.ListLocations.
150150
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
151-
{ # A resource that represents Google Cloud Platform location.
151+
{ # A resource that represents a Google Cloud location.
152152
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
153153
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
154154
&quot;a_key&quot;: &quot;A String&quot;,

googleapiclient/discovery_cache/documents/artifactregistry.v1.json

Lines changed: 206 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,78 @@
803803
}
804804
}
805805
},
806+
"googetArtifacts": {
807+
"methods": {
808+
"import": {
809+
"description": "Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.",
810+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/googetArtifacts:import",
811+
"httpMethod": "POST",
812+
"id": "artifactregistry.projects.locations.repositories.googetArtifacts.import",
813+
"parameterOrder": [
814+
"parent"
815+
],
816+
"parameters": {
817+
"parent": {
818+
"description": "The name of the parent resource where the artifacts will be imported.",
819+
"location": "path",
820+
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$",
821+
"required": true,
822+
"type": "string"
823+
}
824+
},
825+
"path": "v1/{+parent}/googetArtifacts:import",
826+
"request": {
827+
"$ref": "ImportGoogetArtifactsRequest"
828+
},
829+
"response": {
830+
"$ref": "Operation"
831+
},
832+
"scopes": [
833+
"https://www.googleapis.com/auth/cloud-platform"
834+
]
835+
},
836+
"upload": {
837+
"description": "Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.",
838+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/googetArtifacts:create",
839+
"httpMethod": "POST",
840+
"id": "artifactregistry.projects.locations.repositories.googetArtifacts.upload",
841+
"mediaUpload": {
842+
"accept": [
843+
"*/*"
844+
],
845+
"protocols": {
846+
"simple": {
847+
"multipart": true,
848+
"path": "/upload/v1/{+parent}/googetArtifacts:create"
849+
}
850+
}
851+
},
852+
"parameterOrder": [
853+
"parent"
854+
],
855+
"parameters": {
856+
"parent": {
857+
"description": "The name of the parent resource where the artifacts will be uploaded.",
858+
"location": "path",
859+
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$",
860+
"required": true,
861+
"type": "string"
862+
}
863+
},
864+
"path": "v1/{+parent}/googetArtifacts:create",
865+
"request": {
866+
"$ref": "UploadGoogetArtifactRequest"
867+
},
868+
"response": {
869+
"$ref": "UploadGoogetArtifactMediaResponse"
870+
},
871+
"scopes": [
872+
"https://www.googleapis.com/auth/cloud-platform"
873+
],
874+
"supportsMediaUpload": true
875+
}
876+
}
877+
},
806878
"kfpArtifacts": {
807879
"methods": {
808880
"upload": {
@@ -1517,7 +1589,7 @@
15171589
}
15181590
}
15191591
},
1520-
"revision": "20230326",
1592+
"revision": "20230508",
15211593
"rootUrl": "https://artifactregistry.googleapis.com/",
15221594
"schemas": {
15231595
"AptArtifact": {
@@ -1710,6 +1782,28 @@
17101782
},
17111783
"type": "object"
17121784
},
1785+
"GoogetArtifact": {
1786+
"description": "A detailed representation of a GooGet artifact.",
1787+
"id": "GoogetArtifact",
1788+
"properties": {
1789+
"architecture": {
1790+
"description": "Output only. Operating system architecture of the artifact.",
1791+
"readOnly": true,
1792+
"type": "string"
1793+
},
1794+
"name": {
1795+
"description": "Output only. The Artifact Registry resource name of the artifact.",
1796+
"readOnly": true,
1797+
"type": "string"
1798+
},
1799+
"packageName": {
1800+
"description": "Output only. The GooGet package name of the artifact.",
1801+
"readOnly": true,
1802+
"type": "string"
1803+
}
1804+
},
1805+
"type": "object"
1806+
},
17131807
"GoogleDevtoolsArtifactregistryV1File": {
17141808
"description": "Files store content that is potentially associated with Packages or Versions.",
17151809
"id": "GoogleDevtoolsArtifactregistryV1File",
@@ -1852,6 +1946,77 @@
18521946
},
18531947
"type": "object"
18541948
},
1949+
"ImportGoogetArtifactsErrorInfo": {
1950+
"description": "Error information explaining why a package was not imported.",
1951+
"id": "ImportGoogetArtifactsErrorInfo",
1952+
"properties": {
1953+
"error": {
1954+
"$ref": "Status",
1955+
"description": "The detailed error status."
1956+
},
1957+
"gcsSource": {
1958+
"$ref": "ImportGoogetArtifactsGcsSource",
1959+
"description": "Google Cloud Storage location requested."
1960+
}
1961+
},
1962+
"type": "object"
1963+
},
1964+
"ImportGoogetArtifactsGcsSource": {
1965+
"description": "Google Cloud Storage location where the artifacts currently reside.",
1966+
"id": "ImportGoogetArtifactsGcsSource",
1967+
"properties": {
1968+
"uris": {
1969+
"description": "Cloud Storage paths URI (e.g., gs://my_bucket/my_object).",
1970+
"items": {
1971+
"type": "string"
1972+
},
1973+
"type": "array"
1974+
},
1975+
"useWildcards": {
1976+
"description": "Supports URI wildcards for matching multiple objects from a single URI.",
1977+
"type": "boolean"
1978+
}
1979+
},
1980+
"type": "object"
1981+
},
1982+
"ImportGoogetArtifactsMetadata": {
1983+
"description": "The operation metadata for importing artifacts.",
1984+
"id": "ImportGoogetArtifactsMetadata",
1985+
"properties": {},
1986+
"type": "object"
1987+
},
1988+
"ImportGoogetArtifactsRequest": {
1989+
"description": "The request to import new googet artifacts.",
1990+
"id": "ImportGoogetArtifactsRequest",
1991+
"properties": {
1992+
"gcsSource": {
1993+
"$ref": "ImportGoogetArtifactsGcsSource",
1994+
"description": "Google Cloud Storage location where input content is located."
1995+
}
1996+
},
1997+
"type": "object"
1998+
},
1999+
"ImportGoogetArtifactsResponse": {
2000+
"description": "The response message from importing artifacts.",
2001+
"id": "ImportGoogetArtifactsResponse",
2002+
"properties": {
2003+
"errors": {
2004+
"description": "Detailed error info for packages that were not imported.",
2005+
"items": {
2006+
"$ref": "ImportGoogetArtifactsErrorInfo"
2007+
},
2008+
"type": "array"
2009+
},
2010+
"googetArtifacts": {
2011+
"description": "The GooGet artifacts updated.",
2012+
"items": {
2013+
"$ref": "GoogetArtifact"
2014+
},
2015+
"type": "array"
2016+
}
2017+
},
2018+
"type": "object"
2019+
},
18552020
"ImportYumArtifactsErrorInfo": {
18562021
"description": "Error information explaining why a package was not imported.",
18572022
"id": "ImportYumArtifactsErrorInfo",
@@ -2120,7 +2285,7 @@
21202285
"type": "object"
21212286
},
21222287
"Location": {
2123-
"description": "A resource that represents Google Cloud Platform location.",
2288+
"description": "A resource that represents a Google Cloud location.",
21242289
"id": "Location",
21252290
"properties": {
21262291
"displayName": {
@@ -2518,6 +2683,7 @@
25182683
"NPM",
25192684
"APT",
25202685
"YUM",
2686+
"GOOGET",
25212687
"PYTHON",
25222688
"KFP"
25232689
],
@@ -2528,6 +2694,7 @@
25282694
"NPM package format.",
25292695
"APT package format.",
25302696
"YUM package format.",
2697+
"GooGet package format.",
25312698
"Python package format.",
25322699
"Kubeflow Pipelines package format."
25332700
],
@@ -2714,6 +2881,43 @@
27142881
},
27152882
"type": "object"
27162883
},
2884+
"UploadGoogetArtifactMediaResponse": {
2885+
"description": "The response to upload an artifact.",
2886+
"id": "UploadGoogetArtifactMediaResponse",
2887+
"properties": {
2888+
"operation": {
2889+
"$ref": "Operation",
2890+
"description": "Operation to be returned to the user."
2891+
}
2892+
},
2893+
"type": "object"
2894+
},
2895+
"UploadGoogetArtifactMetadata": {
2896+
"description": "The operation metadata for uploading artifacts.",
2897+
"id": "UploadGoogetArtifactMetadata",
2898+
"properties": {},
2899+
"type": "object"
2900+
},
2901+
"UploadGoogetArtifactRequest": {
2902+
"description": "The request to upload an artifact.",
2903+
"id": "UploadGoogetArtifactRequest",
2904+
"properties": {},
2905+
"type": "object"
2906+
},
2907+
"UploadGoogetArtifactResponse": {
2908+
"description": "The response of the completed artifact upload operation. This response is contained in the Operation and available to users.",
2909+
"id": "UploadGoogetArtifactResponse",
2910+
"properties": {
2911+
"googetArtifacts": {
2912+
"description": "The Apt artifacts updated.",
2913+
"items": {
2914+
"$ref": "GoogetArtifact"
2915+
},
2916+
"type": "array"
2917+
}
2918+
},
2919+
"type": "object"
2920+
},
27172921
"UploadKfpArtifactMediaResponse": {
27182922
"description": "The response to upload an artifact.",
27192923
"id": "UploadKfpArtifactMediaResponse",

0 commit comments

Comments
 (0)