google-cloud-artifact_registry-v1 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +1750 -288
  3. data/lib/google/cloud/artifact_registry/v1/artifact_registry/operations.rb +3 -10
  4. data/lib/google/cloud/artifact_registry/v1/artifact_registry/paths.rb +42 -0
  5. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/client.rb +1643 -272
  6. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/operations.rb +3 -10
  7. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/service_stub.rb +804 -31
  8. data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
  9. data/lib/google/devtools/artifactregistry/v1/attachment_pb.rb +52 -0
  10. data/lib/google/devtools/artifactregistry/v1/file_pb.rb +5 -1
  11. data/lib/google/devtools/artifactregistry/v1/generic_pb.rb +47 -0
  12. data/lib/google/devtools/artifactregistry/v1/package_pb.rb +4 -1
  13. data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +11 -1
  14. data/lib/google/devtools/artifactregistry/v1/rule_pb.rb +57 -0
  15. data/lib/google/devtools/artifactregistry/v1/service_pb.rb +3 -1
  16. data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +31 -0
  17. data/lib/google/devtools/artifactregistry/v1/settings_pb.rb +1 -1
  18. data/lib/google/devtools/artifactregistry/v1/version_pb.rb +4 -1
  19. data/proto_docs/google/api/client.rb +20 -0
  20. data/proto_docs/google/devtools/artifactregistry/v1/artifact.rb +4 -4
  21. data/proto_docs/google/devtools/artifactregistry/v1/attachment.rb +152 -0
  22. data/proto_docs/google/devtools/artifactregistry/v1/file.rb +80 -7
  23. data/proto_docs/google/devtools/artifactregistry/v1/generic.rb +48 -0
  24. data/proto_docs/google/devtools/artifactregistry/v1/package.rb +76 -0
  25. data/proto_docs/google/devtools/artifactregistry/v1/repository.rb +188 -1
  26. data/proto_docs/google/devtools/artifactregistry/v1/rule.rb +149 -0
  27. data/proto_docs/google/devtools/artifactregistry/v1/settings.rb +10 -0
  28. data/proto_docs/google/devtools/artifactregistry/v1/tag.rb +23 -5
  29. data/proto_docs/google/devtools/artifactregistry/v1/version.rb +74 -1
  30. data/proto_docs/google/longrunning/operations.rb +19 -14
  31. metadata +9 -3
@@ -228,7 +228,7 @@ module Google
228
228
  # Required. The name of the parent resource whose docker images will be
229
229
  # listed.
230
230
  # @param page_size [::Integer]
231
- # The maximum number of artifacts to return.
231
+ # The maximum number of artifacts to return. Maximum page size is 1,000.
232
232
  # @param page_token [::String]
233
233
  # The next_page_token value returned from a previous list request, if any.
234
234
  # @param order_by [::String]
@@ -412,7 +412,7 @@ module Google
412
412
  # Required. The name of the parent resource whose maven artifacts will be
413
413
  # listed.
414
414
  # @param page_size [::Integer]
415
- # The maximum number of artifacts to return.
415
+ # The maximum number of artifacts to return. Maximum page size is 1,000.
416
416
  # @param page_token [::String]
417
417
  # The next_page_token value returned from a previous list request, if any.
418
418
  #
@@ -594,7 +594,7 @@ module Google
594
594
  # Required. The name of the parent resource whose npm packages will be
595
595
  # listed.
596
596
  # @param page_size [::Integer]
597
- # The maximum number of artifacts to return.
597
+ # The maximum number of artifacts to return. Maximum page size is 1,000.
598
598
  # @param page_token [::String]
599
599
  # The next_page_token value returned from a previous list request, if any.
600
600
  #
@@ -776,7 +776,7 @@ module Google
776
776
  # Required. The name of the parent resource whose python packages will be
777
777
  # listed.
778
778
  # @param page_size [::Integer]
779
- # The maximum number of artifacts to return.
779
+ # The maximum number of artifacts to return. Maximum page size is 1,000.
780
780
  # @param page_token [::String]
781
781
  # The next_page_token value returned from a previous list request, if any.
782
782
  #
@@ -1147,7 +1147,7 @@ module Google
1147
1147
  # @param options [::Gapic::CallOptions, ::Hash]
1148
1148
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1149
1149
  #
1150
- # @overload list_repositories(parent: nil, page_size: nil, page_token: nil)
1150
+ # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1151
1151
  # Pass arguments to `list_repositories` via keyword arguments. Note that at
1152
1152
  # least one keyword argument is required. To specify no parameters, or to keep all
1153
1153
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1159,6 +1159,28 @@ module Google
1159
1159
  # The maximum number of repositories to return. Maximum page size is 1,000.
1160
1160
  # @param page_token [::String]
1161
1161
  # The next_page_token value returned from a previous list request, if any.
1162
+ # @param filter [::String]
1163
+ # Optional. An expression for filtering the results of the request. Filter
1164
+ # rules are case insensitive. The fields eligible for filtering are:
1165
+ #
1166
+ # * `name`
1167
+ #
1168
+ # Examples of using a filter:
1169
+ #
1170
+ # To filter the results of your request to repositories with the name
1171
+ # `my-repo` in project `my-project` in the `us-central` region, append the
1172
+ # following filter expression to your request:
1173
+ #
1174
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo"`
1175
+ #
1176
+ # You can also use wildcards to match any number of characters before or
1177
+ # after the value:
1178
+ #
1179
+ # * `name="projects/my-project/locations/us-central1/repositories/my-*"`
1180
+ # * `name="projects/my-project/locations/us-central1/repositories/*repo"`
1181
+ # * `name="projects/my-project/locations/us-central1/repositories/*repo*"`
1182
+ # @param order_by [::String]
1183
+ # Optional. The field to order the results by.
1162
1184
  #
1163
1185
  # @yield [response, operation] Access the result along with the RPC operation
1164
1186
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Repository>]
@@ -1615,7 +1637,7 @@ module Google
1615
1637
  # @param options [::Gapic::CallOptions, ::Hash]
1616
1638
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1617
1639
  #
1618
- # @overload list_packages(parent: nil, page_size: nil, page_token: nil)
1640
+ # @overload list_packages(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1619
1641
  # Pass arguments to `list_packages` via keyword arguments. Note that at
1620
1642
  # least one keyword argument is required. To specify no parameters, or to keep all
1621
1643
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1626,6 +1648,54 @@ module Google
1626
1648
  # The maximum number of packages to return. Maximum page size is 1,000.
1627
1649
  # @param page_token [::String]
1628
1650
  # The next_page_token value returned from a previous list request, if any.
1651
+ # @param filter [::String]
1652
+ # Optional. An expression for filtering the results of the request. Filter
1653
+ # rules are case insensitive. The fields eligible for filtering are:
1654
+ #
1655
+ # * `name`
1656
+ # * `annotations`
1657
+ #
1658
+ # Examples of using a filter:
1659
+ #
1660
+ # To filter the results of your request to packages with the name
1661
+ # `my-package` in project `my-project` in the `us-central` region, in
1662
+ # repository `my-repo`, append the following filter expression to your
1663
+ # request:
1664
+ #
1665
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"`
1666
+ #
1667
+ # You can also use wildcards to match any number of characters before or
1668
+ # after the value:
1669
+ #
1670
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"`
1671
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"`
1672
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"`
1673
+ #
1674
+ # To filter the results of your request to packages with the annotation
1675
+ # key-value pair [`external_link`: `external_link_value`], append the
1676
+ # following filter expression to your request":
1677
+ #
1678
+ # * `"annotations.external_link:external_link_value"`
1679
+ #
1680
+ # To filter the results just for a specific annotation key `external_link`,
1681
+ # append the following filter expression to your request:
1682
+ #
1683
+ # * `"annotations.external_link"`
1684
+ #
1685
+ # If the annotation key or value contains special characters, you can escape
1686
+ # them by surrounding the value with backticks. For example, to filter the
1687
+ # results of your request to packages with the annotation key-value pair
1688
+ # [`external.link`:`https://example.com/my-package`], append the following
1689
+ # filter expression to your request:
1690
+ #
1691
+ # * `` "annotations.`external.link`:`https://example.com/my-package`" ``
1692
+ #
1693
+ # You can also filter with annotations with a wildcard to
1694
+ # match any number of characters before or after the value:
1695
+ #
1696
+ # * `` "annotations.*_link:`*example.com*`" ``
1697
+ # @param order_by [::String]
1698
+ # Optional. The field to order the results by.
1629
1699
  #
1630
1700
  # @yield [response, operation] Access the result along with the RPC operation
1631
1701
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Package>]
@@ -1891,7 +1961,7 @@ module Google
1891
1961
  # @param options [::Gapic::CallOptions, ::Hash]
1892
1962
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1893
1963
  #
1894
- # @overload list_versions(parent: nil, page_size: nil, page_token: nil, view: nil, order_by: nil)
1964
+ # @overload list_versions(parent: nil, page_size: nil, page_token: nil, view: nil, order_by: nil, filter: nil)
1895
1965
  # Pass arguments to `list_versions` via keyword arguments. Note that at
1896
1966
  # least one keyword argument is required. To specify no parameters, or to keep all
1897
1967
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1906,6 +1976,52 @@ module Google
1906
1976
  # The view that should be returned in the response.
1907
1977
  # @param order_by [::String]
1908
1978
  # Optional. The field to order the results by.
1979
+ # @param filter [::String]
1980
+ # Optional. An expression for filtering the results of the request. Filter
1981
+ # rules are case insensitive. The fields eligible for filtering are:
1982
+ #
1983
+ # * `name`
1984
+ # * `annotations`
1985
+ #
1986
+ # Examples of using a filter:
1987
+ #
1988
+ # To filter the results of your request to versions with the name
1989
+ # `my-version` in project `my-project` in the `us-central` region, in
1990
+ # repository `my-repo`, append the following filter expression to your
1991
+ # request:
1992
+ #
1993
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"`
1994
+ #
1995
+ # You can also use wildcards to match any number of characters before or
1996
+ # after the value:
1997
+ #
1998
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"`
1999
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"`
2000
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"`
2001
+ #
2002
+ # To filter the results of your request to versions with the annotation
2003
+ # key-value pair [`external_link`: `external_link_value`], append the
2004
+ # following filter expression to your request:
2005
+ #
2006
+ # * `"annotations.external_link:external_link_value"`
2007
+ #
2008
+ # To filter just for a specific annotation key `external_link`, append the
2009
+ # following filter expression to your request:
2010
+ #
2011
+ # * `"annotations.external_link"`
2012
+ #
2013
+ # If the annotation key or value contains special characters, you can escape
2014
+ # them by surrounding the value with backticks. For example, to filter the
2015
+ # results of your request to versions with the annotation key-value pair
2016
+ # [`external.link`:`https://example.com/my-version`], append the following
2017
+ # filter expression to your request:
2018
+ #
2019
+ # * `` "annotations.`external.link`:`https://example.com/my-version`" ``
2020
+ #
2021
+ # You can also filter with annotations with a wildcard to
2022
+ # match any number of characters before or after the value:
2023
+ #
2024
+ # * `` "annotations.*_link:`*example.com*`" ``
1909
2025
  #
1910
2026
  # @yield [response, operation] Access the result along with the RPC operation
1911
2027
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Version>]
@@ -2263,6 +2379,96 @@ module Google
2263
2379
  raise ::Google::Cloud::Error.from_error(e)
2264
2380
  end
2265
2381
 
2382
+ ##
2383
+ # Updates a version.
2384
+ #
2385
+ # @overload update_version(request, options = nil)
2386
+ # Pass arguments to `update_version` via a request object, either of type
2387
+ # {::Google::Cloud::ArtifactRegistry::V1::UpdateVersionRequest} or an equivalent Hash.
2388
+ #
2389
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::UpdateVersionRequest, ::Hash]
2390
+ # A request object representing the call parameters. Required. To specify no
2391
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2392
+ # @param options [::Gapic::CallOptions, ::Hash]
2393
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2394
+ #
2395
+ # @overload update_version(version: nil, update_mask: nil)
2396
+ # Pass arguments to `update_version` via keyword arguments. Note that at
2397
+ # least one keyword argument is required. To specify no parameters, or to keep all
2398
+ # the default parameter values, pass an empty Hash as a request object (see above).
2399
+ #
2400
+ # @param version [::Google::Cloud::ArtifactRegistry::V1::Version, ::Hash]
2401
+ # Required. The Version that replaces the resource on the server.
2402
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2403
+ # The update mask applies to the resource. For the `FieldMask` definition,
2404
+ # see
2405
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
2406
+ #
2407
+ # @yield [response, operation] Access the result along with the RPC operation
2408
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::Version]
2409
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2410
+ #
2411
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Version]
2412
+ #
2413
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2414
+ #
2415
+ # @example Basic example
2416
+ # require "google/cloud/artifact_registry/v1"
2417
+ #
2418
+ # # Create a client object. The client can be reused for multiple calls.
2419
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
2420
+ #
2421
+ # # Create a request. To set request fields, pass in keyword arguments.
2422
+ # request = Google::Cloud::ArtifactRegistry::V1::UpdateVersionRequest.new
2423
+ #
2424
+ # # Call the update_version method.
2425
+ # result = client.update_version request
2426
+ #
2427
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Version.
2428
+ # p result
2429
+ #
2430
+ def update_version request, options = nil
2431
+ raise ::ArgumentError, "request must be provided" if request.nil?
2432
+
2433
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdateVersionRequest
2434
+
2435
+ # Converts hash and nil to an options object
2436
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2437
+
2438
+ # Customize the options with defaults
2439
+ metadata = @config.rpcs.update_version.metadata.to_h
2440
+
2441
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2442
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2443
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2444
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
2445
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2446
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2447
+
2448
+ header_params = {}
2449
+ if request.version&.name
2450
+ header_params["version.name"] = request.version.name
2451
+ end
2452
+
2453
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2454
+ metadata[:"x-goog-request-params"] ||= request_params_header
2455
+
2456
+ options.apply_defaults timeout: @config.rpcs.update_version.timeout,
2457
+ metadata: metadata,
2458
+ retry_policy: @config.rpcs.update_version.retry_policy
2459
+
2460
+ options.apply_defaults timeout: @config.timeout,
2461
+ metadata: @config.metadata,
2462
+ retry_policy: @config.retry_policy
2463
+
2464
+ @artifact_registry_stub.call_rpc :update_version, request, options: options do |response, operation|
2465
+ yield response, operation if block_given?
2466
+ return response
2467
+ end
2468
+ rescue ::GRPC::BadStatus => e
2469
+ raise ::Google::Cloud::Error.from_error(e)
2470
+ end
2471
+
2266
2472
  ##
2267
2473
  # Lists files.
2268
2474
  #
@@ -2290,15 +2496,53 @@ module Google
2290
2496
  #
2291
2497
  # * `name`
2292
2498
  # * `owner`
2499
+ # * `annotations`
2500
+ #
2501
+ # Examples of using a filter:
2502
+ #
2503
+ # To filter the results of your request to files with the name `my_file.txt`
2504
+ # in project `my-project` in the `us-central` region, in repository
2505
+ # `my-repo`, append the following filter expression to your request:
2506
+ #
2507
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"`
2508
+ #
2509
+ # You can also use wildcards to match any number of characters before or
2510
+ # after the value:
2511
+ #
2512
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"`
2513
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"`
2514
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"`
2515
+ #
2516
+ # To filter the results of your request to files owned by the version `1.0`
2517
+ # in package `pkg1`, append the following filter expression to your request:
2293
2518
  #
2294
- # An example of using a filter:
2519
+ # * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"`
2295
2520
  #
2296
- # * `name="projects/p1/locations/us-central1/repositories/repo1/files/a/b/*"` --> Files with an
2297
- # ID starting with "a/b/".
2298
- # * `owner="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"` -->
2299
- # Files owned by the version `1.0` in package `pkg1`.
2521
+ # To filter the results of your request to files with the annotation
2522
+ # key-value pair [`external_link`: `external_link_value`], append the
2523
+ # following filter expression to your request:
2524
+ #
2525
+ # * `"annotations.external_link:external_link_value"`
2526
+ #
2527
+ # To filter just for a specific annotation key `external_link`, append the
2528
+ # following filter expression to your request:
2529
+ #
2530
+ # * `"annotations.external_link"`
2531
+ #
2532
+ # If the annotation key or value contains special characters, you can escape
2533
+ # them by surrounding the value with backticks. For example, to filter the
2534
+ # results of your request to files with the annotation key-value pair
2535
+ # [`external.link`:`https://example.com/my-file`], append the following
2536
+ # filter expression to your request:
2537
+ #
2538
+ # * `` "annotations.`external.link`:`https://example.com/my-file`" ``
2539
+ #
2540
+ # You can also filter with annotations with a wildcard to
2541
+ # match any number of characters before or after the value:
2542
+ #
2543
+ # * `` "annotations.*_link:`*example.com*`" ``
2300
2544
  # @param page_size [::Integer]
2301
- # The maximum number of files to return.
2545
+ # The maximum number of files to return. Maximum page size is 1,000.
2302
2546
  # @param page_token [::String]
2303
2547
  # The next_page_token value returned from a previous list request, if any.
2304
2548
  # @param order_by [::String]
@@ -2461,47 +2705,33 @@ module Google
2461
2705
  end
2462
2706
 
2463
2707
  ##
2464
- # Lists tags.
2708
+ # Deletes a file and all of its content. It is only allowed on generic
2709
+ # repositories. The returned operation will complete once the file has been
2710
+ # deleted.
2465
2711
  #
2466
- # @overload list_tags(request, options = nil)
2467
- # Pass arguments to `list_tags` via a request object, either of type
2468
- # {::Google::Cloud::ArtifactRegistry::V1::ListTagsRequest} or an equivalent Hash.
2712
+ # @overload delete_file(request, options = nil)
2713
+ # Pass arguments to `delete_file` via a request object, either of type
2714
+ # {::Google::Cloud::ArtifactRegistry::V1::DeleteFileRequest} or an equivalent Hash.
2469
2715
  #
2470
- # @param request [::Google::Cloud::ArtifactRegistry::V1::ListTagsRequest, ::Hash]
2716
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::DeleteFileRequest, ::Hash]
2471
2717
  # A request object representing the call parameters. Required. To specify no
2472
2718
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2473
2719
  # @param options [::Gapic::CallOptions, ::Hash]
2474
2720
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2475
2721
  #
2476
- # @overload list_tags(parent: nil, filter: nil, page_size: nil, page_token: nil)
2477
- # Pass arguments to `list_tags` via keyword arguments. Note that at
2722
+ # @overload delete_file(name: nil)
2723
+ # Pass arguments to `delete_file` via keyword arguments. Note that at
2478
2724
  # least one keyword argument is required. To specify no parameters, or to keep all
2479
2725
  # the default parameter values, pass an empty Hash as a request object (see above).
2480
2726
  #
2481
- # @param parent [::String]
2482
- # The name of the parent package whose tags will be listed.
2483
- # For example:
2484
- # `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
2485
- # @param filter [::String]
2486
- # An expression for filtering the results of the request. Filter rules are
2487
- # case insensitive. The fields eligible for filtering are:
2488
- #
2489
- # * `version`
2490
- #
2491
- # An example of using a filter:
2492
- #
2493
- # * `version="projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/1.0"`
2494
- # --> Tags that are applied to the version `1.0` in package `pkg1`.
2495
- # @param page_size [::Integer]
2496
- # The maximum number of tags to return. Maximum page size is 10,000.
2497
- # @param page_token [::String]
2498
- # The next_page_token value returned from a previous list request, if any.
2727
+ # @param name [::String]
2728
+ # Required. The name of the file to delete.
2499
2729
  #
2500
2730
  # @yield [response, operation] Access the result along with the RPC operation
2501
- # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>]
2731
+ # @yieldparam response [::Gapic::Operation]
2502
2732
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2503
2733
  #
2504
- # @return [::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>]
2734
+ # @return [::Gapic::Operation]
2505
2735
  #
2506
2736
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2507
2737
  #
@@ -2512,28 +2742,31 @@ module Google
2512
2742
  # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
2513
2743
  #
2514
2744
  # # Create a request. To set request fields, pass in keyword arguments.
2515
- # request = Google::Cloud::ArtifactRegistry::V1::ListTagsRequest.new
2745
+ # request = Google::Cloud::ArtifactRegistry::V1::DeleteFileRequest.new
2516
2746
  #
2517
- # # Call the list_tags method.
2518
- # result = client.list_tags request
2747
+ # # Call the delete_file method.
2748
+ # result = client.delete_file request
2519
2749
  #
2520
- # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2521
- # # over elements, and API calls will be issued to fetch pages as needed.
2522
- # result.each do |item|
2523
- # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Tag.
2524
- # p item
2750
+ # # The returned object is of type Gapic::Operation. You can use it to
2751
+ # # check the status of an operation, cancel it, or wait for results.
2752
+ # # Here is how to wait for a response.
2753
+ # result.wait_until_done! timeout: 60
2754
+ # if result.response?
2755
+ # p result.response
2756
+ # else
2757
+ # puts "No response received."
2525
2758
  # end
2526
2759
  #
2527
- def list_tags request, options = nil
2760
+ def delete_file request, options = nil
2528
2761
  raise ::ArgumentError, "request must be provided" if request.nil?
2529
2762
 
2530
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListTagsRequest
2763
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::DeleteFileRequest
2531
2764
 
2532
2765
  # Converts hash and nil to an options object
2533
2766
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2534
2767
 
2535
2768
  # Customize the options with defaults
2536
- metadata = @config.rpcs.list_tags.metadata.to_h
2769
+ metadata = @config.rpcs.delete_file.metadata.to_h
2537
2770
 
2538
2771
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2539
2772
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2543,23 +2776,23 @@ module Google
2543
2776
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2544
2777
 
2545
2778
  header_params = {}
2546
- if request.parent
2547
- header_params["parent"] = request.parent
2779
+ if request.name
2780
+ header_params["name"] = request.name
2548
2781
  end
2549
2782
 
2550
2783
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2551
2784
  metadata[:"x-goog-request-params"] ||= request_params_header
2552
2785
 
2553
- options.apply_defaults timeout: @config.rpcs.list_tags.timeout,
2786
+ options.apply_defaults timeout: @config.rpcs.delete_file.timeout,
2554
2787
  metadata: metadata,
2555
- retry_policy: @config.rpcs.list_tags.retry_policy
2788
+ retry_policy: @config.rpcs.delete_file.retry_policy
2556
2789
 
2557
2790
  options.apply_defaults timeout: @config.timeout,
2558
2791
  metadata: @config.metadata,
2559
2792
  retry_policy: @config.retry_policy
2560
2793
 
2561
- @artifact_registry_stub.call_rpc :list_tags, request, options: options do |response, operation|
2562
- response = ::Gapic::PagedEnumerable.new @artifact_registry_stub, :list_tags, request, response, operation, options
2794
+ @artifact_registry_stub.call_rpc :delete_file, request, options: options do |response, operation|
2795
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2563
2796
  yield response, operation if block_given?
2564
2797
  return response
2565
2798
  end
@@ -2568,31 +2801,35 @@ module Google
2568
2801
  end
2569
2802
 
2570
2803
  ##
2571
- # Gets a tag.
2804
+ # Updates a file.
2572
2805
  #
2573
- # @overload get_tag(request, options = nil)
2574
- # Pass arguments to `get_tag` via a request object, either of type
2575
- # {::Google::Cloud::ArtifactRegistry::V1::GetTagRequest} or an equivalent Hash.
2806
+ # @overload update_file(request, options = nil)
2807
+ # Pass arguments to `update_file` via a request object, either of type
2808
+ # {::Google::Cloud::ArtifactRegistry::V1::UpdateFileRequest} or an equivalent Hash.
2576
2809
  #
2577
- # @param request [::Google::Cloud::ArtifactRegistry::V1::GetTagRequest, ::Hash]
2810
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::UpdateFileRequest, ::Hash]
2578
2811
  # A request object representing the call parameters. Required. To specify no
2579
2812
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2580
2813
  # @param options [::Gapic::CallOptions, ::Hash]
2581
2814
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2582
2815
  #
2583
- # @overload get_tag(name: nil)
2584
- # Pass arguments to `get_tag` via keyword arguments. Note that at
2816
+ # @overload update_file(file: nil, update_mask: nil)
2817
+ # Pass arguments to `update_file` via keyword arguments. Note that at
2585
2818
  # least one keyword argument is required. To specify no parameters, or to keep all
2586
2819
  # the default parameter values, pass an empty Hash as a request object (see above).
2587
2820
  #
2588
- # @param name [::String]
2589
- # The name of the tag to retrieve.
2821
+ # @param file [::Google::Cloud::ArtifactRegistry::V1::File, ::Hash]
2822
+ # Required. The File that replaces the resource on the server.
2823
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2824
+ # Required. The update mask applies to the resource. For the `FieldMask`
2825
+ # definition, see
2826
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
2590
2827
  #
2591
2828
  # @yield [response, operation] Access the result along with the RPC operation
2592
- # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::Tag]
2829
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::File]
2593
2830
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2594
2831
  #
2595
- # @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
2832
+ # @return [::Google::Cloud::ArtifactRegistry::V1::File]
2596
2833
  #
2597
2834
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2598
2835
  #
@@ -2603,24 +2840,24 @@ module Google
2603
2840
  # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
2604
2841
  #
2605
2842
  # # Create a request. To set request fields, pass in keyword arguments.
2606
- # request = Google::Cloud::ArtifactRegistry::V1::GetTagRequest.new
2843
+ # request = Google::Cloud::ArtifactRegistry::V1::UpdateFileRequest.new
2607
2844
  #
2608
- # # Call the get_tag method.
2609
- # result = client.get_tag request
2845
+ # # Call the update_file method.
2846
+ # result = client.update_file request
2610
2847
  #
2611
- # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
2848
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::File.
2612
2849
  # p result
2613
2850
  #
2614
- def get_tag request, options = nil
2851
+ def update_file request, options = nil
2615
2852
  raise ::ArgumentError, "request must be provided" if request.nil?
2616
2853
 
2617
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetTagRequest
2854
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdateFileRequest
2618
2855
 
2619
2856
  # Converts hash and nil to an options object
2620
2857
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2621
2858
 
2622
2859
  # Customize the options with defaults
2623
- metadata = @config.rpcs.get_tag.metadata.to_h
2860
+ metadata = @config.rpcs.update_file.metadata.to_h
2624
2861
 
2625
2862
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2626
2863
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2630,22 +2867,22 @@ module Google
2630
2867
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2631
2868
 
2632
2869
  header_params = {}
2633
- if request.name
2634
- header_params["name"] = request.name
2870
+ if request.file&.name
2871
+ header_params["file.name"] = request.file.name
2635
2872
  end
2636
2873
 
2637
2874
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2638
2875
  metadata[:"x-goog-request-params"] ||= request_params_header
2639
2876
 
2640
- options.apply_defaults timeout: @config.rpcs.get_tag.timeout,
2877
+ options.apply_defaults timeout: @config.rpcs.update_file.timeout,
2641
2878
  metadata: metadata,
2642
- retry_policy: @config.rpcs.get_tag.retry_policy
2879
+ retry_policy: @config.rpcs.update_file.retry_policy
2643
2880
 
2644
2881
  options.apply_defaults timeout: @config.timeout,
2645
2882
  metadata: @config.metadata,
2646
2883
  retry_policy: @config.retry_policy
2647
2884
 
2648
- @artifact_registry_stub.call_rpc :get_tag, request, options: options do |response, operation|
2885
+ @artifact_registry_stub.call_rpc :update_file, request, options: options do |response, operation|
2649
2886
  yield response, operation if block_given?
2650
2887
  return response
2651
2888
  end
@@ -2654,35 +2891,65 @@ module Google
2654
2891
  end
2655
2892
 
2656
2893
  ##
2657
- # Creates a tag.
2894
+ # Lists tags.
2658
2895
  #
2659
- # @overload create_tag(request, options = nil)
2660
- # Pass arguments to `create_tag` via a request object, either of type
2661
- # {::Google::Cloud::ArtifactRegistry::V1::CreateTagRequest} or an equivalent Hash.
2896
+ # @overload list_tags(request, options = nil)
2897
+ # Pass arguments to `list_tags` via a request object, either of type
2898
+ # {::Google::Cloud::ArtifactRegistry::V1::ListTagsRequest} or an equivalent Hash.
2662
2899
  #
2663
- # @param request [::Google::Cloud::ArtifactRegistry::V1::CreateTagRequest, ::Hash]
2900
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::ListTagsRequest, ::Hash]
2664
2901
  # A request object representing the call parameters. Required. To specify no
2665
2902
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2666
2903
  # @param options [::Gapic::CallOptions, ::Hash]
2667
2904
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2668
2905
  #
2669
- # @overload create_tag(parent: nil, tag_id: nil, tag: nil)
2670
- # Pass arguments to `create_tag` via keyword arguments. Note that at
2906
+ # @overload list_tags(parent: nil, filter: nil, page_size: nil, page_token: nil)
2907
+ # Pass arguments to `list_tags` via keyword arguments. Note that at
2671
2908
  # least one keyword argument is required. To specify no parameters, or to keep all
2672
2909
  # the default parameter values, pass an empty Hash as a request object (see above).
2673
2910
  #
2674
2911
  # @param parent [::String]
2675
- # The name of the parent resource where the tag will be created.
2676
- # @param tag_id [::String]
2677
- # The tag id to use for this repository.
2678
- # @param tag [::Google::Cloud::ArtifactRegistry::V1::Tag, ::Hash]
2679
- # The tag to be created.
2912
+ # The name of the parent package whose tags will be listed.
2913
+ # For example:
2914
+ # `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`.
2915
+ # @param filter [::String]
2916
+ # An expression for filtering the results of the request. Filter rules are
2917
+ # case insensitive. The fields eligible for filtering are:
2918
+ #
2919
+ # * `name`
2920
+ # * `version`
2921
+ #
2922
+ # Examples of using a filter:
2923
+ #
2924
+ # To filter the results of your request to tags with the name `my-tag` in
2925
+ # package `my-package` in repository `my-repo` in project "`y-project` in
2926
+ # the us-central region, append the following filter expression to your
2927
+ # request:
2928
+ #
2929
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"`
2930
+ #
2931
+ # You can also use wildcards to match any number of characters before or
2932
+ # after the value:
2933
+ #
2934
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"`
2935
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"`
2936
+ # * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"`
2937
+ #
2938
+ # To filter the results of your request to tags applied to the version
2939
+ # `1.0` in package `my-package`, append the following filter expression to
2940
+ # your request:
2941
+ #
2942
+ # * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"`
2943
+ # @param page_size [::Integer]
2944
+ # The maximum number of tags to return. Maximum page size is 1,000.
2945
+ # @param page_token [::String]
2946
+ # The next_page_token value returned from a previous list request, if any.
2680
2947
  #
2681
2948
  # @yield [response, operation] Access the result along with the RPC operation
2682
- # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::Tag]
2949
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>]
2683
2950
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2684
2951
  #
2685
- # @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
2952
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Tag>]
2686
2953
  #
2687
2954
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2688
2955
  #
@@ -2693,10 +2960,191 @@ module Google
2693
2960
  # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
2694
2961
  #
2695
2962
  # # Create a request. To set request fields, pass in keyword arguments.
2696
- # request = Google::Cloud::ArtifactRegistry::V1::CreateTagRequest.new
2697
- #
2698
- # # Call the create_tag method.
2699
- # result = client.create_tag request
2963
+ # request = Google::Cloud::ArtifactRegistry::V1::ListTagsRequest.new
2964
+ #
2965
+ # # Call the list_tags method.
2966
+ # result = client.list_tags request
2967
+ #
2968
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2969
+ # # over elements, and API calls will be issued to fetch pages as needed.
2970
+ # result.each do |item|
2971
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Tag.
2972
+ # p item
2973
+ # end
2974
+ #
2975
+ def list_tags request, options = nil
2976
+ raise ::ArgumentError, "request must be provided" if request.nil?
2977
+
2978
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListTagsRequest
2979
+
2980
+ # Converts hash and nil to an options object
2981
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2982
+
2983
+ # Customize the options with defaults
2984
+ metadata = @config.rpcs.list_tags.metadata.to_h
2985
+
2986
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2987
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2988
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2989
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
2990
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2991
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2992
+
2993
+ header_params = {}
2994
+ if request.parent
2995
+ header_params["parent"] = request.parent
2996
+ end
2997
+
2998
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2999
+ metadata[:"x-goog-request-params"] ||= request_params_header
3000
+
3001
+ options.apply_defaults timeout: @config.rpcs.list_tags.timeout,
3002
+ metadata: metadata,
3003
+ retry_policy: @config.rpcs.list_tags.retry_policy
3004
+
3005
+ options.apply_defaults timeout: @config.timeout,
3006
+ metadata: @config.metadata,
3007
+ retry_policy: @config.retry_policy
3008
+
3009
+ @artifact_registry_stub.call_rpc :list_tags, request, options: options do |response, operation|
3010
+ response = ::Gapic::PagedEnumerable.new @artifact_registry_stub, :list_tags, request, response, operation, options
3011
+ yield response, operation if block_given?
3012
+ return response
3013
+ end
3014
+ rescue ::GRPC::BadStatus => e
3015
+ raise ::Google::Cloud::Error.from_error(e)
3016
+ end
3017
+
3018
+ ##
3019
+ # Gets a tag.
3020
+ #
3021
+ # @overload get_tag(request, options = nil)
3022
+ # Pass arguments to `get_tag` via a request object, either of type
3023
+ # {::Google::Cloud::ArtifactRegistry::V1::GetTagRequest} or an equivalent Hash.
3024
+ #
3025
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::GetTagRequest, ::Hash]
3026
+ # A request object representing the call parameters. Required. To specify no
3027
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3028
+ # @param options [::Gapic::CallOptions, ::Hash]
3029
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3030
+ #
3031
+ # @overload get_tag(name: nil)
3032
+ # Pass arguments to `get_tag` via keyword arguments. Note that at
3033
+ # least one keyword argument is required. To specify no parameters, or to keep all
3034
+ # the default parameter values, pass an empty Hash as a request object (see above).
3035
+ #
3036
+ # @param name [::String]
3037
+ # The name of the tag to retrieve.
3038
+ #
3039
+ # @yield [response, operation] Access the result along with the RPC operation
3040
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::Tag]
3041
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3042
+ #
3043
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
3044
+ #
3045
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3046
+ #
3047
+ # @example Basic example
3048
+ # require "google/cloud/artifact_registry/v1"
3049
+ #
3050
+ # # Create a client object. The client can be reused for multiple calls.
3051
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3052
+ #
3053
+ # # Create a request. To set request fields, pass in keyword arguments.
3054
+ # request = Google::Cloud::ArtifactRegistry::V1::GetTagRequest.new
3055
+ #
3056
+ # # Call the get_tag method.
3057
+ # result = client.get_tag request
3058
+ #
3059
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
3060
+ # p result
3061
+ #
3062
+ def get_tag request, options = nil
3063
+ raise ::ArgumentError, "request must be provided" if request.nil?
3064
+
3065
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetTagRequest
3066
+
3067
+ # Converts hash and nil to an options object
3068
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3069
+
3070
+ # Customize the options with defaults
3071
+ metadata = @config.rpcs.get_tag.metadata.to_h
3072
+
3073
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3074
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3075
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3076
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
3077
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3078
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3079
+
3080
+ header_params = {}
3081
+ if request.name
3082
+ header_params["name"] = request.name
3083
+ end
3084
+
3085
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3086
+ metadata[:"x-goog-request-params"] ||= request_params_header
3087
+
3088
+ options.apply_defaults timeout: @config.rpcs.get_tag.timeout,
3089
+ metadata: metadata,
3090
+ retry_policy: @config.rpcs.get_tag.retry_policy
3091
+
3092
+ options.apply_defaults timeout: @config.timeout,
3093
+ metadata: @config.metadata,
3094
+ retry_policy: @config.retry_policy
3095
+
3096
+ @artifact_registry_stub.call_rpc :get_tag, request, options: options do |response, operation|
3097
+ yield response, operation if block_given?
3098
+ return response
3099
+ end
3100
+ rescue ::GRPC::BadStatus => e
3101
+ raise ::Google::Cloud::Error.from_error(e)
3102
+ end
3103
+
3104
+ ##
3105
+ # Creates a tag.
3106
+ #
3107
+ # @overload create_tag(request, options = nil)
3108
+ # Pass arguments to `create_tag` via a request object, either of type
3109
+ # {::Google::Cloud::ArtifactRegistry::V1::CreateTagRequest} or an equivalent Hash.
3110
+ #
3111
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::CreateTagRequest, ::Hash]
3112
+ # A request object representing the call parameters. Required. To specify no
3113
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3114
+ # @param options [::Gapic::CallOptions, ::Hash]
3115
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3116
+ #
3117
+ # @overload create_tag(parent: nil, tag_id: nil, tag: nil)
3118
+ # Pass arguments to `create_tag` via keyword arguments. Note that at
3119
+ # least one keyword argument is required. To specify no parameters, or to keep all
3120
+ # the default parameter values, pass an empty Hash as a request object (see above).
3121
+ #
3122
+ # @param parent [::String]
3123
+ # The name of the parent resource where the tag will be created.
3124
+ # @param tag_id [::String]
3125
+ # The tag id to use for this repository.
3126
+ # @param tag [::Google::Cloud::ArtifactRegistry::V1::Tag, ::Hash]
3127
+ # The tag to be created.
3128
+ #
3129
+ # @yield [response, operation] Access the result along with the RPC operation
3130
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::Tag]
3131
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3132
+ #
3133
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Tag]
3134
+ #
3135
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3136
+ #
3137
+ # @example Basic example
3138
+ # require "google/cloud/artifact_registry/v1"
3139
+ #
3140
+ # # Create a client object. The client can be reused for multiple calls.
3141
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3142
+ #
3143
+ # # Create a request. To set request fields, pass in keyword arguments.
3144
+ # request = Google::Cloud::ArtifactRegistry::V1::CreateTagRequest.new
3145
+ #
3146
+ # # Call the create_tag method.
3147
+ # result = client.create_tag request
2700
3148
  #
2701
3149
  # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Tag.
2702
3150
  # p result
@@ -2920,43 +3368,35 @@ module Google
2920
3368
  end
2921
3369
 
2922
3370
  ##
2923
- # Updates the IAM policy for a given resource.
3371
+ # Creates a rule.
2924
3372
  #
2925
- # @overload set_iam_policy(request, options = nil)
2926
- # Pass arguments to `set_iam_policy` via a request object, either of type
2927
- # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
3373
+ # @overload create_rule(request, options = nil)
3374
+ # Pass arguments to `create_rule` via a request object, either of type
3375
+ # {::Google::Cloud::ArtifactRegistry::V1::CreateRuleRequest} or an equivalent Hash.
2928
3376
  #
2929
- # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
3377
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::CreateRuleRequest, ::Hash]
2930
3378
  # A request object representing the call parameters. Required. To specify no
2931
3379
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2932
3380
  # @param options [::Gapic::CallOptions, ::Hash]
2933
3381
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2934
3382
  #
2935
- # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
2936
- # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
3383
+ # @overload create_rule(parent: nil, rule_id: nil, rule: nil)
3384
+ # Pass arguments to `create_rule` via keyword arguments. Note that at
2937
3385
  # least one keyword argument is required. To specify no parameters, or to keep all
2938
3386
  # the default parameter values, pass an empty Hash as a request object (see above).
2939
3387
  #
2940
- # @param resource [::String]
2941
- # REQUIRED: The resource for which the policy is being specified.
2942
- # See the operation documentation for the appropriate value for this field.
2943
- # @param policy [::Google::Iam::V1::Policy, ::Hash]
2944
- # REQUIRED: The complete policy to be applied to the `resource`. The size of
2945
- # the policy is limited to a few 10s of KB. An empty policy is a
2946
- # valid policy but certain Cloud Platform services (such as Projects)
2947
- # might reject them.
2948
- # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2949
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
2950
- # the fields in the mask will be modified. If no mask is provided, the
2951
- # following default mask is used:
2952
- #
2953
- # `paths: "bindings, etag"`
3388
+ # @param parent [::String]
3389
+ # Required. The name of the parent resource where the rule will be created.
3390
+ # @param rule_id [::String]
3391
+ # The rule id to use for this repository.
3392
+ # @param rule [::Google::Cloud::ArtifactRegistry::V1::Rule, ::Hash]
3393
+ # The rule to be created.
2954
3394
  #
2955
3395
  # @yield [response, operation] Access the result along with the RPC operation
2956
- # @yieldparam response [::Google::Iam::V1::Policy]
3396
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::Rule]
2957
3397
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
2958
3398
  #
2959
- # @return [::Google::Iam::V1::Policy]
3399
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Rule]
2960
3400
  #
2961
3401
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2962
3402
  #
@@ -2967,24 +3407,24 @@ module Google
2967
3407
  # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
2968
3408
  #
2969
3409
  # # Create a request. To set request fields, pass in keyword arguments.
2970
- # request = Google::Iam::V1::SetIamPolicyRequest.new
3410
+ # request = Google::Cloud::ArtifactRegistry::V1::CreateRuleRequest.new
2971
3411
  #
2972
- # # Call the set_iam_policy method.
2973
- # result = client.set_iam_policy request
3412
+ # # Call the create_rule method.
3413
+ # result = client.create_rule request
2974
3414
  #
2975
- # # The returned object is of type Google::Iam::V1::Policy.
3415
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Rule.
2976
3416
  # p result
2977
3417
  #
2978
- def set_iam_policy request, options = nil
3418
+ def create_rule request, options = nil
2979
3419
  raise ::ArgumentError, "request must be provided" if request.nil?
2980
3420
 
2981
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
3421
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::CreateRuleRequest
2982
3422
 
2983
3423
  # Converts hash and nil to an options object
2984
3424
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2985
3425
 
2986
3426
  # Customize the options with defaults
2987
- metadata = @config.rpcs.set_iam_policy.metadata.to_h
3427
+ metadata = @config.rpcs.create_rule.metadata.to_h
2988
3428
 
2989
3429
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2990
3430
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -2994,22 +3434,22 @@ module Google
2994
3434
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2995
3435
 
2996
3436
  header_params = {}
2997
- if request.resource
2998
- header_params["resource"] = request.resource
3437
+ if request.parent
3438
+ header_params["parent"] = request.parent
2999
3439
  end
3000
3440
 
3001
3441
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3002
3442
  metadata[:"x-goog-request-params"] ||= request_params_header
3003
3443
 
3004
- options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
3444
+ options.apply_defaults timeout: @config.rpcs.create_rule.timeout,
3005
3445
  metadata: metadata,
3006
- retry_policy: @config.rpcs.set_iam_policy.retry_policy
3446
+ retry_policy: @config.rpcs.create_rule.retry_policy
3007
3447
 
3008
3448
  options.apply_defaults timeout: @config.timeout,
3009
3449
  metadata: @config.metadata,
3010
3450
  retry_policy: @config.retry_policy
3011
3451
 
3012
- @artifact_registry_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
3452
+ @artifact_registry_stub.call_rpc :create_rule, request, options: options do |response, operation|
3013
3453
  yield response, operation if block_given?
3014
3454
  return response
3015
3455
  end
@@ -3018,35 +3458,932 @@ module Google
3018
3458
  end
3019
3459
 
3020
3460
  ##
3021
- # Gets the IAM policy for a given resource.
3461
+ # Lists rules.
3022
3462
  #
3023
- # @overload get_iam_policy(request, options = nil)
3024
- # Pass arguments to `get_iam_policy` via a request object, either of type
3025
- # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
3463
+ # @overload list_rules(request, options = nil)
3464
+ # Pass arguments to `list_rules` via a request object, either of type
3465
+ # {::Google::Cloud::ArtifactRegistry::V1::ListRulesRequest} or an equivalent Hash.
3026
3466
  #
3027
- # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
3467
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::ListRulesRequest, ::Hash]
3028
3468
  # A request object representing the call parameters. Required. To specify no
3029
3469
  # parameters, or to keep all the default parameter values, pass an empty Hash.
3030
3470
  # @param options [::Gapic::CallOptions, ::Hash]
3031
3471
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3032
3472
  #
3033
- # @overload get_iam_policy(resource: nil, options: nil)
3034
- # Pass arguments to `get_iam_policy` via keyword arguments. Note that at
3473
+ # @overload list_rules(parent: nil, page_size: nil, page_token: nil)
3474
+ # Pass arguments to `list_rules` via keyword arguments. Note that at
3035
3475
  # least one keyword argument is required. To specify no parameters, or to keep all
3036
3476
  # the default parameter values, pass an empty Hash as a request object (see above).
3037
3477
  #
3038
- # @param resource [::String]
3039
- # REQUIRED: The resource for which the policy is being requested.
3040
- # See the operation documentation for the appropriate value for this field.
3041
- # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
3042
- # OPTIONAL: A `GetPolicyOptions` object for specifying options to
3043
- # `GetIamPolicy`.
3478
+ # @param parent [::String]
3479
+ # Required. The name of the parent repository whose rules will be listed.
3480
+ # For example:
3481
+ # `projects/p1/locations/us-central1/repositories/repo1`.
3482
+ # @param page_size [::Integer]
3483
+ # The maximum number of rules to return. Maximum page size is 1,000.
3484
+ # @param page_token [::String]
3485
+ # The next_page_token value returned from a previous list request, if any.
3486
+ #
3487
+ # @yield [response, operation] Access the result along with the RPC operation
3488
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Rule>]
3489
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3490
+ #
3491
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Rule>]
3492
+ #
3493
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3494
+ #
3495
+ # @example Basic example
3496
+ # require "google/cloud/artifact_registry/v1"
3497
+ #
3498
+ # # Create a client object. The client can be reused for multiple calls.
3499
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3500
+ #
3501
+ # # Create a request. To set request fields, pass in keyword arguments.
3502
+ # request = Google::Cloud::ArtifactRegistry::V1::ListRulesRequest.new
3503
+ #
3504
+ # # Call the list_rules method.
3505
+ # result = client.list_rules request
3506
+ #
3507
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3508
+ # # over elements, and API calls will be issued to fetch pages as needed.
3509
+ # result.each do |item|
3510
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Rule.
3511
+ # p item
3512
+ # end
3513
+ #
3514
+ def list_rules request, options = nil
3515
+ raise ::ArgumentError, "request must be provided" if request.nil?
3516
+
3517
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListRulesRequest
3518
+
3519
+ # Converts hash and nil to an options object
3520
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3521
+
3522
+ # Customize the options with defaults
3523
+ metadata = @config.rpcs.list_rules.metadata.to_h
3524
+
3525
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3526
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3527
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3528
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
3529
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3530
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3531
+
3532
+ header_params = {}
3533
+ if request.parent
3534
+ header_params["parent"] = request.parent
3535
+ end
3536
+
3537
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3538
+ metadata[:"x-goog-request-params"] ||= request_params_header
3539
+
3540
+ options.apply_defaults timeout: @config.rpcs.list_rules.timeout,
3541
+ metadata: metadata,
3542
+ retry_policy: @config.rpcs.list_rules.retry_policy
3543
+
3544
+ options.apply_defaults timeout: @config.timeout,
3545
+ metadata: @config.metadata,
3546
+ retry_policy: @config.retry_policy
3547
+
3548
+ @artifact_registry_stub.call_rpc :list_rules, request, options: options do |response, operation|
3549
+ response = ::Gapic::PagedEnumerable.new @artifact_registry_stub, :list_rules, request, response, operation, options
3550
+ yield response, operation if block_given?
3551
+ return response
3552
+ end
3553
+ rescue ::GRPC::BadStatus => e
3554
+ raise ::Google::Cloud::Error.from_error(e)
3555
+ end
3556
+
3557
+ ##
3558
+ # Gets a rule.
3559
+ #
3560
+ # @overload get_rule(request, options = nil)
3561
+ # Pass arguments to `get_rule` via a request object, either of type
3562
+ # {::Google::Cloud::ArtifactRegistry::V1::GetRuleRequest} or an equivalent Hash.
3563
+ #
3564
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::GetRuleRequest, ::Hash]
3565
+ # A request object representing the call parameters. Required. To specify no
3566
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3567
+ # @param options [::Gapic::CallOptions, ::Hash]
3568
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3569
+ #
3570
+ # @overload get_rule(name: nil)
3571
+ # Pass arguments to `get_rule` via keyword arguments. Note that at
3572
+ # least one keyword argument is required. To specify no parameters, or to keep all
3573
+ # the default parameter values, pass an empty Hash as a request object (see above).
3574
+ #
3575
+ # @param name [::String]
3576
+ # Required. The name of the rule to retrieve.
3577
+ #
3578
+ # @yield [response, operation] Access the result along with the RPC operation
3579
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::Rule]
3580
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3581
+ #
3582
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Rule]
3583
+ #
3584
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3585
+ #
3586
+ # @example Basic example
3587
+ # require "google/cloud/artifact_registry/v1"
3588
+ #
3589
+ # # Create a client object. The client can be reused for multiple calls.
3590
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3591
+ #
3592
+ # # Create a request. To set request fields, pass in keyword arguments.
3593
+ # request = Google::Cloud::ArtifactRegistry::V1::GetRuleRequest.new
3594
+ #
3595
+ # # Call the get_rule method.
3596
+ # result = client.get_rule request
3597
+ #
3598
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Rule.
3599
+ # p result
3600
+ #
3601
+ def get_rule request, options = nil
3602
+ raise ::ArgumentError, "request must be provided" if request.nil?
3603
+
3604
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetRuleRequest
3605
+
3606
+ # Converts hash and nil to an options object
3607
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3608
+
3609
+ # Customize the options with defaults
3610
+ metadata = @config.rpcs.get_rule.metadata.to_h
3611
+
3612
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3613
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3614
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3615
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
3616
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3617
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3618
+
3619
+ header_params = {}
3620
+ if request.name
3621
+ header_params["name"] = request.name
3622
+ end
3623
+
3624
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3625
+ metadata[:"x-goog-request-params"] ||= request_params_header
3626
+
3627
+ options.apply_defaults timeout: @config.rpcs.get_rule.timeout,
3628
+ metadata: metadata,
3629
+ retry_policy: @config.rpcs.get_rule.retry_policy
3630
+
3631
+ options.apply_defaults timeout: @config.timeout,
3632
+ metadata: @config.metadata,
3633
+ retry_policy: @config.retry_policy
3634
+
3635
+ @artifact_registry_stub.call_rpc :get_rule, request, options: options do |response, operation|
3636
+ yield response, operation if block_given?
3637
+ return response
3638
+ end
3639
+ rescue ::GRPC::BadStatus => e
3640
+ raise ::Google::Cloud::Error.from_error(e)
3641
+ end
3642
+
3643
+ ##
3644
+ # Updates a rule.
3645
+ #
3646
+ # @overload update_rule(request, options = nil)
3647
+ # Pass arguments to `update_rule` via a request object, either of type
3648
+ # {::Google::Cloud::ArtifactRegistry::V1::UpdateRuleRequest} or an equivalent Hash.
3649
+ #
3650
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::UpdateRuleRequest, ::Hash]
3651
+ # A request object representing the call parameters. Required. To specify no
3652
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3653
+ # @param options [::Gapic::CallOptions, ::Hash]
3654
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3655
+ #
3656
+ # @overload update_rule(rule: nil, update_mask: nil)
3657
+ # Pass arguments to `update_rule` via keyword arguments. Note that at
3658
+ # least one keyword argument is required. To specify no parameters, or to keep all
3659
+ # the default parameter values, pass an empty Hash as a request object (see above).
3660
+ #
3661
+ # @param rule [::Google::Cloud::ArtifactRegistry::V1::Rule, ::Hash]
3662
+ # The rule that replaces the resource on the server.
3663
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3664
+ # The update mask applies to the resource. For the `FieldMask` definition,
3665
+ # see
3666
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
3667
+ #
3668
+ # @yield [response, operation] Access the result along with the RPC operation
3669
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::Rule]
3670
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3671
+ #
3672
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Rule]
3673
+ #
3674
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3675
+ #
3676
+ # @example Basic example
3677
+ # require "google/cloud/artifact_registry/v1"
3678
+ #
3679
+ # # Create a client object. The client can be reused for multiple calls.
3680
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3681
+ #
3682
+ # # Create a request. To set request fields, pass in keyword arguments.
3683
+ # request = Google::Cloud::ArtifactRegistry::V1::UpdateRuleRequest.new
3684
+ #
3685
+ # # Call the update_rule method.
3686
+ # result = client.update_rule request
3687
+ #
3688
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Rule.
3689
+ # p result
3690
+ #
3691
+ def update_rule request, options = nil
3692
+ raise ::ArgumentError, "request must be provided" if request.nil?
3693
+
3694
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdateRuleRequest
3695
+
3696
+ # Converts hash and nil to an options object
3697
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3698
+
3699
+ # Customize the options with defaults
3700
+ metadata = @config.rpcs.update_rule.metadata.to_h
3701
+
3702
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3703
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3704
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3705
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
3706
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3707
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3708
+
3709
+ header_params = {}
3710
+ if request.rule&.name
3711
+ header_params["rule.name"] = request.rule.name
3712
+ end
3713
+
3714
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3715
+ metadata[:"x-goog-request-params"] ||= request_params_header
3716
+
3717
+ options.apply_defaults timeout: @config.rpcs.update_rule.timeout,
3718
+ metadata: metadata,
3719
+ retry_policy: @config.rpcs.update_rule.retry_policy
3720
+
3721
+ options.apply_defaults timeout: @config.timeout,
3722
+ metadata: @config.metadata,
3723
+ retry_policy: @config.retry_policy
3724
+
3725
+ @artifact_registry_stub.call_rpc :update_rule, request, options: options do |response, operation|
3726
+ yield response, operation if block_given?
3727
+ return response
3728
+ end
3729
+ rescue ::GRPC::BadStatus => e
3730
+ raise ::Google::Cloud::Error.from_error(e)
3731
+ end
3732
+
3733
+ ##
3734
+ # Deletes a rule.
3735
+ #
3736
+ # @overload delete_rule(request, options = nil)
3737
+ # Pass arguments to `delete_rule` via a request object, either of type
3738
+ # {::Google::Cloud::ArtifactRegistry::V1::DeleteRuleRequest} or an equivalent Hash.
3739
+ #
3740
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::DeleteRuleRequest, ::Hash]
3741
+ # A request object representing the call parameters. Required. To specify no
3742
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3743
+ # @param options [::Gapic::CallOptions, ::Hash]
3744
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3745
+ #
3746
+ # @overload delete_rule(name: nil)
3747
+ # Pass arguments to `delete_rule` via keyword arguments. Note that at
3748
+ # least one keyword argument is required. To specify no parameters, or to keep all
3749
+ # the default parameter values, pass an empty Hash as a request object (see above).
3750
+ #
3751
+ # @param name [::String]
3752
+ # Required. The name of the rule to delete.
3753
+ #
3754
+ # @yield [response, operation] Access the result along with the RPC operation
3755
+ # @yieldparam response [::Google::Protobuf::Empty]
3756
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3757
+ #
3758
+ # @return [::Google::Protobuf::Empty]
3759
+ #
3760
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3761
+ #
3762
+ # @example Basic example
3763
+ # require "google/cloud/artifact_registry/v1"
3764
+ #
3765
+ # # Create a client object. The client can be reused for multiple calls.
3766
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3767
+ #
3768
+ # # Create a request. To set request fields, pass in keyword arguments.
3769
+ # request = Google::Cloud::ArtifactRegistry::V1::DeleteRuleRequest.new
3770
+ #
3771
+ # # Call the delete_rule method.
3772
+ # result = client.delete_rule request
3773
+ #
3774
+ # # The returned object is of type Google::Protobuf::Empty.
3775
+ # p result
3776
+ #
3777
+ def delete_rule request, options = nil
3778
+ raise ::ArgumentError, "request must be provided" if request.nil?
3779
+
3780
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::DeleteRuleRequest
3781
+
3782
+ # Converts hash and nil to an options object
3783
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3784
+
3785
+ # Customize the options with defaults
3786
+ metadata = @config.rpcs.delete_rule.metadata.to_h
3787
+
3788
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3789
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3790
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3791
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
3792
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3793
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3794
+
3795
+ header_params = {}
3796
+ if request.name
3797
+ header_params["name"] = request.name
3798
+ end
3799
+
3800
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3801
+ metadata[:"x-goog-request-params"] ||= request_params_header
3802
+
3803
+ options.apply_defaults timeout: @config.rpcs.delete_rule.timeout,
3804
+ metadata: metadata,
3805
+ retry_policy: @config.rpcs.delete_rule.retry_policy
3806
+
3807
+ options.apply_defaults timeout: @config.timeout,
3808
+ metadata: @config.metadata,
3809
+ retry_policy: @config.retry_policy
3810
+
3811
+ @artifact_registry_stub.call_rpc :delete_rule, request, options: options do |response, operation|
3812
+ yield response, operation if block_given?
3813
+ return response
3814
+ end
3815
+ rescue ::GRPC::BadStatus => e
3816
+ raise ::Google::Cloud::Error.from_error(e)
3817
+ end
3818
+
3819
+ ##
3820
+ # Updates the IAM policy for a given resource.
3821
+ #
3822
+ # @overload set_iam_policy(request, options = nil)
3823
+ # Pass arguments to `set_iam_policy` via a request object, either of type
3824
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
3825
+ #
3826
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
3827
+ # A request object representing the call parameters. Required. To specify no
3828
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3829
+ # @param options [::Gapic::CallOptions, ::Hash]
3830
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3831
+ #
3832
+ # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
3833
+ # Pass arguments to `set_iam_policy` via keyword arguments. Note that at
3834
+ # least one keyword argument is required. To specify no parameters, or to keep all
3835
+ # the default parameter values, pass an empty Hash as a request object (see above).
3836
+ #
3837
+ # @param resource [::String]
3838
+ # REQUIRED: The resource for which the policy is being specified.
3839
+ # See the operation documentation for the appropriate value for this field.
3840
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
3841
+ # REQUIRED: The complete policy to be applied to the `resource`. The size of
3842
+ # the policy is limited to a few 10s of KB. An empty policy is a
3843
+ # valid policy but certain Cloud Platform services (such as Projects)
3844
+ # might reject them.
3845
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3846
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
3847
+ # the fields in the mask will be modified. If no mask is provided, the
3848
+ # following default mask is used:
3849
+ #
3850
+ # `paths: "bindings, etag"`
3851
+ #
3852
+ # @yield [response, operation] Access the result along with the RPC operation
3853
+ # @yieldparam response [::Google::Iam::V1::Policy]
3854
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3855
+ #
3856
+ # @return [::Google::Iam::V1::Policy]
3857
+ #
3858
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3859
+ #
3860
+ # @example Basic example
3861
+ # require "google/cloud/artifact_registry/v1"
3862
+ #
3863
+ # # Create a client object. The client can be reused for multiple calls.
3864
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3865
+ #
3866
+ # # Create a request. To set request fields, pass in keyword arguments.
3867
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
3868
+ #
3869
+ # # Call the set_iam_policy method.
3870
+ # result = client.set_iam_policy request
3871
+ #
3872
+ # # The returned object is of type Google::Iam::V1::Policy.
3873
+ # p result
3874
+ #
3875
+ def set_iam_policy request, options = nil
3876
+ raise ::ArgumentError, "request must be provided" if request.nil?
3877
+
3878
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
3879
+
3880
+ # Converts hash and nil to an options object
3881
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3882
+
3883
+ # Customize the options with defaults
3884
+ metadata = @config.rpcs.set_iam_policy.metadata.to_h
3885
+
3886
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3887
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3888
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3889
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
3890
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3891
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3892
+
3893
+ header_params = {}
3894
+ if request.resource
3895
+ header_params["resource"] = request.resource
3896
+ end
3897
+
3898
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3899
+ metadata[:"x-goog-request-params"] ||= request_params_header
3900
+
3901
+ options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
3902
+ metadata: metadata,
3903
+ retry_policy: @config.rpcs.set_iam_policy.retry_policy
3904
+
3905
+ options.apply_defaults timeout: @config.timeout,
3906
+ metadata: @config.metadata,
3907
+ retry_policy: @config.retry_policy
3908
+
3909
+ @artifact_registry_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
3910
+ yield response, operation if block_given?
3911
+ return response
3912
+ end
3913
+ rescue ::GRPC::BadStatus => e
3914
+ raise ::Google::Cloud::Error.from_error(e)
3915
+ end
3916
+
3917
+ ##
3918
+ # Gets the IAM policy for a given resource.
3919
+ #
3920
+ # @overload get_iam_policy(request, options = nil)
3921
+ # Pass arguments to `get_iam_policy` via a request object, either of type
3922
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
3923
+ #
3924
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
3925
+ # A request object representing the call parameters. Required. To specify no
3926
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3927
+ # @param options [::Gapic::CallOptions, ::Hash]
3928
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3929
+ #
3930
+ # @overload get_iam_policy(resource: nil, options: nil)
3931
+ # Pass arguments to `get_iam_policy` via keyword arguments. Note that at
3932
+ # least one keyword argument is required. To specify no parameters, or to keep all
3933
+ # the default parameter values, pass an empty Hash as a request object (see above).
3934
+ #
3935
+ # @param resource [::String]
3936
+ # REQUIRED: The resource for which the policy is being requested.
3937
+ # See the operation documentation for the appropriate value for this field.
3938
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
3939
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
3940
+ # `GetIamPolicy`.
3941
+ #
3942
+ # @yield [response, operation] Access the result along with the RPC operation
3943
+ # @yieldparam response [::Google::Iam::V1::Policy]
3944
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3945
+ #
3946
+ # @return [::Google::Iam::V1::Policy]
3947
+ #
3948
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3949
+ #
3950
+ # @example Basic example
3951
+ # require "google/cloud/artifact_registry/v1"
3952
+ #
3953
+ # # Create a client object. The client can be reused for multiple calls.
3954
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3955
+ #
3956
+ # # Create a request. To set request fields, pass in keyword arguments.
3957
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
3958
+ #
3959
+ # # Call the get_iam_policy method.
3960
+ # result = client.get_iam_policy request
3961
+ #
3962
+ # # The returned object is of type Google::Iam::V1::Policy.
3963
+ # p result
3964
+ #
3965
+ def get_iam_policy request, options = nil
3966
+ raise ::ArgumentError, "request must be provided" if request.nil?
3967
+
3968
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
3969
+
3970
+ # Converts hash and nil to an options object
3971
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3972
+
3973
+ # Customize the options with defaults
3974
+ metadata = @config.rpcs.get_iam_policy.metadata.to_h
3975
+
3976
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3977
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3978
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3979
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
3980
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3981
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3982
+
3983
+ header_params = {}
3984
+ if request.resource
3985
+ header_params["resource"] = request.resource
3986
+ end
3987
+
3988
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3989
+ metadata[:"x-goog-request-params"] ||= request_params_header
3990
+
3991
+ options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
3992
+ metadata: metadata,
3993
+ retry_policy: @config.rpcs.get_iam_policy.retry_policy
3994
+
3995
+ options.apply_defaults timeout: @config.timeout,
3996
+ metadata: @config.metadata,
3997
+ retry_policy: @config.retry_policy
3998
+
3999
+ @artifact_registry_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
4000
+ yield response, operation if block_given?
4001
+ return response
4002
+ end
4003
+ rescue ::GRPC::BadStatus => e
4004
+ raise ::Google::Cloud::Error.from_error(e)
4005
+ end
4006
+
4007
+ ##
4008
+ # Tests if the caller has a list of permissions on a resource.
4009
+ #
4010
+ # @overload test_iam_permissions(request, options = nil)
4011
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
4012
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
4013
+ #
4014
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
4015
+ # A request object representing the call parameters. Required. To specify no
4016
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4017
+ # @param options [::Gapic::CallOptions, ::Hash]
4018
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4019
+ #
4020
+ # @overload test_iam_permissions(resource: nil, permissions: nil)
4021
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
4022
+ # least one keyword argument is required. To specify no parameters, or to keep all
4023
+ # the default parameter values, pass an empty Hash as a request object (see above).
4024
+ #
4025
+ # @param resource [::String]
4026
+ # REQUIRED: The resource for which the policy detail is being requested.
4027
+ # See the operation documentation for the appropriate value for this field.
4028
+ # @param permissions [::Array<::String>]
4029
+ # The set of permissions to check for the `resource`. Permissions with
4030
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
4031
+ # information see
4032
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
4033
+ #
4034
+ # @yield [response, operation] Access the result along with the RPC operation
4035
+ # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse]
4036
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4037
+ #
4038
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
4039
+ #
4040
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4041
+ #
4042
+ # @example Basic example
4043
+ # require "google/cloud/artifact_registry/v1"
4044
+ #
4045
+ # # Create a client object. The client can be reused for multiple calls.
4046
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
4047
+ #
4048
+ # # Create a request. To set request fields, pass in keyword arguments.
4049
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
4050
+ #
4051
+ # # Call the test_iam_permissions method.
4052
+ # result = client.test_iam_permissions request
4053
+ #
4054
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
4055
+ # p result
4056
+ #
4057
+ def test_iam_permissions request, options = nil
4058
+ raise ::ArgumentError, "request must be provided" if request.nil?
4059
+
4060
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
4061
+
4062
+ # Converts hash and nil to an options object
4063
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4064
+
4065
+ # Customize the options with defaults
4066
+ metadata = @config.rpcs.test_iam_permissions.metadata.to_h
4067
+
4068
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4069
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4070
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4071
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
4072
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4073
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4074
+
4075
+ header_params = {}
4076
+ if request.resource
4077
+ header_params["resource"] = request.resource
4078
+ end
4079
+
4080
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4081
+ metadata[:"x-goog-request-params"] ||= request_params_header
4082
+
4083
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
4084
+ metadata: metadata,
4085
+ retry_policy: @config.rpcs.test_iam_permissions.retry_policy
4086
+
4087
+ options.apply_defaults timeout: @config.timeout,
4088
+ metadata: @config.metadata,
4089
+ retry_policy: @config.retry_policy
4090
+
4091
+ @artifact_registry_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
4092
+ yield response, operation if block_given?
4093
+ return response
4094
+ end
4095
+ rescue ::GRPC::BadStatus => e
4096
+ raise ::Google::Cloud::Error.from_error(e)
4097
+ end
4098
+
4099
+ ##
4100
+ # Retrieves the Settings for the Project.
4101
+ #
4102
+ # @overload get_project_settings(request, options = nil)
4103
+ # Pass arguments to `get_project_settings` via a request object, either of type
4104
+ # {::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest} or an equivalent Hash.
4105
+ #
4106
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest, ::Hash]
4107
+ # A request object representing the call parameters. Required. To specify no
4108
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4109
+ # @param options [::Gapic::CallOptions, ::Hash]
4110
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4111
+ #
4112
+ # @overload get_project_settings(name: nil)
4113
+ # Pass arguments to `get_project_settings` via keyword arguments. Note that at
4114
+ # least one keyword argument is required. To specify no parameters, or to keep all
4115
+ # the default parameter values, pass an empty Hash as a request object (see above).
4116
+ #
4117
+ # @param name [::String]
4118
+ # Required. The name of the projectSettings resource.
4119
+ #
4120
+ # @yield [response, operation] Access the result along with the RPC operation
4121
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
4122
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4123
+ #
4124
+ # @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
4125
+ #
4126
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4127
+ #
4128
+ # @example Basic example
4129
+ # require "google/cloud/artifact_registry/v1"
4130
+ #
4131
+ # # Create a client object. The client can be reused for multiple calls.
4132
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
4133
+ #
4134
+ # # Create a request. To set request fields, pass in keyword arguments.
4135
+ # request = Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest.new
4136
+ #
4137
+ # # Call the get_project_settings method.
4138
+ # result = client.get_project_settings request
4139
+ #
4140
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::ProjectSettings.
4141
+ # p result
4142
+ #
4143
+ def get_project_settings request, options = nil
4144
+ raise ::ArgumentError, "request must be provided" if request.nil?
4145
+
4146
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest
4147
+
4148
+ # Converts hash and nil to an options object
4149
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4150
+
4151
+ # Customize the options with defaults
4152
+ metadata = @config.rpcs.get_project_settings.metadata.to_h
4153
+
4154
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4155
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4156
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4157
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
4158
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4159
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4160
+
4161
+ header_params = {}
4162
+ if request.name
4163
+ header_params["name"] = request.name
4164
+ end
4165
+
4166
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4167
+ metadata[:"x-goog-request-params"] ||= request_params_header
4168
+
4169
+ options.apply_defaults timeout: @config.rpcs.get_project_settings.timeout,
4170
+ metadata: metadata,
4171
+ retry_policy: @config.rpcs.get_project_settings.retry_policy
4172
+
4173
+ options.apply_defaults timeout: @config.timeout,
4174
+ metadata: @config.metadata,
4175
+ retry_policy: @config.retry_policy
4176
+
4177
+ @artifact_registry_stub.call_rpc :get_project_settings, request, options: options do |response, operation|
4178
+ yield response, operation if block_given?
4179
+ return response
4180
+ end
4181
+ rescue ::GRPC::BadStatus => e
4182
+ raise ::Google::Cloud::Error.from_error(e)
4183
+ end
4184
+
4185
+ ##
4186
+ # Updates the Settings for the Project.
4187
+ #
4188
+ # @overload update_project_settings(request, options = nil)
4189
+ # Pass arguments to `update_project_settings` via a request object, either of type
4190
+ # {::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest} or an equivalent Hash.
4191
+ #
4192
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest, ::Hash]
4193
+ # A request object representing the call parameters. Required. To specify no
4194
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4195
+ # @param options [::Gapic::CallOptions, ::Hash]
4196
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4197
+ #
4198
+ # @overload update_project_settings(project_settings: nil, update_mask: nil)
4199
+ # Pass arguments to `update_project_settings` via keyword arguments. Note that at
4200
+ # least one keyword argument is required. To specify no parameters, or to keep all
4201
+ # the default parameter values, pass an empty Hash as a request object (see above).
4202
+ #
4203
+ # @param project_settings [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings, ::Hash]
4204
+ # The project settings.
4205
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
4206
+ # Field mask to support partial updates.
4207
+ #
4208
+ # @yield [response, operation] Access the result along with the RPC operation
4209
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
4210
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4211
+ #
4212
+ # @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
4213
+ #
4214
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4215
+ #
4216
+ # @example Basic example
4217
+ # require "google/cloud/artifact_registry/v1"
4218
+ #
4219
+ # # Create a client object. The client can be reused for multiple calls.
4220
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
4221
+ #
4222
+ # # Create a request. To set request fields, pass in keyword arguments.
4223
+ # request = Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest.new
4224
+ #
4225
+ # # Call the update_project_settings method.
4226
+ # result = client.update_project_settings request
4227
+ #
4228
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::ProjectSettings.
4229
+ # p result
4230
+ #
4231
+ def update_project_settings request, options = nil
4232
+ raise ::ArgumentError, "request must be provided" if request.nil?
4233
+
4234
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest
4235
+
4236
+ # Converts hash and nil to an options object
4237
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4238
+
4239
+ # Customize the options with defaults
4240
+ metadata = @config.rpcs.update_project_settings.metadata.to_h
4241
+
4242
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4243
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4244
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4245
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
4246
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4247
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4248
+
4249
+ header_params = {}
4250
+ if request.project_settings&.name
4251
+ header_params["project_settings.name"] = request.project_settings.name
4252
+ end
4253
+
4254
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4255
+ metadata[:"x-goog-request-params"] ||= request_params_header
4256
+
4257
+ options.apply_defaults timeout: @config.rpcs.update_project_settings.timeout,
4258
+ metadata: metadata,
4259
+ retry_policy: @config.rpcs.update_project_settings.retry_policy
4260
+
4261
+ options.apply_defaults timeout: @config.timeout,
4262
+ metadata: @config.metadata,
4263
+ retry_policy: @config.retry_policy
4264
+
4265
+ @artifact_registry_stub.call_rpc :update_project_settings, request, options: options do |response, operation|
4266
+ yield response, operation if block_given?
4267
+ return response
4268
+ end
4269
+ rescue ::GRPC::BadStatus => e
4270
+ raise ::Google::Cloud::Error.from_error(e)
4271
+ end
4272
+
4273
+ ##
4274
+ # Retrieves the VPCSC Config for the Project.
4275
+ #
4276
+ # @overload get_vpcsc_config(request, options = nil)
4277
+ # Pass arguments to `get_vpcsc_config` via a request object, either of type
4278
+ # {::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest} or an equivalent Hash.
4279
+ #
4280
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest, ::Hash]
4281
+ # A request object representing the call parameters. Required. To specify no
4282
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4283
+ # @param options [::Gapic::CallOptions, ::Hash]
4284
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4285
+ #
4286
+ # @overload get_vpcsc_config(name: nil)
4287
+ # Pass arguments to `get_vpcsc_config` via keyword arguments. Note that at
4288
+ # least one keyword argument is required. To specify no parameters, or to keep all
4289
+ # the default parameter values, pass an empty Hash as a request object (see above).
4290
+ #
4291
+ # @param name [::String]
4292
+ # Required. The name of the VPCSCConfig resource.
4293
+ #
4294
+ # @yield [response, operation] Access the result along with the RPC operation
4295
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
4296
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4297
+ #
4298
+ # @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
4299
+ #
4300
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4301
+ #
4302
+ # @example Basic example
4303
+ # require "google/cloud/artifact_registry/v1"
4304
+ #
4305
+ # # Create a client object. The client can be reused for multiple calls.
4306
+ # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
4307
+ #
4308
+ # # Create a request. To set request fields, pass in keyword arguments.
4309
+ # request = Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest.new
4310
+ #
4311
+ # # Call the get_vpcsc_config method.
4312
+ # result = client.get_vpcsc_config request
4313
+ #
4314
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.
4315
+ # p result
4316
+ #
4317
+ def get_vpcsc_config request, options = nil
4318
+ raise ::ArgumentError, "request must be provided" if request.nil?
4319
+
4320
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest
4321
+
4322
+ # Converts hash and nil to an options object
4323
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4324
+
4325
+ # Customize the options with defaults
4326
+ metadata = @config.rpcs.get_vpcsc_config.metadata.to_h
4327
+
4328
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
4329
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4330
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4331
+ gapic_version: ::Google::Cloud::ArtifactRegistry::V1::VERSION
4332
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
4333
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4334
+
4335
+ header_params = {}
4336
+ if request.name
4337
+ header_params["name"] = request.name
4338
+ end
4339
+
4340
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4341
+ metadata[:"x-goog-request-params"] ||= request_params_header
4342
+
4343
+ options.apply_defaults timeout: @config.rpcs.get_vpcsc_config.timeout,
4344
+ metadata: metadata,
4345
+ retry_policy: @config.rpcs.get_vpcsc_config.retry_policy
4346
+
4347
+ options.apply_defaults timeout: @config.timeout,
4348
+ metadata: @config.metadata,
4349
+ retry_policy: @config.retry_policy
4350
+
4351
+ @artifact_registry_stub.call_rpc :get_vpcsc_config, request, options: options do |response, operation|
4352
+ yield response, operation if block_given?
4353
+ return response
4354
+ end
4355
+ rescue ::GRPC::BadStatus => e
4356
+ raise ::Google::Cloud::Error.from_error(e)
4357
+ end
4358
+
4359
+ ##
4360
+ # Updates the VPCSC Config for the Project.
4361
+ #
4362
+ # @overload update_vpcsc_config(request, options = nil)
4363
+ # Pass arguments to `update_vpcsc_config` via a request object, either of type
4364
+ # {::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest} or an equivalent Hash.
4365
+ #
4366
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest, ::Hash]
4367
+ # A request object representing the call parameters. Required. To specify no
4368
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4369
+ # @param options [::Gapic::CallOptions, ::Hash]
4370
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4371
+ #
4372
+ # @overload update_vpcsc_config(vpcsc_config: nil, update_mask: nil)
4373
+ # Pass arguments to `update_vpcsc_config` via keyword arguments. Note that at
4374
+ # least one keyword argument is required. To specify no parameters, or to keep all
4375
+ # the default parameter values, pass an empty Hash as a request object (see above).
4376
+ #
4377
+ # @param vpcsc_config [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig, ::Hash]
4378
+ # The project config.
4379
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
4380
+ # Field mask to support partial updates.
3044
4381
  #
3045
4382
  # @yield [response, operation] Access the result along with the RPC operation
3046
- # @yieldparam response [::Google::Iam::V1::Policy]
4383
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
3047
4384
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
3048
4385
  #
3049
- # @return [::Google::Iam::V1::Policy]
4386
+ # @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
3050
4387
  #
3051
4388
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3052
4389
  #
@@ -3057,24 +4394,24 @@ module Google
3057
4394
  # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3058
4395
  #
3059
4396
  # # Create a request. To set request fields, pass in keyword arguments.
3060
- # request = Google::Iam::V1::GetIamPolicyRequest.new
4397
+ # request = Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest.new
3061
4398
  #
3062
- # # Call the get_iam_policy method.
3063
- # result = client.get_iam_policy request
4399
+ # # Call the update_vpcsc_config method.
4400
+ # result = client.update_vpcsc_config request
3064
4401
  #
3065
- # # The returned object is of type Google::Iam::V1::Policy.
4402
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.
3066
4403
  # p result
3067
4404
  #
3068
- def get_iam_policy request, options = nil
4405
+ def update_vpcsc_config request, options = nil
3069
4406
  raise ::ArgumentError, "request must be provided" if request.nil?
3070
4407
 
3071
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
4408
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest
3072
4409
 
3073
4410
  # Converts hash and nil to an options object
3074
4411
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3075
4412
 
3076
4413
  # Customize the options with defaults
3077
- metadata = @config.rpcs.get_iam_policy.metadata.to_h
4414
+ metadata = @config.rpcs.update_vpcsc_config.metadata.to_h
3078
4415
 
3079
4416
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3080
4417
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -3084,22 +4421,22 @@ module Google
3084
4421
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3085
4422
 
3086
4423
  header_params = {}
3087
- if request.resource
3088
- header_params["resource"] = request.resource
4424
+ if request.vpcsc_config&.name
4425
+ header_params["vpcsc_config.name"] = request.vpcsc_config.name
3089
4426
  end
3090
4427
 
3091
4428
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3092
4429
  metadata[:"x-goog-request-params"] ||= request_params_header
3093
4430
 
3094
- options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
4431
+ options.apply_defaults timeout: @config.rpcs.update_vpcsc_config.timeout,
3095
4432
  metadata: metadata,
3096
- retry_policy: @config.rpcs.get_iam_policy.retry_policy
4433
+ retry_policy: @config.rpcs.update_vpcsc_config.retry_policy
3097
4434
 
3098
4435
  options.apply_defaults timeout: @config.timeout,
3099
4436
  metadata: @config.metadata,
3100
4437
  retry_policy: @config.retry_policy
3101
4438
 
3102
- @artifact_registry_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
4439
+ @artifact_registry_stub.call_rpc :update_vpcsc_config, request, options: options do |response, operation|
3103
4440
  yield response, operation if block_given?
3104
4441
  return response
3105
4442
  end
@@ -3108,37 +4445,35 @@ module Google
3108
4445
  end
3109
4446
 
3110
4447
  ##
3111
- # Tests if the caller has a list of permissions on a resource.
4448
+ # Updates a package.
3112
4449
  #
3113
- # @overload test_iam_permissions(request, options = nil)
3114
- # Pass arguments to `test_iam_permissions` via a request object, either of type
3115
- # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
4450
+ # @overload update_package(request, options = nil)
4451
+ # Pass arguments to `update_package` via a request object, either of type
4452
+ # {::Google::Cloud::ArtifactRegistry::V1::UpdatePackageRequest} or an equivalent Hash.
3116
4453
  #
3117
- # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
4454
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::UpdatePackageRequest, ::Hash]
3118
4455
  # A request object representing the call parameters. Required. To specify no
3119
4456
  # parameters, or to keep all the default parameter values, pass an empty Hash.
3120
4457
  # @param options [::Gapic::CallOptions, ::Hash]
3121
4458
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3122
4459
  #
3123
- # @overload test_iam_permissions(resource: nil, permissions: nil)
3124
- # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
4460
+ # @overload update_package(package: nil, update_mask: nil)
4461
+ # Pass arguments to `update_package` via keyword arguments. Note that at
3125
4462
  # least one keyword argument is required. To specify no parameters, or to keep all
3126
4463
  # the default parameter values, pass an empty Hash as a request object (see above).
3127
4464
  #
3128
- # @param resource [::String]
3129
- # REQUIRED: The resource for which the policy detail is being requested.
3130
- # See the operation documentation for the appropriate value for this field.
3131
- # @param permissions [::Array<::String>]
3132
- # The set of permissions to check for the `resource`. Permissions with
3133
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
3134
- # information see
3135
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
4465
+ # @param package [::Google::Cloud::ArtifactRegistry::V1::Package, ::Hash]
4466
+ # The package that replaces the resource on the server.
4467
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
4468
+ # The update mask applies to the resource. For the `FieldMask` definition,
4469
+ # see
4470
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
3136
4471
  #
3137
4472
  # @yield [response, operation] Access the result along with the RPC operation
3138
- # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse]
4473
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::Package]
3139
4474
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
3140
4475
  #
3141
- # @return [::Google::Iam::V1::TestIamPermissionsResponse]
4476
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Package]
3142
4477
  #
3143
4478
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3144
4479
  #
@@ -3149,24 +4484,24 @@ module Google
3149
4484
  # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3150
4485
  #
3151
4486
  # # Create a request. To set request fields, pass in keyword arguments.
3152
- # request = Google::Iam::V1::TestIamPermissionsRequest.new
4487
+ # request = Google::Cloud::ArtifactRegistry::V1::UpdatePackageRequest.new
3153
4488
  #
3154
- # # Call the test_iam_permissions method.
3155
- # result = client.test_iam_permissions request
4489
+ # # Call the update_package method.
4490
+ # result = client.update_package request
3156
4491
  #
3157
- # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
4492
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Package.
3158
4493
  # p result
3159
4494
  #
3160
- def test_iam_permissions request, options = nil
4495
+ def update_package request, options = nil
3161
4496
  raise ::ArgumentError, "request must be provided" if request.nil?
3162
4497
 
3163
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
4498
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdatePackageRequest
3164
4499
 
3165
4500
  # Converts hash and nil to an options object
3166
4501
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3167
4502
 
3168
4503
  # Customize the options with defaults
3169
- metadata = @config.rpcs.test_iam_permissions.metadata.to_h
4504
+ metadata = @config.rpcs.update_package.metadata.to_h
3170
4505
 
3171
4506
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3172
4507
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -3176,22 +4511,22 @@ module Google
3176
4511
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3177
4512
 
3178
4513
  header_params = {}
3179
- if request.resource
3180
- header_params["resource"] = request.resource
4514
+ if request.package&.name
4515
+ header_params["package.name"] = request.package.name
3181
4516
  end
3182
4517
 
3183
4518
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3184
4519
  metadata[:"x-goog-request-params"] ||= request_params_header
3185
4520
 
3186
- options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
4521
+ options.apply_defaults timeout: @config.rpcs.update_package.timeout,
3187
4522
  metadata: metadata,
3188
- retry_policy: @config.rpcs.test_iam_permissions.retry_policy
4523
+ retry_policy: @config.rpcs.update_package.retry_policy
3189
4524
 
3190
4525
  options.apply_defaults timeout: @config.timeout,
3191
4526
  metadata: @config.metadata,
3192
4527
  retry_policy: @config.retry_policy
3193
4528
 
3194
- @artifact_registry_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
4529
+ @artifact_registry_stub.call_rpc :update_package, request, options: options do |response, operation|
3195
4530
  yield response, operation if block_given?
3196
4531
  return response
3197
4532
  end
@@ -3200,31 +4535,42 @@ module Google
3200
4535
  end
3201
4536
 
3202
4537
  ##
3203
- # Retrieves the Settings for the Project.
4538
+ # Lists attachments.
3204
4539
  #
3205
- # @overload get_project_settings(request, options = nil)
3206
- # Pass arguments to `get_project_settings` via a request object, either of type
3207
- # {::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest} or an equivalent Hash.
4540
+ # @overload list_attachments(request, options = nil)
4541
+ # Pass arguments to `list_attachments` via a request object, either of type
4542
+ # {::Google::Cloud::ArtifactRegistry::V1::ListAttachmentsRequest} or an equivalent Hash.
3208
4543
  #
3209
- # @param request [::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest, ::Hash]
4544
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::ListAttachmentsRequest, ::Hash]
3210
4545
  # A request object representing the call parameters. Required. To specify no
3211
4546
  # parameters, or to keep all the default parameter values, pass an empty Hash.
3212
4547
  # @param options [::Gapic::CallOptions, ::Hash]
3213
4548
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3214
4549
  #
3215
- # @overload get_project_settings(name: nil)
3216
- # Pass arguments to `get_project_settings` via keyword arguments. Note that at
4550
+ # @overload list_attachments(parent: nil, filter: nil, page_size: nil, page_token: nil)
4551
+ # Pass arguments to `list_attachments` via keyword arguments. Note that at
3217
4552
  # least one keyword argument is required. To specify no parameters, or to keep all
3218
4553
  # the default parameter values, pass an empty Hash as a request object (see above).
3219
4554
  #
3220
- # @param name [::String]
3221
- # Required. The name of the projectSettings resource.
4555
+ # @param parent [::String]
4556
+ # Required. The name of the parent resource whose attachments will be listed.
4557
+ # @param filter [::String]
4558
+ # Optional. An expression for filtering the results of the request. Filter
4559
+ # rules are case insensitive. The fields eligible for filtering are:
4560
+ #
4561
+ # * `target`
4562
+ # * `type`
4563
+ # * `attachment_namespace`
4564
+ # @param page_size [::Integer]
4565
+ # The maximum number of attachments to return. Maximum page size is 1,000.
4566
+ # @param page_token [::String]
4567
+ # The next_page_token value returned from a previous list request, if any.
3222
4568
  #
3223
4569
  # @yield [response, operation] Access the result along with the RPC operation
3224
- # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
4570
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Attachment>]
3225
4571
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
3226
4572
  #
3227
- # @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
4573
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::ArtifactRegistry::V1::Attachment>]
3228
4574
  #
3229
4575
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3230
4576
  #
@@ -3235,24 +4581,28 @@ module Google
3235
4581
  # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3236
4582
  #
3237
4583
  # # Create a request. To set request fields, pass in keyword arguments.
3238
- # request = Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest.new
4584
+ # request = Google::Cloud::ArtifactRegistry::V1::ListAttachmentsRequest.new
3239
4585
  #
3240
- # # Call the get_project_settings method.
3241
- # result = client.get_project_settings request
4586
+ # # Call the list_attachments method.
4587
+ # result = client.list_attachments request
3242
4588
  #
3243
- # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::ProjectSettings.
3244
- # p result
4589
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4590
+ # # over elements, and API calls will be issued to fetch pages as needed.
4591
+ # result.each do |item|
4592
+ # # Each element is of type ::Google::Cloud::ArtifactRegistry::V1::Attachment.
4593
+ # p item
4594
+ # end
3245
4595
  #
3246
- def get_project_settings request, options = nil
4596
+ def list_attachments request, options = nil
3247
4597
  raise ::ArgumentError, "request must be provided" if request.nil?
3248
4598
 
3249
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetProjectSettingsRequest
4599
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::ListAttachmentsRequest
3250
4600
 
3251
4601
  # Converts hash and nil to an options object
3252
4602
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3253
4603
 
3254
4604
  # Customize the options with defaults
3255
- metadata = @config.rpcs.get_project_settings.metadata.to_h
4605
+ metadata = @config.rpcs.list_attachments.metadata.to_h
3256
4606
 
3257
4607
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3258
4608
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -3262,22 +4612,23 @@ module Google
3262
4612
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3263
4613
 
3264
4614
  header_params = {}
3265
- if request.name
3266
- header_params["name"] = request.name
4615
+ if request.parent
4616
+ header_params["parent"] = request.parent
3267
4617
  end
3268
4618
 
3269
4619
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3270
4620
  metadata[:"x-goog-request-params"] ||= request_params_header
3271
4621
 
3272
- options.apply_defaults timeout: @config.rpcs.get_project_settings.timeout,
4622
+ options.apply_defaults timeout: @config.rpcs.list_attachments.timeout,
3273
4623
  metadata: metadata,
3274
- retry_policy: @config.rpcs.get_project_settings.retry_policy
4624
+ retry_policy: @config.rpcs.list_attachments.retry_policy
3275
4625
 
3276
4626
  options.apply_defaults timeout: @config.timeout,
3277
4627
  metadata: @config.metadata,
3278
4628
  retry_policy: @config.retry_policy
3279
4629
 
3280
- @artifact_registry_stub.call_rpc :get_project_settings, request, options: options do |response, operation|
4630
+ @artifact_registry_stub.call_rpc :list_attachments, request, options: options do |response, operation|
4631
+ response = ::Gapic::PagedEnumerable.new @artifact_registry_stub, :list_attachments, request, response, operation, options
3281
4632
  yield response, operation if block_given?
3282
4633
  return response
3283
4634
  end
@@ -3286,33 +4637,31 @@ module Google
3286
4637
  end
3287
4638
 
3288
4639
  ##
3289
- # Updates the Settings for the Project.
4640
+ # Gets an attachment.
3290
4641
  #
3291
- # @overload update_project_settings(request, options = nil)
3292
- # Pass arguments to `update_project_settings` via a request object, either of type
3293
- # {::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest} or an equivalent Hash.
4642
+ # @overload get_attachment(request, options = nil)
4643
+ # Pass arguments to `get_attachment` via a request object, either of type
4644
+ # {::Google::Cloud::ArtifactRegistry::V1::GetAttachmentRequest} or an equivalent Hash.
3294
4645
  #
3295
- # @param request [::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest, ::Hash]
4646
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::GetAttachmentRequest, ::Hash]
3296
4647
  # A request object representing the call parameters. Required. To specify no
3297
4648
  # parameters, or to keep all the default parameter values, pass an empty Hash.
3298
4649
  # @param options [::Gapic::CallOptions, ::Hash]
3299
4650
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3300
4651
  #
3301
- # @overload update_project_settings(project_settings: nil, update_mask: nil)
3302
- # Pass arguments to `update_project_settings` via keyword arguments. Note that at
4652
+ # @overload get_attachment(name: nil)
4653
+ # Pass arguments to `get_attachment` via keyword arguments. Note that at
3303
4654
  # least one keyword argument is required. To specify no parameters, or to keep all
3304
4655
  # the default parameter values, pass an empty Hash as a request object (see above).
3305
4656
  #
3306
- # @param project_settings [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings, ::Hash]
3307
- # The project settings.
3308
- # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3309
- # Field mask to support partial updates.
4657
+ # @param name [::String]
4658
+ # Required. The name of the attachment to retrieve.
3310
4659
  #
3311
4660
  # @yield [response, operation] Access the result along with the RPC operation
3312
- # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
4661
+ # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::Attachment]
3313
4662
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
3314
4663
  #
3315
- # @return [::Google::Cloud::ArtifactRegistry::V1::ProjectSettings]
4664
+ # @return [::Google::Cloud::ArtifactRegistry::V1::Attachment]
3316
4665
  #
3317
4666
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3318
4667
  #
@@ -3323,24 +4672,24 @@ module Google
3323
4672
  # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3324
4673
  #
3325
4674
  # # Create a request. To set request fields, pass in keyword arguments.
3326
- # request = Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest.new
4675
+ # request = Google::Cloud::ArtifactRegistry::V1::GetAttachmentRequest.new
3327
4676
  #
3328
- # # Call the update_project_settings method.
3329
- # result = client.update_project_settings request
4677
+ # # Call the get_attachment method.
4678
+ # result = client.get_attachment request
3330
4679
  #
3331
- # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::ProjectSettings.
4680
+ # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::Attachment.
3332
4681
  # p result
3333
4682
  #
3334
- def update_project_settings request, options = nil
4683
+ def get_attachment request, options = nil
3335
4684
  raise ::ArgumentError, "request must be provided" if request.nil?
3336
4685
 
3337
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdateProjectSettingsRequest
4686
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetAttachmentRequest
3338
4687
 
3339
4688
  # Converts hash and nil to an options object
3340
4689
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3341
4690
 
3342
4691
  # Customize the options with defaults
3343
- metadata = @config.rpcs.update_project_settings.metadata.to_h
4692
+ metadata = @config.rpcs.get_attachment.metadata.to_h
3344
4693
 
3345
4694
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3346
4695
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -3350,22 +4699,22 @@ module Google
3350
4699
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3351
4700
 
3352
4701
  header_params = {}
3353
- if request.project_settings&.name
3354
- header_params["project_settings.name"] = request.project_settings.name
4702
+ if request.name
4703
+ header_params["name"] = request.name
3355
4704
  end
3356
4705
 
3357
4706
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3358
4707
  metadata[:"x-goog-request-params"] ||= request_params_header
3359
4708
 
3360
- options.apply_defaults timeout: @config.rpcs.update_project_settings.timeout,
4709
+ options.apply_defaults timeout: @config.rpcs.get_attachment.timeout,
3361
4710
  metadata: metadata,
3362
- retry_policy: @config.rpcs.update_project_settings.retry_policy
4711
+ retry_policy: @config.rpcs.get_attachment.retry_policy
3363
4712
 
3364
4713
  options.apply_defaults timeout: @config.timeout,
3365
4714
  metadata: @config.metadata,
3366
4715
  retry_policy: @config.retry_policy
3367
4716
 
3368
- @artifact_registry_stub.call_rpc :update_project_settings, request, options: options do |response, operation|
4717
+ @artifact_registry_stub.call_rpc :get_attachment, request, options: options do |response, operation|
3369
4718
  yield response, operation if block_given?
3370
4719
  return response
3371
4720
  end
@@ -3374,31 +4723,37 @@ module Google
3374
4723
  end
3375
4724
 
3376
4725
  ##
3377
- # Retrieves the VPCSC Config for the Project.
4726
+ # Creates an attachment. The returned Operation will finish once the
4727
+ # attachment has been created. Its response will be the created attachment.
3378
4728
  #
3379
- # @overload get_vpcsc_config(request, options = nil)
3380
- # Pass arguments to `get_vpcsc_config` via a request object, either of type
3381
- # {::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest} or an equivalent Hash.
4729
+ # @overload create_attachment(request, options = nil)
4730
+ # Pass arguments to `create_attachment` via a request object, either of type
4731
+ # {::Google::Cloud::ArtifactRegistry::V1::CreateAttachmentRequest} or an equivalent Hash.
3382
4732
  #
3383
- # @param request [::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest, ::Hash]
4733
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::CreateAttachmentRequest, ::Hash]
3384
4734
  # A request object representing the call parameters. Required. To specify no
3385
4735
  # parameters, or to keep all the default parameter values, pass an empty Hash.
3386
4736
  # @param options [::Gapic::CallOptions, ::Hash]
3387
4737
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3388
4738
  #
3389
- # @overload get_vpcsc_config(name: nil)
3390
- # Pass arguments to `get_vpcsc_config` via keyword arguments. Note that at
4739
+ # @overload create_attachment(parent: nil, attachment_id: nil, attachment: nil)
4740
+ # Pass arguments to `create_attachment` via keyword arguments. Note that at
3391
4741
  # least one keyword argument is required. To specify no parameters, or to keep all
3392
4742
  # the default parameter values, pass an empty Hash as a request object (see above).
3393
4743
  #
3394
- # @param name [::String]
3395
- # Required. The name of the VPCSCConfig resource.
4744
+ # @param parent [::String]
4745
+ # Required. The name of the parent resource where the attachment will be
4746
+ # created.
4747
+ # @param attachment_id [::String]
4748
+ # Required. The attachment id to use for this attachment.
4749
+ # @param attachment [::Google::Cloud::ArtifactRegistry::V1::Attachment, ::Hash]
4750
+ # Required. The attachment to be created.
3396
4751
  #
3397
4752
  # @yield [response, operation] Access the result along with the RPC operation
3398
- # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
4753
+ # @yieldparam response [::Gapic::Operation]
3399
4754
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
3400
4755
  #
3401
- # @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
4756
+ # @return [::Gapic::Operation]
3402
4757
  #
3403
4758
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3404
4759
  #
@@ -3409,24 +4764,31 @@ module Google
3409
4764
  # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3410
4765
  #
3411
4766
  # # Create a request. To set request fields, pass in keyword arguments.
3412
- # request = Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest.new
4767
+ # request = Google::Cloud::ArtifactRegistry::V1::CreateAttachmentRequest.new
3413
4768
  #
3414
- # # Call the get_vpcsc_config method.
3415
- # result = client.get_vpcsc_config request
4769
+ # # Call the create_attachment method.
4770
+ # result = client.create_attachment request
3416
4771
  #
3417
- # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.
3418
- # p result
4772
+ # # The returned object is of type Gapic::Operation. You can use it to
4773
+ # # check the status of an operation, cancel it, or wait for results.
4774
+ # # Here is how to wait for a response.
4775
+ # result.wait_until_done! timeout: 60
4776
+ # if result.response?
4777
+ # p result.response
4778
+ # else
4779
+ # puts "No response received."
4780
+ # end
3419
4781
  #
3420
- def get_vpcsc_config request, options = nil
4782
+ def create_attachment request, options = nil
3421
4783
  raise ::ArgumentError, "request must be provided" if request.nil?
3422
4784
 
3423
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::GetVPCSCConfigRequest
4785
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::CreateAttachmentRequest
3424
4786
 
3425
4787
  # Converts hash and nil to an options object
3426
4788
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3427
4789
 
3428
4790
  # Customize the options with defaults
3429
- metadata = @config.rpcs.get_vpcsc_config.metadata.to_h
4791
+ metadata = @config.rpcs.create_attachment.metadata.to_h
3430
4792
 
3431
4793
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3432
4794
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -3436,22 +4798,23 @@ module Google
3436
4798
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3437
4799
 
3438
4800
  header_params = {}
3439
- if request.name
3440
- header_params["name"] = request.name
4801
+ if request.parent
4802
+ header_params["parent"] = request.parent
3441
4803
  end
3442
4804
 
3443
4805
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3444
4806
  metadata[:"x-goog-request-params"] ||= request_params_header
3445
4807
 
3446
- options.apply_defaults timeout: @config.rpcs.get_vpcsc_config.timeout,
4808
+ options.apply_defaults timeout: @config.rpcs.create_attachment.timeout,
3447
4809
  metadata: metadata,
3448
- retry_policy: @config.rpcs.get_vpcsc_config.retry_policy
4810
+ retry_policy: @config.rpcs.create_attachment.retry_policy
3449
4811
 
3450
4812
  options.apply_defaults timeout: @config.timeout,
3451
4813
  metadata: @config.metadata,
3452
4814
  retry_policy: @config.retry_policy
3453
4815
 
3454
- @artifact_registry_stub.call_rpc :get_vpcsc_config, request, options: options do |response, operation|
4816
+ @artifact_registry_stub.call_rpc :create_attachment, request, options: options do |response, operation|
4817
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3455
4818
  yield response, operation if block_given?
3456
4819
  return response
3457
4820
  end
@@ -3460,33 +4823,33 @@ module Google
3460
4823
  end
3461
4824
 
3462
4825
  ##
3463
- # Updates the VPCSC Config for the Project.
4826
+ # Deletes an attachment. The returned Operation will
4827
+ # finish once the attachments has been deleted. It will not have any
4828
+ # Operation metadata and will return a `google.protobuf.Empty` response.
3464
4829
  #
3465
- # @overload update_vpcsc_config(request, options = nil)
3466
- # Pass arguments to `update_vpcsc_config` via a request object, either of type
3467
- # {::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest} or an equivalent Hash.
4830
+ # @overload delete_attachment(request, options = nil)
4831
+ # Pass arguments to `delete_attachment` via a request object, either of type
4832
+ # {::Google::Cloud::ArtifactRegistry::V1::DeleteAttachmentRequest} or an equivalent Hash.
3468
4833
  #
3469
- # @param request [::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest, ::Hash]
4834
+ # @param request [::Google::Cloud::ArtifactRegistry::V1::DeleteAttachmentRequest, ::Hash]
3470
4835
  # A request object representing the call parameters. Required. To specify no
3471
4836
  # parameters, or to keep all the default parameter values, pass an empty Hash.
3472
4837
  # @param options [::Gapic::CallOptions, ::Hash]
3473
4838
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3474
4839
  #
3475
- # @overload update_vpcsc_config(vpcsc_config: nil, update_mask: nil)
3476
- # Pass arguments to `update_vpcsc_config` via keyword arguments. Note that at
4840
+ # @overload delete_attachment(name: nil)
4841
+ # Pass arguments to `delete_attachment` via keyword arguments. Note that at
3477
4842
  # least one keyword argument is required. To specify no parameters, or to keep all
3478
4843
  # the default parameter values, pass an empty Hash as a request object (see above).
3479
4844
  #
3480
- # @param vpcsc_config [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig, ::Hash]
3481
- # The project config.
3482
- # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3483
- # Field mask to support partial updates.
4845
+ # @param name [::String]
4846
+ # Required. The name of the attachment to delete.
3484
4847
  #
3485
4848
  # @yield [response, operation] Access the result along with the RPC operation
3486
- # @yieldparam response [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
4849
+ # @yieldparam response [::Gapic::Operation]
3487
4850
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
3488
4851
  #
3489
- # @return [::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig]
4852
+ # @return [::Gapic::Operation]
3490
4853
  #
3491
4854
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3492
4855
  #
@@ -3497,24 +4860,31 @@ module Google
3497
4860
  # client = Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new
3498
4861
  #
3499
4862
  # # Create a request. To set request fields, pass in keyword arguments.
3500
- # request = Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest.new
4863
+ # request = Google::Cloud::ArtifactRegistry::V1::DeleteAttachmentRequest.new
3501
4864
  #
3502
- # # Call the update_vpcsc_config method.
3503
- # result = client.update_vpcsc_config request
4865
+ # # Call the delete_attachment method.
4866
+ # result = client.delete_attachment request
3504
4867
  #
3505
- # # The returned object is of type Google::Cloud::ArtifactRegistry::V1::VPCSCConfig.
3506
- # p result
4868
+ # # The returned object is of type Gapic::Operation. You can use it to
4869
+ # # check the status of an operation, cancel it, or wait for results.
4870
+ # # Here is how to wait for a response.
4871
+ # result.wait_until_done! timeout: 60
4872
+ # if result.response?
4873
+ # p result.response
4874
+ # else
4875
+ # puts "No response received."
4876
+ # end
3507
4877
  #
3508
- def update_vpcsc_config request, options = nil
4878
+ def delete_attachment request, options = nil
3509
4879
  raise ::ArgumentError, "request must be provided" if request.nil?
3510
4880
 
3511
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::UpdateVPCSCConfigRequest
4881
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ArtifactRegistry::V1::DeleteAttachmentRequest
3512
4882
 
3513
4883
  # Converts hash and nil to an options object
3514
4884
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3515
4885
 
3516
4886
  # Customize the options with defaults
3517
- metadata = @config.rpcs.update_vpcsc_config.metadata.to_h
4887
+ metadata = @config.rpcs.delete_attachment.metadata.to_h
3518
4888
 
3519
4889
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3520
4890
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -3524,22 +4894,23 @@ module Google
3524
4894
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3525
4895
 
3526
4896
  header_params = {}
3527
- if request.vpcsc_config&.name
3528
- header_params["vpcsc_config.name"] = request.vpcsc_config.name
4897
+ if request.name
4898
+ header_params["name"] = request.name
3529
4899
  end
3530
4900
 
3531
4901
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3532
4902
  metadata[:"x-goog-request-params"] ||= request_params_header
3533
4903
 
3534
- options.apply_defaults timeout: @config.rpcs.update_vpcsc_config.timeout,
4904
+ options.apply_defaults timeout: @config.rpcs.delete_attachment.timeout,
3535
4905
  metadata: metadata,
3536
- retry_policy: @config.rpcs.update_vpcsc_config.retry_policy
4906
+ retry_policy: @config.rpcs.delete_attachment.retry_policy
3537
4907
 
3538
4908
  options.apply_defaults timeout: @config.timeout,
3539
4909
  metadata: @config.metadata,
3540
4910
  retry_policy: @config.retry_policy
3541
4911
 
3542
- @artifact_registry_stub.call_rpc :update_vpcsc_config, request, options: options do |response, operation|
4912
+ @artifact_registry_stub.call_rpc :delete_attachment, request, options: options do |response, operation|
4913
+ response = ::Gapic::Operation.new response, @operations_client, options: options
3543
4914
  yield response, operation if block_given?
3544
4915
  return response
3545
4916
  end
@@ -3811,6 +5182,11 @@ module Google
3811
5182
  #
3812
5183
  attr_reader :batch_delete_versions
3813
5184
  ##
5185
+ # RPC-specific configuration for `update_version`
5186
+ # @return [::Gapic::Config::Method]
5187
+ #
5188
+ attr_reader :update_version
5189
+ ##
3814
5190
  # RPC-specific configuration for `list_files`
3815
5191
  # @return [::Gapic::Config::Method]
3816
5192
  #
@@ -3821,6 +5197,16 @@ module Google
3821
5197
  #
3822
5198
  attr_reader :get_file
3823
5199
  ##
5200
+ # RPC-specific configuration for `delete_file`
5201
+ # @return [::Gapic::Config::Method]
5202
+ #
5203
+ attr_reader :delete_file
5204
+ ##
5205
+ # RPC-specific configuration for `update_file`
5206
+ # @return [::Gapic::Config::Method]
5207
+ #
5208
+ attr_reader :update_file
5209
+ ##
3824
5210
  # RPC-specific configuration for `list_tags`
3825
5211
  # @return [::Gapic::Config::Method]
3826
5212
  #
@@ -3846,6 +5232,31 @@ module Google
3846
5232
  #
3847
5233
  attr_reader :delete_tag
3848
5234
  ##
5235
+ # RPC-specific configuration for `create_rule`
5236
+ # @return [::Gapic::Config::Method]
5237
+ #
5238
+ attr_reader :create_rule
5239
+ ##
5240
+ # RPC-specific configuration for `list_rules`
5241
+ # @return [::Gapic::Config::Method]
5242
+ #
5243
+ attr_reader :list_rules
5244
+ ##
5245
+ # RPC-specific configuration for `get_rule`
5246
+ # @return [::Gapic::Config::Method]
5247
+ #
5248
+ attr_reader :get_rule
5249
+ ##
5250
+ # RPC-specific configuration for `update_rule`
5251
+ # @return [::Gapic::Config::Method]
5252
+ #
5253
+ attr_reader :update_rule
5254
+ ##
5255
+ # RPC-specific configuration for `delete_rule`
5256
+ # @return [::Gapic::Config::Method]
5257
+ #
5258
+ attr_reader :delete_rule
5259
+ ##
3849
5260
  # RPC-specific configuration for `set_iam_policy`
3850
5261
  # @return [::Gapic::Config::Method]
3851
5262
  #
@@ -3880,6 +5291,31 @@ module Google
3880
5291
  # @return [::Gapic::Config::Method]
3881
5292
  #
3882
5293
  attr_reader :update_vpcsc_config
5294
+ ##
5295
+ # RPC-specific configuration for `update_package`
5296
+ # @return [::Gapic::Config::Method]
5297
+ #
5298
+ attr_reader :update_package
5299
+ ##
5300
+ # RPC-specific configuration for `list_attachments`
5301
+ # @return [::Gapic::Config::Method]
5302
+ #
5303
+ attr_reader :list_attachments
5304
+ ##
5305
+ # RPC-specific configuration for `get_attachment`
5306
+ # @return [::Gapic::Config::Method]
5307
+ #
5308
+ attr_reader :get_attachment
5309
+ ##
5310
+ # RPC-specific configuration for `create_attachment`
5311
+ # @return [::Gapic::Config::Method]
5312
+ #
5313
+ attr_reader :create_attachment
5314
+ ##
5315
+ # RPC-specific configuration for `delete_attachment`
5316
+ # @return [::Gapic::Config::Method]
5317
+ #
5318
+ attr_reader :delete_attachment
3883
5319
 
3884
5320
  # @private
3885
5321
  def initialize parent_rpcs = nil
@@ -3927,10 +5363,16 @@ module Google
3927
5363
  @delete_version = ::Gapic::Config::Method.new delete_version_config
3928
5364
  batch_delete_versions_config = parent_rpcs.batch_delete_versions if parent_rpcs.respond_to? :batch_delete_versions
3929
5365
  @batch_delete_versions = ::Gapic::Config::Method.new batch_delete_versions_config
5366
+ update_version_config = parent_rpcs.update_version if parent_rpcs.respond_to? :update_version
5367
+ @update_version = ::Gapic::Config::Method.new update_version_config
3930
5368
  list_files_config = parent_rpcs.list_files if parent_rpcs.respond_to? :list_files
3931
5369
  @list_files = ::Gapic::Config::Method.new list_files_config
3932
5370
  get_file_config = parent_rpcs.get_file if parent_rpcs.respond_to? :get_file
3933
5371
  @get_file = ::Gapic::Config::Method.new get_file_config
5372
+ delete_file_config = parent_rpcs.delete_file if parent_rpcs.respond_to? :delete_file
5373
+ @delete_file = ::Gapic::Config::Method.new delete_file_config
5374
+ update_file_config = parent_rpcs.update_file if parent_rpcs.respond_to? :update_file
5375
+ @update_file = ::Gapic::Config::Method.new update_file_config
3934
5376
  list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
3935
5377
  @list_tags = ::Gapic::Config::Method.new list_tags_config
3936
5378
  get_tag_config = parent_rpcs.get_tag if parent_rpcs.respond_to? :get_tag
@@ -3941,6 +5383,16 @@ module Google
3941
5383
  @update_tag = ::Gapic::Config::Method.new update_tag_config
3942
5384
  delete_tag_config = parent_rpcs.delete_tag if parent_rpcs.respond_to? :delete_tag
3943
5385
  @delete_tag = ::Gapic::Config::Method.new delete_tag_config
5386
+ create_rule_config = parent_rpcs.create_rule if parent_rpcs.respond_to? :create_rule
5387
+ @create_rule = ::Gapic::Config::Method.new create_rule_config
5388
+ list_rules_config = parent_rpcs.list_rules if parent_rpcs.respond_to? :list_rules
5389
+ @list_rules = ::Gapic::Config::Method.new list_rules_config
5390
+ get_rule_config = parent_rpcs.get_rule if parent_rpcs.respond_to? :get_rule
5391
+ @get_rule = ::Gapic::Config::Method.new get_rule_config
5392
+ update_rule_config = parent_rpcs.update_rule if parent_rpcs.respond_to? :update_rule
5393
+ @update_rule = ::Gapic::Config::Method.new update_rule_config
5394
+ delete_rule_config = parent_rpcs.delete_rule if parent_rpcs.respond_to? :delete_rule
5395
+ @delete_rule = ::Gapic::Config::Method.new delete_rule_config
3944
5396
  set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
3945
5397
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
3946
5398
  get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
@@ -3955,6 +5407,16 @@ module Google
3955
5407
  @get_vpcsc_config = ::Gapic::Config::Method.new get_vpcsc_config_config
3956
5408
  update_vpcsc_config_config = parent_rpcs.update_vpcsc_config if parent_rpcs.respond_to? :update_vpcsc_config
3957
5409
  @update_vpcsc_config = ::Gapic::Config::Method.new update_vpcsc_config_config
5410
+ update_package_config = parent_rpcs.update_package if parent_rpcs.respond_to? :update_package
5411
+ @update_package = ::Gapic::Config::Method.new update_package_config
5412
+ list_attachments_config = parent_rpcs.list_attachments if parent_rpcs.respond_to? :list_attachments
5413
+ @list_attachments = ::Gapic::Config::Method.new list_attachments_config
5414
+ get_attachment_config = parent_rpcs.get_attachment if parent_rpcs.respond_to? :get_attachment
5415
+ @get_attachment = ::Gapic::Config::Method.new get_attachment_config
5416
+ create_attachment_config = parent_rpcs.create_attachment if parent_rpcs.respond_to? :create_attachment
5417
+ @create_attachment = ::Gapic::Config::Method.new create_attachment_config
5418
+ delete_attachment_config = parent_rpcs.delete_attachment if parent_rpcs.respond_to? :delete_attachment
5419
+ @delete_attachment = ::Gapic::Config::Method.new delete_attachment_config
3958
5420
 
3959
5421
  yield self if block_given?
3960
5422
  end