google-cloud-workload_identity-v1 0.a → 0.1.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.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/cloud/workload_identity/v1/bindings_override.rb +107 -0
- data/lib/google/cloud/workload_identity/v1/rest.rb +38 -0
- data/lib/google/cloud/workload_identity/v1/version.rb +7 -2
- data/lib/google/cloud/workload_identity/v1/workload_identity/client.rb +528 -0
- data/lib/google/cloud/workload_identity/v1/workload_identity/credentials.rb +47 -0
- data/lib/google/cloud/workload_identity/v1/workload_identity/operations.rb +843 -0
- data/lib/google/cloud/workload_identity/v1/workload_identity/paths.rb +91 -0
- data/lib/google/cloud/workload_identity/v1/workload_identity/rest/client.rb +486 -0
- data/lib/google/cloud/workload_identity/v1/workload_identity/rest/operations.rb +985 -0
- data/lib/google/cloud/workload_identity/v1/workload_identity/rest/service_stub.rb +159 -0
- data/lib/google/cloud/workload_identity/v1/workload_identity/rest.rb +54 -0
- data/lib/google/cloud/workload_identity/v1/workload_identity.rb +56 -0
- data/lib/google/cloud/workload_identity/v1.rb +45 -0
- data/lib/google/cloud/workloadidentity/v1/service_pb.rb +32 -0
- data/lib/google/cloud/workloadidentity/v1/service_services_pb.rb +46 -0
- data/lib/google-cloud-workload_identity-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/workloadidentity/v1/service.rb +129 -0
- data/proto_docs/google/longrunning/operations.rb +191 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/timestamp.rb +128 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +79 -9
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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 "google/cloud/workloadidentity/v1/service_pb"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module WorkloadIdentity
|
|
24
|
+
module V1
|
|
25
|
+
module WorkloadIdentity
|
|
26
|
+
module Rest
|
|
27
|
+
##
|
|
28
|
+
# REST service stub for the WorkloadIdentity service.
|
|
29
|
+
# Service stub contains baseline method implementations
|
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
|
31
|
+
#
|
|
32
|
+
class ServiceStub
|
|
33
|
+
# @private
|
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
|
35
|
+
# These require statements are intentionally placed here to initialize
|
|
36
|
+
# the REST modules only when it's required.
|
|
37
|
+
require "gapic/rest"
|
|
38
|
+
|
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
40
|
+
endpoint_template: endpoint_template,
|
|
41
|
+
universe_domain: universe_domain,
|
|
42
|
+
credentials: credentials,
|
|
43
|
+
numeric_enums: true,
|
|
44
|
+
service_name: self.class,
|
|
45
|
+
raise_faraday_errors: false,
|
|
46
|
+
logger: logger
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
##
|
|
50
|
+
# The effective universe domain
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
def universe_domain
|
|
55
|
+
@client_stub.universe_domain
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
##
|
|
59
|
+
# The effective endpoint
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
#
|
|
63
|
+
def endpoint
|
|
64
|
+
@client_stub.endpoint
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
##
|
|
68
|
+
# The logger used for request/response debug logging.
|
|
69
|
+
#
|
|
70
|
+
# @return [Logger]
|
|
71
|
+
#
|
|
72
|
+
def logger stub: false
|
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# Baseline implementation for the generate_service_agents REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::WorkloadIdentity::V1::GenerateServiceAgentsRequest]
|
|
80
|
+
# A request object representing the call parameters. Required.
|
|
81
|
+
# @param options [::Gapic::CallOptions]
|
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
83
|
+
#
|
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
85
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Longrunning::Operation]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def generate_service_agents request_pb, options = nil
|
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
92
|
+
|
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_generate_service_agents_request request_pb
|
|
94
|
+
query_string_params = if query_string_params.any?
|
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
96
|
+
else
|
|
97
|
+
{}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
response = @client_stub.make_http_request(
|
|
101
|
+
verb,
|
|
102
|
+
uri: uri,
|
|
103
|
+
body: body || "",
|
|
104
|
+
params: query_string_params,
|
|
105
|
+
method_name: "generate_service_agents",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
110
|
+
catch :response do
|
|
111
|
+
yield result, operation if block_given?
|
|
112
|
+
result
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
##
|
|
117
|
+
# @private
|
|
118
|
+
#
|
|
119
|
+
# GRPC transcoding helper method for the generate_service_agents REST call
|
|
120
|
+
#
|
|
121
|
+
# @param request_pb [::Google::Cloud::WorkloadIdentity::V1::GenerateServiceAgentsRequest]
|
|
122
|
+
# A request object representing the call parameters. Required.
|
|
123
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
124
|
+
# Uri, Body, Query string parameters
|
|
125
|
+
def self.transcode_generate_service_agents_request request_pb
|
|
126
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
127
|
+
.with_bindings(
|
|
128
|
+
uri_method: :post,
|
|
129
|
+
uri_template: "/v1/{parent}:generateServiceAgents",
|
|
130
|
+
body: "*",
|
|
131
|
+
matches: [
|
|
132
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/serviceProducers/[^/]+/?$}, false]
|
|
133
|
+
]
|
|
134
|
+
)
|
|
135
|
+
.with_bindings(
|
|
136
|
+
uri_method: :post,
|
|
137
|
+
uri_template: "/v1/{parent}:generateServiceAgents",
|
|
138
|
+
body: "*",
|
|
139
|
+
matches: [
|
|
140
|
+
["parent", %r{^folders/[^/]+/locations/[^/]+/serviceProducers/[^/]+/?$}, false]
|
|
141
|
+
]
|
|
142
|
+
)
|
|
143
|
+
.with_bindings(
|
|
144
|
+
uri_method: :post,
|
|
145
|
+
uri_template: "/v1/{parent}:generateServiceAgents",
|
|
146
|
+
body: "*",
|
|
147
|
+
matches: [
|
|
148
|
+
["parent", %r{^organizations/[^/]+/locations/[^/]+/serviceProducers/[^/]+/?$}, false]
|
|
149
|
+
]
|
|
150
|
+
)
|
|
151
|
+
transcoder.transcode request_pb
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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/rest"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/workload_identity/v1/version"
|
|
24
|
+
require "google/cloud/workload_identity/v1/bindings_override"
|
|
25
|
+
|
|
26
|
+
require "google/cloud/workload_identity/v1/workload_identity/credentials"
|
|
27
|
+
require "google/cloud/workload_identity/v1/workload_identity/paths"
|
|
28
|
+
require "google/cloud/workload_identity/v1/workload_identity/rest/operations"
|
|
29
|
+
require "google/cloud/workload_identity/v1/workload_identity/rest/client"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module WorkloadIdentity
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# Service describing handlers for resources
|
|
37
|
+
#
|
|
38
|
+
# To load this service and instantiate a REST client:
|
|
39
|
+
#
|
|
40
|
+
# require "google/cloud/workload_identity/v1/workload_identity/rest"
|
|
41
|
+
# client = ::Google::Cloud::WorkloadIdentity::V1::WorkloadIdentity::Rest::Client.new
|
|
42
|
+
#
|
|
43
|
+
module WorkloadIdentity
|
|
44
|
+
# Client for the REST transport
|
|
45
|
+
module Rest
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
54
|
+
require "google/cloud/workload_identity/v1/workload_identity/rest/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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/common"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/workload_identity/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/workload_identity/v1/workload_identity/credentials"
|
|
26
|
+
require "google/cloud/workload_identity/v1/workload_identity/paths"
|
|
27
|
+
require "google/cloud/workload_identity/v1/workload_identity/operations"
|
|
28
|
+
require "google/cloud/workload_identity/v1/workload_identity/client"
|
|
29
|
+
require "google/cloud/workload_identity/v1/workload_identity/rest"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module WorkloadIdentity
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# Service describing handlers for resources
|
|
37
|
+
#
|
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
|
39
|
+
#
|
|
40
|
+
# require "google/cloud/workload_identity/v1/workload_identity"
|
|
41
|
+
# client = ::Google::Cloud::WorkloadIdentity::V1::WorkloadIdentity::Client.new
|
|
42
|
+
#
|
|
43
|
+
# @example Load this service and instantiate a REST client
|
|
44
|
+
#
|
|
45
|
+
# require "google/cloud/workload_identity/v1/workload_identity/rest"
|
|
46
|
+
# client = ::Google::Cloud::WorkloadIdentity::V1::WorkloadIdentity::Rest::Client.new
|
|
47
|
+
#
|
|
48
|
+
module WorkloadIdentity
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
helper_path = ::File.join __dir__, "workload_identity", "helpers.rb"
|
|
56
|
+
require "google/cloud/workload_identity/v1/workload_identity/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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 "google/cloud/workload_identity/v1/workload_identity"
|
|
20
|
+
require "google/cloud/workload_identity/v1/version"
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module WorkloadIdentity
|
|
25
|
+
##
|
|
26
|
+
# API client module.
|
|
27
|
+
#
|
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
|
29
|
+
#
|
|
30
|
+
# require "google/cloud/workload_identity/v1"
|
|
31
|
+
# client = ::Google::Cloud::WorkloadIdentity::V1::WorkloadIdentity::Client.new
|
|
32
|
+
#
|
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
|
34
|
+
#
|
|
35
|
+
# require "google/cloud/workload_identity/v1"
|
|
36
|
+
# client = ::Google::Cloud::WorkloadIdentity::V1::WorkloadIdentity::Rest::Client.new
|
|
37
|
+
#
|
|
38
|
+
module V1
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
|
45
|
+
require "google/cloud/workload_identity/v1/_helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/workloadidentity/v1/service.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/api/client_pb'
|
|
9
|
+
require 'google/api/field_behavior_pb'
|
|
10
|
+
require 'google/api/resource_pb'
|
|
11
|
+
require 'google/longrunning/operations_pb'
|
|
12
|
+
require 'google/protobuf/timestamp_pb'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
descriptor_data = "\n.google/cloud/workloadidentity/v1/service.proto\x12 google.cloud.workloadidentity.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa6\x05\n\x0cServiceAgent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1c\n\tcontainer\x18\x05 \x01(\tB\t\xe0\x41\x01\xfa\x41\x03\n\x01*\x12\x1d\n\x10service_producer\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tprincipal\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04role\x18\t \x01(\tB\x03\xe0\x41\x01\x12H\n\x05state\x18\n \x01(\x0e\x32\x34.google.cloud.workloadidentity.v1.ServiceAgent.StateB\x03\xe0\x41\x03\"6\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02:\x98\x03\xea\x41\x94\x03\n,workloadidentity.googleapis.com/ServiceAgent\x12iprojects/{project}/locations/{location}/serviceProducers/{service_producer}/serviceAgents/{service_agent}\x12gfolders/{folder}/locations/{location}/serviceProducers/{service_producer}/serviceAgents/{service_agent}\x12sorganizations/{organization}/locations/{location}/serviceProducers/{service_producer}/serviceAgents/{service_agent}*\rserviceAgents2\x0cserviceAgent\"g\n\x1cGenerateServiceAgentsRequest\x12G\n\x06parent\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/workloadidentity.googleapis.com/ServiceProducer\"g\n\x1dGenerateServiceAgentsResponse\x12\x46\n\x0eservice_agents\x18\x01 \x03(\x0b\x32..google.cloud.workloadidentity.v1.ServiceAgent\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\xa3\x04\n\x10WorkloadIdentity\x12\xb9\x03\n\x15GenerateServiceAgents\x12>.google.cloud.workloadidentity.v1.GenerateServiceAgentsRequest\x1a\x1d.google.longrunning.Operation\"\xc0\x02\xca\x41\x32\n\x1dGenerateServiceAgentsResponse\x12\x11OperationMetadata\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xfb\x01\"L/v1/{parent=projects/*/locations/*/serviceProducers/*}:generateServiceAgents:\x01*ZP\"K/v1/{parent=folders/*/locations/*/serviceProducers/*}:generateServiceAgents:\x01*ZV\"Q/v1/{parent=organizations/*/locations/*/serviceProducers/*}:generateServiceAgents:\x01*\x1aS\xca\x41\x1fworkloadidentity.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x98\x04\n$com.google.cloud.workloadidentity.v1B\x0cServiceProtoP\x01ZPcloud.google.com/go/workloadidentity/apiv1/workloadidentitypb;workloadidentitypb\xaa\x02 Google.Cloud.WorkloadIdentity.V1\xca\x02 Google\\Cloud\\WorkloadIdentity\\V1\xea\x02#Google::Cloud::WorkloadIdentity::V1\xea\x41\xa0\x02\n/workloadidentity.googleapis.com/ServiceProducer\x12Kprojects/{project}/locations/{location}/serviceProducers/{service_producer}\x12Ifolders/{folder}/locations/{location}/serviceProducers/{service_producer}\x12Uorganizations/{organization}/locations/{location}/serviceProducers/{service_producer}b\x06proto3"
|
|
16
|
+
|
|
17
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module WorkloadIdentity
|
|
23
|
+
module V1
|
|
24
|
+
ServiceAgent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workloadidentity.v1.ServiceAgent").msgclass
|
|
25
|
+
ServiceAgent::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workloadidentity.v1.ServiceAgent.State").enummodule
|
|
26
|
+
GenerateServiceAgentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workloadidentity.v1.GenerateServiceAgentsRequest").msgclass
|
|
27
|
+
GenerateServiceAgentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workloadidentity.v1.GenerateServiceAgentsResponse").msgclass
|
|
28
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.workloadidentity.v1.OperationMetadata").msgclass
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/workloadidentity/v1/service.proto for package 'Google.Cloud.WorkloadIdentity.V1'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2026 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/workloadidentity/v1/service_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module WorkloadIdentity
|
|
25
|
+
module V1
|
|
26
|
+
module WorkloadIdentity
|
|
27
|
+
# Service describing handlers for resources
|
|
28
|
+
class Service
|
|
29
|
+
|
|
30
|
+
include ::GRPC::GenericService
|
|
31
|
+
|
|
32
|
+
self.marshal_class_method = :encode
|
|
33
|
+
self.unmarshal_class_method = :decode
|
|
34
|
+
self.service_name = 'google.cloud.workloadidentity.v1.WorkloadIdentity'
|
|
35
|
+
|
|
36
|
+
# Creates all service agents for a given resource, location and service
|
|
37
|
+
# producer.
|
|
38
|
+
rpc :GenerateServiceAgents, ::Google::Cloud::WorkloadIdentity::V1::GenerateServiceAgentsRequest, ::Google::Longrunning::Operation
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
Stub = Service.rpc_stub_class
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
|
21
|
+
# require "google/cloud/workload_identity/v1"
|