Skip to content

Commit

Permalink
feat(artifactregistry): update the api
Browse files Browse the repository at this point in the history
#### 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)
  • Loading branch information
yoshi-automation committed May 24, 2023
1 parent 038b092 commit 566a0af
Show file tree
Hide file tree
Showing 8 changed files with 275 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/dyn/artifactregistry_v1.projects.locations.html
Expand Up @@ -122,7 +122,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -174,7 +174,7 @@ <h3>Method Details</h3>

{ # The response message for Locations.ListLocations.
&quot;locations&quot;: [ # 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.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down
Expand Up @@ -77,6 +77,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#import_">import_(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">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.</p>
<p class="toc_element">
<code><a href="#upload">upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)</a></code></p>
<p class="firstline">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.</p>
Expand All @@ -86,6 +89,53 @@ <h3>Method Details</h3>
<pre>Close httplib2 connections.</pre>
</div>

<div class="method">
<code class="details" id="import_">import_(parent, body=None, x__xgafv=None)</code>
<pre>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.
&quot;gcsSource&quot;: { # Google Cloud Storage location where the artifacts currently reside. # Google Cloud Storage location where input content is located.
&quot;uris&quot;: [ # Cloud Storage paths URI (e.g., gs://my_bucket/my_object).
&quot;A String&quot;,
],
&quot;useWildcards&quot;: 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.
&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.
&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.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&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.
},
&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.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
&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}`.
&quot;response&quot;: { # 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`.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
}</pre>
</div>

<div class="method">
<code class="details" id="upload">upload(parent, body=None, media_body=None, media_mime_type=None, x__xgafv=None)</code>
<pre>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.
Expand Down
Expand Up @@ -89,6 +89,11 @@ <h2>Instance Methods</h2>
</p>
<p class="firstline">Returns the files Resource.</p>

<p class="toc_element">
<code><a href="artifactregistry_v1.projects.locations.repositories.googetArtifacts.html">googetArtifacts()</a></code>
</p>
<p class="firstline">Returns the googetArtifacts Resource.</p>

<p class="toc_element">
<code><a href="artifactregistry_v1.projects.locations.repositories.kfpArtifacts.html">kfpArtifacts()</a></code>
</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/dyn/artifactregistry_v1beta1.projects.locations.html
Expand Up @@ -116,7 +116,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -148,7 +148,7 @@ <h3>Method Details</h3>

{ # The response message for Locations.ListLocations.
&quot;locations&quot;: [ # 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.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down
4 changes: 2 additions & 2 deletions docs/dyn/artifactregistry_v1beta2.projects.locations.html
Expand Up @@ -116,7 +116,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # A resource that represents Google Cloud Platform location.
{ # A resource that represents a Google Cloud location.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down Expand Up @@ -148,7 +148,7 @@ <h3>Method Details</h3>

{ # The response message for Locations.ListLocations.
&quot;locations&quot;: [ # 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.
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
&quot;a_key&quot;: &quot;A String&quot;,
Expand Down
208 changes: 206 additions & 2 deletions googleapiclient/discovery_cache/documents/artifactregistry.v1.json
Expand Up @@ -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": {
Expand Down Expand Up @@ -1517,7 +1589,7 @@
}
}
},
"revision": "20230326",
"revision": "20230508",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -2518,6 +2683,7 @@
"NPM",
"APT",
"YUM",
"GOOGET",
"PYTHON",
"KFP"
],
Expand All @@ -2528,6 +2694,7 @@
"NPM package format.",
"APT package format.",
"YUM package format.",
"GooGet package format.",
"Python package format.",
"Kubeflow Pipelines package format."
],
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 566a0af

Please sign in to comment.