Skip to content

Commit 882fdb3

Browse files
feat(artifactregistry): update the api
#### artifactregistry:v1beta2 The following keys were added: - resources.projects.methods.getProjectSettings (Total Keys: 11) - resources.projects.methods.updateProjectSettings (Total Keys: 15) - schemas.ProjectSettings (Total Keys: 4)
1 parent 5a11b01 commit 882fdb3

File tree

4 files changed

+147
-3
lines changed

4 files changed

+147
-3
lines changed

docs/dyn/artifactregistry_v1beta2.projects.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,65 @@ <h2>Instance Methods</h2>
8282
<p class="toc_element">
8383
<code><a href="#close">close()</a></code></p>
8484
<p class="firstline">Close httplib2 connections.</p>
85+
<p class="toc_element">
86+
<code><a href="#getProjectSettings">getProjectSettings(name, x__xgafv=None)</a></code></p>
87+
<p class="firstline">Retrieves the Settings for the Project</p>
88+
<p class="toc_element">
89+
<code><a href="#updateProjectSettings">updateProjectSettings(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
90+
<p class="firstline">Retrieves the Settings for the Project</p>
8591
<h3>Method Details</h3>
8692
<div class="method">
8793
<code class="details" id="close">close()</code>
8894
<pre>Close httplib2 connections.</pre>
8995
</div>
9096

97+
<div class="method">
98+
<code class="details" id="getProjectSettings">getProjectSettings(name, x__xgafv=None)</code>
99+
<pre>Retrieves the Settings for the Project
100+
101+
Args:
102+
name: string, Required. The name of the projectSettings resource. (required)
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 Artifact Registry settings that apply to a Project.
112+
&quot;legacyRedirectionState&quot;: &quot;A String&quot;, # The redirection state of the legacy repositories in this project.
113+
&quot;name&quot;: &quot;A String&quot;, # The name of the project&#x27;s settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set
114+
}</pre>
115+
</div>
116+
117+
<div class="method">
118+
<code class="details" id="updateProjectSettings">updateProjectSettings(name, body=None, updateMask=None, x__xgafv=None)</code>
119+
<pre>Retrieves the Settings for the Project
120+
121+
Args:
122+
name: string, The name of the project&#x27;s settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set (required)
123+
body: object, The request body.
124+
The object takes the form of:
125+
126+
{ # The Artifact Registry settings that apply to a Project.
127+
&quot;legacyRedirectionState&quot;: &quot;A String&quot;, # The redirection state of the legacy repositories in this project.
128+
&quot;name&quot;: &quot;A String&quot;, # The name of the project&#x27;s settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set
129+
}
130+
131+
updateMask: string, Field mask to support partial updates.
132+
x__xgafv: string, V1 error format.
133+
Allowed values
134+
1 - v1 error format
135+
2 - v2 error format
136+
137+
Returns:
138+
An object of the form:
139+
140+
{ # The Artifact Registry settings that apply to a Project.
141+
&quot;legacyRedirectionState&quot;: &quot;A String&quot;, # The redirection state of the legacy repositories in this project.
142+
&quot;name&quot;: &quot;A String&quot;, # The name of the project&#x27;s settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set
143+
}</pre>
144+
</div>
145+
91146
</body></html>

googleapiclient/discovery_cache/documents/artifactregistry.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
}
258258
}
259259
},
260-
"revision": "20211022",
260+
"revision": "20211029",
261261
"rootUrl": "https://artifactregistry.googleapis.com/",
262262
"schemas": {
263263
"AptArtifact": {

googleapiclient/discovery_cache/documents/artifactregistry.v1beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@
929929
}
930930
}
931931
},
932-
"revision": "20211022",
932+
"revision": "20211029",
933933
"rootUrl": "https://artifactregistry.googleapis.com/",
934934
"schemas": {
935935
"AptArtifact": {

googleapiclient/discovery_cache/documents/artifactregistry.v1beta2.json

Lines changed: 90 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,68 @@
109109
"protocol": "rest",
110110
"resources": {
111111
"projects": {
112+
"methods": {
113+
"getProjectSettings": {
114+
"description": "Retrieves the Settings for the Project",
115+
"flatPath": "v1beta2/projects/{projectsId}/projectSettings",
116+
"httpMethod": "GET",
117+
"id": "artifactregistry.projects.getProjectSettings",
118+
"parameterOrder": [
119+
"name"
120+
],
121+
"parameters": {
122+
"name": {
123+
"description": "Required. The name of the projectSettings resource.",
124+
"location": "path",
125+
"pattern": "^projects/[^/]+/projectSettings$",
126+
"required": true,
127+
"type": "string"
128+
}
129+
},
130+
"path": "v1beta2/{+name}",
131+
"response": {
132+
"$ref": "ProjectSettings"
133+
},
134+
"scopes": [
135+
"https://www.googleapis.com/auth/cloud-platform",
136+
"https://www.googleapis.com/auth/cloud-platform.read-only"
137+
]
138+
},
139+
"updateProjectSettings": {
140+
"description": "Retrieves the Settings for the Project",
141+
"flatPath": "v1beta2/projects/{projectsId}/projectSettings",
142+
"httpMethod": "PATCH",
143+
"id": "artifactregistry.projects.updateProjectSettings",
144+
"parameterOrder": [
145+
"name"
146+
],
147+
"parameters": {
148+
"name": {
149+
"description": "The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set",
150+
"location": "path",
151+
"pattern": "^projects/[^/]+/projectSettings$",
152+
"required": true,
153+
"type": "string"
154+
},
155+
"updateMask": {
156+
"description": "Field mask to support partial updates.",
157+
"format": "google-fieldmask",
158+
"location": "query",
159+
"type": "string"
160+
}
161+
},
162+
"path": "v1beta2/{+name}",
163+
"request": {
164+
"$ref": "ProjectSettings"
165+
},
166+
"response": {
167+
"$ref": "ProjectSettings"
168+
},
169+
"scopes": [
170+
"https://www.googleapis.com/auth/cloud-platform"
171+
]
172+
}
173+
},
112174
"resources": {
113175
"locations": {
114176
"methods": {
@@ -1081,7 +1143,7 @@
10811143
}
10821144
}
10831145
},
1084-
"revision": "20211022",
1146+
"revision": "20211029",
10851147
"rootUrl": "https://artifactregistry.googleapis.com/",
10861148
"schemas": {
10871149
"AptArtifact": {
@@ -1627,6 +1689,33 @@
16271689
},
16281690
"type": "object"
16291691
},
1692+
"ProjectSettings": {
1693+
"description": "The Artifact Registry settings that apply to a Project.",
1694+
"id": "ProjectSettings",
1695+
"properties": {
1696+
"legacyRedirectionState": {
1697+
"description": "The redirection state of the legacy repositories in this project.",
1698+
"enum": [
1699+
"REDIRECTION_STATE_UNSPECIFIED",
1700+
"REDIRECTION_FROM_GCR_IO_DISABLED",
1701+
"REDIRECTION_FROM_GCR_IO_ENABLED",
1702+
"REDIRECTION_FROM_GCR_IO_FINALIZED"
1703+
],
1704+
"enumDescriptions": [
1705+
"No redirection status has been set.",
1706+
"Redirection is disabled.",
1707+
"Redirection is enabled.",
1708+
"Redirection is enabled, and has been finalized so cannot be reverted."
1709+
],
1710+
"type": "string"
1711+
},
1712+
"name": {
1713+
"description": "The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set",
1714+
"type": "string"
1715+
}
1716+
},
1717+
"type": "object"
1718+
},
16301719
"Repository": {
16311720
"description": "A Repository for storing artifacts with a specific format.",
16321721
"id": "Repository",

0 commit comments

Comments
 (0)