Skip to content

Commit 9e423cc

Browse files
feat(artifactregistry): update the api
#### artifactregistry:v1 The following keys were added: - resources.projects.resources.locations.resources.repositories.resources.files.methods.delete (Total Keys: 11)
1 parent 985f437 commit 9e423cc

File tree

5 files changed

+72
-9
lines changed

5 files changed

+72
-9
lines changed

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

Lines changed: 38 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="#delete">delete(name, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.</p>
8083
<p class="toc_element">
8184
<code><a href="#download">download(name, x__xgafv=None)</a></code></p>
8285
<p class="firstline">Download a file.</p>
@@ -98,6 +101,41 @@ <h3>Method Details</h3>
98101
<pre>Close httplib2 connections.</pre>
99102
</div>
100103

104+
<div class="method">
105+
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
106+
<pre>Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.
107+
108+
Args:
109+
name: string, Required. The name of the file to delete. (required)
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, 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`.
134+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
135+
},
136+
}</pre>
137+
</div>
138+
101139
<div class="method">
102140
<code class="details" id="download">download(name, x__xgafv=None)</code>
103141
<pre>Download a file.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ <h3>Method Details</h3>
209209
&quot;cleanupPolicyDryRun&quot;: True or False, # Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
210210
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the repository was created.
211211
&quot;description&quot;: &quot;A String&quot;, # The user-provided description of the repository.
212-
&quot;disallowUnspecifiedMode&quot;: True or False, # Optional. If this is true, aunspecified repo type will be treated as error. Is used for new repo types that don&#x27;t have any specific fields. Right now is used by AOSS team when creating repos for customers.
212+
&quot;disallowUnspecifiedMode&quot;: True or False, # Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
213213
&quot;dockerConfig&quot;: { # DockerRepositoryConfig is docker related repository details. Provides additional configuration details for repositories of the docker format type. # Docker repository config contains repository level configuration for the repositories of docker type.
214214
&quot;immutableTags&quot;: True or False, # The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.
215215
},
@@ -400,7 +400,7 @@ <h3>Method Details</h3>
400400
&quot;cleanupPolicyDryRun&quot;: True or False, # Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
401401
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the repository was created.
402402
&quot;description&quot;: &quot;A String&quot;, # The user-provided description of the repository.
403-
&quot;disallowUnspecifiedMode&quot;: True or False, # Optional. If this is true, aunspecified repo type will be treated as error. Is used for new repo types that don&#x27;t have any specific fields. Right now is used by AOSS team when creating repos for customers.
403+
&quot;disallowUnspecifiedMode&quot;: True or False, # Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
404404
&quot;dockerConfig&quot;: { # DockerRepositoryConfig is docker related repository details. Provides additional configuration details for repositories of the docker format type. # Docker repository config contains repository level configuration for the repositories of docker type.
405405
&quot;immutableTags&quot;: True or False, # The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.
406406
},
@@ -567,7 +567,7 @@ <h3>Method Details</h3>
567567
&quot;cleanupPolicyDryRun&quot;: True or False, # Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
568568
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the repository was created.
569569
&quot;description&quot;: &quot;A String&quot;, # The user-provided description of the repository.
570-
&quot;disallowUnspecifiedMode&quot;: True or False, # Optional. If this is true, aunspecified repo type will be treated as error. Is used for new repo types that don&#x27;t have any specific fields. Right now is used by AOSS team when creating repos for customers.
570+
&quot;disallowUnspecifiedMode&quot;: True or False, # Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
571571
&quot;dockerConfig&quot;: { # DockerRepositoryConfig is docker related repository details. Provides additional configuration details for repositories of the docker format type. # Docker repository config contains repository level configuration for the repositories of docker type.
572572
&quot;immutableTags&quot;: True or False, # The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.
573573
},
@@ -705,7 +705,7 @@ <h3>Method Details</h3>
705705
&quot;cleanupPolicyDryRun&quot;: True or False, # Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
706706
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the repository was created.
707707
&quot;description&quot;: &quot;A String&quot;, # The user-provided description of the repository.
708-
&quot;disallowUnspecifiedMode&quot;: True or False, # Optional. If this is true, aunspecified repo type will be treated as error. Is used for new repo types that don&#x27;t have any specific fields. Right now is used by AOSS team when creating repos for customers.
708+
&quot;disallowUnspecifiedMode&quot;: True or False, # Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
709709
&quot;dockerConfig&quot;: { # DockerRepositoryConfig is docker related repository details. Provides additional configuration details for repositories of the docker format type. # Docker repository config contains repository level configuration for the repositories of docker type.
710710
&quot;immutableTags&quot;: True or False, # The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.
711711
},
@@ -826,7 +826,7 @@ <h3>Method Details</h3>
826826
&quot;cleanupPolicyDryRun&quot;: True or False, # Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
827827
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the repository was created.
828828
&quot;description&quot;: &quot;A String&quot;, # The user-provided description of the repository.
829-
&quot;disallowUnspecifiedMode&quot;: True or False, # Optional. If this is true, aunspecified repo type will be treated as error. Is used for new repo types that don&#x27;t have any specific fields. Right now is used by AOSS team when creating repos for customers.
829+
&quot;disallowUnspecifiedMode&quot;: True or False, # Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
830830
&quot;dockerConfig&quot;: { # DockerRepositoryConfig is docker related repository details. Provides additional configuration details for repositories of the docker format type. # Docker repository config contains repository level configuration for the repositories of docker type.
831831
&quot;immutableTags&quot;: True or False, # The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.
832832
},

googleapiclient/discovery_cache/documents/artifactregistry.v1.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,31 @@
945945
},
946946
"files": {
947947
"methods": {
948+
"delete": {
949+
"description": "Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.",
950+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}",
951+
"httpMethod": "DELETE",
952+
"id": "artifactregistry.projects.locations.repositories.files.delete",
953+
"parameterOrder": [
954+
"name"
955+
],
956+
"parameters": {
957+
"name": {
958+
"description": "Required. The name of the file to delete.",
959+
"location": "path",
960+
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$",
961+
"required": true,
962+
"type": "string"
963+
}
964+
},
965+
"path": "v1/{+name}",
966+
"response": {
967+
"$ref": "Operation"
968+
},
969+
"scopes": [
970+
"https://www.googleapis.com/auth/cloud-platform"
971+
]
972+
},
948973
"download": {
949974
"description": "Download a file.",
950975
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}:download",
@@ -1988,7 +2013,7 @@
19882013
}
19892014
}
19902015
},
1991-
"revision": "20240513",
2016+
"revision": "20240520",
19922017
"rootUrl": "https://artifactregistry.googleapis.com/",
19932018
"schemas": {
19942019
"AptArtifact": {
@@ -3454,7 +3479,7 @@ false
34543479
"type": "string"
34553480
},
34563481
"disallowUnspecifiedMode": {
3457-
"description": "Optional. If this is true, aunspecified repo type will be treated as error. Is used for new repo types that don't have any specific fields. Right now is used by AOSS team when creating repos for customers.",
3482+
"description": "Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.",
34583483
"type": "boolean"
34593484
},
34603485
"dockerConfig": {

googleapiclient/discovery_cache/documents/artifactregistry.v1beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@
11461146
}
11471147
}
11481148
},
1149-
"revision": "20240513",
1149+
"revision": "20240520",
11501150
"rootUrl": "https://artifactregistry.googleapis.com/",
11511151
"schemas": {
11521152
"Binding": {

googleapiclient/discovery_cache/documents/artifactregistry.v1beta2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@
14141414
}
14151415
}
14161416
},
1417-
"revision": "20240513",
1417+
"revision": "20240520",
14181418
"rootUrl": "https://artifactregistry.googleapis.com/",
14191419
"schemas": {
14201420
"AptArtifact": {

0 commit comments

Comments
 (0)