google-apis-artifactregistry_v1beta2 0.10.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21ad29ea77130d6759ce0353664f2185f044b81ce05f64f1ad5c3f8c16b67574
4
- data.tar.gz: 18d0a1b93780cc33bc9708d0057e45e098da67715ac4eb1da406923102e6be5e
3
+ metadata.gz: 07a07eeee0439e5e5fff7ae11f55c63e231123da049914f2efabe014fdcf6d59
4
+ data.tar.gz: b8504688635c903e216e14a38bdc80096971f22d7eb7fa30ad695a5e12a14a3f
5
5
  SHA512:
6
- metadata.gz: 07f459e56504c2d55df2a6203416caf6922658443f545c28e23e7198c785d2058941eae43971b35449da0a1f0bb2a5f89889e87d34360c4d7c4d1d5abb85d312
7
- data.tar.gz: cdc19f77ce6e32083b85cfd78aeb1e2e756676c1ee058b703163b6195d2ff5e763bf9a4a361a08afe5896bcf4b78401f8eb695eaf604bd6d02472b1342a9db4e
6
+ metadata.gz: b1501e9c2869e8ca45ab247bf3d0092b4917ebe4d5027f468197824397225cdfd2dd93178acc5aeda905ba3dc4305ad1ad443e9344c39d52cbe2699471eedd25
7
+ data.tar.gz: 6a834f4df02cfa9426bb0e0582cd6e4e2f137b0d60a1f8b0de2ce0bcea51ec872af8b608e2edcba49741dc328630527c58732d8dea8c9b4a98d30156992b38b6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-artifactregistry_v1beta2
2
2
 
3
+ ### v0.14.0 (2021-10-22)
4
+
5
+ * Regenerated from discovery document revision 20211015
6
+ * Unspecified changes
7
+
8
+ ### v0.13.0 (2021-10-11)
9
+
10
+ * Regenerated from discovery document revision 20211002
11
+
12
+ ### v0.12.0 (2021-10-01)
13
+
14
+ * Regenerated from discovery document revision 20210925
15
+
16
+ ### v0.11.0 (2021-09-01)
17
+
18
+ * Regenerated from discovery document revision 20210817
19
+
3
20
  ### v0.10.0 (2021-07-06)
4
21
 
5
22
  * Regenerated from discovery document revision 20210629
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Artifactregistry service in particular.)
67
67
 
@@ -74,7 +74,7 @@ module Google
74
74
  end
75
75
  end
76
76
 
77
- # Associates `members` with a `role`.
77
+ # Associates `members`, or principals, with a `role`.
78
78
  class Binding
79
79
  include Google::Apis::Core::Hashable
80
80
 
@@ -97,7 +97,7 @@ module Google
97
97
  # @return [Google::Apis::ArtifactregistryV1beta2::Expr]
98
98
  attr_accessor :condition
99
99
 
100
- # Specifies the identities requesting access for a Cloud Platform resource. `
100
+ # Specifies the principals requesting access for a Cloud Platform resource. `
101
101
  # members` can have the following values: * `allUsers`: A special identifier
102
102
  # that represents anyone who is on the internet; with or without a Google
103
103
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -127,8 +127,8 @@ module Google
127
127
  # @return [Array<String>]
128
128
  attr_accessor :members
129
129
 
130
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
131
- # , or `roles/owner`.
130
+ # Role that is assigned to the list of `members`, or principals. For example, `
131
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
132
132
  # Corresponds to the JSON property `role`
133
133
  # @return [String]
134
134
  attr_accessor :role
@@ -217,7 +217,7 @@ module Google
217
217
  end
218
218
 
219
219
  # Files store content that is potentially associated with Packages or Versions.
220
- class File
220
+ class GoogleDevtoolsArtifactregistryV1beta2File
221
221
  include Google::Apis::Core::Hashable
222
222
 
223
223
  # The time when the File was created.
@@ -499,7 +499,7 @@ module Google
499
499
 
500
500
  # The files returned.
501
501
  # Corresponds to the JSON property `files`
502
- # @return [Array<Google::Apis::ArtifactregistryV1beta2::File>]
502
+ # @return [Array<Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File>]
503
503
  attr_accessor :files
504
504
 
505
505
  # The token to retrieve the next page of files, or empty if there are no more
@@ -544,31 +544,6 @@ module Google
544
544
  end
545
545
  end
546
546
 
547
- # The response message for Operations.ListOperations.
548
- class ListOperationsResponse
549
- include Google::Apis::Core::Hashable
550
-
551
- # The standard List next-page token.
552
- # Corresponds to the JSON property `nextPageToken`
553
- # @return [String]
554
- attr_accessor :next_page_token
555
-
556
- # A list of operations that matches the specified filter in the request.
557
- # Corresponds to the JSON property `operations`
558
- # @return [Array<Google::Apis::ArtifactregistryV1beta2::Operation>]
559
- attr_accessor :operations
560
-
561
- def initialize(**args)
562
- update!(**args)
563
- end
564
-
565
- # Update properties of this object
566
- def update!(**args)
567
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
568
- @operations = args[:operations] if args.key?(:operations)
569
- end
570
- end
571
-
572
547
  # The response from listing packages.
573
548
  class ListPackagesResponse
574
549
  include Google::Apis::Core::Hashable
@@ -720,6 +695,33 @@ module Google
720
695
  end
721
696
  end
722
697
 
698
+ # MavenRepositoryConfig is maven related repository details. Provides additional
699
+ # configuration details for repositories of the maven format type.
700
+ class MavenRepositoryConfig
701
+ include Google::Apis::Core::Hashable
702
+
703
+ # The repository with this flag will allow publishing the same snapshot versions.
704
+ # Corresponds to the JSON property `allowSnapshotOverwrites`
705
+ # @return [Boolean]
706
+ attr_accessor :allow_snapshot_overwrites
707
+ alias_method :allow_snapshot_overwrites?, :allow_snapshot_overwrites
708
+
709
+ # Version policy defines the versions that the registry will accept.
710
+ # Corresponds to the JSON property `versionPolicy`
711
+ # @return [String]
712
+ attr_accessor :version_policy
713
+
714
+ def initialize(**args)
715
+ update!(**args)
716
+ end
717
+
718
+ # Update properties of this object
719
+ def update!(**args)
720
+ @allow_snapshot_overwrites = args[:allow_snapshot_overwrites] if args.key?(:allow_snapshot_overwrites)
721
+ @version_policy = args[:version_policy] if args.key?(:version_policy)
722
+ end
723
+ end
724
+
723
725
  # This resource represents a long-running operation that is the result of a
724
726
  # network API call.
725
727
  class Operation
@@ -824,37 +826,42 @@ module Google
824
826
 
825
827
  # An Identity and Access Management (IAM) policy, which specifies access
826
828
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
827
- # A `binding` binds one or more `members` to a single `role`. Members can be
828
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
829
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
830
- # role or a user-created custom role. For some types of Google Cloud resources,
831
- # a `binding` can also specify a `condition`, which is a logical expression that
832
- # allows access to a resource only if the expression evaluates to `true`. A
833
- # condition can add constraints based on attributes of the request, the resource,
834
- # or both. To learn which resources support conditions in their IAM policies,
835
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
836
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
837
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
838
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
839
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
840
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
841
- # title": "expirable access", "description": "Does not grant access after Sep
842
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
843
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
844
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
845
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
846
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
847
- # roles/resourcemanager.organizationViewer condition: title: expirable access
848
- # description: Does not grant access after Sep 2020 expression: request.time <
849
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
850
- # description of IAM and its features, see the [IAM documentation](https://cloud.
851
- # google.com/iam/docs/).
829
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
830
+ # Principals can be user accounts, service accounts, Google groups, and domains (
831
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
832
+ # an IAM predefined role or a user-created custom role. For some types of Google
833
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
834
+ # logical expression that allows access to a resource only if the expression
835
+ # evaluates to `true`. A condition can add constraints based on attributes of
836
+ # the request, the resource, or both. To learn which resources support
837
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
838
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
839
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
840
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
841
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
842
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
843
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
844
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
845
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
846
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
847
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
848
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
849
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
850
+ # access description: Does not grant access after Sep 2020 expression: request.
851
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
852
+ # a description of IAM and its features, see the [IAM documentation](https://
853
+ # cloud.google.com/iam/docs/).
852
854
  class Policy
853
855
  include Google::Apis::Core::Hashable
854
856
 
855
- # Associates a list of `members` to a `role`. Optionally, may specify a `
856
- # condition` that determines how and when the `bindings` are applied. Each of
857
- # the `bindings` must contain at least one member.
857
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
858
+ # specify a `condition` that determines how and when the `bindings` are applied.
859
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
860
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
861
+ # can be Google groups. Each occurrence of a principal counts towards these
862
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
863
+ # example.com`, and not to any other principal, then you can add another 1,450
864
+ # principals to the `bindings` in the `Policy`.
858
865
  # Corresponds to the JSON property `bindings`
859
866
  # @return [Array<Google::Apis::ArtifactregistryV1beta2::Binding>]
860
867
  attr_accessor :bindings
@@ -941,6 +948,12 @@ module Google
941
948
  # @return [Hash<String,String>]
942
949
  attr_accessor :labels
943
950
 
951
+ # MavenRepositoryConfig is maven related repository details. Provides additional
952
+ # configuration details for repositories of the maven format type.
953
+ # Corresponds to the JSON property `mavenConfig`
954
+ # @return [Google::Apis::ArtifactregistryV1beta2::MavenRepositoryConfig]
955
+ attr_accessor :maven_config
956
+
944
957
  # The name of the repository, for example: "projects/p1/locations/us-central1/
945
958
  # repositories/repo1".
946
959
  # Corresponds to the JSON property `name`
@@ -963,6 +976,7 @@ module Google
963
976
  @format = args[:format] if args.key?(:format)
964
977
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
965
978
  @labels = args[:labels] if args.key?(:labels)
979
+ @maven_config = args[:maven_config] if args.key?(:maven_config)
966
980
  @name = args[:name] if args.key?(:name)
967
981
  @update_time = args[:update_time] if args.key?(:update_time)
968
982
  end
@@ -974,31 +988,31 @@ module Google
974
988
 
975
989
  # An Identity and Access Management (IAM) policy, which specifies access
976
990
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
977
- # A `binding` binds one or more `members` to a single `role`. Members can be
978
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
979
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
980
- # role or a user-created custom role. For some types of Google Cloud resources,
981
- # a `binding` can also specify a `condition`, which is a logical expression that
982
- # allows access to a resource only if the expression evaluates to `true`. A
983
- # condition can add constraints based on attributes of the request, the resource,
984
- # or both. To learn which resources support conditions in their IAM policies,
985
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
986
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
987
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
988
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
989
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
990
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
991
- # title": "expirable access", "description": "Does not grant access after Sep
992
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
993
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
994
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
995
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
996
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
997
- # roles/resourcemanager.organizationViewer condition: title: expirable access
998
- # description: Does not grant access after Sep 2020 expression: request.time <
999
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1000
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1001
- # google.com/iam/docs/).
991
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
992
+ # Principals can be user accounts, service accounts, Google groups, and domains (
993
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
994
+ # an IAM predefined role or a user-created custom role. For some types of Google
995
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
996
+ # logical expression that allows access to a resource only if the expression
997
+ # evaluates to `true`. A condition can add constraints based on attributes of
998
+ # the request, the resource, or both. To learn which resources support
999
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1000
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1001
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1002
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1003
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1004
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1005
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1006
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1007
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1008
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1009
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1010
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1011
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1012
+ # access description: Does not grant access after Sep 2020 expression: request.
1013
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1014
+ # a description of IAM and its features, see the [IAM documentation](https://
1015
+ # cloud.google.com/iam/docs/).
1002
1016
  # Corresponds to the JSON property `policy`
1003
1017
  # @return [Google::Apis::ArtifactregistryV1beta2::Policy]
1004
1018
  attr_accessor :policy
@@ -1058,8 +1072,9 @@ module Google
1058
1072
  include Google::Apis::Core::Hashable
1059
1073
 
1060
1074
  # The name of the tag, for example: "projects/p1/locations/us-central1/
1061
- # repositories/repo1/packages/pkg1/tags/tag1". If the package or tag ID parts
1062
- # contain slashes, the slashes are escaped.
1075
+ # repositories/repo1/packages/pkg1/tags/tag1". If the package part contains
1076
+ # slashes, the slashes are escaped. The tag part can only have characters in [a-
1077
+ # zA-Z0-9\-._~:@], anything else must be URL encoded.
1063
1078
  # Corresponds to the JSON property `name`
1064
1079
  # @return [String]
1065
1080
  attr_accessor :name
@@ -1142,6 +1157,19 @@ module Google
1142
1157
  end
1143
1158
  end
1144
1159
 
1160
+ # The request to upload an artifact.
1161
+ class UploadAptArtifactRequest
1162
+ include Google::Apis::Core::Hashable
1163
+
1164
+ def initialize(**args)
1165
+ update!(**args)
1166
+ end
1167
+
1168
+ # Update properties of this object
1169
+ def update!(**args)
1170
+ end
1171
+ end
1172
+
1145
1173
  # The response of the completed artifact upload operation. This response is
1146
1174
  # contained in the Operation and available to users.
1147
1175
  class UploadAptArtifactResponse
@@ -1182,6 +1210,19 @@ module Google
1182
1210
  end
1183
1211
  end
1184
1212
 
1213
+ # The request to upload an artifact.
1214
+ class UploadYumArtifactRequest
1215
+ include Google::Apis::Core::Hashable
1216
+
1217
+ def initialize(**args)
1218
+ update!(**args)
1219
+ end
1220
+
1221
+ # Update properties of this object
1222
+ def update!(**args)
1223
+ end
1224
+ end
1225
+
1185
1226
  # The response of the completed artifact upload operation. This response is
1186
1227
  # contained in the Operation and available to users.
1187
1228
  class UploadYumArtifactResponse
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ArtifactregistryV1beta2
18
18
  # Version of the google-apis-artifactregistry_v1beta2 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210629"
25
+ REVISION = "20211015"
26
26
  end
27
27
  end
28
28
  end
@@ -46,7 +46,7 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class File
49
+ class GoogleDevtoolsArtifactregistryV1beta2File
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
@@ -118,12 +118,6 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class ListOperationsResponse
122
- class Representation < Google::Apis::Core::JsonRepresentation; end
123
-
124
- include Google::Apis::Core::JsonObjectSupport
125
- end
126
-
127
121
  class ListPackagesResponse
128
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
123
 
@@ -154,6 +148,12 @@ module Google
154
148
  include Google::Apis::Core::JsonObjectSupport
155
149
  end
156
150
 
151
+ class MavenRepositoryConfig
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
157
  class Operation
158
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
159
 
@@ -214,6 +214,12 @@ module Google
214
214
  include Google::Apis::Core::JsonObjectSupport
215
215
  end
216
216
 
217
+ class UploadAptArtifactRequest
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
217
223
  class UploadAptArtifactResponse
218
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
225
 
@@ -226,6 +232,12 @@ module Google
226
232
  include Google::Apis::Core::JsonObjectSupport
227
233
  end
228
234
 
235
+ class UploadYumArtifactRequest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
229
241
  class UploadYumArtifactResponse
230
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
243
 
@@ -282,7 +294,7 @@ module Google
282
294
  end
283
295
  end
284
296
 
285
- class File
297
+ class GoogleDevtoolsArtifactregistryV1beta2File
286
298
  # @private
287
299
  class Representation < Google::Apis::Core::JsonRepresentation
288
300
  property :create_time, as: 'createTime'
@@ -378,7 +390,7 @@ module Google
378
390
  class ListFilesResponse
379
391
  # @private
380
392
  class Representation < Google::Apis::Core::JsonRepresentation
381
- collection :files, as: 'files', class: Google::Apis::ArtifactregistryV1beta2::File, decorator: Google::Apis::ArtifactregistryV1beta2::File::Representation
393
+ collection :files, as: 'files', class: Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File, decorator: Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File::Representation
382
394
 
383
395
  property :next_page_token, as: 'nextPageToken'
384
396
  end
@@ -393,15 +405,6 @@ module Google
393
405
  end
394
406
  end
395
407
 
396
- class ListOperationsResponse
397
- # @private
398
- class Representation < Google::Apis::Core::JsonRepresentation
399
- property :next_page_token, as: 'nextPageToken'
400
- collection :operations, as: 'operations', class: Google::Apis::ArtifactregistryV1beta2::Operation, decorator: Google::Apis::ArtifactregistryV1beta2::Operation::Representation
401
-
402
- end
403
- end
404
-
405
408
  class ListPackagesResponse
406
409
  # @private
407
410
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -449,6 +452,14 @@ module Google
449
452
  end
450
453
  end
451
454
 
455
+ class MavenRepositoryConfig
456
+ # @private
457
+ class Representation < Google::Apis::Core::JsonRepresentation
458
+ property :allow_snapshot_overwrites, as: 'allowSnapshotOverwrites'
459
+ property :version_policy, as: 'versionPolicy'
460
+ end
461
+ end
462
+
452
463
  class Operation
453
464
  # @private
454
465
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -489,6 +500,8 @@ module Google
489
500
  property :format, as: 'format'
490
501
  property :kms_key_name, as: 'kmsKeyName'
491
502
  hash :labels, as: 'labels'
503
+ property :maven_config, as: 'mavenConfig', class: Google::Apis::ArtifactregistryV1beta2::MavenRepositoryConfig, decorator: Google::Apis::ArtifactregistryV1beta2::MavenRepositoryConfig::Representation
504
+
492
505
  property :name, as: 'name'
493
506
  property :update_time, as: 'updateTime'
494
507
  end
@@ -541,6 +554,12 @@ module Google
541
554
  end
542
555
  end
543
556
 
557
+ class UploadAptArtifactRequest
558
+ # @private
559
+ class Representation < Google::Apis::Core::JsonRepresentation
560
+ end
561
+ end
562
+
544
563
  class UploadAptArtifactResponse
545
564
  # @private
546
565
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -557,6 +576,12 @@ module Google
557
576
  end
558
577
  end
559
578
 
579
+ class UploadYumArtifactRequest
580
+ # @private
581
+ class Representation < Google::Apis::Core::JsonRepresentation
582
+ end
583
+ end
584
+
560
585
  class UploadYumArtifactResponse
561
586
  # @private
562
587
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -154,52 +154,6 @@ module Google
154
154
  execute_or_queue_command(command, &block)
155
155
  end
156
156
 
157
- # Lists operations that match the specified filter in the request. If the server
158
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
159
- # binding allows API services to override the binding to use different resource
160
- # name schemes, such as `users/*/operations`. To override the binding, API
161
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
162
- # service configuration. For backwards compatibility, the default name includes
163
- # the operations collection id, however overriding users must ensure the name
164
- # binding is the parent resource, without the operations collection id.
165
- # @param [String] name
166
- # The name of the operation's parent resource.
167
- # @param [String] filter
168
- # The standard list filter.
169
- # @param [Fixnum] page_size
170
- # The standard list page size.
171
- # @param [String] page_token
172
- # The standard list page token.
173
- # @param [String] fields
174
- # Selector specifying which fields to include in a partial response.
175
- # @param [String] quota_user
176
- # Available to use for quota purposes for server-side applications. Can be any
177
- # arbitrary string assigned to a user, but should not exceed 40 characters.
178
- # @param [Google::Apis::RequestOptions] options
179
- # Request-specific options
180
- #
181
- # @yield [result, err] Result & error if block supplied
182
- # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::ListOperationsResponse] parsed result object
183
- # @yieldparam err [StandardError] error object if request failed
184
- #
185
- # @return [Google::Apis::ArtifactregistryV1beta2::ListOperationsResponse]
186
- #
187
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
188
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
189
- # @raise [Google::Apis::AuthorizationError] Authorization is required
190
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
191
- command = make_simple_command(:get, 'v1beta2/{+name}/operations', options)
192
- command.response_representation = Google::Apis::ArtifactregistryV1beta2::ListOperationsResponse::Representation
193
- command.response_class = Google::Apis::ArtifactregistryV1beta2::ListOperationsResponse
194
- command.params['name'] = name unless name.nil?
195
- command.query['filter'] = filter unless filter.nil?
196
- command.query['pageSize'] = page_size unless page_size.nil?
197
- command.query['pageToken'] = page_token unless page_token.nil?
198
- command.query['fields'] = fields unless fields.nil?
199
- command.query['quotaUser'] = quota_user unless quota_user.nil?
200
- execute_or_queue_command(command, &block)
201
- end
202
-
203
157
  # Creates a repository. The returned Operation will finish once the repository
204
158
  # has been created. Its response will be the created Repository.
205
159
  # @param [String] parent
@@ -343,7 +297,7 @@ module Google
343
297
  # @param [String] parent
344
298
  # The name of the parent resource whose repositories will be listed.
345
299
  # @param [Fixnum] page_size
346
- # The maximum number of repositories to return. Maximum page size is 10,000.
300
+ # The maximum number of repositories to return. Maximum page size is 1,000.
347
301
  # @param [String] page_token
348
302
  # The next_page_token value returned from a previous list request, if any.
349
303
  # @param [String] fields
@@ -518,6 +472,52 @@ module Google
518
472
  execute_or_queue_command(command, &block)
519
473
  end
520
474
 
475
+ # Directly uploads an Apt artifact. The returned Operation will complete once
476
+ # the resources are uploaded. Package, Version, and File resources are created
477
+ # based on the imported artifact. Imported artifacts that conflict with existing
478
+ # resources are ignored.
479
+ # @param [String] parent
480
+ # The name of the parent resource where the artifacts will be uploaded.
481
+ # @param [Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactRequest] upload_apt_artifact_request_object
482
+ # @param [String] fields
483
+ # Selector specifying which fields to include in a partial response.
484
+ # @param [String] quota_user
485
+ # Available to use for quota purposes for server-side applications. Can be any
486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
487
+ # @param [IO, String] upload_source
488
+ # IO stream or filename containing content to upload
489
+ # @param [String] content_type
490
+ # Content type of the uploaded content.
491
+ # @param [Google::Apis::RequestOptions] options
492
+ # Request-specific options
493
+ #
494
+ # @yield [result, err] Result & error if block supplied
495
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse] parsed result object
496
+ # @yieldparam err [StandardError] error object if request failed
497
+ #
498
+ # @return [Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse]
499
+ #
500
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
501
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
502
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
503
+ def upload_aptartifact_apt_artifact(parent, upload_apt_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
504
+ if upload_source.nil?
505
+ command = make_simple_command(:post, 'v1beta2/{+parent}/aptArtifacts:create', options)
506
+ else
507
+ command = make_upload_command(:post, 'v1beta2/{+parent}/aptArtifacts:create', options)
508
+ command.upload_source = upload_source
509
+ command.upload_content_type = content_type
510
+ end
511
+ command.request_representation = Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactRequest::Representation
512
+ command.request_object = upload_apt_artifact_request_object
513
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse::Representation
514
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::UploadAptArtifactMediaResponse
515
+ command.params['parent'] = parent unless parent.nil?
516
+ command.query['fields'] = fields unless fields.nil?
517
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
518
+ execute_or_queue_command(command, &block)
519
+ end
520
+
521
521
  # Gets a file.
522
522
  # @param [String] name
523
523
  # The name of the file to retrieve.
@@ -530,18 +530,18 @@ module Google
530
530
  # Request-specific options
531
531
  #
532
532
  # @yield [result, err] Result & error if block supplied
533
- # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::File] parsed result object
533
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File] parsed result object
534
534
  # @yieldparam err [StandardError] error object if request failed
535
535
  #
536
- # @return [Google::Apis::ArtifactregistryV1beta2::File]
536
+ # @return [Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File]
537
537
  #
538
538
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
539
539
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
540
540
  # @raise [Google::Apis::AuthorizationError] Authorization is required
541
541
  def get_project_location_repository_file(name, fields: nil, quota_user: nil, options: nil, &block)
542
542
  command = make_simple_command(:get, 'v1beta2/{+name}', options)
543
- command.response_representation = Google::Apis::ArtifactregistryV1beta2::File::Representation
544
- command.response_class = Google::Apis::ArtifactregistryV1beta2::File
543
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File::Representation
544
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::GoogleDevtoolsArtifactregistryV1beta2File
545
545
  command.params['name'] = name unless name.nil?
546
546
  command.query['fields'] = fields unless fields.nil?
547
547
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -657,7 +657,7 @@ module Google
657
657
  # @param [String] parent
658
658
  # The name of the parent resource whose packages will be listed.
659
659
  # @param [Fixnum] page_size
660
- # The maximum number of packages to return. Maximum page size is 10,000.
660
+ # The maximum number of packages to return. Maximum page size is 1,000.
661
661
  # @param [String] page_token
662
662
  # The next_page_token value returned from a previous list request, if any.
663
663
  # @param [String] fields
@@ -831,8 +831,9 @@ module Google
831
831
  # Updates a tag.
832
832
  # @param [String] name
833
833
  # The name of the tag, for example: "projects/p1/locations/us-central1/
834
- # repositories/repo1/packages/pkg1/tags/tag1". If the package or tag ID parts
835
- # contain slashes, the slashes are escaped.
834
+ # repositories/repo1/packages/pkg1/tags/tag1". If the package part contains
835
+ # slashes, the slashes are escaped. The tag part can only have characters in [a-
836
+ # zA-Z0-9\-._~:@], anything else must be URL encoded.
836
837
  # @param [Google::Apis::ArtifactregistryV1beta2::Tag] tag_object
837
838
  # @param [String] update_mask
838
839
  # The update mask applies to the resource. For the `FieldMask` definition, see
@@ -942,7 +943,7 @@ module Google
942
943
  # @param [String] order_by
943
944
  # Optional. Sorting field and order
944
945
  # @param [Fixnum] page_size
945
- # The maximum number of versions to return. Maximum page size is 10,000.
946
+ # The maximum number of versions to return. Maximum page size is 1,000.
946
947
  # @param [String] page_token
947
948
  # The next_page_token value returned from a previous list request, if any.
948
949
  # @param [String] view
@@ -1013,6 +1014,52 @@ module Google
1013
1014
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1014
1015
  execute_or_queue_command(command, &block)
1015
1016
  end
1017
+
1018
+ # Directly uploads a Yum artifact. The returned Operation will complete once the
1019
+ # resources are uploaded. Package, Version, and File resources are created based
1020
+ # on the imported artifact. Imported artifacts that conflict with existing
1021
+ # resources are ignored.
1022
+ # @param [String] parent
1023
+ # The name of the parent resource where the artifacts will be uploaded.
1024
+ # @param [Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactRequest] upload_yum_artifact_request_object
1025
+ # @param [String] fields
1026
+ # Selector specifying which fields to include in a partial response.
1027
+ # @param [String] quota_user
1028
+ # Available to use for quota purposes for server-side applications. Can be any
1029
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1030
+ # @param [IO, String] upload_source
1031
+ # IO stream or filename containing content to upload
1032
+ # @param [String] content_type
1033
+ # Content type of the uploaded content.
1034
+ # @param [Google::Apis::RequestOptions] options
1035
+ # Request-specific options
1036
+ #
1037
+ # @yield [result, err] Result & error if block supplied
1038
+ # @yieldparam result [Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse] parsed result object
1039
+ # @yieldparam err [StandardError] error object if request failed
1040
+ #
1041
+ # @return [Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse]
1042
+ #
1043
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1044
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1045
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1046
+ def upload_yumartifact_yum_artifact(parent, upload_yum_artifact_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
1047
+ if upload_source.nil?
1048
+ command = make_simple_command(:post, 'v1beta2/{+parent}/yumArtifacts:create', options)
1049
+ else
1050
+ command = make_upload_command(:post, 'v1beta2/{+parent}/yumArtifacts:create', options)
1051
+ command.upload_source = upload_source
1052
+ command.upload_content_type = content_type
1053
+ end
1054
+ command.request_representation = Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactRequest::Representation
1055
+ command.request_object = upload_yum_artifact_request_object
1056
+ command.response_representation = Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse::Representation
1057
+ command.response_class = Google::Apis::ArtifactregistryV1beta2::UploadYumArtifactMediaResponse
1058
+ command.params['parent'] = parent unless parent.nil?
1059
+ command.query['fields'] = fields unless fields.nil?
1060
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1061
+ execute_or_queue_command(command, &block)
1062
+ end
1016
1063
 
1017
1064
  protected
1018
1065
 
@@ -30,10 +30,10 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1beta2'
32
32
 
33
- # See, edit, configure, and delete your Google Cloud Platform data
33
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
 
36
- # View your data across Google Cloud Platform services
36
+ # View your data across Google Cloud services and see the email address of your Google Account
37
37
  AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
38
38
  end
39
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-artifactregistry_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-artifactregistry_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1beta2/v0.10.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-artifactregistry_v1beta2
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1beta2/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-artifactregistry_v1beta2/v0.14.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-artifactregistry_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: