Class: Google::Apis::ArtifactregistryV1::ArtifactRegistryService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::ArtifactregistryV1::ArtifactRegistryService
- Defined in:
- lib/google/apis/artifactregistry_v1/service.rb
Overview
Artifact Registry API
Store and manage build artifacts in a scalable and integrated service built on Google infrastructure.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#batch_delete_versions(parent, batch_delete_versions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Deletes multiple versions across a repository.
-
#create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Creates a repository.
-
#create_project_location_repository_package_tag(parent, tag_object = nil, tag_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Tag
Creates a tag.
-
#delete_project_location_repository(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Deletes a repository and all of its contents.
-
#delete_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Deletes a package and all of its versions and tags.
-
#delete_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Empty
Deletes a tag.
-
#delete_project_location_repository_package_version(name, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Deletes a version and all of its content.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Location
Gets information about a location.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Gets the latest state of a long-running operation.
-
#get_project_location_repository(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Repository
Gets a repository.
-
#get_project_location_repository_docker_image(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::DockerImage
Gets a docker image.
-
#get_project_location_repository_file(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File
Gets a file.
-
#get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Policy
Gets the IAM policy for a given resource.
-
#get_project_location_repository_maven_artifact(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::MavenArtifact
Gets a maven artifact.
-
#get_project_location_repository_npm_package(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::NpmPackage
Gets a npm package.
-
#get_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Package
Gets a package.
-
#get_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Tag
Gets a tag.
-
#get_project_location_repository_package_version(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Version
Gets a version.
-
#get_project_location_repository_python_package(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::PythonPackage
Gets a python package.
-
#get_project_location_vpcsc_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::VpcscConfig
Retrieves the VPCSC Config for the Project.
-
#get_project_project_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ProjectSettings
Retrieves the Settings for the Project.
-
#import_apt_artifacts(parent, import_apt_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Imports Apt artifacts.
-
#import_googet_artifacts(parent, import_googet_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Imports GooGet artifacts.
-
#import_yum_artifacts(parent, import_yum_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Imports Yum (RPM) artifacts.
-
#initialize ⇒ ArtifactRegistryService
constructor
A new instance of ArtifactRegistryService.
-
#list_project_location_repositories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListRepositoriesResponse
Lists repositories.
-
#list_project_location_repository_docker_images(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListDockerImagesResponse
Lists docker images.
-
#list_project_location_repository_files(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListFilesResponse
Lists files.
-
#list_project_location_repository_maven_artifacts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListMavenArtifactsResponse
Lists maven artifacts.
-
#list_project_location_repository_npm_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListNpmPackagesResponse
Lists npm packages.
-
#list_project_location_repository_package_tags(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListTagsResponse
Lists tags.
-
#list_project_location_repository_package_versions(parent, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListVersionsResponse
Lists versions.
-
#list_project_location_repository_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListPackagesResponse
Lists packages.
-
#list_project_location_repository_python_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListPythonPackagesResponse
Lists python packages.
-
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListLocationsResponse
Lists information about the supported locations for this service.
-
#patch_project_location_repository(name, repository_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Repository
Updates a repository.
-
#patch_project_location_repository_package_tag(name, tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Tag
Updates a tag.
-
#set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Policy
Updates the IAM policy for a given resource.
-
#test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::TestIamPermissionsResponse
Tests if the caller has a list of permissions on a resource.
-
#update_project_location_vpcsc_config(name, vpcsc_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::VpcscConfig
Updates the VPCSC Config for the Project.
-
#update_project_project_settings(name, project_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ProjectSettings
Updates the Settings for the Project.
-
#upload_apt_artifact(parent, upload_apt_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::UploadAptArtifactMediaResponse
Directly uploads an Apt artifact.
-
#upload_go_module(parent, upload_go_module_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::UploadGoModuleMediaResponse
Directly uploads a Go module.
-
#upload_googet_artifact_goo_get_artifact(parent, upload_googet_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse
Directly uploads a GooGet artifact.
-
#upload_kfp_artifact(parent, upload_kfp_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::UploadKfpArtifactMediaResponse
Directly uploads a KFP artifact.
-
#upload_yum_artifact(parent, upload_yum_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::UploadYumArtifactMediaResponse
Directly uploads a Yum artifact.
Constructor Details
#initialize ⇒ ArtifactRegistryService
Returns a new instance of ArtifactRegistryService.
46 47 48 49 50 51 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 46 def initialize super('https://artifactregistry.googleapis.com/', '', client_name: 'google-apis-artifactregistry_v1', client_version: Google::Apis::ArtifactregistryV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
39 40 41 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 39 def key @key end |
#quota_user ⇒ String
Returns 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.
44 45 46 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#batch_delete_versions(parent, batch_delete_versions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1414 def batch_delete_versions(parent, batch_delete_versions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/versions:batchDelete', ) command.request_representation = Google::Apis::ArtifactregistryV1::BatchDeleteVersionsRequest::Representation command.request_object = batch_delete_versions_request_object command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
316 317 318 319 320 321 322 323 324 325 326 327 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 316 def create_project_location_repository(parent, repository_object = nil, repository_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/repositories', ) command.request_representation = Google::Apis::ArtifactregistryV1::Repository::Representation command.request_object = repository_object command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1::Operation command.params['parent'] = parent unless parent.nil? command.query['repositoryId'] = repository_id unless repository_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_repository_package_tag(parent, tag_object = nil, tag_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Tag
Creates a tag.
1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1234 def create_project_location_repository_package_tag(parent, tag_object = nil, tag_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/tags', ) command.request_representation = Google::Apis::ArtifactregistryV1::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::ArtifactregistryV1::Tag::Representation command.response_class = Google::Apis::ArtifactregistryV1::Tag command.params['parent'] = parent unless parent.nil? command.query['tagId'] = tag_id unless tag_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_repository(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.
351 352 353 354 355 356 357 358 359 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 351 def delete_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.
1135 1136 1137 1138 1139 1140 1141 1142 1143 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1135 def delete_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Empty
Deletes a tag.
1267 1268 1269 1270 1271 1272 1273 1274 1275 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1267 def delete_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::Empty::Representation command.response_class = Google::Apis::ArtifactregistryV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_repository_package_version(name, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Deletes a version and all of its content. The returned operation will complete once the version has been deleted.
1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1450 def delete_project_location_repository_package_version(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1::Operation command.params['name'] = name unless name.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Location
Gets information about a location.
140 141 142 143 144 145 146 147 148 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 140 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::Location::Representation command.response_class = Google::Apis::ArtifactregistryV1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
282 283 284 285 286 287 288 289 290 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 282 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Repository
Gets a repository.
381 382 383 384 385 386 387 388 389 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 381 def get_project_location_repository(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::Repository::Representation command.response_class = Google::Apis::ArtifactregistryV1::Repository command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_docker_image(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::DockerImage
Gets a docker image.
682 683 684 685 686 687 688 689 690 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 682 def get_project_location_repository_docker_image(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::DockerImage::Representation command.response_class = Google::Apis::ArtifactregistryV1::DockerImage command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_file(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File
Gets a file.
751 752 753 754 755 756 757 758 759 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 751 def get_project_location_repository_file(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File::Representation command.response_class = Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Policy
Gets the IAM policy for a given resource.
424 425 426 427 428 429 430 431 432 433 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 424 def get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::ArtifactregistryV1::Policy::Representation command.response_class = Google::Apis::ArtifactregistryV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_maven_artifact(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::MavenArtifact
Gets a maven artifact.
1002 1003 1004 1005 1006 1007 1008 1009 1010 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1002 def get_project_location_repository_maven_artifact(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::MavenArtifact::Representation command.response_class = Google::Apis::ArtifactregistryV1::MavenArtifact command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_npm_package(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::NpmPackage
Gets a npm package.
1068 1069 1070 1071 1072 1073 1074 1075 1076 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1068 def get_project_location_repository_npm_package(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::NpmPackage::Representation command.response_class = Google::Apis::ArtifactregistryV1::NpmPackage command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Package
Gets a package.
1165 1166 1167 1168 1169 1170 1171 1172 1173 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1165 def get_project_location_repository_package(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::Package::Representation command.response_class = Google::Apis::ArtifactregistryV1::Package command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Tag
Gets a tag.
1297 1298 1299 1300 1301 1302 1303 1304 1305 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1297 def get_project_location_repository_package_tag(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::Tag::Representation command.response_class = Google::Apis::ArtifactregistryV1::Tag command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_package_version(name, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Version
Gets a version
1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1483 def get_project_location_repository_package_version(name, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::Version::Representation command.response_class = Google::Apis::ArtifactregistryV1::Version command.params['name'] = name unless name.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_repository_python_package(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::PythonPackage
Gets a python package.
1556 1557 1558 1559 1560 1561 1562 1563 1564 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1556 def get_project_location_repository_python_package(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::PythonPackage::Representation command.response_class = Google::Apis::ArtifactregistryV1::PythonPackage command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_vpcsc_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::VpcscConfig
Retrieves the VPCSC Config for the Project.
170 171 172 173 174 175 176 177 178 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 170 def get_project_location_vpcsc_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::VpcscConfig::Representation command.response_class = Google::Apis::ArtifactregistryV1::VpcscConfig command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_project_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ProjectSettings
Retrieves the Settings for the Project.
73 74 75 76 77 78 79 80 81 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 73 def get_project_project_settings(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::ArtifactregistryV1::ProjectSettings::Representation command.response_class = Google::Apis::ArtifactregistryV1::ProjectSettings command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#import_apt_artifacts(parent, import_apt_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Imports Apt 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.
604 605 606 607 608 609 610 611 612 613 614 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 604 def import_apt_artifacts(parent, import_apt_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/aptArtifacts:import', ) command.request_representation = Google::Apis::ArtifactregistryV1::ImportAptArtifactsRequest::Representation command.request_object = import_apt_artifacts_request_object command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#import_googet_artifacts(parent, import_googet_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
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.
878 879 880 881 882 883 884 885 886 887 888 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 878 def import_googet_artifacts(parent, import_googet_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/googetArtifacts:import', ) command.request_representation = Google::Apis::ArtifactregistryV1::ImportGoogetArtifactsRequest::Representation command.request_object = import_googet_artifacts_request_object command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#import_yum_artifacts(parent, import_yum_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Operation
Imports Yum (RPM) 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.
1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1626 def import_yum_artifacts(parent, import_yum_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/yumArtifacts:import', ) command.request_representation = Google::Apis::ArtifactregistryV1::ImportYumArtifactsRequest::Representation command.request_object = import_yum_artifacts_request_object command.response_representation = Google::Apis::ArtifactregistryV1::Operation::Representation command.response_class = Google::Apis::ArtifactregistryV1::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_repositories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListRepositoriesResponse
Lists repositories.
459 460 461 462 463 464 465 466 467 468 469 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 459 def list_project_location_repositories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/repositories', ) command.response_representation = Google::Apis::ArtifactregistryV1::ListRepositoriesResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::ListRepositoriesResponse 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 |
#list_project_location_repository_docker_images(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListDockerImagesResponse
Lists docker images.
718 719 720 721 722 723 724 725 726 727 728 729 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 718 def list_project_location_repository_docker_images(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/dockerImages', ) command.response_representation = Google::Apis::ArtifactregistryV1::ListDockerImagesResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::ListDockerImagesResponse command.params['parent'] = parent unless parent.nil? command.query['orderBy'] = order_by unless order_by.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 |
#list_project_location_repository_files(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListFilesResponse
Lists files.
795 796 797 798 799 800 801 802 803 804 805 806 807 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 795 def list_project_location_repository_files(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/files', ) command.response_representation = Google::Apis::ArtifactregistryV1::ListFilesResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::ListFilesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.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 |
#list_project_location_repository_maven_artifacts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListMavenArtifactsResponse
Lists maven artifacts.
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1036 def list_project_location_repository_maven_artifacts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/mavenArtifacts', ) command.response_representation = Google::Apis::ArtifactregistryV1::ListMavenArtifactsResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::ListMavenArtifactsResponse 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 |
#list_project_location_repository_npm_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListNpmPackagesResponse
Lists npm packages.
1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1102 def list_project_location_repository_npm_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/npmPackages', ) command.response_representation = Google::Apis::ArtifactregistryV1::ListNpmPackagesResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::ListNpmPackagesResponse 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 |
#list_project_location_repository_package_tags(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListTagsResponse
Lists tags.
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1338 def (parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/tags', ) command.response_representation = Google::Apis::ArtifactregistryV1::ListTagsResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::ListTagsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.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 |
#list_project_location_repository_package_versions(parent, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListVersionsResponse
Lists versions.
1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1522 def list_project_location_repository_package_versions(parent, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/versions', ) command.response_representation = Google::Apis::ArtifactregistryV1::ListVersionsResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::ListVersionsResponse command.params['parent'] = parent unless parent.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_repository_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListPackagesResponse
Lists packages.
1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1199 def list_project_location_repository_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/packages', ) command.response_representation = Google::Apis::ArtifactregistryV1::ListPackagesResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::ListPackagesResponse 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 |
#list_project_location_repository_python_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListPythonPackagesResponse
Lists python packages.
1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1590 def list_project_location_repository_python_packages(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/pythonPackages', ) command.response_representation = Google::Apis::ArtifactregistryV1::ListPythonPackagesResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::ListPythonPackagesResponse 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 |
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ListLocationsResponse
Lists information about the supported locations for this service.
210 211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 210 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/locations', ) command.response_representation = Google::Apis::ArtifactregistryV1::ListLocationsResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.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 |
#patch_project_location_repository(name, repository_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Repository
Updates a repository.
497 498 499 500 501 502 503 504 505 506 507 508 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 497 def patch_project_location_repository(name, repository_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::ArtifactregistryV1::Repository::Representation command.request_object = repository_object command.response_representation = Google::Apis::ArtifactregistryV1::Repository::Representation command.response_class = Google::Apis::ArtifactregistryV1::Repository command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_repository_package_tag(name, tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Tag
Updates a tag.
1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1379 def patch_project_location_repository_package_tag(name, tag_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::ArtifactregistryV1::Tag::Representation command.request_object = tag_object command.response_representation = Google::Apis::ArtifactregistryV1::Tag::Representation command.response_class = Google::Apis::ArtifactregistryV1::Tag command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::Policy
Updates the IAM policy for a given resource.
533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 533 def set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::ArtifactregistryV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::ArtifactregistryV1::Policy::Representation command.response_class = Google::Apis::ArtifactregistryV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::TestIamPermissionsResponse
Tests if the caller has a list of permissions on a resource.
568 569 570 571 572 573 574 575 576 577 578 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 568 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::ArtifactregistryV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::ArtifactregistryV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_project_location_vpcsc_config(name, vpcsc_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::VpcscConfig
Updates the VPCSC Config for the Project.
248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 248 def update_project_location_vpcsc_config(name, vpcsc_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::ArtifactregistryV1::VpcscConfig::Representation command.request_object = vpcsc_config_object command.response_representation = Google::Apis::ArtifactregistryV1::VpcscConfig::Representation command.response_class = Google::Apis::ArtifactregistryV1::VpcscConfig command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_project_project_settings(name, project_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::ProjectSettings
Updates the Settings for the Project.
107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 107 def update_project_project_settings(name, project_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::ArtifactregistryV1::ProjectSettings::Representation command.request_object = project_settings_object command.response_representation = Google::Apis::ArtifactregistryV1::ProjectSettings::Representation command.response_class = Google::Apis::ArtifactregistryV1::ProjectSettings command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#upload_apt_artifact(parent, upload_apt_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::UploadAptArtifactMediaResponse
Directly uploads an Apt 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.
644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 644 def upload_apt_artifact(parent, upload_apt_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'v1/{+parent}/aptArtifacts:create', ) else command = make_upload_command(:post, 'v1/{+parent}/aptArtifacts:create', ) command.upload_source = upload_source command.upload_content_type = content_type end command.request_representation = Google::Apis::ArtifactregistryV1::UploadAptArtifactRequest::Representation command.request_object = upload_apt_artifact_request_object command.response_representation = Google::Apis::ArtifactregistryV1::UploadAptArtifactMediaResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::UploadAptArtifactMediaResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#upload_go_module(parent, upload_go_module_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::UploadGoModuleMediaResponse
Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module.
836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 836 def upload_go_module(parent, upload_go_module_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'v1/{+parent}/goModules:create', ) else command = make_upload_command(:post, 'v1/{+parent}/goModules:create', ) command.upload_source = upload_source command.upload_content_type = content_type end command.request_representation = Google::Apis::ArtifactregistryV1::UploadGoModuleRequest::Representation command.request_object = upload_go_module_request_object command.response_representation = Google::Apis::ArtifactregistryV1::UploadGoModuleMediaResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::UploadGoModuleMediaResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#upload_googet_artifact_goo_get_artifact(parent, upload_googet_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse
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.
918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 918 def upload_googet_artifact_goo_get_artifact(parent, upload_googet_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'v1/{+parent}/googetArtifacts:create', ) else command = make_upload_command(:post, 'v1/{+parent}/googetArtifacts:create', ) command.upload_source = upload_source command.upload_content_type = content_type end command.request_representation = Google::Apis::ArtifactregistryV1::UploadGoogetArtifactRequest::Representation command.request_object = upload_googet_artifact_request_object command.response_representation = Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::UploadGoogetArtifactMediaResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#upload_kfp_artifact(parent, upload_kfp_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::UploadKfpArtifactMediaResponse
Directly uploads a KFP artifact. The returned Operation will complete once the resource is uploaded. Package, Version, and File resources will be created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will be overwritten.
964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 964 def upload_kfp_artifact(parent, upload_kfp_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'v1/{+parent}/kfpArtifacts:create', ) else command = make_upload_command(:post, 'v1/{+parent}/kfpArtifacts:create', ) command.upload_source = upload_source command.upload_content_type = content_type end command.request_representation = Google::Apis::ArtifactregistryV1::UploadKfpArtifactRequest::Representation command.request_object = upload_kfp_artifact_request_object command.response_representation = Google::Apis::ArtifactregistryV1::UploadKfpArtifactMediaResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::UploadKfpArtifactMediaResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#upload_yum_artifact(parent, upload_yum_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ArtifactregistryV1::UploadYumArtifactMediaResponse
Directly uploads a Yum 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.
1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 |
# File 'lib/google/apis/artifactregistry_v1/service.rb', line 1666 def upload_yum_artifact(parent, upload_yum_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'v1/{+parent}/yumArtifacts:create', ) else command = make_upload_command(:post, 'v1/{+parent}/yumArtifacts:create', ) command.upload_source = upload_source command.upload_content_type = content_type end command.request_representation = Google::Apis::ArtifactregistryV1::UploadYumArtifactRequest::Representation command.request_object = upload_yum_artifact_request_object command.response_representation = Google::Apis::ArtifactregistryV1::UploadYumArtifactMediaResponse::Representation command.response_class = Google::Apis::ArtifactregistryV1::UploadYumArtifactMediaResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |