google-cloud-batch-v1 0.6.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/batch/v1/batch_pb.rb +1 -0
- data/lib/google/cloud/batch/v1/batch_service/client.rb +18 -36
- data/lib/google/cloud/batch/v1/batch_service/operations.rb +14 -16
- data/lib/google/cloud/batch/v1/batch_service/rest/client.rb +810 -0
- data/lib/google/cloud/batch/v1/batch_service/rest/operations.rb +793 -0
- data/lib/google/cloud/batch/v1/batch_service/rest/service_stub.rb +403 -0
- data/lib/google/cloud/batch/v1/batch_service/rest.rb +56 -0
- data/lib/google/cloud/batch/v1/batch_service.rb +6 -0
- data/lib/google/cloud/batch/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/batch/v1/job_pb.rb +6 -0
- data/lib/google/cloud/batch/v1/rest.rb +38 -0
- data/lib/google/cloud/batch/v1/task_pb.rb +3 -0
- data/lib/google/cloud/batch/v1/version.rb +1 -1
- data/lib/google/cloud/batch/v1.rb +5 -0
- data/lib/google/iam/v1/bindings_override.rb +100 -0
- data/lib/google/iam/v1/iam_policy/client.rb +639 -0
- data/lib/google/iam/v1/iam_policy/credentials.rb +42 -0
- data/lib/google/iam/v1/iam_policy/rest/client.rb +558 -0
- data/lib/google/iam/v1/iam_policy/rest/service_stub.rb +226 -0
- data/lib/google/iam/v1/iam_policy/rest.rb +75 -0
- data/lib/google/iam/v1/iam_policy.rb +77 -0
- data/lib/google/iam/v1/rest.rb +36 -0
- data/lib/google/iam/v1.rb +43 -0
- data/lib/google-cloud-batch-v1.rb +1 -0
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/batch/v1/batch.rb +4 -4
- data/proto_docs/google/cloud/batch/v1/job.rb +53 -16
- data/proto_docs/google/cloud/batch/v1/task.rb +46 -10
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +422 -0
- metadata +32 -20
@@ -30,6 +30,11 @@ module Google
|
|
30
30
|
# require "google/cloud/batch/v1"
|
31
31
|
# client = ::Google::Cloud::Batch::V1::BatchService::Client.new
|
32
32
|
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/batch/v1"
|
36
|
+
# client = ::Google::Cloud::Batch::V1::BatchService::Rest::Client.new
|
37
|
+
#
|
33
38
|
module V1
|
34
39
|
end
|
35
40
|
end
|
@@ -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
|