google-cloud-support-v2beta 0.7.0 → 0.8.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/support/v2beta/support_event_subscription_service/client.rb +125 -1
- data/lib/google/cloud/support/v2beta/support_event_subscription_service/rest/client.rb +118 -1
- data/lib/google/cloud/support/v2beta/support_event_subscription_service/rest/service_stub.rb +68 -6
- data/lib/google/cloud/support/v2beta/support_event_subscription_service_pb.rb +3 -1
- data/lib/google/cloud/support/v2beta/support_event_subscription_service_services_pb.rb +33 -1
- data/lib/google/cloud/support/v2beta/version.rb +1 -1
- data/proto_docs/google/cloud/support/v2beta/support_event_subscription_service.rb +11 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e13e2260254c6f706d723c719478bece00b0c005646dfc9338d81c2301a3af96
|
|
4
|
+
data.tar.gz: a9afedb270afefdaac9089c378ad858e052a4540ece5c4c8613502d0ad17dbe5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be4df373f03512b13f2379cdc7ad1507b10027fe24424cc291920b02442011fe5a1afd3cb625efc4313ded855e16948ace5065734341a1f6ec961260985e352e
|
|
7
|
+
data.tar.gz: 120fae0a230d5b201c9b88806e2774a6f75e58bec960cd8389a14667ea572a67b66eb5da75b2423138b57c8f0270131092cc0895d1e7b3a328a63d756696fcb7
|
|
@@ -359,7 +359,7 @@ module Google
|
|
|
359
359
|
end
|
|
360
360
|
|
|
361
361
|
##
|
|
362
|
-
# Lists support event subscriptions.
|
|
362
|
+
# Lists support event subscriptions for an organization.
|
|
363
363
|
#
|
|
364
364
|
# @overload list_support_event_subscriptions(request, options = nil)
|
|
365
365
|
# Pass arguments to `list_support_event_subscriptions` via a request object, either of type
|
|
@@ -736,6 +736,123 @@ module Google
|
|
|
736
736
|
raise ::Google::Cloud::Error.from_error(e)
|
|
737
737
|
end
|
|
738
738
|
|
|
739
|
+
##
|
|
740
|
+
# Expunges a support event subscription.
|
|
741
|
+
#
|
|
742
|
+
# EXAMPLES:
|
|
743
|
+
#
|
|
744
|
+
# cURL:
|
|
745
|
+
#
|
|
746
|
+
# ```shell
|
|
747
|
+
# support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456"
|
|
748
|
+
# curl \
|
|
749
|
+
# --request POST \
|
|
750
|
+
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
|
751
|
+
# "https://cloudsupport.googleapis.com/v2beta/$support_event_subscription:expunge"
|
|
752
|
+
# ```
|
|
753
|
+
#
|
|
754
|
+
# Python:
|
|
755
|
+
#
|
|
756
|
+
# ```python
|
|
757
|
+
# import googleapiclient.discovery
|
|
758
|
+
#
|
|
759
|
+
# api_version = "v2beta"
|
|
760
|
+
# supportApiService = googleapiclient.discovery.build(
|
|
761
|
+
# serviceName="cloudsupport",
|
|
762
|
+
# version=api_version,
|
|
763
|
+
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
|
764
|
+
# )
|
|
765
|
+
#
|
|
766
|
+
# request = supportApiService.supportEventSubscriptions().expunge(
|
|
767
|
+
# name="organizations/123456789/supportEventSubscriptions/abcdef123456"
|
|
768
|
+
# )
|
|
769
|
+
# print(request.execute())
|
|
770
|
+
# ```
|
|
771
|
+
#
|
|
772
|
+
# @overload expunge_support_event_subscription(request, options = nil)
|
|
773
|
+
# Pass arguments to `expunge_support_event_subscription` via a request object, either of type
|
|
774
|
+
# {::Google::Cloud::Support::V2beta::ExpungeSupportEventSubscriptionRequest} or an equivalent Hash.
|
|
775
|
+
#
|
|
776
|
+
# @param request [::Google::Cloud::Support::V2beta::ExpungeSupportEventSubscriptionRequest, ::Hash]
|
|
777
|
+
# A request object representing the call parameters. Required. To specify no
|
|
778
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
779
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
780
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
781
|
+
#
|
|
782
|
+
# @overload expunge_support_event_subscription(name: nil)
|
|
783
|
+
# Pass arguments to `expunge_support_event_subscription` via keyword arguments. Note that at
|
|
784
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
785
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
786
|
+
#
|
|
787
|
+
# @param name [::String]
|
|
788
|
+
# Required. The name of the support event subscription to expunge.
|
|
789
|
+
# Format:
|
|
790
|
+
# organizations/\\{organization_id}/supportEventSubscriptions/\\{subscription_id}
|
|
791
|
+
#
|
|
792
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
793
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
|
794
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
795
|
+
#
|
|
796
|
+
# @return [::Google::Protobuf::Empty]
|
|
797
|
+
#
|
|
798
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
799
|
+
#
|
|
800
|
+
# @example Basic example
|
|
801
|
+
# require "google/cloud/support/v2beta"
|
|
802
|
+
#
|
|
803
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
804
|
+
# client = Google::Cloud::Support::V2beta::SupportEventSubscriptionService::Client.new
|
|
805
|
+
#
|
|
806
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
807
|
+
# request = Google::Cloud::Support::V2beta::ExpungeSupportEventSubscriptionRequest.new
|
|
808
|
+
#
|
|
809
|
+
# # Call the expunge_support_event_subscription method.
|
|
810
|
+
# result = client.expunge_support_event_subscription request
|
|
811
|
+
#
|
|
812
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
813
|
+
# p result
|
|
814
|
+
#
|
|
815
|
+
def expunge_support_event_subscription request, options = nil
|
|
816
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
817
|
+
|
|
818
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Support::V2beta::ExpungeSupportEventSubscriptionRequest
|
|
819
|
+
|
|
820
|
+
# Converts hash and nil to an options object
|
|
821
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
822
|
+
|
|
823
|
+
# Customize the options with defaults
|
|
824
|
+
metadata = @config.rpcs.expunge_support_event_subscription.metadata.to_h
|
|
825
|
+
|
|
826
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
827
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
828
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
829
|
+
gapic_version: ::Google::Cloud::Support::V2beta::VERSION
|
|
830
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
831
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
832
|
+
|
|
833
|
+
header_params = {}
|
|
834
|
+
if request.name
|
|
835
|
+
header_params["name"] = request.name
|
|
836
|
+
end
|
|
837
|
+
|
|
838
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
839
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
840
|
+
|
|
841
|
+
options.apply_defaults timeout: @config.rpcs.expunge_support_event_subscription.timeout,
|
|
842
|
+
metadata: metadata,
|
|
843
|
+
retry_policy: @config.rpcs.expunge_support_event_subscription.retry_policy
|
|
844
|
+
|
|
845
|
+
options.apply_defaults timeout: @config.timeout,
|
|
846
|
+
metadata: @config.metadata,
|
|
847
|
+
retry_policy: @config.retry_policy
|
|
848
|
+
|
|
849
|
+
@support_event_subscription_service_stub.call_rpc :expunge_support_event_subscription, request, options: options do |response, operation|
|
|
850
|
+
yield response, operation if block_given?
|
|
851
|
+
end
|
|
852
|
+
rescue ::GRPC::BadStatus => e
|
|
853
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
854
|
+
end
|
|
855
|
+
|
|
739
856
|
##
|
|
740
857
|
# Configuration class for the SupportEventSubscriptionService API.
|
|
741
858
|
#
|
|
@@ -951,6 +1068,11 @@ module Google
|
|
|
951
1068
|
# @return [::Gapic::Config::Method]
|
|
952
1069
|
#
|
|
953
1070
|
attr_reader :undelete_support_event_subscription
|
|
1071
|
+
##
|
|
1072
|
+
# RPC-specific configuration for `expunge_support_event_subscription`
|
|
1073
|
+
# @return [::Gapic::Config::Method]
|
|
1074
|
+
#
|
|
1075
|
+
attr_reader :expunge_support_event_subscription
|
|
954
1076
|
|
|
955
1077
|
# @private
|
|
956
1078
|
def initialize parent_rpcs = nil
|
|
@@ -966,6 +1088,8 @@ module Google
|
|
|
966
1088
|
@delete_support_event_subscription = ::Gapic::Config::Method.new delete_support_event_subscription_config
|
|
967
1089
|
undelete_support_event_subscription_config = parent_rpcs.undelete_support_event_subscription if parent_rpcs.respond_to? :undelete_support_event_subscription
|
|
968
1090
|
@undelete_support_event_subscription = ::Gapic::Config::Method.new undelete_support_event_subscription_config
|
|
1091
|
+
expunge_support_event_subscription_config = parent_rpcs.expunge_support_event_subscription if parent_rpcs.respond_to? :expunge_support_event_subscription
|
|
1092
|
+
@expunge_support_event_subscription = ::Gapic::Config::Method.new expunge_support_event_subscription_config
|
|
969
1093
|
|
|
970
1094
|
yield self if block_given?
|
|
971
1095
|
end
|
|
@@ -338,7 +338,7 @@ module Google
|
|
|
338
338
|
end
|
|
339
339
|
|
|
340
340
|
##
|
|
341
|
-
# Lists support event subscriptions.
|
|
341
|
+
# Lists support event subscriptions for an organization.
|
|
342
342
|
#
|
|
343
343
|
# @overload list_support_event_subscriptions(request, options = nil)
|
|
344
344
|
# Pass arguments to `list_support_event_subscriptions` via a request object, either of type
|
|
@@ -687,6 +687,116 @@ module Google
|
|
|
687
687
|
raise ::Google::Cloud::Error.from_error(e)
|
|
688
688
|
end
|
|
689
689
|
|
|
690
|
+
##
|
|
691
|
+
# Expunges a support event subscription.
|
|
692
|
+
#
|
|
693
|
+
# EXAMPLES:
|
|
694
|
+
#
|
|
695
|
+
# cURL:
|
|
696
|
+
#
|
|
697
|
+
# ```shell
|
|
698
|
+
# support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456"
|
|
699
|
+
# curl \
|
|
700
|
+
# --request POST \
|
|
701
|
+
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
|
702
|
+
# "https://cloudsupport.googleapis.com/v2beta/$support_event_subscription:expunge"
|
|
703
|
+
# ```
|
|
704
|
+
#
|
|
705
|
+
# Python:
|
|
706
|
+
#
|
|
707
|
+
# ```python
|
|
708
|
+
# import googleapiclient.discovery
|
|
709
|
+
#
|
|
710
|
+
# api_version = "v2beta"
|
|
711
|
+
# supportApiService = googleapiclient.discovery.build(
|
|
712
|
+
# serviceName="cloudsupport",
|
|
713
|
+
# version=api_version,
|
|
714
|
+
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
|
715
|
+
# )
|
|
716
|
+
#
|
|
717
|
+
# request = supportApiService.supportEventSubscriptions().expunge(
|
|
718
|
+
# name="organizations/123456789/supportEventSubscriptions/abcdef123456"
|
|
719
|
+
# )
|
|
720
|
+
# print(request.execute())
|
|
721
|
+
# ```
|
|
722
|
+
#
|
|
723
|
+
# @overload expunge_support_event_subscription(request, options = nil)
|
|
724
|
+
# Pass arguments to `expunge_support_event_subscription` via a request object, either of type
|
|
725
|
+
# {::Google::Cloud::Support::V2beta::ExpungeSupportEventSubscriptionRequest} or an equivalent Hash.
|
|
726
|
+
#
|
|
727
|
+
# @param request [::Google::Cloud::Support::V2beta::ExpungeSupportEventSubscriptionRequest, ::Hash]
|
|
728
|
+
# A request object representing the call parameters. Required. To specify no
|
|
729
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
730
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
731
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
732
|
+
#
|
|
733
|
+
# @overload expunge_support_event_subscription(name: nil)
|
|
734
|
+
# Pass arguments to `expunge_support_event_subscription` via keyword arguments. Note that at
|
|
735
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
736
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
737
|
+
#
|
|
738
|
+
# @param name [::String]
|
|
739
|
+
# Required. The name of the support event subscription to expunge.
|
|
740
|
+
# Format:
|
|
741
|
+
# organizations/\\{organization_id}/supportEventSubscriptions/\\{subscription_id}
|
|
742
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
743
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
744
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
745
|
+
#
|
|
746
|
+
# @return [::Google::Protobuf::Empty]
|
|
747
|
+
#
|
|
748
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
749
|
+
#
|
|
750
|
+
# @example Basic example
|
|
751
|
+
# require "google/cloud/support/v2beta"
|
|
752
|
+
#
|
|
753
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
754
|
+
# client = Google::Cloud::Support::V2beta::SupportEventSubscriptionService::Rest::Client.new
|
|
755
|
+
#
|
|
756
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
757
|
+
# request = Google::Cloud::Support::V2beta::ExpungeSupportEventSubscriptionRequest.new
|
|
758
|
+
#
|
|
759
|
+
# # Call the expunge_support_event_subscription method.
|
|
760
|
+
# result = client.expunge_support_event_subscription request
|
|
761
|
+
#
|
|
762
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
763
|
+
# p result
|
|
764
|
+
#
|
|
765
|
+
def expunge_support_event_subscription request, options = nil
|
|
766
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
767
|
+
|
|
768
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Support::V2beta::ExpungeSupportEventSubscriptionRequest
|
|
769
|
+
|
|
770
|
+
# Converts hash and nil to an options object
|
|
771
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
772
|
+
|
|
773
|
+
# Customize the options with defaults
|
|
774
|
+
call_metadata = @config.rpcs.expunge_support_event_subscription.metadata.to_h
|
|
775
|
+
|
|
776
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
777
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
778
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
779
|
+
gapic_version: ::Google::Cloud::Support::V2beta::VERSION,
|
|
780
|
+
transports_version_send: [:rest]
|
|
781
|
+
|
|
782
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
783
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
784
|
+
|
|
785
|
+
options.apply_defaults timeout: @config.rpcs.expunge_support_event_subscription.timeout,
|
|
786
|
+
metadata: call_metadata,
|
|
787
|
+
retry_policy: @config.rpcs.expunge_support_event_subscription.retry_policy
|
|
788
|
+
|
|
789
|
+
options.apply_defaults timeout: @config.timeout,
|
|
790
|
+
metadata: @config.metadata,
|
|
791
|
+
retry_policy: @config.retry_policy
|
|
792
|
+
|
|
793
|
+
@support_event_subscription_service_stub.expunge_support_event_subscription request, options do |result, operation|
|
|
794
|
+
yield result, operation if block_given?
|
|
795
|
+
end
|
|
796
|
+
rescue ::Gapic::Rest::Error => e
|
|
797
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
798
|
+
end
|
|
799
|
+
|
|
690
800
|
##
|
|
691
801
|
# Configuration class for the SupportEventSubscriptionService REST API.
|
|
692
802
|
#
|
|
@@ -865,6 +975,11 @@ module Google
|
|
|
865
975
|
# @return [::Gapic::Config::Method]
|
|
866
976
|
#
|
|
867
977
|
attr_reader :undelete_support_event_subscription
|
|
978
|
+
##
|
|
979
|
+
# RPC-specific configuration for `expunge_support_event_subscription`
|
|
980
|
+
# @return [::Gapic::Config::Method]
|
|
981
|
+
#
|
|
982
|
+
attr_reader :expunge_support_event_subscription
|
|
868
983
|
|
|
869
984
|
# @private
|
|
870
985
|
def initialize parent_rpcs = nil
|
|
@@ -880,6 +995,8 @@ module Google
|
|
|
880
995
|
@delete_support_event_subscription = ::Gapic::Config::Method.new delete_support_event_subscription_config
|
|
881
996
|
undelete_support_event_subscription_config = parent_rpcs.undelete_support_event_subscription if parent_rpcs.respond_to? :undelete_support_event_subscription
|
|
882
997
|
@undelete_support_event_subscription = ::Gapic::Config::Method.new undelete_support_event_subscription_config
|
|
998
|
+
expunge_support_event_subscription_config = parent_rpcs.expunge_support_event_subscription if parent_rpcs.respond_to? :expunge_support_event_subscription
|
|
999
|
+
@expunge_support_event_subscription = ::Gapic::Config::Method.new expunge_support_event_subscription_config
|
|
883
1000
|
|
|
884
1001
|
yield self if block_given?
|
|
885
1002
|
end
|
data/lib/google/cloud/support/v2beta/support_event_subscription_service/rest/service_stub.rb
CHANGED
|
@@ -313,6 +313,46 @@ module Google
|
|
|
313
313
|
end
|
|
314
314
|
end
|
|
315
315
|
|
|
316
|
+
##
|
|
317
|
+
# Baseline implementation for the expunge_support_event_subscription REST call
|
|
318
|
+
#
|
|
319
|
+
# @param request_pb [::Google::Cloud::Support::V2beta::ExpungeSupportEventSubscriptionRequest]
|
|
320
|
+
# A request object representing the call parameters. Required.
|
|
321
|
+
# @param options [::Gapic::CallOptions]
|
|
322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
323
|
+
#
|
|
324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
325
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
327
|
+
#
|
|
328
|
+
# @return [::Google::Protobuf::Empty]
|
|
329
|
+
# A result object deserialized from the server's reply
|
|
330
|
+
def expunge_support_event_subscription request_pb, options = nil
|
|
331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
332
|
+
|
|
333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_expunge_support_event_subscription_request request_pb
|
|
334
|
+
query_string_params = if query_string_params.any?
|
|
335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
336
|
+
else
|
|
337
|
+
{}
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
response = @client_stub.make_http_request(
|
|
341
|
+
verb,
|
|
342
|
+
uri: uri,
|
|
343
|
+
body: body || "",
|
|
344
|
+
params: query_string_params,
|
|
345
|
+
method_name: "expunge_support_event_subscription",
|
|
346
|
+
options: options
|
|
347
|
+
)
|
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
349
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
350
|
+
catch :response do
|
|
351
|
+
yield result, operation if block_given?
|
|
352
|
+
result
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
316
356
|
##
|
|
317
357
|
# @private
|
|
318
358
|
#
|
|
@@ -329,7 +369,7 @@ module Google
|
|
|
329
369
|
uri_template: "/v2beta/{parent}/supportEventSubscriptions",
|
|
330
370
|
body: "support_event_subscription",
|
|
331
371
|
matches: [
|
|
332
|
-
["parent", %r{^[^/]
|
|
372
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
|
333
373
|
]
|
|
334
374
|
)
|
|
335
375
|
transcoder.transcode request_pb
|
|
@@ -350,7 +390,7 @@ module Google
|
|
|
350
390
|
uri_method: :get,
|
|
351
391
|
uri_template: "/v2beta/{name}",
|
|
352
392
|
matches: [
|
|
353
|
-
["name", %r{^[^/]+/
|
|
393
|
+
["name", %r{^organizations/[^/]+/supportEventSubscriptions/[^/]+/?$}, false]
|
|
354
394
|
]
|
|
355
395
|
)
|
|
356
396
|
transcoder.transcode request_pb
|
|
@@ -371,7 +411,7 @@ module Google
|
|
|
371
411
|
uri_method: :get,
|
|
372
412
|
uri_template: "/v2beta/{parent}/supportEventSubscriptions",
|
|
373
413
|
matches: [
|
|
374
|
-
["parent", %r{^[^/]
|
|
414
|
+
["parent", %r{^organizations/[^/]+/?$}, false]
|
|
375
415
|
]
|
|
376
416
|
)
|
|
377
417
|
transcoder.transcode request_pb
|
|
@@ -393,7 +433,7 @@ module Google
|
|
|
393
433
|
uri_template: "/v2beta/{support_event_subscription.name}",
|
|
394
434
|
body: "support_event_subscription",
|
|
395
435
|
matches: [
|
|
396
|
-
["support_event_subscription.name", %r{^[^/]+/
|
|
436
|
+
["support_event_subscription.name", %r{^organizations/[^/]+/supportEventSubscriptions/[^/]+/?$}, false]
|
|
397
437
|
]
|
|
398
438
|
)
|
|
399
439
|
transcoder.transcode request_pb
|
|
@@ -414,7 +454,7 @@ module Google
|
|
|
414
454
|
uri_method: :delete,
|
|
415
455
|
uri_template: "/v2beta/{name}",
|
|
416
456
|
matches: [
|
|
417
|
-
["name", %r{^[^/]+/
|
|
457
|
+
["name", %r{^organizations/[^/]+/supportEventSubscriptions/[^/]+/?$}, false]
|
|
418
458
|
]
|
|
419
459
|
)
|
|
420
460
|
transcoder.transcode request_pb
|
|
@@ -436,7 +476,29 @@ module Google
|
|
|
436
476
|
uri_template: "/v2beta/{name}:undelete",
|
|
437
477
|
body: "*",
|
|
438
478
|
matches: [
|
|
439
|
-
["name", %r{^[^/]+/
|
|
479
|
+
["name", %r{^organizations/[^/]+/supportEventSubscriptions/[^/]+/?$}, false]
|
|
480
|
+
]
|
|
481
|
+
)
|
|
482
|
+
transcoder.transcode request_pb
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
##
|
|
486
|
+
# @private
|
|
487
|
+
#
|
|
488
|
+
# GRPC transcoding helper method for the expunge_support_event_subscription REST call
|
|
489
|
+
#
|
|
490
|
+
# @param request_pb [::Google::Cloud::Support::V2beta::ExpungeSupportEventSubscriptionRequest]
|
|
491
|
+
# A request object representing the call parameters. Required.
|
|
492
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
493
|
+
# Uri, Body, Query string parameters
|
|
494
|
+
def self.transcode_expunge_support_event_subscription_request request_pb
|
|
495
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
496
|
+
.with_bindings(
|
|
497
|
+
uri_method: :post,
|
|
498
|
+
uri_template: "/v2beta/{name}:expunge",
|
|
499
|
+
body: "*",
|
|
500
|
+
matches: [
|
|
501
|
+
["name", %r{^organizations/[^/]+/supportEventSubscriptions/[^/]+/?$}, false]
|
|
440
502
|
]
|
|
441
503
|
)
|
|
442
504
|
transcoder.transcode request_pb
|
|
@@ -9,10 +9,11 @@ require 'google/api/client_pb'
|
|
|
9
9
|
require 'google/api/field_behavior_pb'
|
|
10
10
|
require 'google/api/resource_pb'
|
|
11
11
|
require 'google/cloud/support/v2beta/support_event_subscription_pb'
|
|
12
|
+
require 'google/protobuf/empty_pb'
|
|
12
13
|
require 'google/protobuf/field_mask_pb'
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
descriptor_data = "\nDgoogle/cloud/support/v2beta/support_event_subscription_service.proto\x12\x1bgoogle.cloud.support.v2beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a<google/cloud/support/v2beta/support_event_subscription.proto\x1a google/protobuf/field_mask.proto\"\xd5\x01\n%CreateSupportEventSubscriptionRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x63loudsupport.googleapis.com/SupportEventSubscription\x12^\n\x1asupport_event_subscription\x18\x02 \x01(\x0b\x32\x35.google.cloud.support.v2beta.SupportEventSubscriptionB\x03\xe0\x41\x02\"p\n\"GetSupportEventSubscriptionRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4cloudsupport.googleapis.com/SupportEventSubscription\"\xd5\x01\n$ListSupportEventSubscriptionsRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x63loudsupport.googleapis.com/SupportEventSubscription\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9c\x01\n%ListSupportEventSubscriptionsResponse\x12Z\n\x1bsupport_event_subscriptions\x18\x01 \x03(\x0b\x32\x35.google.cloud.support.v2beta.SupportEventSubscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbd\x01\n%UpdateSupportEventSubscriptionRequest\x12^\n\x1asupport_event_subscription\x18\x01 \x01(\x0b\x32\x35.google.cloud.support.v2beta.SupportEventSubscriptionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"s\n%DeleteSupportEventSubscriptionRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4cloudsupport.googleapis.com/SupportEventSubscription\"u\n\'UndeleteSupportEventSubscriptionRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4cloudsupport.googleapis.com/SupportEventSubscription2\
|
|
16
|
+
descriptor_data = "\nDgoogle/cloud/support/v2beta/support_event_subscription_service.proto\x12\x1bgoogle.cloud.support.v2beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a<google/cloud/support/v2beta/support_event_subscription.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xd5\x01\n%CreateSupportEventSubscriptionRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x63loudsupport.googleapis.com/SupportEventSubscription\x12^\n\x1asupport_event_subscription\x18\x02 \x01(\x0b\x32\x35.google.cloud.support.v2beta.SupportEventSubscriptionB\x03\xe0\x41\x02\"p\n\"GetSupportEventSubscriptionRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4cloudsupport.googleapis.com/SupportEventSubscription\"\xd5\x01\n$ListSupportEventSubscriptionsRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x63loudsupport.googleapis.com/SupportEventSubscription\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9c\x01\n%ListSupportEventSubscriptionsResponse\x12Z\n\x1bsupport_event_subscriptions\x18\x01 \x03(\x0b\x32\x35.google.cloud.support.v2beta.SupportEventSubscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbd\x01\n%UpdateSupportEventSubscriptionRequest\x12^\n\x1asupport_event_subscription\x18\x01 \x01(\x0b\x32\x35.google.cloud.support.v2beta.SupportEventSubscriptionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"s\n%DeleteSupportEventSubscriptionRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4cloudsupport.googleapis.com/SupportEventSubscription\"u\n\'UndeleteSupportEventSubscriptionRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4cloudsupport.googleapis.com/SupportEventSubscription\"t\n&ExpungeSupportEventSubscriptionRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4cloudsupport.googleapis.com/SupportEventSubscription2\xe3\x0e\n\x1fSupportEventSubscriptionService\x12\xa0\x02\n\x1e\x43reateSupportEventSubscription\x12\x42.google.cloud.support.v2beta.CreateSupportEventSubscriptionRequest\x1a\x35.google.cloud.support.v2beta.SupportEventSubscription\"\x82\x01\xda\x41!parent,support_event_subscription\x82\xd3\xe4\x93\x02X\":/v2beta/{parent=organizations/*}/supportEventSubscriptions:\x1asupport_event_subscription\x12\xe0\x01\n\x1bGetSupportEventSubscription\x12?.google.cloud.support.v2beta.GetSupportEventSubscriptionRequest\x1a\x35.google.cloud.support.v2beta.SupportEventSubscription\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\x12:/v2beta/{name=organizations/*/supportEventSubscriptions/*}\x12\xf3\x01\n\x1dListSupportEventSubscriptions\x12\x41.google.cloud.support.v2beta.ListSupportEventSubscriptionsRequest\x1a\x42.google.cloud.support.v2beta.ListSupportEventSubscriptionsResponse\"K\xda\x41\x06parent\x82\xd3\xe4\x93\x02<\x12:/v2beta/{parent=organizations/*}/supportEventSubscriptions\x12\xc0\x02\n\x1eUpdateSupportEventSubscription\x12\x42.google.cloud.support.v2beta.UpdateSupportEventSubscriptionRequest\x1a\x35.google.cloud.support.v2beta.SupportEventSubscription\"\xa2\x01\xda\x41&support_event_subscription,update_mask\x82\xd3\xe4\x93\x02s2U/v2beta/{support_event_subscription.name=organizations/*/supportEventSubscriptions/*}:\x1asupport_event_subscription\x12\xe6\x01\n\x1e\x44\x65leteSupportEventSubscription\x12\x42.google.cloud.support.v2beta.DeleteSupportEventSubscriptionRequest\x1a\x35.google.cloud.support.v2beta.SupportEventSubscription\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<*:/v2beta/{name=organizations/*/supportEventSubscriptions/*}\x12\xef\x01\n UndeleteSupportEventSubscription\x12\x44.google.cloud.support.v2beta.UndeleteSupportEventSubscriptionRequest\x1a\x35.google.cloud.support.v2beta.SupportEventSubscription\"N\x82\xd3\xe4\x93\x02H\"C/v2beta/{name=organizations/*/supportEventSubscriptions/*}:undelete:\x01*\x12\xd4\x01\n\x1f\x45xpungeSupportEventSubscription\x12\x43.google.cloud.support.v2beta.ExpungeSupportEventSubscriptionRequest\x1a\x16.google.protobuf.Empty\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\"B/v2beta/{name=organizations/*/supportEventSubscriptions/*}:expunge:\x01*\x1aO\xca\x41\x1b\x63loudsupport.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe1\x01\n\x1f\x63om.google.cloud.support.v2betaB$SupportEventSubscriptionServiceProtoP\x01Z9cloud.google.com/go/support/apiv2beta/supportpb;supportpb\xaa\x02\x1bGoogle.Cloud.Support.V2Beta\xca\x02\x1bGoogle\\Cloud\\Support\\V2beta\xea\x02\x1eGoogle::Cloud::Support::V2betab\x06proto3"
|
|
16
17
|
|
|
17
18
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
19
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -28,6 +29,7 @@ module Google
|
|
|
28
29
|
UpdateSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2beta.UpdateSupportEventSubscriptionRequest").msgclass
|
|
29
30
|
DeleteSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2beta.DeleteSupportEventSubscriptionRequest").msgclass
|
|
30
31
|
UndeleteSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2beta.UndeleteSupportEventSubscriptionRequest").msgclass
|
|
32
|
+
ExpungeSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2beta.ExpungeSupportEventSubscriptionRequest").msgclass
|
|
31
33
|
end
|
|
32
34
|
end
|
|
33
35
|
end
|
|
@@ -37,7 +37,7 @@ module Google
|
|
|
37
37
|
rpc :CreateSupportEventSubscription, ::Google::Cloud::Support::V2beta::CreateSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2beta::SupportEventSubscription
|
|
38
38
|
# Gets a support event subscription.
|
|
39
39
|
rpc :GetSupportEventSubscription, ::Google::Cloud::Support::V2beta::GetSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2beta::SupportEventSubscription
|
|
40
|
-
# Lists support event subscriptions.
|
|
40
|
+
# Lists support event subscriptions for an organization.
|
|
41
41
|
rpc :ListSupportEventSubscriptions, ::Google::Cloud::Support::V2beta::ListSupportEventSubscriptionsRequest, ::Google::Cloud::Support::V2beta::ListSupportEventSubscriptionsResponse
|
|
42
42
|
# Updates a support event subscription.
|
|
43
43
|
rpc :UpdateSupportEventSubscription, ::Google::Cloud::Support::V2beta::UpdateSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2beta::SupportEventSubscription
|
|
@@ -45,6 +45,38 @@ module Google
|
|
|
45
45
|
rpc :DeleteSupportEventSubscription, ::Google::Cloud::Support::V2beta::DeleteSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2beta::SupportEventSubscription
|
|
46
46
|
# Undeletes a support event subscription.
|
|
47
47
|
rpc :UndeleteSupportEventSubscription, ::Google::Cloud::Support::V2beta::UndeleteSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2beta::SupportEventSubscription
|
|
48
|
+
# Expunges a support event subscription.
|
|
49
|
+
#
|
|
50
|
+
# EXAMPLES:
|
|
51
|
+
#
|
|
52
|
+
# cURL:
|
|
53
|
+
#
|
|
54
|
+
# ```shell
|
|
55
|
+
# support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456"
|
|
56
|
+
# curl \
|
|
57
|
+
# --request POST \
|
|
58
|
+
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
|
59
|
+
# "https://cloudsupport.googleapis.com/v2beta/$support_event_subscription:expunge"
|
|
60
|
+
# ```
|
|
61
|
+
#
|
|
62
|
+
# Python:
|
|
63
|
+
#
|
|
64
|
+
# ```python
|
|
65
|
+
# import googleapiclient.discovery
|
|
66
|
+
#
|
|
67
|
+
# api_version = "v2beta"
|
|
68
|
+
# supportApiService = googleapiclient.discovery.build(
|
|
69
|
+
# serviceName="cloudsupport",
|
|
70
|
+
# version=api_version,
|
|
71
|
+
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
|
|
72
|
+
# )
|
|
73
|
+
#
|
|
74
|
+
# request = supportApiService.supportEventSubscriptions().expunge(
|
|
75
|
+
# name="organizations/123456789/supportEventSubscriptions/abcdef123456"
|
|
76
|
+
# )
|
|
77
|
+
# print(request.execute())
|
|
78
|
+
# ```
|
|
79
|
+
rpc :ExpungeSupportEventSubscription, ::Google::Cloud::Support::V2beta::ExpungeSupportEventSubscriptionRequest, ::Google::Protobuf::Empty
|
|
48
80
|
end
|
|
49
81
|
|
|
50
82
|
Stub = Service.rpc_stub_class
|
|
@@ -130,6 +130,17 @@ module Google
|
|
|
130
130
|
include ::Google::Protobuf::MessageExts
|
|
131
131
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
132
132
|
end
|
|
133
|
+
|
|
134
|
+
# Request message for ExpungeSupportEventSubscription.
|
|
135
|
+
# @!attribute [rw] name
|
|
136
|
+
# @return [::String]
|
|
137
|
+
# Required. The name of the support event subscription to expunge.
|
|
138
|
+
# Format:
|
|
139
|
+
# organizations/\\{organization_id}/supportEventSubscriptions/\\{subscription_id}
|
|
140
|
+
class ExpungeSupportEventSubscriptionRequest
|
|
141
|
+
include ::Google::Protobuf::MessageExts
|
|
142
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
143
|
+
end
|
|
133
144
|
end
|
|
134
145
|
end
|
|
135
146
|
end
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Protobuf
|
|
22
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
|
23
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
|
24
|
+
# or the response type of an API method. For instance:
|
|
25
|
+
#
|
|
26
|
+
# service Foo {
|
|
27
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
28
|
+
# }
|
|
29
|
+
class Empty
|
|
30
|
+
include ::Google::Protobuf::MessageExts
|
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-support-v2beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -128,6 +128,7 @@ files:
|
|
|
128
128
|
- proto_docs/google/cloud/support/v2beta/support_event_subscription.rb
|
|
129
129
|
- proto_docs/google/cloud/support/v2beta/support_event_subscription_service.rb
|
|
130
130
|
- proto_docs/google/protobuf/duration.rb
|
|
131
|
+
- proto_docs/google/protobuf/empty.rb
|
|
131
132
|
- proto_docs/google/protobuf/field_mask.rb
|
|
132
133
|
- proto_docs/google/protobuf/timestamp.rb
|
|
133
134
|
homepage: https://github.com/googleapis/google-cloud-ruby
|