google-cloud-artifact_registry-v1 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,6 +45,27 @@ module Google
45
45
  "projects/#{project}/locations/#{location}/repositories/#{repository}/dockerImages/#{docker_image}"
46
46
  end
47
47
 
48
+ ##
49
+ # Create a fully-qualified File resource string.
50
+ #
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}/repositories/{repository}/files/{file}`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ # @param repository [String]
58
+ # @param file [String]
59
+ #
60
+ # @return [::String]
61
+ def file_path project:, location:, repository:, file:
62
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
63
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
64
+ raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
65
+
66
+ "projects/#{project}/locations/#{location}/repositories/#{repository}/files/#{file}"
67
+ end
68
+
48
69
  ##
49
70
  # Create a fully-qualified Location resource string.
50
71
  #
@@ -62,6 +83,69 @@ module Google
62
83
  "projects/#{project}/locations/#{location}"
63
84
  end
64
85
 
86
+ ##
87
+ # Create a fully-qualified MavenArtifact resource string.
88
+ #
89
+ # The resource will be in the following format:
90
+ #
91
+ # `projects/{project}/locations/{location}/repositories/{repository}/mavenArtifacts/{maven_artifact}`
92
+ #
93
+ # @param project [String]
94
+ # @param location [String]
95
+ # @param repository [String]
96
+ # @param maven_artifact [String]
97
+ #
98
+ # @return [::String]
99
+ def maven_artifact_path project:, location:, repository:, maven_artifact:
100
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
101
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
102
+ raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
103
+
104
+ "projects/#{project}/locations/#{location}/repositories/#{repository}/mavenArtifacts/#{maven_artifact}"
105
+ end
106
+
107
+ ##
108
+ # Create a fully-qualified NpmPackage resource string.
109
+ #
110
+ # The resource will be in the following format:
111
+ #
112
+ # `projects/{project}/locations/{location}/repositories/{repository}/npmPackages/{npm_package}`
113
+ #
114
+ # @param project [String]
115
+ # @param location [String]
116
+ # @param repository [String]
117
+ # @param npm_package [String]
118
+ #
119
+ # @return [::String]
120
+ def npm_package_path project:, location:, repository:, npm_package:
121
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
122
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
123
+ raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
124
+
125
+ "projects/#{project}/locations/#{location}/repositories/#{repository}/npmPackages/#{npm_package}"
126
+ end
127
+
128
+ ##
129
+ # Create a fully-qualified Package resource string.
130
+ #
131
+ # The resource will be in the following format:
132
+ #
133
+ # `projects/{project}/locations/{location}/repositories/{repository}/packages/{package}`
134
+ #
135
+ # @param project [String]
136
+ # @param location [String]
137
+ # @param repository [String]
138
+ # @param package [String]
139
+ #
140
+ # @return [::String]
141
+ def package_path project:, location:, repository:, package:
142
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
143
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
144
+ raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
145
+
146
+ "projects/#{project}/locations/#{location}/repositories/#{repository}/packages/#{package}"
147
+ end
148
+
65
149
  ##
66
150
  # Create a fully-qualified ProjectSettings resource string.
67
151
  #
@@ -76,6 +160,27 @@ module Google
76
160
  "projects/#{project}/projectSettings"
77
161
  end
78
162
 
163
+ ##
164
+ # Create a fully-qualified PythonPackage resource string.
165
+ #
166
+ # The resource will be in the following format:
167
+ #
168
+ # `projects/{project}/locations/{location}/repositories/{repository}/pythonPackages/{python_package}`
169
+ #
170
+ # @param project [String]
171
+ # @param location [String]
172
+ # @param repository [String]
173
+ # @param python_package [String]
174
+ #
175
+ # @return [::String]
176
+ def python_package_path project:, location:, repository:, python_package:
177
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
178
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
179
+ raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
180
+
181
+ "projects/#{project}/locations/#{location}/repositories/#{repository}/pythonPackages/#{python_package}"
182
+ end
183
+
79
184
  ##
80
185
  # Create a fully-qualified Repository resource string.
81
186
  #
@@ -118,6 +223,23 @@ module Google
118
223
  "projects/#{project}/locations/#{location}/repositories/#{repository}/packages/#{package}/tags/#{tag}"
119
224
  end
120
225
 
226
+ ##
227
+ # Create a fully-qualified VpcscConfig resource string.
228
+ #
229
+ # The resource will be in the following format:
230
+ #
231
+ # `projects/{project}/locations/{location}/vpcscConfig`
232
+ #
233
+ # @param project [String]
234
+ # @param location [String]
235
+ #
236
+ # @return [::String]
237
+ def vpcsc_config_path project:, location:
238
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
239
+
240
+ "projects/#{project}/locations/#{location}/vpcscConfig"
241
+ end
242
+
121
243
  extend self
122
244
  end
123
245
  end
@@ -46,7 +46,7 @@ module Google
46
46
  # * Files, which contain content and are optionally associated with a Package
47
47
  # or Version.
48
48
  #
49
- # To load this service and instantiate a client:
49
+ # @example Load this service and instantiate a gRPC client
50
50
  #
51
51
  # require "google/cloud/artifact_registry/v1/artifact_registry"
52
52
  # client = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ArtifactRegistry
23
23
  module V1
24
- VERSION = "0.5.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -23,9 +23,9 @@ module Google
23
23
  module Cloud
24
24
  module ArtifactRegistry
25
25
  ##
26
- # To load this package, including all its services, and instantiate a client:
26
+ # API client module.
27
27
  #
28
- # @example
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
29
29
  #
30
30
  # require "google/cloud/artifact_registry/v1"
31
31
  # client = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
@@ -17,11 +17,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
17
17
  optional :upload_time, :message, 5, "google.protobuf.Timestamp"
18
18
  optional :media_type, :string, 6
19
19
  optional :build_time, :message, 7, "google.protobuf.Timestamp"
20
+ optional :update_time, :message, 8, "google.protobuf.Timestamp"
20
21
  end
21
22
  add_message "google.devtools.artifactregistry.v1.ListDockerImagesRequest" do
22
23
  optional :parent, :string, 1
23
24
  optional :page_size, :int32, 2
24
25
  optional :page_token, :string, 3
26
+ optional :order_by, :string, 4
25
27
  end
26
28
  add_message "google.devtools.artifactregistry.v1.ListDockerImagesResponse" do
27
29
  repeated :docker_images, :message, 1, "google.devtools.artifactregistry.v1.DockerImage"
@@ -30,6 +32,67 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
30
32
  add_message "google.devtools.artifactregistry.v1.GetDockerImageRequest" do
31
33
  optional :name, :string, 1
32
34
  end
35
+ add_message "google.devtools.artifactregistry.v1.MavenArtifact" do
36
+ optional :name, :string, 1
37
+ optional :pom_uri, :string, 2
38
+ optional :group_id, :string, 3
39
+ optional :artifact_id, :string, 4
40
+ optional :version, :string, 5
41
+ optional :create_time, :message, 6, "google.protobuf.Timestamp"
42
+ optional :update_time, :message, 7, "google.protobuf.Timestamp"
43
+ end
44
+ add_message "google.devtools.artifactregistry.v1.ListMavenArtifactsRequest" do
45
+ optional :parent, :string, 1
46
+ optional :page_size, :int32, 2
47
+ optional :page_token, :string, 3
48
+ end
49
+ add_message "google.devtools.artifactregistry.v1.ListMavenArtifactsResponse" do
50
+ repeated :maven_artifacts, :message, 1, "google.devtools.artifactregistry.v1.MavenArtifact"
51
+ optional :next_page_token, :string, 2
52
+ end
53
+ add_message "google.devtools.artifactregistry.v1.GetMavenArtifactRequest" do
54
+ optional :name, :string, 1
55
+ end
56
+ add_message "google.devtools.artifactregistry.v1.NpmPackage" do
57
+ optional :name, :string, 1
58
+ optional :package_name, :string, 3
59
+ optional :version, :string, 4
60
+ repeated :tags, :string, 5
61
+ optional :create_time, :message, 6, "google.protobuf.Timestamp"
62
+ optional :update_time, :message, 7, "google.protobuf.Timestamp"
63
+ end
64
+ add_message "google.devtools.artifactregistry.v1.ListNpmPackagesRequest" do
65
+ optional :parent, :string, 1
66
+ optional :page_size, :int32, 2
67
+ optional :page_token, :string, 3
68
+ end
69
+ add_message "google.devtools.artifactregistry.v1.ListNpmPackagesResponse" do
70
+ repeated :npm_packages, :message, 1, "google.devtools.artifactregistry.v1.NpmPackage"
71
+ optional :next_page_token, :string, 2
72
+ end
73
+ add_message "google.devtools.artifactregistry.v1.GetNpmPackageRequest" do
74
+ optional :name, :string, 1
75
+ end
76
+ add_message "google.devtools.artifactregistry.v1.PythonPackage" do
77
+ optional :name, :string, 1
78
+ optional :uri, :string, 2
79
+ optional :package_name, :string, 3
80
+ optional :version, :string, 4
81
+ optional :create_time, :message, 6, "google.protobuf.Timestamp"
82
+ optional :update_time, :message, 7, "google.protobuf.Timestamp"
83
+ end
84
+ add_message "google.devtools.artifactregistry.v1.ListPythonPackagesRequest" do
85
+ optional :parent, :string, 1
86
+ optional :page_size, :int32, 2
87
+ optional :page_token, :string, 3
88
+ end
89
+ add_message "google.devtools.artifactregistry.v1.ListPythonPackagesResponse" do
90
+ repeated :python_packages, :message, 1, "google.devtools.artifactregistry.v1.PythonPackage"
91
+ optional :next_page_token, :string, 2
92
+ end
93
+ add_message "google.devtools.artifactregistry.v1.GetPythonPackageRequest" do
94
+ optional :name, :string, 1
95
+ end
33
96
  end
34
97
  end
35
98
 
@@ -41,6 +104,18 @@ module Google
41
104
  ListDockerImagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListDockerImagesRequest").msgclass
42
105
  ListDockerImagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListDockerImagesResponse").msgclass
43
106
  GetDockerImageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.GetDockerImageRequest").msgclass
107
+ MavenArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.MavenArtifact").msgclass
108
+ ListMavenArtifactsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListMavenArtifactsRequest").msgclass
109
+ ListMavenArtifactsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListMavenArtifactsResponse").msgclass
110
+ GetMavenArtifactRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.GetMavenArtifactRequest").msgclass
111
+ NpmPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.NpmPackage").msgclass
112
+ ListNpmPackagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListNpmPackagesRequest").msgclass
113
+ ListNpmPackagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListNpmPackagesResponse").msgclass
114
+ GetNpmPackageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.GetNpmPackageRequest").msgclass
115
+ PythonPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.PythonPackage").msgclass
116
+ ListPythonPackagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListPythonPackagesRequest").msgclass
117
+ ListPythonPackagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListPythonPackagesResponse").msgclass
118
+ GetPythonPackageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.GetPythonPackageRequest").msgclass
44
119
  end
45
120
  end
46
121
  end
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/api/field_behavior_pb'
6
7
  require 'google/api/resource_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
@@ -24,6 +25,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
24
25
  optional :create_time, :message, 5, "google.protobuf.Timestamp"
25
26
  optional :update_time, :message, 6, "google.protobuf.Timestamp"
26
27
  optional :owner, :string, 7
28
+ optional :fetch_time, :message, 8, "google.protobuf.Timestamp"
27
29
  end
28
30
  add_message "google.devtools.artifactregistry.v1.ListFilesRequest" do
29
31
  optional :parent, :string, 1
@@ -13,6 +13,7 @@ require 'google/devtools/artifactregistry/v1/repository_pb'
13
13
  require 'google/devtools/artifactregistry/v1/settings_pb'
14
14
  require 'google/devtools/artifactregistry/v1/tag_pb'
15
15
  require 'google/devtools/artifactregistry/v1/version_pb'
16
+ require 'google/devtools/artifactregistry/v1/vpcsc_config_pb'
16
17
  require 'google/devtools/artifactregistry/v1/yum_artifact_pb'
17
18
  require 'google/iam/v1/iam_policy_pb'
18
19
  require 'google/iam/v1/policy_pb'
@@ -49,6 +49,18 @@ module Google
49
49
  rpc :ListDockerImages, ::Google::Cloud::ArtifactRegistry::V1::ListDockerImagesRequest, ::Google::Cloud::ArtifactRegistry::V1::ListDockerImagesResponse
50
50
  # Gets a docker image.
51
51
  rpc :GetDockerImage, ::Google::Cloud::ArtifactRegistry::V1::GetDockerImageRequest, ::Google::Cloud::ArtifactRegistry::V1::DockerImage
52
+ # Lists maven artifacts.
53
+ rpc :ListMavenArtifacts, ::Google::Cloud::ArtifactRegistry::V1::ListMavenArtifactsRequest, ::Google::Cloud::ArtifactRegistry::V1::ListMavenArtifactsResponse
54
+ # Gets a maven artifact.
55
+ rpc :GetMavenArtifact, ::Google::Cloud::ArtifactRegistry::V1::GetMavenArtifactRequest, ::Google::Cloud::ArtifactRegistry::V1::MavenArtifact
56
+ # Lists npm packages.
57
+ rpc :ListNpmPackages, ::Google::Cloud::ArtifactRegistry::V1::ListNpmPackagesRequest, ::Google::Cloud::ArtifactRegistry::V1::ListNpmPackagesResponse
58
+ # Gets a npm package.
59
+ rpc :GetNpmPackage, ::Google::Cloud::ArtifactRegistry::V1::GetNpmPackageRequest, ::Google::Cloud::ArtifactRegistry::V1::NpmPackage
60
+ # Lists python packages.
61
+ rpc :ListPythonPackages, ::Google::Cloud::ArtifactRegistry::V1::ListPythonPackagesRequest, ::Google::Cloud::ArtifactRegistry::V1::ListPythonPackagesResponse
62
+ # Gets a python package.
63
+ rpc :GetPythonPackage, ::Google::Cloud::ArtifactRegistry::V1::GetPythonPackageRequest, ::Google::Cloud::ArtifactRegistry::V1::PythonPackage
52
64
  # Imports Apt artifacts. The returned Operation will complete once the
53
65
  # resources are imported. Package, Version, and File resources are created
54
66
  # based on the imported artifacts. Imported artifacts that conflict with
@@ -110,6 +122,10 @@ module Google
110
122
  rpc :GetProjectSettings, ::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest, ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings
111
123
  # Updates the Settings for the Project.
112
124
  rpc :UpdateProjectSettings, ::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest, ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings
125
+ # Retrieves the VPCSC Config for the Project.
126
+ rpc :GetVPCSCConfig, ::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest, ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig
127
+ # Updates the VPCSC Config for the Project.
128
+ rpc :UpdateVPCSCConfig, ::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest, ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig
113
129
  end
114
130
 
115
131
  Stub = Service.rpc_stub_class
@@ -38,6 +38,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
38
38
  optional :name, :string, 1
39
39
  optional :force, :bool, 2
40
40
  end
41
+ add_message "google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata" do
42
+ repeated :failed_versions, :string, 2
43
+ end
41
44
  add_enum "google.devtools.artifactregistry.v1.VersionView" do
42
45
  value :VERSION_VIEW_UNSPECIFIED, 0
43
46
  value :BASIC, 1
@@ -55,6 +58,7 @@ module Google
55
58
  ListVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.ListVersionsResponse").msgclass
56
59
  GetVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.GetVersionRequest").msgclass
57
60
  DeleteVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.DeleteVersionRequest").msgclass
61
+ BatchDeleteVersionsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata").msgclass
58
62
  VersionView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.VersionView").enummodule
59
63
  end
60
64
  end
@@ -0,0 +1,42 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/devtools/artifactregistry/v1/vpcsc_config.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/protobuf/field_mask_pb'
9
+
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_file("google/devtools/artifactregistry/v1/vpcsc_config.proto", :syntax => :proto3) do
12
+ add_message "google.devtools.artifactregistry.v1.VPCSCConfig" do
13
+ optional :name, :string, 1
14
+ optional :vpcsc_policy, :enum, 2, "google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy"
15
+ end
16
+ add_enum "google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy" do
17
+ value :VPCSC_POLICY_UNSPECIFIED, 0
18
+ value :DENY, 1
19
+ value :ALLOW, 2
20
+ end
21
+ add_message "google.devtools.artifactregistry.v1.GetVPCSCConfigRequest" do
22
+ optional :name, :string, 1
23
+ end
24
+ add_message "google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest" do
25
+ optional :vpcsc_config, :message, 1, "google.devtools.artifactregistry.v1.VPCSCConfig"
26
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
27
+ end
28
+ end
29
+ end
30
+
31
+ module Google
32
+ module Cloud
33
+ module ArtifactRegistry
34
+ module V1
35
+ VPCSCConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.VPCSCConfig").msgclass
36
+ VPCSCConfig::VPCSCPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy").enummodule
37
+ GetVPCSCConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.GetVPCSCConfigRequest").msgclass
38
+ UpdateVPCSCConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest").msgclass
39
+ end
40
+ end
41
+ end
42
+ end