google-cloud-config_service-v1 0.2.1 → 0.3.1
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/lib/google/cloud/config/v1/config_pb.rb +22 -6
- data/lib/google/cloud/config/v1/config_services_pb.rb +11 -0
- data/lib/google/cloud/config_service/v1/config/client.rb +552 -0
- data/lib/google/cloud/config_service/v1/config/paths.rb +19 -0
- data/lib/google/cloud/config_service/v1/config/rest/client.rb +516 -0
- data/lib/google/cloud/config_service/v1/config/rest/service_stub.rb +297 -0
- data/lib/google/cloud/config_service/v1/version.rb +1 -1
- data/proto_docs/google/api/field_info.rb +65 -0
- data/proto_docs/google/cloud/config/v1/config.rb +386 -0
- data/proto_docs/google/protobuf/any.rb +2 -1
- metadata +3 -2
@@ -669,6 +669,196 @@ module Google
|
|
669
669
|
result
|
670
670
|
end
|
671
671
|
|
672
|
+
##
|
673
|
+
# Baseline implementation for the create_preview REST call
|
674
|
+
#
|
675
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::CreatePreviewRequest]
|
676
|
+
# A request object representing the call parameters. Required.
|
677
|
+
# @param options [::Gapic::CallOptions]
|
678
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
679
|
+
#
|
680
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
681
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
682
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
683
|
+
#
|
684
|
+
# @return [::Google::Longrunning::Operation]
|
685
|
+
# A result object deserialized from the server's reply
|
686
|
+
def create_preview request_pb, options = nil
|
687
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
688
|
+
|
689
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_preview_request request_pb
|
690
|
+
query_string_params = if query_string_params.any?
|
691
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
692
|
+
else
|
693
|
+
{}
|
694
|
+
end
|
695
|
+
|
696
|
+
response = @client_stub.make_http_request(
|
697
|
+
verb,
|
698
|
+
uri: uri,
|
699
|
+
body: body || "",
|
700
|
+
params: query_string_params,
|
701
|
+
options: options
|
702
|
+
)
|
703
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
704
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
705
|
+
|
706
|
+
yield result, operation if block_given?
|
707
|
+
result
|
708
|
+
end
|
709
|
+
|
710
|
+
##
|
711
|
+
# Baseline implementation for the get_preview REST call
|
712
|
+
#
|
713
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::GetPreviewRequest]
|
714
|
+
# A request object representing the call parameters. Required.
|
715
|
+
# @param options [::Gapic::CallOptions]
|
716
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
717
|
+
#
|
718
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
719
|
+
# @yieldparam result [::Google::Cloud::ConfigService::V1::Preview]
|
720
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
721
|
+
#
|
722
|
+
# @return [::Google::Cloud::ConfigService::V1::Preview]
|
723
|
+
# A result object deserialized from the server's reply
|
724
|
+
def get_preview request_pb, options = nil
|
725
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
726
|
+
|
727
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_preview_request request_pb
|
728
|
+
query_string_params = if query_string_params.any?
|
729
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
730
|
+
else
|
731
|
+
{}
|
732
|
+
end
|
733
|
+
|
734
|
+
response = @client_stub.make_http_request(
|
735
|
+
verb,
|
736
|
+
uri: uri,
|
737
|
+
body: body || "",
|
738
|
+
params: query_string_params,
|
739
|
+
options: options
|
740
|
+
)
|
741
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
742
|
+
result = ::Google::Cloud::ConfigService::V1::Preview.decode_json response.body, ignore_unknown_fields: true
|
743
|
+
|
744
|
+
yield result, operation if block_given?
|
745
|
+
result
|
746
|
+
end
|
747
|
+
|
748
|
+
##
|
749
|
+
# Baseline implementation for the list_previews REST call
|
750
|
+
#
|
751
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::ListPreviewsRequest]
|
752
|
+
# A request object representing the call parameters. Required.
|
753
|
+
# @param options [::Gapic::CallOptions]
|
754
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
755
|
+
#
|
756
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
757
|
+
# @yieldparam result [::Google::Cloud::ConfigService::V1::ListPreviewsResponse]
|
758
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
759
|
+
#
|
760
|
+
# @return [::Google::Cloud::ConfigService::V1::ListPreviewsResponse]
|
761
|
+
# A result object deserialized from the server's reply
|
762
|
+
def list_previews request_pb, options = nil
|
763
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
764
|
+
|
765
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_previews_request request_pb
|
766
|
+
query_string_params = if query_string_params.any?
|
767
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
768
|
+
else
|
769
|
+
{}
|
770
|
+
end
|
771
|
+
|
772
|
+
response = @client_stub.make_http_request(
|
773
|
+
verb,
|
774
|
+
uri: uri,
|
775
|
+
body: body || "",
|
776
|
+
params: query_string_params,
|
777
|
+
options: options
|
778
|
+
)
|
779
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
780
|
+
result = ::Google::Cloud::ConfigService::V1::ListPreviewsResponse.decode_json response.body, ignore_unknown_fields: true
|
781
|
+
|
782
|
+
yield result, operation if block_given?
|
783
|
+
result
|
784
|
+
end
|
785
|
+
|
786
|
+
##
|
787
|
+
# Baseline implementation for the delete_preview REST call
|
788
|
+
#
|
789
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::DeletePreviewRequest]
|
790
|
+
# A request object representing the call parameters. Required.
|
791
|
+
# @param options [::Gapic::CallOptions]
|
792
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
793
|
+
#
|
794
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
795
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
796
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
797
|
+
#
|
798
|
+
# @return [::Google::Longrunning::Operation]
|
799
|
+
# A result object deserialized from the server's reply
|
800
|
+
def delete_preview request_pb, options = nil
|
801
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
802
|
+
|
803
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_preview_request request_pb
|
804
|
+
query_string_params = if query_string_params.any?
|
805
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
806
|
+
else
|
807
|
+
{}
|
808
|
+
end
|
809
|
+
|
810
|
+
response = @client_stub.make_http_request(
|
811
|
+
verb,
|
812
|
+
uri: uri,
|
813
|
+
body: body || "",
|
814
|
+
params: query_string_params,
|
815
|
+
options: options
|
816
|
+
)
|
817
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
818
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
819
|
+
|
820
|
+
yield result, operation if block_given?
|
821
|
+
result
|
822
|
+
end
|
823
|
+
|
824
|
+
##
|
825
|
+
# Baseline implementation for the export_preview_result REST call
|
826
|
+
#
|
827
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::ExportPreviewResultRequest]
|
828
|
+
# A request object representing the call parameters. Required.
|
829
|
+
# @param options [::Gapic::CallOptions]
|
830
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
831
|
+
#
|
832
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
833
|
+
# @yieldparam result [::Google::Cloud::ConfigService::V1::ExportPreviewResultResponse]
|
834
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
835
|
+
#
|
836
|
+
# @return [::Google::Cloud::ConfigService::V1::ExportPreviewResultResponse]
|
837
|
+
# A result object deserialized from the server's reply
|
838
|
+
def export_preview_result request_pb, options = nil
|
839
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
840
|
+
|
841
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_export_preview_result_request request_pb
|
842
|
+
query_string_params = if query_string_params.any?
|
843
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
844
|
+
else
|
845
|
+
{}
|
846
|
+
end
|
847
|
+
|
848
|
+
response = @client_stub.make_http_request(
|
849
|
+
verb,
|
850
|
+
uri: uri,
|
851
|
+
body: body || "",
|
852
|
+
params: query_string_params,
|
853
|
+
options: options
|
854
|
+
)
|
855
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
856
|
+
result = ::Google::Cloud::ConfigService::V1::ExportPreviewResultResponse.decode_json response.body, ignore_unknown_fields: true
|
857
|
+
|
858
|
+
yield result, operation if block_given?
|
859
|
+
result
|
860
|
+
end
|
861
|
+
|
672
862
|
##
|
673
863
|
# @private
|
674
864
|
#
|
@@ -1012,6 +1202,113 @@ module Google
|
|
1012
1202
|
)
|
1013
1203
|
transcoder.transcode request_pb
|
1014
1204
|
end
|
1205
|
+
|
1206
|
+
##
|
1207
|
+
# @private
|
1208
|
+
#
|
1209
|
+
# GRPC transcoding helper method for the create_preview REST call
|
1210
|
+
#
|
1211
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::CreatePreviewRequest]
|
1212
|
+
# A request object representing the call parameters. Required.
|
1213
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1214
|
+
# Uri, Body, Query string parameters
|
1215
|
+
def self.transcode_create_preview_request request_pb
|
1216
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1217
|
+
.with_bindings(
|
1218
|
+
uri_method: :post,
|
1219
|
+
uri_template: "/v1/{parent}/previews",
|
1220
|
+
body: "preview",
|
1221
|
+
matches: [
|
1222
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1223
|
+
]
|
1224
|
+
)
|
1225
|
+
transcoder.transcode request_pb
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
##
|
1229
|
+
# @private
|
1230
|
+
#
|
1231
|
+
# GRPC transcoding helper method for the get_preview REST call
|
1232
|
+
#
|
1233
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::GetPreviewRequest]
|
1234
|
+
# A request object representing the call parameters. Required.
|
1235
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1236
|
+
# Uri, Body, Query string parameters
|
1237
|
+
def self.transcode_get_preview_request request_pb
|
1238
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1239
|
+
.with_bindings(
|
1240
|
+
uri_method: :get,
|
1241
|
+
uri_template: "/v1/{name}",
|
1242
|
+
matches: [
|
1243
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/previews/[^/]+/?$}, false]
|
1244
|
+
]
|
1245
|
+
)
|
1246
|
+
transcoder.transcode request_pb
|
1247
|
+
end
|
1248
|
+
|
1249
|
+
##
|
1250
|
+
# @private
|
1251
|
+
#
|
1252
|
+
# GRPC transcoding helper method for the list_previews REST call
|
1253
|
+
#
|
1254
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::ListPreviewsRequest]
|
1255
|
+
# A request object representing the call parameters. Required.
|
1256
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1257
|
+
# Uri, Body, Query string parameters
|
1258
|
+
def self.transcode_list_previews_request request_pb
|
1259
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1260
|
+
.with_bindings(
|
1261
|
+
uri_method: :get,
|
1262
|
+
uri_template: "/v1/{parent}/previews",
|
1263
|
+
matches: [
|
1264
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1265
|
+
]
|
1266
|
+
)
|
1267
|
+
transcoder.transcode request_pb
|
1268
|
+
end
|
1269
|
+
|
1270
|
+
##
|
1271
|
+
# @private
|
1272
|
+
#
|
1273
|
+
# GRPC transcoding helper method for the delete_preview REST call
|
1274
|
+
#
|
1275
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::DeletePreviewRequest]
|
1276
|
+
# A request object representing the call parameters. Required.
|
1277
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1278
|
+
# Uri, Body, Query string parameters
|
1279
|
+
def self.transcode_delete_preview_request request_pb
|
1280
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1281
|
+
.with_bindings(
|
1282
|
+
uri_method: :delete,
|
1283
|
+
uri_template: "/v1/{name}",
|
1284
|
+
matches: [
|
1285
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/previews/[^/]+/?$}, false]
|
1286
|
+
]
|
1287
|
+
)
|
1288
|
+
transcoder.transcode request_pb
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
##
|
1292
|
+
# @private
|
1293
|
+
#
|
1294
|
+
# GRPC transcoding helper method for the export_preview_result REST call
|
1295
|
+
#
|
1296
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::ExportPreviewResultRequest]
|
1297
|
+
# A request object representing the call parameters. Required.
|
1298
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1299
|
+
# Uri, Body, Query string parameters
|
1300
|
+
def self.transcode_export_preview_result_request request_pb
|
1301
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1302
|
+
.with_bindings(
|
1303
|
+
uri_method: :post,
|
1304
|
+
uri_template: "/v1/{parent}:export",
|
1305
|
+
body: "*",
|
1306
|
+
matches: [
|
1307
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/previews/[^/]+/?$}, false]
|
1308
|
+
]
|
1309
|
+
)
|
1310
|
+
transcoder.transcode request_pb
|
1311
|
+
end
|
1015
1312
|
end
|
1016
1313
|
end
|
1017
1314
|
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# Rich semantic information of an API field beyond basic typing.
|
23
|
+
# @!attribute [rw] format
|
24
|
+
# @return [::Google::Api::FieldInfo::Format]
|
25
|
+
# The standard format of a field value. This does not explicitly configure
|
26
|
+
# any API consumer, just documents the API's format for the field it is
|
27
|
+
# applied to.
|
28
|
+
class FieldInfo
|
29
|
+
include ::Google::Protobuf::MessageExts
|
30
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
31
|
+
|
32
|
+
# The standard format of a field value. The supported formats are all backed
|
33
|
+
# by either an RFC defined by the IETF or a Google-defined AIP.
|
34
|
+
module Format
|
35
|
+
# Default, unspecified value.
|
36
|
+
FORMAT_UNSPECIFIED = 0
|
37
|
+
|
38
|
+
# Universally Unique Identifier, version 4, value as defined by
|
39
|
+
# https://datatracker.ietf.org/doc/html/rfc4122. The value may be
|
40
|
+
# normalized to entirely lowercase letters. For example, the value
|
41
|
+
# `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to
|
42
|
+
# `f47ac10b-58cc-0372-8567-0e02b2c3d479`.
|
43
|
+
UUID4 = 1
|
44
|
+
|
45
|
+
# Internet Protocol v4 value as defined by [RFC
|
46
|
+
# 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be
|
47
|
+
# condensed, with leading zeros in each octet stripped. For example,
|
48
|
+
# `001.022.233.040` would be condensed to `1.22.233.40`.
|
49
|
+
IPV4 = 2
|
50
|
+
|
51
|
+
# Internet Protocol v6 value as defined by [RFC
|
52
|
+
# 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be
|
53
|
+
# normalized to entirely lowercase letters, and zero-padded partial and
|
54
|
+
# empty octets. For example, the value `2001:DB8::` would be normalized to
|
55
|
+
# `2001:0db8:0:0`.
|
56
|
+
IPV6 = 3
|
57
|
+
|
58
|
+
# An IP address in either v4 or v6 format as described by the individual
|
59
|
+
# values defined herein. See the comments on the IPV4 and IPV6 types for
|
60
|
+
# allowed normalizations of each.
|
61
|
+
IPV4_OR_IPV6 = 4
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|