You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Directly uploads a Generic artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will raise an ALREADY_EXISTS error.</p>
<pre>Directly uploads a Generic artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will raise an ALREADY_EXISTS error.
92
+
93
+
Args:
94
+
parent: string, The resource name of the repository where the generic artifact will be uploaded. (required)
95
+
body: object, The request body.
96
+
The object takes the form of:
97
+
98
+
{ # The request to upload a generic artifact. The created GenericArtifact will have the resource name {parent}/genericArtifacts/package_id:version_id. The created file will have the resource name {parent}/files/package_id:version_id:filename.
99
+
"filename": "A String", # The name of the file of the generic artifact to be uploaded. E.g. "example-file.zip" The filename should only include letters, numbers, and url safe characters, i.e. [a-zA-Z0-9-_.~@].
100
+
"name": "A String", # Deprecated. Use package_id, version_id and filename instead. The resource name of the generic artifact. E.g. "projects/math/locations/us/repositories/operations/genericArtifacts/addition/1.0.0/add.py"
101
+
"packageId": "A String", # The ID of the package of the generic artifact. If the package does not exist, a new package will be created. E.g. "pkg-1" The package_id must start with a letter, end with a letter or number, only contain letters, numbers, hyphens and periods i.e. [a-z0-9-.], and cannot exceed 256 characters.
102
+
"versionId": "A String", # The ID of the version of the generic artifact. If the version does not exist, a new version will be created. E.g."1.0.0" The version_id must start and end with a letter or number, can only contain lowercase letters, numbers, hyphens and periods, i.e. [a-z0-9-.] and cannot exceed a total of 128 characters. While "latest" is a well-known name for the latest version of a package, it is not yet supported and is reserved for future use. Creating a version called "latest" is not allowed.
103
+
}
104
+
105
+
media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
106
+
media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
107
+
x__xgafv: string, V1 error format.
108
+
Allowed values
109
+
1 - v1 error format
110
+
2 - v2 error format
111
+
112
+
Returns:
113
+
An object of the form:
114
+
115
+
{ # The response to upload a generic artifact.
116
+
"operation": { # This resource represents a long-running operation that is the result of a network API call. # Operation that will be returned to the user.
117
+
"done": 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.
118
+
"error": { # 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.
119
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
120
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
121
+
{
122
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
123
+
},
124
+
],
125
+
"message": "A String", # 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.
126
+
},
127
+
"metadata": { # 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.
128
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
129
+
},
130
+
"name": "A String", # 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}`.
131
+
"response": { # 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`.
132
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
Copy file name to clipboardExpand all lines: googleapiclient/discovery_cache/documents/artifactregistry.v1.json
+121-3Lines changed: 121 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -842,6 +842,54 @@
842
842
}
843
843
}
844
844
},
845
+
"genericArtifacts": {
846
+
"methods": {
847
+
"upload": {
848
+
"description": "Directly uploads a Generic artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will raise an ALREADY_EXISTS error.",
"description": "GenericArtifact represents a generic artifact",
2129
+
"id": "GenericArtifact",
2130
+
"properties": {
2131
+
"createTime": {
2132
+
"description": "Output only. The time when the Generic module is created.",
2133
+
"format": "google-datetime",
2134
+
"readOnly": true,
2135
+
"type": "string"
2136
+
},
2137
+
"name": {
2138
+
"description": "Resource name of the generic artifact. project, location, repository, package_id and version_id create a unique generic artifact. i.e. \"projects/test-project/locations/us-west4/repositories/test-repo/ genericArtifacts/package_id:version_id\"",
2139
+
"type": "string"
2140
+
},
2141
+
"updateTime": {
2142
+
"description": "Output only. The time when the Generic module is updated.",
2143
+
"format": "google-datetime",
2144
+
"readOnly": true,
2145
+
"type": "string"
2146
+
},
2147
+
"version": {
2148
+
"description": "The version of the generic artifact.",
2149
+
"type": "string"
2150
+
}
2151
+
},
2152
+
"type": "object"
2153
+
},
2079
2154
"GoModule": {
2080
2155
"description": "GoModule represents a Go module.",
2081
2156
"id": "GoModule",
@@ -3192,7 +3267,8 @@ false
3192
3267
"GOOGET",
3193
3268
"PYTHON",
3194
3269
"KFP",
3195
-
"GO"
3270
+
"GO",
3271
+
"GENERIC"
3196
3272
],
3197
3273
"enumDescriptions": [
3198
3274
"Unspecified package format.",
@@ -3204,7 +3280,8 @@ false
3204
3280
"GooGet package format.",
3205
3281
"Python package format.",
3206
3282
"Kubeflow Pipelines package format.",
3207
-
"Go package format."
3283
+
"Go package format.",
3284
+
"Generic package format."
3208
3285
],
3209
3286
"type": "string"
3210
3287
},
@@ -3391,6 +3468,47 @@ false
3391
3468
},
3392
3469
"type": "object"
3393
3470
},
3471
+
"UploadGenericArtifactMediaResponse": {
3472
+
"description": "The response to upload a generic artifact.",
3473
+
"id": "UploadGenericArtifactMediaResponse",
3474
+
"properties": {
3475
+
"operation": {
3476
+
"$ref": "Operation",
3477
+
"description": "Operation that will be returned to the user."
3478
+
}
3479
+
},
3480
+
"type": "object"
3481
+
},
3482
+
"UploadGenericArtifactMetadata": {
3483
+
"description": "The operation metadata for uploading generic artifacts.",
3484
+
"id": "UploadGenericArtifactMetadata",
3485
+
"properties": {},
3486
+
"type": "object"
3487
+
},
3488
+
"UploadGenericArtifactRequest": {
3489
+
"description": "The request to upload a generic artifact. The created GenericArtifact will have the resource name {parent}/genericArtifacts/package_id:version_id. The created file will have the resource name {parent}/files/package_id:version_id:filename.",
3490
+
"id": "UploadGenericArtifactRequest",
3491
+
"properties": {
3492
+
"filename": {
3493
+
"description": "The name of the file of the generic artifact to be uploaded. E.g. \"example-file.zip\" The filename should only include letters, numbers, and url safe characters, i.e. [a-zA-Z0-9-_.~@].",
3494
+
"type": "string"
3495
+
},
3496
+
"name": {
3497
+
"deprecated": true,
3498
+
"description": "Deprecated. Use package_id, version_id and filename instead. The resource name of the generic artifact. E.g. \"projects/math/locations/us/repositories/operations/genericArtifacts/addition/1.0.0/add.py\"",
3499
+
"type": "string"
3500
+
},
3501
+
"packageId": {
3502
+
"description": "The ID of the package of the generic artifact. If the package does not exist, a new package will be created. E.g. \"pkg-1\" The package_id must start with a letter, end with a letter or number, only contain letters, numbers, hyphens and periods i.e. [a-z0-9-.], and cannot exceed 256 characters.",
3503
+
"type": "string"
3504
+
},
3505
+
"versionId": {
3506
+
"description": "The ID of the version of the generic artifact. If the version does not exist, a new version will be created. E.g.\"1.0.0\" The version_id must start and end with a letter or number, can only contain lowercase letters, numbers, hyphens and periods, i.e. [a-z0-9-.] and cannot exceed a total of 128 characters. While \"latest\" is a well-known name for the latest version of a package, it is not yet supported and is reserved for future use. Creating a version called \"latest\" is not allowed.",
3507
+
"type": "string"
3508
+
}
3509
+
},
3510
+
"type": "object"
3511
+
},
3394
3512
"UploadGoModuleMediaResponse": {
3395
3513
"description": "The response to upload a Go module.",
0 commit comments