Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fdaccdb

Browse files
committedJun 27, 2023
feat(artifactregistry): update the api
#### artifactregistry:v1 The following keys were added: - resources.projects.resources.locations.resources.repositories.resources.goModules.methods.upload (Total Keys: 16) - schemas.GoModule (Total Keys: 10) - schemas.UploadGoModuleMediaResponse (Total Keys: 3) - schemas.UploadGoModuleMetadata (Total Keys: 2) - schemas.UploadGoModuleRequest (Total Keys: 2)
1 parent a65f994 commit fdaccdb

5 files changed

+240
-5
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
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="artifactregistry_v1.html">Artifact Registry API</a> . <a href="artifactregistry_v1.projects.html">projects</a> . <a href="artifactregistry_v1.projects.locations.html">locations</a> . <a href="artifactregistry_v1.projects.locations.repositories.html">repositories</a> . <a href="artifactregistry_v1.projects.locations.repositories.goModules.html">goModules</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="#upload">upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module.</p>
83+
<h3>Method Details</h3>
84+
<div class="method">
85+
<code class="details" id="close">close()</code>
86+
<pre>Close httplib2 connections.</pre>
87+
</div>
88+
89+
<div class="method">
90+
<code class="details" id="upload">upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)</code>
91+
<pre>Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module.
92+
93+
Args:
94+
parent: string, The resource name of the repository where the Go module will be uploaded. (required)
95+
body: object, The request body.
96+
The object takes the form of:
97+
98+
{ # The request to upload a Go module.
99+
}
100+
101+
media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
102+
media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
103+
x__xgafv: string, V1 error format.
104+
Allowed values
105+
1 - v1 error format
106+
2 - v2 error format
107+
108+
Returns:
109+
An object of the form:
110+
111+
{ # The response to upload a Go module.
112+
&quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Operation to be returned to the user.
113+
&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.
114+
&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.
115+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
116+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
117+
{
118+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
119+
},
120+
],
121+
&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.
122+
},
123+
&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.
124+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
125+
},
126+
&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}`.
127+
&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`.
128+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
129+
},
130+
},
131+
}</pre>
132+
</div>
133+
134+
</body></html>

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

+5
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.goModules.html">goModules()</a></code>
94+
</p>
95+
<p class="firstline">Returns the goModules Resource.</p>
96+
9297
<p class="toc_element">
9398
<code><a href="artifactregistry_v1.projects.locations.repositories.googetArtifacts.html">googetArtifacts()</a></code>
9499
</p>

‎googleapiclient/discovery_cache/documents/artifactregistry.v1.json

+99-3
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,50 @@
803803
}
804804
}
805805
},
806+
"goModules": {
807+
"methods": {
808+
"upload": {
809+
"description": "Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module.",
810+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/goModules:create",
811+
"httpMethod": "POST",
812+
"id": "artifactregistry.projects.locations.repositories.goModules.upload",
813+
"mediaUpload": {
814+
"accept": [
815+
"*/*"
816+
],
817+
"protocols": {
818+
"simple": {
819+
"multipart": true,
820+
"path": "/upload/v1/{+parent}/goModules:create"
821+
}
822+
}
823+
},
824+
"parameterOrder": [
825+
"parent"
826+
],
827+
"parameters": {
828+
"parent": {
829+
"description": "The resource name of the repository where the Go module will be uploaded.",
830+
"location": "path",
831+
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$",
832+
"required": true,
833+
"type": "string"
834+
}
835+
},
836+
"path": "v1/{+parent}/goModules:create",
837+
"request": {
838+
"$ref": "UploadGoModuleRequest"
839+
},
840+
"response": {
841+
"$ref": "UploadGoModuleMediaResponse"
842+
},
843+
"scopes": [
844+
"https://www.googleapis.com/auth/cloud-platform"
845+
],
846+
"supportsMediaUpload": true
847+
}
848+
}
849+
},
806850
"googetArtifacts": {
807851
"methods": {
808852
"import": {
@@ -1589,7 +1633,7 @@
15891633
}
15901634
}
15911635
},
1592-
"revision": "20230615",
1636+
"revision": "20230626",
15931637
"rootUrl": "https://artifactregistry.googleapis.com/",
15941638
"schemas": {
15951639
"AptArtifact": {
@@ -1782,6 +1826,33 @@
17821826
},
17831827
"type": "object"
17841828
},
1829+
"GoModule": {
1830+
"description": "GoModule represents a Go module.",
1831+
"id": "GoModule",
1832+
"properties": {
1833+
"createTime": {
1834+
"description": "Output only. The time when the Go module is created.",
1835+
"format": "google-datetime",
1836+
"readOnly": true,
1837+
"type": "string"
1838+
},
1839+
"name": {
1840+
"description": "The resource name of a Go module.",
1841+
"type": "string"
1842+
},
1843+
"updateTime": {
1844+
"description": "Output only. The time when the Go module is updated.",
1845+
"format": "google-datetime",
1846+
"readOnly": true,
1847+
"type": "string"
1848+
},
1849+
"version": {
1850+
"description": "The version of the Go module. Must be a valid canonical version as defined in https://go.dev/ref/mod#glos-canonical-version.",
1851+
"type": "string"
1852+
}
1853+
},
1854+
"type": "object"
1855+
},
17851856
"GoogetArtifact": {
17861857
"description": "A detailed representation of a GooGet artifact.",
17871858
"id": "GoogetArtifact",
@@ -2685,7 +2756,8 @@
26852756
"YUM",
26862757
"GOOGET",
26872758
"PYTHON",
2688-
"KFP"
2759+
"KFP",
2760+
"GO"
26892761
],
26902762
"enumDescriptions": [
26912763
"Unspecified package format.",
@@ -2696,7 +2768,8 @@
26962768
"YUM package format.",
26972769
"GooGet package format.",
26982770
"Python package format.",
2699-
"Kubeflow Pipelines package format."
2771+
"Kubeflow Pipelines package format.",
2772+
"Go package format."
27002773
],
27012774
"type": "string"
27022775
},
@@ -2881,6 +2954,29 @@
28812954
},
28822955
"type": "object"
28832956
},
2957+
"UploadGoModuleMediaResponse": {
2958+
"description": "The response to upload a Go module.",
2959+
"id": "UploadGoModuleMediaResponse",
2960+
"properties": {
2961+
"operation": {
2962+
"$ref": "Operation",
2963+
"description": "Operation to be returned to the user."
2964+
}
2965+
},
2966+
"type": "object"
2967+
},
2968+
"UploadGoModuleMetadata": {
2969+
"description": "The operation metadata for uploading go modules.",
2970+
"id": "UploadGoModuleMetadata",
2971+
"properties": {},
2972+
"type": "object"
2973+
},
2974+
"UploadGoModuleRequest": {
2975+
"description": "The request to upload a Go module.",
2976+
"id": "UploadGoModuleRequest",
2977+
"properties": {},
2978+
"type": "object"
2979+
},
28842980
"UploadGoogetArtifactMediaResponse": {
28852981
"description": "The response to upload an artifact.",
28862982
"id": "UploadGoogetArtifactMediaResponse",

‎googleapiclient/discovery_cache/documents/artifactregistry.v1beta1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@
929929
}
930930
}
931931
},
932-
"revision": "20230615",
932+
"revision": "20230626",
933933
"rootUrl": "https://artifactregistry.googleapis.com/",
934934
"schemas": {
935935
"Binding": {

‎googleapiclient/discovery_cache/documents/artifactregistry.v1beta2.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@
11351135
}
11361136
}
11371137
},
1138-
"revision": "20230615",
1138+
"revision": "20230626",
11391139
"rootUrl": "https://artifactregistry.googleapis.com/",
11401140
"schemas": {
11411141
"AptArtifact": {

0 commit comments

Comments
 (0)
Please sign in to comment.