Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of artifactregistry v1 client #3177

Merged
merged 1 commit into from
Mar 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15049,6 +15049,10 @@
"/artifactregistry:v1/GoogleDevtoolsArtifactregistryV1alpha1Package/displayName": display_name
"/artifactregistry:v1/GoogleDevtoolsArtifactregistryV1alpha1Package/name": name
"/artifactregistry:v1/GoogleDevtoolsArtifactregistryV1alpha1Package/updateTime": update_time
"/artifactregistry:v1/ListDockerImagesResponse": list_docker_images_response
"/artifactregistry:v1/ListDockerImagesResponse/dockerImages": docker_images
"/artifactregistry:v1/ListDockerImagesResponse/dockerImages/docker_image": docker_image
"/artifactregistry:v1/ListDockerImagesResponse/nextPageToken": next_page_token
"/artifactregistry:v1/ListOperationsResponse": list_operations_response
"/artifactregistry:v1/ListOperationsResponse/nextPageToken": next_page_token
"/artifactregistry:v1/ListOperationsResponse/operations": operations
Expand Down Expand Up @@ -15078,6 +15082,10 @@
"/artifactregistry:v1/artifactregistry.operations.list/name": name
"/artifactregistry:v1/artifactregistry.operations.list/pageSize": page_size
"/artifactregistry:v1/artifactregistry.operations.list/pageToken": page_token
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.dockerImages.list": list_project_location_repository_docker_images
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.dockerImages.list/pageSize": page_size
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.dockerImages.list/pageToken": page_token
"/artifactregistry:v1/artifactregistry.projects.locations.repositories.dockerImages.list/parent": parent
"/artifactregistry:v1/fields": fields
"/artifactregistry:v1/key": key
"/artifactregistry:v1/quotaUser": quota_user
Expand Down
3 changes: 2 additions & 1 deletion generated/google-apis-artifactregistry_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release history for google-apis-artifactregistry_v1

### v0.2.0 (2021-03-04)
### v0.2.0 (2021-03-06)

* Regenerated from discovery document revision 20210302
* Regenerated using generator version 0.1.2

### v0.1.0 (2021-01-07)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class DockerImage
attr_accessor :media_type

# Required. registry_location, project_id, repository_name and image id forms a
# unique image name:`projects//locations//repository//dockerimages/`. For
# unique image name:`projects//locations//repository//dockerImages/`. For
# example, "projects/test-project/locations/us-west4/repositories/test-repo/
# dockerimages/ nginx@sha256:
# dockerImages/ nginx@sha256:
# e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", where "us-
# west4" is the registry_location, "test-project" is the project_id, "test-repo"
# is the repository_name and "nginx@sha256:
Expand Down Expand Up @@ -112,6 +112,32 @@ def update!(**args)
end
end

# The response from listing docker images.
class ListDockerImagesResponse
include Google::Apis::Core::Hashable

# The docker images returned.
# Corresponds to the JSON property `dockerImages`
# @return [Array<Google::Apis::ArtifactregistryV1::DockerImage>]
attr_accessor :docker_images

# The token to retrieve the next page of artifacts, or empty if there are no
# more artifacts to return.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@docker_images = args[:docker_images] if args.key?(:docker_images)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end

# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module ArtifactregistryV1
GENERATOR_VERSION = "0.1.2"

# Revision of the discovery document this client was generated from
REVISION = "20201215"
REVISION = "20210302"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class ListDockerImagesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -82,6 +88,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ListDockerImagesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :docker_images, as: 'dockerImages', class: Google::Apis::ArtifactregistryV1::DockerImage, decorator: Google::Apis::ArtifactregistryV1::DockerImage::Representation

property :next_page_token, as: 'nextPageToken'
end
end

class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,42 @@ def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fie
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Lists docker images.
# @param [String] parent
# Required. The name of the parent resource whose docker images will be listed.
# @param [Fixnum] page_size
# The maximum number of artifacts to return.
# @param [String] page_token
# The next_page_token value returned from a previous list request, if any.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ArtifactregistryV1::ListDockerImagesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ArtifactregistryV1::ListDockerImagesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_repository_docker_images(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/dockerImages', options)
command.response_representation = Google::Apis::ArtifactregistryV1::ListDockerImagesResponse::Representation
command.response_class = Google::Apis::ArtifactregistryV1::ListDockerImagesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

protected

Expand Down
2 changes: 1 addition & 1 deletion generated/google-apis-artifactregistry_v1/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "d871146916f3dd19a12820c03068b3861a4bc879"
"sha": "ea6a03d1e3218bb3594e4536a5e0df9d53ca3c27"
}
}
]
Expand Down