google-cloud-support-v2 1.10.0 → 1.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a551be7e8071a2a4517b924a395d4b0eecb4d5de6bd8d63e3c277bb9ac995555
4
- data.tar.gz: 44decd56b73c5135be7162f569b5dc7c0b758cb10eee5d3b59e4c3820f64a68f
3
+ metadata.gz: 8d1875817c20c9e7429a3790f89ee5b43180f72089f306da5ebb50a212bf9c36
4
+ data.tar.gz: 94e790cf3b2b02484234ad5335da0506c5faffc6877fb354e6c6730cde9591ec
5
5
  SHA512:
6
- metadata.gz: cfa6a7e2142dafe6836ed2b43bc7f05041eec44ca91742f1e587c2f077a3be0e305b7cbc85340b189cbc1b231ee24d4088bfe2340f5292faddb1597b5632eb1e
7
- data.tar.gz: 0ff808f318668f84e8e6a526254b67247224d599d8112d4036841e4599ed614f617c2dad8cb7b3dce547d0f422b9c2e47053bfee6883a679ed4f42eea839210a
6
+ metadata.gz: 0320025f10865dc7853b27f112f480187acf8737a4c0315bcb8c5c7dca992e5d0841747ae7677f1ab30ab7b321b9701565f9b586748b424b4ae414b5647e566c
7
+ data.tar.gz: 212b5b51ccdaccda72bfcc50f5542008cb481baba50e8f9e09ee4ac2e465255c5558405521221717b71acc6ff50bd61d54c40f51f5b9fe9849a1a9671bb89bdd
@@ -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/v2/$support_event_subscription:expunge"
752
+ # ```
753
+ #
754
+ # Python:
755
+ #
756
+ # ```python
757
+ # import googleapiclient.discovery
758
+ #
759
+ # api_version = "v2"
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::V2::ExpungeSupportEventSubscriptionRequest} or an equivalent Hash.
775
+ #
776
+ # @param request [::Google::Cloud::Support::V2::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/v2"
802
+ #
803
+ # # Create a client object. The client can be reused for multiple calls.
804
+ # client = Google::Cloud::Support::V2::SupportEventSubscriptionService::Client.new
805
+ #
806
+ # # Create a request. To set request fields, pass in keyword arguments.
807
+ # request = Google::Cloud::Support::V2::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::V2::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::V2::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
@@ -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/v2/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 = "\n@google/cloud/support/v2/support_event_subscription_service.proto\x12\x17google.cloud.support.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/support/v2/support_event_subscription.proto\x1a google/protobuf/field_mask.proto\"\xd1\x01\n%CreateSupportEventSubscriptionRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x63loudsupport.googleapis.com/SupportEventSubscription\x12Z\n\x1asupport_event_subscription\x18\x02 \x01(\x0b\x32\x31.google.cloud.support.v2.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\"\x98\x01\n%ListSupportEventSubscriptionsResponse\x12V\n\x1bsupport_event_subscriptions\x18\x01 \x03(\x0b\x32\x31.google.cloud.support.v2.SupportEventSubscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n%UpdateSupportEventSubscriptionRequest\x12Z\n\x1asupport_event_subscription\x18\x01 \x01(\x0b\x32\x31.google.cloud.support.v2.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\xfb\x0b\n\x1fSupportEventSubscriptionService\x12\x87\x02\n\x1e\x43reateSupportEventSubscription\x12>.google.cloud.support.v2.CreateSupportEventSubscriptionRequest\x1a\x31.google.cloud.support.v2.SupportEventSubscription\"r\xda\x41!parent,support_event_subscription\x82\xd3\xe4\x93\x02H\"*/v2/{parent=*/*}/supportEventSubscriptions:\x1asupport_event_subscription\x12\xc8\x01\n\x1bGetSupportEventSubscription\x12;.google.cloud.support.v2.GetSupportEventSubscriptionRequest\x1a\x31.google.cloud.support.v2.SupportEventSubscription\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v2/{name=*/*/supportEventSubscriptions/*}\x12\xdb\x01\n\x1dListSupportEventSubscriptions\x12=.google.cloud.support.v2.ListSupportEventSubscriptionsRequest\x1a>.google.cloud.support.v2.ListSupportEventSubscriptionsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=*/*}/supportEventSubscriptions\x12\xa8\x02\n\x1eUpdateSupportEventSubscription\x12>.google.cloud.support.v2.UpdateSupportEventSubscriptionRequest\x1a\x31.google.cloud.support.v2.SupportEventSubscription\"\x92\x01\xda\x41&support_event_subscription,update_mask\x82\xd3\xe4\x93\x02\x63\x32\x45/v2/{support_event_subscription.name=*/*/supportEventSubscriptions/*}:\x1asupport_event_subscription\x12\xce\x01\n\x1e\x44\x65leteSupportEventSubscription\x12>.google.cloud.support.v2.DeleteSupportEventSubscriptionRequest\x1a\x31.google.cloud.support.v2.SupportEventSubscription\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v2/{name=*/*/supportEventSubscriptions/*}\x12\xd7\x01\n UndeleteSupportEventSubscription\x12@.google.cloud.support.v2.UndeleteSupportEventSubscriptionRequest\x1a\x31.google.cloud.support.v2.SupportEventSubscription\">\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=*/*/supportEventSubscriptions/*}:undelete:\x01*\x1aO\xca\x41\x1b\x63loudsupport.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xcd\x01\n\x1b\x63om.google.cloud.support.v2B$SupportEventSubscriptionServiceProtoP\x01Z5cloud.google.com/go/support/apiv2/supportpb;supportpb\xaa\x02\x17Google.Cloud.Support.V2\xca\x02\x17Google\\Cloud\\Support\\V2\xea\x02\x1aGoogle::Cloud::Support::V2b\x06proto3"
16
+ descriptor_data = "\n@google/cloud/support/v2/support_event_subscription_service.proto\x12\x17google.cloud.support.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/support/v2/support_event_subscription.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xd1\x01\n%CreateSupportEventSubscriptionRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x63loudsupport.googleapis.com/SupportEventSubscription\x12Z\n\x1asupport_event_subscription\x18\x02 \x01(\x0b\x32\x31.google.cloud.support.v2.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\"\x98\x01\n%ListSupportEventSubscriptionsResponse\x12V\n\x1bsupport_event_subscriptions\x18\x01 \x03(\x0b\x32\x31.google.cloud.support.v2.SupportEventSubscription\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb9\x01\n%UpdateSupportEventSubscriptionRequest\x12Z\n\x1asupport_event_subscription\x18\x01 \x01(\x0b\x32\x31.google.cloud.support.v2.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\x92\x0e\n\x1fSupportEventSubscriptionService\x12\x93\x02\n\x1e\x43reateSupportEventSubscription\x12>.google.cloud.support.v2.CreateSupportEventSubscriptionRequest\x1a\x31.google.cloud.support.v2.SupportEventSubscription\"~\xda\x41!parent,support_event_subscription\x82\xd3\xe4\x93\x02T\"6/v2/{parent=organizations/*}/supportEventSubscriptions:\x1asupport_event_subscription\x12\xd4\x01\n\x1bGetSupportEventSubscription\x12;.google.cloud.support.v2.GetSupportEventSubscriptionRequest\x1a\x31.google.cloud.support.v2.SupportEventSubscription\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v2/{name=organizations/*/supportEventSubscriptions/*}\x12\xe7\x01\n\x1dListSupportEventSubscriptions\x12=.google.cloud.support.v2.ListSupportEventSubscriptionsRequest\x1a>.google.cloud.support.v2.ListSupportEventSubscriptionsResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v2/{parent=organizations/*}/supportEventSubscriptions\x12\xb4\x02\n\x1eUpdateSupportEventSubscription\x12>.google.cloud.support.v2.UpdateSupportEventSubscriptionRequest\x1a\x31.google.cloud.support.v2.SupportEventSubscription\"\x9e\x01\xda\x41&support_event_subscription,update_mask\x82\xd3\xe4\x93\x02o2Q/v2/{support_event_subscription.name=organizations/*/supportEventSubscriptions/*}:\x1asupport_event_subscription\x12\xda\x01\n\x1e\x44\x65leteSupportEventSubscription\x12>.google.cloud.support.v2.DeleteSupportEventSubscriptionRequest\x1a\x31.google.cloud.support.v2.SupportEventSubscription\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38*6/v2/{name=organizations/*/supportEventSubscriptions/*}\x12\xe3\x01\n UndeleteSupportEventSubscription\x12@.google.cloud.support.v2.UndeleteSupportEventSubscriptionRequest\x1a\x31.google.cloud.support.v2.SupportEventSubscription\"J\x82\xd3\xe4\x93\x02\x44\"?/v2/{name=organizations/*/supportEventSubscriptions/*}:undelete:\x01*\x12\xcc\x01\n\x1f\x45xpungeSupportEventSubscription\x12?.google.cloud.support.v2.ExpungeSupportEventSubscriptionRequest\x1a\x16.google.protobuf.Empty\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\">/v2/{name=organizations/*/supportEventSubscriptions/*}:expunge:\x01*\x1aO\xca\x41\x1b\x63loudsupport.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xcd\x01\n\x1b\x63om.google.cloud.support.v2B$SupportEventSubscriptionServiceProtoP\x01Z5cloud.google.com/go/support/apiv2/supportpb;supportpb\xaa\x02\x17Google.Cloud.Support.V2\xca\x02\x17Google\\Cloud\\Support\\V2\xea\x02\x1aGoogle::Cloud::Support::V2b\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.v2.UpdateSupportEventSubscriptionRequest").msgclass
29
30
  DeleteSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2.DeleteSupportEventSubscriptionRequest").msgclass
30
31
  UndeleteSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2.UndeleteSupportEventSubscriptionRequest").msgclass
32
+ ExpungeSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2.ExpungeSupportEventSubscriptionRequest").msgclass
31
33
  end
32
34
  end
33
35
  end
@@ -37,7 +37,7 @@ module Google
37
37
  rpc :CreateSupportEventSubscription, ::Google::Cloud::Support::V2::CreateSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2::SupportEventSubscription
38
38
  # Gets a support event subscription.
39
39
  rpc :GetSupportEventSubscription, ::Google::Cloud::Support::V2::GetSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2::SupportEventSubscription
40
- # Lists support event subscriptions.
40
+ # Lists support event subscriptions for an organization.
41
41
  rpc :ListSupportEventSubscriptions, ::Google::Cloud::Support::V2::ListSupportEventSubscriptionsRequest, ::Google::Cloud::Support::V2::ListSupportEventSubscriptionsResponse
42
42
  # Updates a support event subscription.
43
43
  rpc :UpdateSupportEventSubscription, ::Google::Cloud::Support::V2::UpdateSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2::SupportEventSubscription
@@ -45,6 +45,38 @@ module Google
45
45
  rpc :DeleteSupportEventSubscription, ::Google::Cloud::Support::V2::DeleteSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2::SupportEventSubscription
46
46
  # Undeletes a support event subscription.
47
47
  rpc :UndeleteSupportEventSubscription, ::Google::Cloud::Support::V2::UndeleteSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2::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/v2/$support_event_subscription:expunge"
60
+ # ```
61
+ #
62
+ # Python:
63
+ #
64
+ # ```python
65
+ # import googleapiclient.discovery
66
+ #
67
+ # api_version = "v2"
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::V2::ExpungeSupportEventSubscriptionRequest, ::Google::Protobuf::Empty
48
80
  end
49
81
 
50
82
  Stub = Service.rpc_stub_class
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Support
23
23
  module V2
24
- VERSION = "1.10.0"
24
+ VERSION = "1.11.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -99,6 +99,7 @@ files:
99
99
  - proto_docs/google/cloud/support/v2/support_event_subscription.rb
100
100
  - proto_docs/google/cloud/support/v2/support_event_subscription_service.rb
101
101
  - proto_docs/google/protobuf/duration.rb
102
+ - proto_docs/google/protobuf/empty.rb
102
103
  - proto_docs/google/protobuf/field_mask.rb
103
104
  - proto_docs/google/protobuf/timestamp.rb
104
105
  homepage: https://github.com/googleapis/google-cloud-ruby