google-cloud-batch-v1 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/batch/v1/batch_pb.rb +1 -0
  4. data/lib/google/cloud/batch/v1/batch_service/client.rb +16 -34
  5. data/lib/google/cloud/batch/v1/batch_service/operations.rb +12 -14
  6. data/lib/google/cloud/batch/v1/batch_service/rest/client.rb +810 -0
  7. data/lib/google/cloud/batch/v1/batch_service/rest/operations.rb +793 -0
  8. data/lib/google/cloud/batch/v1/batch_service/rest/service_stub.rb +403 -0
  9. data/lib/google/cloud/batch/v1/batch_service/rest.rb +56 -0
  10. data/lib/google/cloud/batch/v1/batch_service.rb +6 -0
  11. data/lib/google/cloud/batch/v1/bindings_override.rb +102 -0
  12. data/lib/google/cloud/batch/v1/rest.rb +38 -0
  13. data/lib/google/cloud/batch/v1/task_pb.rb +1 -0
  14. data/lib/google/cloud/batch/v1/version.rb +1 -1
  15. data/lib/google/cloud/batch/v1.rb +5 -0
  16. data/lib/google/iam/v1/bindings_override.rb +100 -0
  17. data/lib/google/iam/v1/iam_policy/client.rb +639 -0
  18. data/lib/google/iam/v1/iam_policy/credentials.rb +42 -0
  19. data/lib/google/iam/v1/iam_policy/rest/client.rb +558 -0
  20. data/lib/google/iam/v1/iam_policy/rest/service_stub.rb +226 -0
  21. data/lib/google/iam/v1/iam_policy/rest.rb +75 -0
  22. data/lib/google/iam/v1/iam_policy.rb +77 -0
  23. data/lib/google/iam/v1/rest.rb +36 -0
  24. data/lib/google/iam/v1.rb +43 -0
  25. data/lib/google-cloud-batch-v1.rb +1 -0
  26. data/proto_docs/google/cloud/batch/v1/batch.rb +4 -4
  27. data/proto_docs/google/cloud/batch/v1/job.rb +2 -1
  28. data/proto_docs/google/cloud/batch/v1/task.rb +27 -7
  29. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  30. data/proto_docs/google/iam/v1/options.rb +50 -0
  31. data/proto_docs/google/iam/v1/policy.rb +418 -0
  32. metadata +32 -20
@@ -0,0 +1,100 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Iam
23
+ ##
24
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
25
+ #
26
+ # require "google/iam/v1/rest"
27
+ # client = ::Google::Iam::V1::IAMPolicy::Rest::Client.new
28
+ #
29
+ module V1
30
+ ##
31
+ # @private
32
+ # Initialize the mixin bindings configuration
33
+ #
34
+ def self.configure
35
+ @configure ||= begin
36
+ namespace = ["Google", "Iam"]
37
+ parent_config = while namespace.any?
38
+ parent_name = namespace.join "::"
39
+ parent_const = const_get parent_name
40
+ break parent_const.configure if parent_const.respond_to? :configure
41
+ namespace.pop
42
+ end
43
+
44
+ default_config = Configuration.new parent_config
45
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
46
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
47
+ uri_method: :get,
48
+ uri_template: "/v1/{name}",
49
+ matches: [
50
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
51
+ ],
52
+ body: nil
53
+ )
54
+ ]
55
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
56
+
57
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
58
+ uri_method: :get,
59
+ uri_template: "/v1/{name}/locations",
60
+ matches: [
61
+ ["name", %r{^projects/[^/]+/?$}, false]
62
+ ],
63
+ body: nil
64
+ )
65
+ ]
66
+ default_config
67
+ end
68
+ yield @configure if block_given?
69
+ @configure
70
+ end
71
+
72
+ ##
73
+ # @private
74
+ # Configuration class for the google.iam.v1 package.
75
+ #
76
+ # This class contains common configuration for all services
77
+ # of the google.iam.v1 package.
78
+ #
79
+ # This configuration is for internal use of the client library classes,
80
+ # and it is not intended that the end-users will read or change it.
81
+ #
82
+ class Configuration
83
+ extend ::Gapic::Config
84
+
85
+ # @private
86
+ # Overrides for http bindings for the RPC of the mixins for this package.
87
+ # Services in this package should use these when creating clients for the mixin services.
88
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
89
+ config_attr :bindings_override, {}, ::Hash, nil
90
+
91
+ # @private
92
+ def initialize parent_config = nil
93
+ @parent_config = parent_config unless parent_config.nil?
94
+
95
+ yield self if block_given?
96
+ end
97
+ end
98
+ end
99
+ end
100
+ end