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 4254ea9

Browse files
committedMar 21, 2023
feat(dataform): update the api
#### dataform:v1beta1 The following keys were added: - resources.projects.resources.locations.resources.repositories.methods.computeAccessTokenStatus (Total Keys: 11) - schemas.ComputeRepositoryAccessTokenStatusResponse (Total Keys: 3)
1 parent a87f90d commit 4254ea9

File tree

2 files changed

+76
-6
lines changed

2 files changed

+76
-6
lines changed
 

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

+25-3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ <h2>Instance Methods</h2>
105105
<p class="toc_element">
106106
<code><a href="#commit">commit(name, body=None, x__xgafv=None)</a></code></p>
107107
<p class="firstline">Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`.</p>
108+
<p class="toc_element">
109+
<code><a href="#computeAccessTokenStatus">computeAccessTokenStatus(name, x__xgafv=None)</a></code></p>
110+
<p class="firstline">Computes a Repository's Git access token status.</p>
108111
<p class="toc_element">
109112
<code><a href="#create">create(parent, body=None, repositoryId=None, x__xgafv=None)</a></code></p>
110113
<p class="firstline">Creates a new Repository in a given project and location.</p>
@@ -113,7 +116,7 @@ <h2>Instance Methods</h2>
113116
<p class="firstline">Deletes a single Repository.</p>
114117
<p class="toc_element">
115118
<code><a href="#fetchHistory">fetchHistory(name, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
116-
<p class="firstline">Fetches a Repository's history of changes. The Repository must not have a value for `git_remote_settings.url`.</p>
119+
<p class="firstline">Fetches a Repository's history of commits. The Repository must not have a value for `git_remote_settings.url`.</p>
117120
<p class="toc_element">
118121
<code><a href="#fetchHistory_next">fetchHistory_next()</a></code></p>
119122
<p class="firstline">Retrieves the next page of results.</p>
@@ -196,6 +199,25 @@ <h3>Method Details</h3>
196199
}</pre>
197200
</div>
198201

202+
<div class="method">
203+
<code class="details" id="computeAccessTokenStatus">computeAccessTokenStatus(name, x__xgafv=None)</code>
204+
<pre>Computes a Repository&#x27;s Git access token status.
205+
206+
Args:
207+
name: string, Required. The repository&#x27;s name. (required)
208+
x__xgafv: string, V1 error format.
209+
Allowed values
210+
1 - v1 error format
211+
2 - v2 error format
212+
213+
Returns:
214+
An object of the form:
215+
216+
{ # `ComputeRepositoryAccessTokenStatus` response message.
217+
&quot;tokenStatus&quot;: &quot;A String&quot;, # Indicates the status of the Git access token.
218+
}</pre>
219+
</div>
220+
199221
<div class="method">
200222
<code class="details" id="create">create(parent, body=None, repositoryId=None, x__xgafv=None)</code>
201223
<pre>Creates a new Repository in a given project and location.
@@ -294,11 +316,11 @@ <h3>Method Details</h3>
294316

295317
<div class="method">
296318
<code class="details" id="fetchHistory">fetchHistory(name, pageSize=None, pageToken=None, x__xgafv=None)</code>
297-
<pre>Fetches a Repository&#x27;s history of changes. The Repository must not have a value for `git_remote_settings.url`.
319+
<pre>Fetches a Repository&#x27;s history of commits. The Repository must not have a value for `git_remote_settings.url`.
298320

299321
Args:
300322
name: string, Required. The repository&#x27;s name. (required)
301-
pageSize: integer, Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
323+
pageSize: integer, Optional. Maximum number of commits to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
302324
pageToken: string, Optional. Page token received from a previous `FetchRepositoryHistory` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchRepositoryHistory` must match the call that provided the page token.
303325
x__xgafv: string, V1 error format.
304326
Allowed values

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

+51-3
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,31 @@
211211
"https://www.googleapis.com/auth/cloud-platform"
212212
]
213213
},
214+
"computeAccessTokenStatus": {
215+
"description": "Computes a Repository's Git access token status.",
216+
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:computeAccessTokenStatus",
217+
"httpMethod": "GET",
218+
"id": "dataform.projects.locations.repositories.computeAccessTokenStatus",
219+
"parameterOrder": [
220+
"name"
221+
],
222+
"parameters": {
223+
"name": {
224+
"description": "Required. The repository's name.",
225+
"location": "path",
226+
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$",
227+
"required": true,
228+
"type": "string"
229+
}
230+
},
231+
"path": "v1beta1/{+name}:computeAccessTokenStatus",
232+
"response": {
233+
"$ref": "ComputeRepositoryAccessTokenStatusResponse"
234+
},
235+
"scopes": [
236+
"https://www.googleapis.com/auth/cloud-platform"
237+
]
238+
},
214239
"create": {
215240
"description": "Creates a new Repository in a given project and location.",
216241
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories",
@@ -275,7 +300,7 @@
275300
]
276301
},
277302
"fetchHistory": {
278-
"description": "Fetches a Repository's history of changes. The Repository must not have a value for `git_remote_settings.url`.",
303+
"description": "Fetches a Repository's history of commits. The Repository must not have a value for `git_remote_settings.url`.",
279304
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:fetchHistory",
280305
"httpMethod": "GET",
281306
"id": "dataform.projects.locations.repositories.fetchHistory",
@@ -291,7 +316,7 @@
291316
"type": "string"
292317
},
293318
"pageSize": {
294-
"description": "Optional. Maximum number of paths to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.",
319+
"description": "Optional. Maximum number of commits to return. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default.",
295320
"format": "int32",
296321
"location": "query",
297322
"type": "integer"
@@ -1941,7 +1966,7 @@
19411966
}
19421967
}
19431968
},
1944-
"revision": "20230304",
1969+
"revision": "20230311",
19451970
"rootUrl": "https://dataform.googleapis.com/",
19461971
"schemas": {
19471972
"Assertion": {
@@ -2290,6 +2315,29 @@
22902315
},
22912316
"type": "object"
22922317
},
2318+
"ComputeRepositoryAccessTokenStatusResponse": {
2319+
"description": "`ComputeRepositoryAccessTokenStatus` response message.",
2320+
"id": "ComputeRepositoryAccessTokenStatusResponse",
2321+
"properties": {
2322+
"tokenStatus": {
2323+
"description": "Indicates the status of the Git access token.",
2324+
"enum": [
2325+
"TOKEN_STATUS_UNSPECIFIED",
2326+
"NOT_FOUND",
2327+
"INVALID",
2328+
"VALID"
2329+
],
2330+
"enumDescriptions": [
2331+
"Default value. This value is unused.",
2332+
"The token could not be found in Secret Manager (or the Dataform Service Account did not have permission to access it).",
2333+
"The token could not be used to authenticate against the Git remote.",
2334+
"The token was used successfully to authenticate against the Git remote."
2335+
],
2336+
"type": "string"
2337+
}
2338+
},
2339+
"type": "object"
2340+
},
22932341
"Declaration": {
22942342
"description": "Represents a relation which is not managed by Dataform but which may be referenced by Dataform actions.",
22952343
"id": "Declaration",

0 commit comments

Comments
 (0)
Please sign in to comment.