google-cloud-deploy-v1 1.1.0 → 1.2.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/lib/google/cloud/deploy/v1/cloud_deploy/client.rb +9 -637
- data/lib/google/cloud/deploy/v1/cloud_deploy/paths.rb +0 -19
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/client.rb +9 -601
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb +0 -297
- data/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb +1 -24
- data/lib/google/cloud/deploy/v1/cloud_deploy_services_pb.rb +0 -10
- data/lib/google/cloud/deploy/v1/version.rb +1 -1
- data/proto_docs/google/cloud/deploy/v1/cloud_deploy.rb +17 -544
- data/proto_docs/google/type/date.rb +1 -1
- metadata +2 -6
- data/lib/google/cloud/deploy/v1/deploypolicy_evaluation_payload_pb.rb +0 -46
- data/proto_docs/google/cloud/deploy/v1/deploypolicy_evaluation_payload.rb +0 -106
- data/proto_docs/google/type/dayofweek.rb +0 -49
- data/proto_docs/google/type/timeofday.rb +0 -45
@@ -821,196 +821,6 @@ module Google
|
|
821
821
|
result
|
822
822
|
end
|
823
823
|
|
824
|
-
##
|
825
|
-
# Baseline implementation for the create_deploy_policy REST call
|
826
|
-
#
|
827
|
-
# @param request_pb [::Google::Cloud::Deploy::V1::CreateDeployPolicyRequest]
|
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::Longrunning::Operation]
|
834
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
835
|
-
#
|
836
|
-
# @return [::Google::Longrunning::Operation]
|
837
|
-
# A result object deserialized from the server's reply
|
838
|
-
def create_deploy_policy 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_create_deploy_policy_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::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
857
|
-
|
858
|
-
yield result, operation if block_given?
|
859
|
-
result
|
860
|
-
end
|
861
|
-
|
862
|
-
##
|
863
|
-
# Baseline implementation for the update_deploy_policy REST call
|
864
|
-
#
|
865
|
-
# @param request_pb [::Google::Cloud::Deploy::V1::UpdateDeployPolicyRequest]
|
866
|
-
# A request object representing the call parameters. Required.
|
867
|
-
# @param options [::Gapic::CallOptions]
|
868
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
869
|
-
#
|
870
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
871
|
-
# @yieldparam result [::Google::Longrunning::Operation]
|
872
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
873
|
-
#
|
874
|
-
# @return [::Google::Longrunning::Operation]
|
875
|
-
# A result object deserialized from the server's reply
|
876
|
-
def update_deploy_policy request_pb, options = nil
|
877
|
-
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
878
|
-
|
879
|
-
verb, uri, query_string_params, body = ServiceStub.transcode_update_deploy_policy_request request_pb
|
880
|
-
query_string_params = if query_string_params.any?
|
881
|
-
query_string_params.to_h { |p| p.split "=", 2 }
|
882
|
-
else
|
883
|
-
{}
|
884
|
-
end
|
885
|
-
|
886
|
-
response = @client_stub.make_http_request(
|
887
|
-
verb,
|
888
|
-
uri: uri,
|
889
|
-
body: body || "",
|
890
|
-
params: query_string_params,
|
891
|
-
options: options
|
892
|
-
)
|
893
|
-
operation = ::Gapic::Rest::TransportOperation.new response
|
894
|
-
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
895
|
-
|
896
|
-
yield result, operation if block_given?
|
897
|
-
result
|
898
|
-
end
|
899
|
-
|
900
|
-
##
|
901
|
-
# Baseline implementation for the delete_deploy_policy REST call
|
902
|
-
#
|
903
|
-
# @param request_pb [::Google::Cloud::Deploy::V1::DeleteDeployPolicyRequest]
|
904
|
-
# A request object representing the call parameters. Required.
|
905
|
-
# @param options [::Gapic::CallOptions]
|
906
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
907
|
-
#
|
908
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
909
|
-
# @yieldparam result [::Google::Longrunning::Operation]
|
910
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
911
|
-
#
|
912
|
-
# @return [::Google::Longrunning::Operation]
|
913
|
-
# A result object deserialized from the server's reply
|
914
|
-
def delete_deploy_policy request_pb, options = nil
|
915
|
-
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
916
|
-
|
917
|
-
verb, uri, query_string_params, body = ServiceStub.transcode_delete_deploy_policy_request request_pb
|
918
|
-
query_string_params = if query_string_params.any?
|
919
|
-
query_string_params.to_h { |p| p.split "=", 2 }
|
920
|
-
else
|
921
|
-
{}
|
922
|
-
end
|
923
|
-
|
924
|
-
response = @client_stub.make_http_request(
|
925
|
-
verb,
|
926
|
-
uri: uri,
|
927
|
-
body: body || "",
|
928
|
-
params: query_string_params,
|
929
|
-
options: options
|
930
|
-
)
|
931
|
-
operation = ::Gapic::Rest::TransportOperation.new response
|
932
|
-
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
933
|
-
|
934
|
-
yield result, operation if block_given?
|
935
|
-
result
|
936
|
-
end
|
937
|
-
|
938
|
-
##
|
939
|
-
# Baseline implementation for the list_deploy_policies REST call
|
940
|
-
#
|
941
|
-
# @param request_pb [::Google::Cloud::Deploy::V1::ListDeployPoliciesRequest]
|
942
|
-
# A request object representing the call parameters. Required.
|
943
|
-
# @param options [::Gapic::CallOptions]
|
944
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
945
|
-
#
|
946
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
947
|
-
# @yieldparam result [::Google::Cloud::Deploy::V1::ListDeployPoliciesResponse]
|
948
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
949
|
-
#
|
950
|
-
# @return [::Google::Cloud::Deploy::V1::ListDeployPoliciesResponse]
|
951
|
-
# A result object deserialized from the server's reply
|
952
|
-
def list_deploy_policies request_pb, options = nil
|
953
|
-
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
954
|
-
|
955
|
-
verb, uri, query_string_params, body = ServiceStub.transcode_list_deploy_policies_request request_pb
|
956
|
-
query_string_params = if query_string_params.any?
|
957
|
-
query_string_params.to_h { |p| p.split "=", 2 }
|
958
|
-
else
|
959
|
-
{}
|
960
|
-
end
|
961
|
-
|
962
|
-
response = @client_stub.make_http_request(
|
963
|
-
verb,
|
964
|
-
uri: uri,
|
965
|
-
body: body || "",
|
966
|
-
params: query_string_params,
|
967
|
-
options: options
|
968
|
-
)
|
969
|
-
operation = ::Gapic::Rest::TransportOperation.new response
|
970
|
-
result = ::Google::Cloud::Deploy::V1::ListDeployPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
|
971
|
-
|
972
|
-
yield result, operation if block_given?
|
973
|
-
result
|
974
|
-
end
|
975
|
-
|
976
|
-
##
|
977
|
-
# Baseline implementation for the get_deploy_policy REST call
|
978
|
-
#
|
979
|
-
# @param request_pb [::Google::Cloud::Deploy::V1::GetDeployPolicyRequest]
|
980
|
-
# A request object representing the call parameters. Required.
|
981
|
-
# @param options [::Gapic::CallOptions]
|
982
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
983
|
-
#
|
984
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
985
|
-
# @yieldparam result [::Google::Cloud::Deploy::V1::DeployPolicy]
|
986
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
987
|
-
#
|
988
|
-
# @return [::Google::Cloud::Deploy::V1::DeployPolicy]
|
989
|
-
# A result object deserialized from the server's reply
|
990
|
-
def get_deploy_policy request_pb, options = nil
|
991
|
-
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
992
|
-
|
993
|
-
verb, uri, query_string_params, body = ServiceStub.transcode_get_deploy_policy_request request_pb
|
994
|
-
query_string_params = if query_string_params.any?
|
995
|
-
query_string_params.to_h { |p| p.split "=", 2 }
|
996
|
-
else
|
997
|
-
{}
|
998
|
-
end
|
999
|
-
|
1000
|
-
response = @client_stub.make_http_request(
|
1001
|
-
verb,
|
1002
|
-
uri: uri,
|
1003
|
-
body: body || "",
|
1004
|
-
params: query_string_params,
|
1005
|
-
options: options
|
1006
|
-
)
|
1007
|
-
operation = ::Gapic::Rest::TransportOperation.new response
|
1008
|
-
result = ::Google::Cloud::Deploy::V1::DeployPolicy.decode_json response.body, ignore_unknown_fields: true
|
1009
|
-
|
1010
|
-
yield result, operation if block_given?
|
1011
|
-
result
|
1012
|
-
end
|
1013
|
-
|
1014
824
|
##
|
1015
825
|
# Baseline implementation for the approve_rollout REST call
|
1016
826
|
#
|
@@ -2200,113 +2010,6 @@ module Google
|
|
2200
2010
|
transcoder.transcode request_pb
|
2201
2011
|
end
|
2202
2012
|
|
2203
|
-
##
|
2204
|
-
# @private
|
2205
|
-
#
|
2206
|
-
# GRPC transcoding helper method for the create_deploy_policy REST call
|
2207
|
-
#
|
2208
|
-
# @param request_pb [::Google::Cloud::Deploy::V1::CreateDeployPolicyRequest]
|
2209
|
-
# A request object representing the call parameters. Required.
|
2210
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
2211
|
-
# Uri, Body, Query string parameters
|
2212
|
-
def self.transcode_create_deploy_policy_request request_pb
|
2213
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2214
|
-
.with_bindings(
|
2215
|
-
uri_method: :post,
|
2216
|
-
uri_template: "/v1/{parent}/deployPolicies",
|
2217
|
-
body: "deploy_policy",
|
2218
|
-
matches: [
|
2219
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2220
|
-
]
|
2221
|
-
)
|
2222
|
-
transcoder.transcode request_pb
|
2223
|
-
end
|
2224
|
-
|
2225
|
-
##
|
2226
|
-
# @private
|
2227
|
-
#
|
2228
|
-
# GRPC transcoding helper method for the update_deploy_policy REST call
|
2229
|
-
#
|
2230
|
-
# @param request_pb [::Google::Cloud::Deploy::V1::UpdateDeployPolicyRequest]
|
2231
|
-
# A request object representing the call parameters. Required.
|
2232
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
2233
|
-
# Uri, Body, Query string parameters
|
2234
|
-
def self.transcode_update_deploy_policy_request request_pb
|
2235
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2236
|
-
.with_bindings(
|
2237
|
-
uri_method: :patch,
|
2238
|
-
uri_template: "/v1/{deploy_policy.name}",
|
2239
|
-
body: "deploy_policy",
|
2240
|
-
matches: [
|
2241
|
-
["deploy_policy.name", %r{^projects/[^/]+/locations/[^/]+/deployPolicies/[^/]+/?$}, false]
|
2242
|
-
]
|
2243
|
-
)
|
2244
|
-
transcoder.transcode request_pb
|
2245
|
-
end
|
2246
|
-
|
2247
|
-
##
|
2248
|
-
# @private
|
2249
|
-
#
|
2250
|
-
# GRPC transcoding helper method for the delete_deploy_policy REST call
|
2251
|
-
#
|
2252
|
-
# @param request_pb [::Google::Cloud::Deploy::V1::DeleteDeployPolicyRequest]
|
2253
|
-
# A request object representing the call parameters. Required.
|
2254
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
2255
|
-
# Uri, Body, Query string parameters
|
2256
|
-
def self.transcode_delete_deploy_policy_request request_pb
|
2257
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2258
|
-
.with_bindings(
|
2259
|
-
uri_method: :delete,
|
2260
|
-
uri_template: "/v1/{name}",
|
2261
|
-
matches: [
|
2262
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/deployPolicies/[^/]+/?$}, false]
|
2263
|
-
]
|
2264
|
-
)
|
2265
|
-
transcoder.transcode request_pb
|
2266
|
-
end
|
2267
|
-
|
2268
|
-
##
|
2269
|
-
# @private
|
2270
|
-
#
|
2271
|
-
# GRPC transcoding helper method for the list_deploy_policies REST call
|
2272
|
-
#
|
2273
|
-
# @param request_pb [::Google::Cloud::Deploy::V1::ListDeployPoliciesRequest]
|
2274
|
-
# A request object representing the call parameters. Required.
|
2275
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
2276
|
-
# Uri, Body, Query string parameters
|
2277
|
-
def self.transcode_list_deploy_policies_request request_pb
|
2278
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2279
|
-
.with_bindings(
|
2280
|
-
uri_method: :get,
|
2281
|
-
uri_template: "/v1/{parent}/deployPolicies",
|
2282
|
-
matches: [
|
2283
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2284
|
-
]
|
2285
|
-
)
|
2286
|
-
transcoder.transcode request_pb
|
2287
|
-
end
|
2288
|
-
|
2289
|
-
##
|
2290
|
-
# @private
|
2291
|
-
#
|
2292
|
-
# GRPC transcoding helper method for the get_deploy_policy REST call
|
2293
|
-
#
|
2294
|
-
# @param request_pb [::Google::Cloud::Deploy::V1::GetDeployPolicyRequest]
|
2295
|
-
# A request object representing the call parameters. Required.
|
2296
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
2297
|
-
# Uri, Body, Query string parameters
|
2298
|
-
def self.transcode_get_deploy_policy_request request_pb
|
2299
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2300
|
-
.with_bindings(
|
2301
|
-
uri_method: :get,
|
2302
|
-
uri_template: "/v1/{name}",
|
2303
|
-
matches: [
|
2304
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/deployPolicies/[^/]+/?$}, false]
|
2305
|
-
]
|
2306
|
-
)
|
2307
|
-
transcoder.transcode request_pb
|
2308
|
-
end
|
2309
|
-
|
2310
2013
|
##
|
2311
2014
|
# @private
|
2312
2015
|
#
|