google-cloud-artifact_registry-v1beta2 0.3.6 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -8
  3. data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/client.rb +419 -17
  4. data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/operations.rb +3 -0
  5. data/lib/google/cloud/artifact_registry/v1beta2/artifact_registry/paths.rb +54 -0
  6. data/lib/google/cloud/artifact_registry/v1beta2/version.rb +1 -1
  7. data/lib/google/cloud/artifact_registry/v1beta2.rb +2 -0
  8. data/lib/google/devtools/artifactregistry/v1beta2/apt_artifact_pb.rb +66 -0
  9. data/lib/google/devtools/artifactregistry/v1beta2/file_pb.rb +4 -2
  10. data/lib/google/devtools/artifactregistry/v1beta2/package_pb.rb +2 -1
  11. data/lib/google/devtools/artifactregistry/v1beta2/repository_pb.rb +23 -2
  12. data/lib/google/devtools/artifactregistry/v1beta2/service_pb.rb +5 -1
  13. data/lib/google/devtools/artifactregistry/v1beta2/service_services_pb.rb +14 -0
  14. data/lib/google/devtools/artifactregistry/v1beta2/settings_pb.rb +24 -2
  15. data/lib/google/devtools/artifactregistry/v1beta2/tag_pb.rb +4 -2
  16. data/lib/google/devtools/artifactregistry/v1beta2/version_pb.rb +8 -2
  17. data/lib/google/devtools/artifactregistry/v1beta2/yum_artifact_pb.rb +64 -0
  18. data/proto_docs/google/devtools/artifactregistry/v1beta2/apt_artifact.rb +118 -0
  19. data/proto_docs/google/devtools/artifactregistry/v1beta2/file.rb +7 -2
  20. data/proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb +53 -6
  21. data/proto_docs/google/devtools/artifactregistry/v1beta2/settings.rb +80 -0
  22. data/proto_docs/google/devtools/artifactregistry/v1beta2/tag.rb +6 -2
  23. data/proto_docs/google/devtools/artifactregistry/v1beta2/version.rb +12 -2
  24. data/proto_docs/google/devtools/artifactregistry/v1beta2/yum_artifact.rb +110 -0
  25. data/proto_docs/google/iam/v1/iam_policy.rb +8 -1
  26. data/proto_docs/google/iam/v1/options.rb +14 -4
  27. data/proto_docs/google/iam/v1/policy.rb +208 -38
  28. data/proto_docs/google/protobuf/any.rb +3 -3
  29. data/proto_docs/google/protobuf/struct.rb +96 -0
  30. metadata +22 -22
@@ -22,6 +22,10 @@ module Google
22
22
  module ArtifactRegistry
23
23
  module V1beta2
24
24
  # A Repository for storing artifacts with a specific format.
25
+ # @!attribute [rw] maven_config
26
+ # @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository::MavenRepositoryConfig]
27
+ # Maven repository config contains repository level configuration
28
+ # for the repositories of maven type.
25
29
  # @!attribute [rw] name
26
30
  # @return [::String]
27
31
  # The name of the repository, for example:
@@ -55,6 +59,35 @@ module Google
55
59
  include ::Google::Protobuf::MessageExts
56
60
  extend ::Google::Protobuf::MessageExts::ClassMethods
57
61
 
62
+ # MavenRepositoryConfig is maven related repository details.
63
+ # Provides additional configuration details for repositories of the maven
64
+ # format type.
65
+ # @!attribute [rw] allow_snapshot_overwrites
66
+ # @return [::Boolean]
67
+ # The repository with this flag will allow publishing
68
+ # the same snapshot versions.
69
+ # @!attribute [rw] version_policy
70
+ # @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository::MavenRepositoryConfig::VersionPolicy]
71
+ # Version policy defines the versions that the registry will accept.
72
+ class MavenRepositoryConfig
73
+ include ::Google::Protobuf::MessageExts
74
+ extend ::Google::Protobuf::MessageExts::ClassMethods
75
+
76
+ # VersionPolicy is the version policy for the repository.
77
+ module VersionPolicy
78
+ # VERSION_POLICY_UNSPECIFIED - the version policy is not defined.
79
+ # When the version policy is not defined, no validation is performed
80
+ # for the versions.
81
+ VERSION_POLICY_UNSPECIFIED = 0
82
+
83
+ # RELEASE - repository will accept only Release versions.
84
+ RELEASE = 1
85
+
86
+ # SNAPSHOT - repository will accept only Snapshot versions.
87
+ SNAPSHOT = 2
88
+ end
89
+ end
90
+
58
91
  # @!attribute [rw] key
59
92
  # @return [::String]
60
93
  # @!attribute [rw] value
@@ -71,17 +104,31 @@ module Google
71
104
 
72
105
  # Docker package format.
73
106
  DOCKER = 1
107
+
108
+ # Maven package format.
109
+ MAVEN = 2
110
+
111
+ # NPM package format.
112
+ NPM = 3
113
+
114
+ # APT package format.
115
+ APT = 5
116
+
117
+ # YUM package format.
118
+ YUM = 6
119
+
120
+ # Python package format.
121
+ PYTHON = 8
74
122
  end
75
123
  end
76
124
 
77
125
  # The request to list repositories.
78
126
  # @!attribute [rw] parent
79
127
  # @return [::String]
80
- # The name of the parent resource whose repositories will be listed.
128
+ # Required. The name of the parent resource whose repositories will be listed.
81
129
  # @!attribute [rw] page_size
82
130
  # @return [::Integer]
83
- # The maximum number of repositories to return.
84
- # Maximum page size is 10,000.
131
+ # The maximum number of repositories to return. Maximum page size is 1,000.
85
132
  # @!attribute [rw] page_token
86
133
  # @return [::String]
87
134
  # The next_page_token value returned from a previous list request, if any.
@@ -106,7 +153,7 @@ module Google
106
153
  # The request to retrieve a repository.
107
154
  # @!attribute [rw] name
108
155
  # @return [::String]
109
- # The name of the repository to retrieve.
156
+ # Required. The name of the repository to retrieve.
110
157
  class GetRepositoryRequest
111
158
  include ::Google::Protobuf::MessageExts
112
159
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -115,7 +162,7 @@ module Google
115
162
  # The request to create a new repository.
116
163
  # @!attribute [rw] parent
117
164
  # @return [::String]
118
- # The name of the parent resource where the repository will be created.
165
+ # Required. The name of the parent resource where the repository will be created.
119
166
  # @!attribute [rw] repository_id
120
167
  # @return [::String]
121
168
  # The repository id to use for this repository.
@@ -144,7 +191,7 @@ module Google
144
191
  # The request to delete a repository.
145
192
  # @!attribute [rw] name
146
193
  # @return [::String]
147
- # The name of the repository to delete.
194
+ # Required. The name of the repository to delete.
148
195
  class DeleteRepositoryRequest
149
196
  include ::Google::Protobuf::MessageExts
150
197
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,80 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module ArtifactRegistry
23
+ module V1beta2
24
+ # The Artifact Registry settings that apply to a Project.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # The name of the project's settings.
28
+ #
29
+ # Always of the form:
30
+ # projects/\\{project-id}/projectSettings
31
+ #
32
+ # In update request: never set
33
+ # In response: always set
34
+ # @!attribute [rw] legacy_redirection_state
35
+ # @return [::Google::Cloud::ArtifactRegistry::V1beta2::ProjectSettings::RedirectionState]
36
+ # The redirection state of the legacy repositories in this project.
37
+ class ProjectSettings
38
+ include ::Google::Protobuf::MessageExts
39
+ extend ::Google::Protobuf::MessageExts::ClassMethods
40
+
41
+ # The possible redirection states for legacy repositories.
42
+ module RedirectionState
43
+ # No redirection status has been set.
44
+ REDIRECTION_STATE_UNSPECIFIED = 0
45
+
46
+ # Redirection is disabled.
47
+ REDIRECTION_FROM_GCR_IO_DISABLED = 1
48
+
49
+ # Redirection is enabled.
50
+ REDIRECTION_FROM_GCR_IO_ENABLED = 2
51
+
52
+ # Redirection is enabled, and has been finalized so cannot be reverted.
53
+ REDIRECTION_FROM_GCR_IO_FINALIZED = 3
54
+ end
55
+ end
56
+
57
+ # Gets the redirection status for a project.
58
+ # @!attribute [rw] name
59
+ # @return [::String]
60
+ # Required. The name of the projectSettings resource.
61
+ class GetProjectSettingsRequest
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
+ end
65
+
66
+ # Sets the settings of the project.
67
+ # @!attribute [rw] project_settings
68
+ # @return [::Google::Cloud::ArtifactRegistry::V1beta2::ProjectSettings]
69
+ # The project settings.
70
+ # @!attribute [rw] update_mask
71
+ # @return [::Google::Protobuf::FieldMask]
72
+ # Field mask to support partial updates.
73
+ class UpdateProjectSettingsRequest
74
+ include ::Google::Protobuf::MessageExts
75
+ extend ::Google::Protobuf::MessageExts::ClassMethods
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
@@ -27,10 +27,15 @@ module Google
27
27
  # @return [::String]
28
28
  # The name of the tag, for example:
29
29
  # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1".
30
+ # If the package part contains slashes, the slashes are escaped.
31
+ # The tag part can only have characters in [a-zA-Z0-9\-._~:@], anything else
32
+ # must be URL encoded.
30
33
  # @!attribute [rw] version
31
34
  # @return [::String]
32
35
  # The name of the version the tag refers to, for example:
33
36
  # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811"
37
+ # If the package or version ID parts contain slashes, the slashes are
38
+ # escaped.
34
39
  class Tag
35
40
  include ::Google::Protobuf::MessageExts
36
41
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -53,8 +58,7 @@ module Google
53
58
  # --> Tags that are applied to the version `1.0` in package `pkg1`.
54
59
  # @!attribute [rw] page_size
55
60
  # @return [::Integer]
56
- # The maximum number of tags to return.
57
- # Maximum page size is 10,000.
61
+ # The maximum number of tags to return. Maximum page size is 10,000.
58
62
  # @!attribute [rw] page_token
59
63
  # @return [::String]
60
64
  # The next_page_token value returned from a previous list request, if any.
@@ -28,6 +28,8 @@ module Google
28
28
  # @return [::String]
29
29
  # The name of the version, for example:
30
30
  # "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1".
31
+ # If the package or version ID parts contain slashes, the slashes are
32
+ # escaped.
31
33
  # @!attribute [rw] description
32
34
  # @return [::String]
33
35
  # Optional. Description of the version, as specified in its metadata.
@@ -41,6 +43,12 @@ module Google
41
43
  # @return [::Array<::Google::Cloud::ArtifactRegistry::V1beta2::Tag>]
42
44
  # Output only. A list of related tags. Will contain up to 100 tags that
43
45
  # reference this version.
46
+ # @!attribute [r] metadata
47
+ # @return [::Google::Protobuf::Struct]
48
+ # Output only. Repository-specific Metadata stored against this version.
49
+ # The fields returned are defined by the underlying repository-specific
50
+ # resource. Currently, the only resource in use is
51
+ # [DockerImage][google.devtools.artifactregistry.v1.DockerImage]
44
52
  class Version
45
53
  include ::Google::Protobuf::MessageExts
46
54
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -52,14 +60,16 @@ module Google
52
60
  # The name of the parent resource whose versions will be listed.
53
61
  # @!attribute [rw] page_size
54
62
  # @return [::Integer]
55
- # The maximum number of versions to return.
56
- # Maximum page size is 10,000.
63
+ # The maximum number of versions to return. Maximum page size is 1,000.
57
64
  # @!attribute [rw] page_token
58
65
  # @return [::String]
59
66
  # The next_page_token value returned from a previous list request, if any.
60
67
  # @!attribute [rw] view
61
68
  # @return [::Google::Cloud::ArtifactRegistry::V1beta2::VersionView]
62
69
  # The view that should be returned in the response.
70
+ # @!attribute [rw] order_by
71
+ # @return [::String]
72
+ # Optional. The field to order the results by.
63
73
  class ListVersionsRequest
64
74
  include ::Google::Protobuf::MessageExts
65
75
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,110 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module ArtifactRegistry
23
+ module V1beta2
24
+ # A detailed representation of a Yum artifact.
25
+ # @!attribute [r] name
26
+ # @return [::String]
27
+ # Output only. The Artifact Registry resource name of the artifact.
28
+ # @!attribute [r] package_name
29
+ # @return [::String]
30
+ # Output only. The yum package name of the artifact.
31
+ # @!attribute [r] package_type
32
+ # @return [::Google::Cloud::ArtifactRegistry::V1beta2::YumArtifact::PackageType]
33
+ # Output only. An artifact is a binary or source package.
34
+ # @!attribute [r] architecture
35
+ # @return [::String]
36
+ # Output only. Operating system architecture of the artifact.
37
+ class YumArtifact
38
+ include ::Google::Protobuf::MessageExts
39
+ extend ::Google::Protobuf::MessageExts::ClassMethods
40
+
41
+ # Package type is either binary or source.
42
+ module PackageType
43
+ # Package type is not specified.
44
+ PACKAGE_TYPE_UNSPECIFIED = 0
45
+
46
+ # Binary package (.rpm).
47
+ BINARY = 1
48
+
49
+ # Source package (.srpm).
50
+ SOURCE = 2
51
+ end
52
+ end
53
+
54
+ # Google Cloud Storage location where the artifacts currently reside.
55
+ # @!attribute [rw] uris
56
+ # @return [::Array<::String>]
57
+ # Cloud Storage paths URI (e.g., gs://my_bucket//my_object).
58
+ # @!attribute [rw] use_wildcards
59
+ # @return [::Boolean]
60
+ # Supports URI wildcards for matching multiple objects from a single URI.
61
+ class ImportYumArtifactsGcsSource
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
+ end
65
+
66
+ # The request to import new yum artifacts.
67
+ # @!attribute [rw] gcs_source
68
+ # @return [::Google::Cloud::ArtifactRegistry::V1beta2::ImportYumArtifactsGcsSource]
69
+ # Google Cloud Storage location where input content is located.
70
+ # @!attribute [rw] parent
71
+ # @return [::String]
72
+ # The name of the parent resource where the artifacts will be imported.
73
+ class ImportYumArtifactsRequest
74
+ include ::Google::Protobuf::MessageExts
75
+ extend ::Google::Protobuf::MessageExts::ClassMethods
76
+ end
77
+
78
+ # Error information explaining why a package was not imported.
79
+ # @!attribute [rw] gcs_source
80
+ # @return [::Google::Cloud::ArtifactRegistry::V1beta2::ImportYumArtifactsGcsSource]
81
+ # Google Cloud Storage location requested.
82
+ # @!attribute [rw] error
83
+ # @return [::Google::Rpc::Status]
84
+ # The detailed error status.
85
+ class ImportYumArtifactsErrorInfo
86
+ include ::Google::Protobuf::MessageExts
87
+ extend ::Google::Protobuf::MessageExts::ClassMethods
88
+ end
89
+
90
+ # The response message from importing YUM artifacts.
91
+ # @!attribute [rw] yum_artifacts
92
+ # @return [::Array<::Google::Cloud::ArtifactRegistry::V1beta2::YumArtifact>]
93
+ # The yum artifacts imported.
94
+ # @!attribute [rw] errors
95
+ # @return [::Array<::Google::Cloud::ArtifactRegistry::V1beta2::ImportYumArtifactsErrorInfo>]
96
+ # Detailed error info for artifacts that were not imported.
97
+ class ImportYumArtifactsResponse
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
+ end
101
+
102
+ # The operation metadata for importing artifacts.
103
+ class ImportYumArtifactsMetadata
104
+ include ::Google::Protobuf::MessageExts
105
+ extend ::Google::Protobuf::MessageExts::ClassMethods
106
+ end
107
+ end
108
+ end
109
+ end
110
+ end
@@ -31,6 +31,13 @@ module Google
31
31
  # the policy is limited to a few 10s of KB. An empty policy is a
32
32
  # valid policy but certain Cloud Platform services (such as Projects)
33
33
  # might reject them.
34
+ # @!attribute [rw] update_mask
35
+ # @return [::Google::Protobuf::FieldMask]
36
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
37
+ # the fields in the mask will be modified. If no mask is provided, the
38
+ # following default mask is used:
39
+ #
40
+ # `paths: "bindings, etag"`
34
41
  class SetIamPolicyRequest
35
42
  include ::Google::Protobuf::MessageExts
36
43
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -44,7 +51,7 @@ module Google
44
51
  # @!attribute [rw] options
45
52
  # @return [::Google::Iam::V1::GetPolicyOptions]
46
53
  # OPTIONAL: A `GetPolicyOptions` object for specifying options to
47
- # `GetIamPolicy`. This field is only used by Cloud IAM.
54
+ # `GetIamPolicy`.
48
55
  class GetIamPolicyRequest
49
56
  include ::Google::Protobuf::MessageExts
50
57
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -23,14 +23,24 @@ module Google
23
23
  # Encapsulates settings provided to GetIamPolicy.
24
24
  # @!attribute [rw] requested_policy_version
25
25
  # @return [::Integer]
26
- # Optional. The policy format version to be returned.
26
+ # Optional. The maximum policy version that will be used to format the
27
+ # policy.
27
28
  #
28
29
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
29
30
  # rejected.
30
31
  #
31
- # Requests for policies with any conditional bindings must specify version 3.
32
- # Policies without any conditional bindings may specify any valid value or
33
- # leave the field unset.
32
+ # Requests for policies with any conditional role bindings must specify
33
+ # version 3. Policies with no conditional role bindings may specify any valid
34
+ # value or leave the field unset.
35
+ #
36
+ # The policy in the response might use the policy version that you specified,
37
+ # or it might use a lower policy version. For example, if you specify version
38
+ # 3, but the policy has no conditional role bindings, the response uses
39
+ # version 1.
40
+ #
41
+ # To learn which resources support conditions in their IAM policies, see the
42
+ # [IAM
43
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
34
44
  class GetPolicyOptions
35
45
  include ::Google::Protobuf::MessageExts
36
46
  extend ::Google::Protobuf::MessageExts::ClassMethods