From 566a0af30bfb6e787042133e6a00f103606592f4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Wed, 24 May 2023 18:26:57 +0000 Subject: [PATCH] feat(artifactregistry): update the api #### artifactregistry:v1 The following keys were added: - resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import (Total Keys: 12) - resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload (Total Keys: 16) - schemas.GoogetArtifact (Total Keys: 8) - schemas.ImportGoogetArtifactsErrorInfo (Total Keys: 4) - schemas.ImportGoogetArtifactsGcsSource (Total Keys: 5) - schemas.ImportGoogetArtifactsMetadata (Total Keys: 2) - schemas.ImportGoogetArtifactsRequest (Total Keys: 3) - schemas.ImportGoogetArtifactsResponse (Total Keys: 6) - schemas.UploadGoogetArtifactMediaResponse (Total Keys: 3) - schemas.UploadGoogetArtifactMetadata (Total Keys: 2) - schemas.UploadGoogetArtifactRequest (Total Keys: 2) - schemas.UploadGoogetArtifactResponse (Total Keys: 4) --- ...rtifactregistry_v1.projects.locations.html | 4 +- ...ocations.repositories.googetArtifacts.html | 50 +++++ ...ry_v1.projects.locations.repositories.html | 5 + ...ctregistry_v1beta1.projects.locations.html | 4 +- ...ctregistry_v1beta2.projects.locations.html | 4 +- .../documents/artifactregistry.v1.json | 208 +++++++++++++++++- .../documents/artifactregistry.v1beta1.json | 6 +- .../documents/artifactregistry.v1beta2.json | 6 +- 8 files changed, 275 insertions(+), 12 deletions(-) diff --git a/docs/dyn/artifactregistry_v1.projects.locations.html b/docs/dyn/artifactregistry_v1.projects.locations.html index 50db3e04a30..b659fb49f6a 100644 --- a/docs/dyn/artifactregistry_v1.projects.locations.html +++ b/docs/dyn/artifactregistry_v1.projects.locations.html @@ -122,7 +122,7 @@

Method Details

Returns: An object of the form: - { # A resource that represents Google Cloud Platform location. + { # A resource that represents a Google Cloud location. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", @@ -174,7 +174,7 @@

Method Details

{ # The response message for Locations.ListLocations. "locations": [ # A list of locations that matches the specified filter in the request. - { # A resource that represents Google Cloud Platform location. + { # A resource that represents a Google Cloud location. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", diff --git a/docs/dyn/artifactregistry_v1.projects.locations.repositories.googetArtifacts.html b/docs/dyn/artifactregistry_v1.projects.locations.repositories.googetArtifacts.html index 716f75fe5bf..a3f82cc445e 100644 --- a/docs/dyn/artifactregistry_v1.projects.locations.repositories.googetArtifacts.html +++ b/docs/dyn/artifactregistry_v1.projects.locations.repositories.googetArtifacts.html @@ -77,6 +77,9 @@

Instance Methods

close()

Close httplib2 connections.

+

+ import_(parent, body=None, x__xgafv=None)

+

Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.

upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)

Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.

@@ -86,6 +89,53 @@

Method Details

Close httplib2 connections.
+
+ import_(parent, body=None, x__xgafv=None) +
Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
+
+Args:
+  parent: string, The name of the parent resource where the artifacts will be imported. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # The request to import new googet artifacts.
+  "gcsSource": { # Google Cloud Storage location where the artifacts currently reside. # Google Cloud Storage location where input content is located.
+    "uris": [ # Cloud Storage paths URI (e.g., gs://my_bucket/my_object).
+      "A String",
+    ],
+    "useWildcards": True or False, # Supports URI wildcards for matching multiple objects from a single URI.
+  },
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # This resource represents a long-running operation that is the result of a network API call.
+  "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.
+  "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.
+    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+      {
+        "a_key": "", # Properties of the object. Contains field @type with type URL.
+      },
+    ],
+    "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.
+  },
+  "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.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+  "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}`.
+  "response": { # 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`.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+}
+
+
upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)
Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.
diff --git a/docs/dyn/artifactregistry_v1.projects.locations.repositories.html b/docs/dyn/artifactregistry_v1.projects.locations.repositories.html
index 7b070a7aa4b..f357506370d 100644
--- a/docs/dyn/artifactregistry_v1.projects.locations.repositories.html
+++ b/docs/dyn/artifactregistry_v1.projects.locations.repositories.html
@@ -89,6 +89,11 @@ 

Instance Methods

Returns the files Resource.

+

+ googetArtifacts() +

+

Returns the googetArtifacts Resource.

+

kfpArtifacts()

diff --git a/docs/dyn/artifactregistry_v1beta1.projects.locations.html b/docs/dyn/artifactregistry_v1beta1.projects.locations.html index fa29ddd3dcb..dd20cf707ef 100644 --- a/docs/dyn/artifactregistry_v1beta1.projects.locations.html +++ b/docs/dyn/artifactregistry_v1beta1.projects.locations.html @@ -116,7 +116,7 @@

Method Details

Returns: An object of the form: - { # A resource that represents Google Cloud Platform location. + { # A resource that represents a Google Cloud location. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", @@ -148,7 +148,7 @@

Method Details

{ # The response message for Locations.ListLocations. "locations": [ # A list of locations that matches the specified filter in the request. - { # A resource that represents Google Cloud Platform location. + { # A resource that represents a Google Cloud location. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", diff --git a/docs/dyn/artifactregistry_v1beta2.projects.locations.html b/docs/dyn/artifactregistry_v1beta2.projects.locations.html index ce857c509fa..bea0c00f99a 100644 --- a/docs/dyn/artifactregistry_v1beta2.projects.locations.html +++ b/docs/dyn/artifactregistry_v1beta2.projects.locations.html @@ -116,7 +116,7 @@

Method Details

Returns: An object of the form: - { # A resource that represents Google Cloud Platform location. + { # A resource that represents a Google Cloud location. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", @@ -148,7 +148,7 @@

Method Details

{ # The response message for Locations.ListLocations. "locations": [ # A list of locations that matches the specified filter in the request. - { # A resource that represents Google Cloud Platform location. + { # A resource that represents a Google Cloud location. "displayName": "A String", # The friendly name for this location, typically a nearby city name. For example, "Tokyo". "labels": { # Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} "a_key": "A String", diff --git a/googleapiclient/discovery_cache/documents/artifactregistry.v1.json b/googleapiclient/discovery_cache/documents/artifactregistry.v1.json index 9bf98f1fa4b..9cbddb34642 100644 --- a/googleapiclient/discovery_cache/documents/artifactregistry.v1.json +++ b/googleapiclient/discovery_cache/documents/artifactregistry.v1.json @@ -803,6 +803,78 @@ } } }, + "googetArtifacts": { + "methods": { + "import": { + "description": "Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/googetArtifacts:import", + "httpMethod": "POST", + "id": "artifactregistry.projects.locations.repositories.googetArtifacts.import", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The name of the parent resource where the artifacts will be imported.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/googetArtifacts:import", + "request": { + "$ref": "ImportGoogetArtifactsRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "upload": { + "description": "Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/googetArtifacts:create", + "httpMethod": "POST", + "id": "artifactregistry.projects.locations.repositories.googetArtifacts.upload", + "mediaUpload": { + "accept": [ + "*/*" + ], + "protocols": { + "simple": { + "multipart": true, + "path": "/upload/v1/{+parent}/googetArtifacts:create" + } + } + }, + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The name of the parent resource where the artifacts will be uploaded.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/googetArtifacts:create", + "request": { + "$ref": "UploadGoogetArtifactRequest" + }, + "response": { + "$ref": "UploadGoogetArtifactMediaResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ], + "supportsMediaUpload": true + } + } + }, "kfpArtifacts": { "methods": { "upload": { @@ -1517,7 +1589,7 @@ } } }, - "revision": "20230326", + "revision": "20230508", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1710,6 +1782,28 @@ }, "type": "object" }, + "GoogetArtifact": { + "description": "A detailed representation of a GooGet artifact.", + "id": "GoogetArtifact", + "properties": { + "architecture": { + "description": "Output only. Operating system architecture of the artifact.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The Artifact Registry resource name of the artifact.", + "readOnly": true, + "type": "string" + }, + "packageName": { + "description": "Output only. The GooGet package name of the artifact.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleDevtoolsArtifactregistryV1File": { "description": "Files store content that is potentially associated with Packages or Versions.", "id": "GoogleDevtoolsArtifactregistryV1File", @@ -1852,6 +1946,77 @@ }, "type": "object" }, + "ImportGoogetArtifactsErrorInfo": { + "description": "Error information explaining why a package was not imported.", + "id": "ImportGoogetArtifactsErrorInfo", + "properties": { + "error": { + "$ref": "Status", + "description": "The detailed error status." + }, + "gcsSource": { + "$ref": "ImportGoogetArtifactsGcsSource", + "description": "Google Cloud Storage location requested." + } + }, + "type": "object" + }, + "ImportGoogetArtifactsGcsSource": { + "description": "Google Cloud Storage location where the artifacts currently reside.", + "id": "ImportGoogetArtifactsGcsSource", + "properties": { + "uris": { + "description": "Cloud Storage paths URI (e.g., gs://my_bucket/my_object).", + "items": { + "type": "string" + }, + "type": "array" + }, + "useWildcards": { + "description": "Supports URI wildcards for matching multiple objects from a single URI.", + "type": "boolean" + } + }, + "type": "object" + }, + "ImportGoogetArtifactsMetadata": { + "description": "The operation metadata for importing artifacts.", + "id": "ImportGoogetArtifactsMetadata", + "properties": {}, + "type": "object" + }, + "ImportGoogetArtifactsRequest": { + "description": "The request to import new googet artifacts.", + "id": "ImportGoogetArtifactsRequest", + "properties": { + "gcsSource": { + "$ref": "ImportGoogetArtifactsGcsSource", + "description": "Google Cloud Storage location where input content is located." + } + }, + "type": "object" + }, + "ImportGoogetArtifactsResponse": { + "description": "The response message from importing artifacts.", + "id": "ImportGoogetArtifactsResponse", + "properties": { + "errors": { + "description": "Detailed error info for packages that were not imported.", + "items": { + "$ref": "ImportGoogetArtifactsErrorInfo" + }, + "type": "array" + }, + "googetArtifacts": { + "description": "The GooGet artifacts updated.", + "items": { + "$ref": "GoogetArtifact" + }, + "type": "array" + } + }, + "type": "object" + }, "ImportYumArtifactsErrorInfo": { "description": "Error information explaining why a package was not imported.", "id": "ImportYumArtifactsErrorInfo", @@ -2120,7 +2285,7 @@ "type": "object" }, "Location": { - "description": "A resource that represents Google Cloud Platform location.", + "description": "A resource that represents a Google Cloud location.", "id": "Location", "properties": { "displayName": { @@ -2518,6 +2683,7 @@ "NPM", "APT", "YUM", + "GOOGET", "PYTHON", "KFP" ], @@ -2528,6 +2694,7 @@ "NPM package format.", "APT package format.", "YUM package format.", + "GooGet package format.", "Python package format.", "Kubeflow Pipelines package format." ], @@ -2714,6 +2881,43 @@ }, "type": "object" }, + "UploadGoogetArtifactMediaResponse": { + "description": "The response to upload an artifact.", + "id": "UploadGoogetArtifactMediaResponse", + "properties": { + "operation": { + "$ref": "Operation", + "description": "Operation to be returned to the user." + } + }, + "type": "object" + }, + "UploadGoogetArtifactMetadata": { + "description": "The operation metadata for uploading artifacts.", + "id": "UploadGoogetArtifactMetadata", + "properties": {}, + "type": "object" + }, + "UploadGoogetArtifactRequest": { + "description": "The request to upload an artifact.", + "id": "UploadGoogetArtifactRequest", + "properties": {}, + "type": "object" + }, + "UploadGoogetArtifactResponse": { + "description": "The response of the completed artifact upload operation. This response is contained in the Operation and available to users.", + "id": "UploadGoogetArtifactResponse", + "properties": { + "googetArtifacts": { + "description": "The Apt artifacts updated.", + "items": { + "$ref": "GoogetArtifact" + }, + "type": "array" + } + }, + "type": "object" + }, "UploadKfpArtifactMediaResponse": { "description": "The response to upload an artifact.", "id": "UploadKfpArtifactMediaResponse", diff --git a/googleapiclient/discovery_cache/documents/artifactregistry.v1beta1.json b/googleapiclient/discovery_cache/documents/artifactregistry.v1beta1.json index bd7f266c0c7..6d4cd74f040 100644 --- a/googleapiclient/discovery_cache/documents/artifactregistry.v1beta1.json +++ b/googleapiclient/discovery_cache/documents/artifactregistry.v1beta1.json @@ -929,7 +929,7 @@ } } }, - "revision": "20230326", + "revision": "20230508", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "Binding": { @@ -1157,7 +1157,7 @@ "type": "object" }, "Location": { - "description": "A resource that represents Google Cloud Platform location.", + "description": "A resource that represents a Google Cloud location.", "id": "Location", "properties": { "displayName": { @@ -1297,6 +1297,7 @@ "NPM", "APT", "YUM", + "GOOGET", "PYTHON" ], "enumDescriptions": [ @@ -1306,6 +1307,7 @@ "NPM package format.", "APT package format.", "YUM package format.", + "GooGet package format.", "Python package format." ], "type": "string" diff --git a/googleapiclient/discovery_cache/documents/artifactregistry.v1beta2.json b/googleapiclient/discovery_cache/documents/artifactregistry.v1beta2.json index 7d84f5ad2b1..b8465bd4cfa 100644 --- a/googleapiclient/discovery_cache/documents/artifactregistry.v1beta2.json +++ b/googleapiclient/discovery_cache/documents/artifactregistry.v1beta2.json @@ -1135,7 +1135,7 @@ } } }, - "revision": "20230326", + "revision": "20230508", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1553,7 +1553,7 @@ "type": "object" }, "Location": { - "description": "A resource that represents Google Cloud Platform location.", + "description": "A resource that represents a Google Cloud location.", "id": "Location", "properties": { "displayName": { @@ -1751,6 +1751,7 @@ "NPM", "APT", "YUM", + "GOOGET", "PYTHON" ], "enumDescriptions": [ @@ -1760,6 +1761,7 @@ "NPM package format.", "APT package format.", "YUM package format.", + "GooGet package format.", "Python package format." ], "type": "string"