google-apis-cloudsupport_v2beta 0.52.0 → 0.54.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: 58cb3c94c91c6bc45ad91f9ebc61504fcb310874fcf71306ad50b015fe844813
4
- data.tar.gz: 606fde34540b4e765a52324363c1737904d1deb8e60bb8e0170e57ecb0530f48
3
+ metadata.gz: 076c8a4e693b7366128f8c08c6415d826b6e36caae364123fab0e81423fdab1f
4
+ data.tar.gz: b102ab0b3dc632ca0072801e00f015905189a3e430f88f977dc6aae13126d27d
5
5
  SHA512:
6
- metadata.gz: 4e1eb81800112d1f324f229532c2651bf1ef84324a654d1c21833614bad757918711b8d03134cbb85b676dbc490329b48a5ccd7dffcca32b863f32341f11d677
7
- data.tar.gz: df3650b47fafa50d3dc151bfd5d0942fdd2caeb4e4827f3001bbd9cffd20ad69887af6ea696912e040747c42394e7cf5815c11891912a771c753de0f5b9e6c7c
6
+ metadata.gz: 5899037a4ebd2d7bec9f57cab8eabcb3f948d72a8bcb4f9d9fed293624bcb6135f9de9a85e20bafc178a9ce205891fe3544eb31f6ea1a146bd5451b53832d270
7
+ data.tar.gz: fc9d77637249f50d3e6a0227b796572f65c13c05a5dff3784f0ad42b821eb145f4af0148e1e24260c108bb0b6a293204acc3f7d6f06561a4a7e01fced3fed059
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudsupport_v2beta
2
2
 
3
+ ### v0.54.0 (2026-08-02)
4
+
5
+ * Regenerated from discovery document revision 20260726
6
+
7
+ ### v0.53.0 (2026-07-12)
8
+
9
+ * Regenerated from discovery document revision 20260707
10
+
3
11
  ### v0.52.0 (2026-06-14)
4
12
 
5
13
  * Regenerated using generator version 0.19.0
@@ -813,6 +813,22 @@ module Google
813
813
  end
814
814
  end
815
815
 
816
+ # A generic empty message that you can re-use to avoid defining duplicated empty
817
+ # messages in your APIs. A typical example is to use it as the request or the
818
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
819
+ # protobuf.Empty) returns (google.protobuf.Empty); `
820
+ class Empty
821
+ include Google::Apis::Core::Hashable
822
+
823
+ def initialize(**args)
824
+ update!(**args)
825
+ end
826
+
827
+ # Update properties of this object
828
+ def update!(**args)
829
+ end
830
+ end
831
+
816
832
  # The request message for the EscalateCase endpoint.
817
833
  class EscalateCaseRequest
818
834
  include Google::Apis::Core::Hashable
@@ -858,6 +874,19 @@ module Google
858
874
  end
859
875
  end
860
876
 
877
+ # Request message for ExpungeSupportEventSubscription.
878
+ class ExpungeSupportEventSubscriptionRequest
879
+ include Google::Apis::Core::Hashable
880
+
881
+ def initialize(**args)
882
+ update!(**args)
883
+ end
884
+
885
+ # Update properties of this object
886
+ def update!(**args)
887
+ end
888
+ end
889
+
861
890
  # A feed item associated with a support case.
862
891
  class FeedItem
863
892
  include Google::Apis::Core::Hashable
@@ -993,6 +1022,32 @@ module Google
993
1022
  end
994
1023
  end
995
1024
 
1025
+ # Response message for ListSupportEventSubscriptions.
1026
+ class ListSupportEventSubscriptionsResponse
1027
+ include Google::Apis::Core::Hashable
1028
+
1029
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
1030
+ # field is omitted, there are no subsequent pages.
1031
+ # Corresponds to the JSON property `nextPageToken`
1032
+ # @return [String]
1033
+ attr_accessor :next_page_token
1034
+
1035
+ # The support event subscriptions.
1036
+ # Corresponds to the JSON property `supportEventSubscriptions`
1037
+ # @return [Array<Google::Apis::CloudsupportV2beta::SupportEventSubscription>]
1038
+ attr_accessor :support_event_subscriptions
1039
+
1040
+ def initialize(**args)
1041
+ update!(**args)
1042
+ end
1043
+
1044
+ # Update properties of this object
1045
+ def update!(**args)
1046
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1047
+ @support_event_subscriptions = args[:support_event_subscriptions] if args.key?(:support_event_subscriptions)
1048
+ end
1049
+ end
1050
+
996
1051
  # # gdata.* are outside protos with mising documentation
997
1052
  class Media
998
1053
  include Google::Apis::Core::Hashable
@@ -1335,6 +1390,69 @@ module Google
1335
1390
  end
1336
1391
  end
1337
1392
 
1393
+ # A support event subscription.
1394
+ class SupportEventSubscription
1395
+ include Google::Apis::Core::Hashable
1396
+
1397
+ # Output only. The time at which the subscription was created.
1398
+ # Corresponds to the JSON property `createTime`
1399
+ # @return [String]
1400
+ attr_accessor :create_time
1401
+
1402
+ # Output only. The time at which the subscription was deleted.
1403
+ # Corresponds to the JSON property `deleteTime`
1404
+ # @return [String]
1405
+ attr_accessor :delete_time
1406
+
1407
+ # Output only. Reason why subscription is failing. State of subscription must be
1408
+ # FAILING in order for this to have a value.
1409
+ # Corresponds to the JSON property `failureReason`
1410
+ # @return [String]
1411
+ attr_accessor :failure_reason
1412
+
1413
+ # Identifier. The resource name of the support event subscription.
1414
+ # Corresponds to the JSON property `name`
1415
+ # @return [String]
1416
+ attr_accessor :name
1417
+
1418
+ # Required. The name of the Pub/Sub topic to publish notifications to. Format:
1419
+ # projects/`project`/topics/`topic`
1420
+ # Corresponds to the JSON property `pubSubTopic`
1421
+ # @return [String]
1422
+ attr_accessor :pub_sub_topic
1423
+
1424
+ # Output only. The time at which the subscription will be purged.
1425
+ # Corresponds to the JSON property `purgeTime`
1426
+ # @return [String]
1427
+ attr_accessor :purge_time
1428
+
1429
+ # Output only. The state of the subscription.
1430
+ # Corresponds to the JSON property `state`
1431
+ # @return [String]
1432
+ attr_accessor :state
1433
+
1434
+ # Output only. The time at which the subscription was last updated.
1435
+ # Corresponds to the JSON property `updateTime`
1436
+ # @return [String]
1437
+ attr_accessor :update_time
1438
+
1439
+ def initialize(**args)
1440
+ update!(**args)
1441
+ end
1442
+
1443
+ # Update properties of this object
1444
+ def update!(**args)
1445
+ @create_time = args[:create_time] if args.key?(:create_time)
1446
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
1447
+ @failure_reason = args[:failure_reason] if args.key?(:failure_reason)
1448
+ @name = args[:name] if args.key?(:name)
1449
+ @pub_sub_topic = args[:pub_sub_topic] if args.key?(:pub_sub_topic)
1450
+ @purge_time = args[:purge_time] if args.key?(:purge_time)
1451
+ @state = args[:state] if args.key?(:state)
1452
+ @update_time = args[:update_time] if args.key?(:update_time)
1453
+ end
1454
+ end
1455
+
1338
1456
  # Stores text attached to a support object.
1339
1457
  class TextContent
1340
1458
  include Google::Apis::Core::Hashable
@@ -1353,6 +1471,19 @@ module Google
1353
1471
  @plain_text = args[:plain_text] if args.key?(:plain_text)
1354
1472
  end
1355
1473
  end
1474
+
1475
+ # Request message for UndeleteSupportEventSubscription.
1476
+ class UndeleteSupportEventSubscriptionRequest
1477
+ include Google::Apis::Core::Hashable
1478
+
1479
+ def initialize(**args)
1480
+ update!(**args)
1481
+ end
1482
+
1483
+ # Update properties of this object
1484
+ def update!(**args)
1485
+ end
1486
+ end
1356
1487
  end
1357
1488
  end
1358
1489
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudsupportV2beta
18
18
  # Version of the google-apis-cloudsupport_v2beta gem
19
- GEM_VERSION = "0.52.0"
19
+ GEM_VERSION = "0.54.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260519"
25
+ REVISION = "20260726"
26
26
  end
27
27
  end
28
28
  end
@@ -124,6 +124,12 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class Empty
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
127
133
  class EscalateCaseRequest
128
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
135
 
@@ -136,6 +142,12 @@ module Google
136
142
  include Google::Apis::Core::JsonObjectSupport
137
143
  end
138
144
 
145
+ class ExpungeSupportEventSubscriptionRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
139
151
  class FeedItem
140
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
153
 
@@ -160,6 +172,12 @@ module Google
160
172
  include Google::Apis::Core::JsonObjectSupport
161
173
  end
162
174
 
175
+ class ListSupportEventSubscriptionsResponse
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
163
181
  class Media
164
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
183
 
@@ -196,12 +214,24 @@ module Google
196
214
  include Google::Apis::Core::JsonObjectSupport
197
215
  end
198
216
 
217
+ class SupportEventSubscription
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
199
223
  class TextContent
200
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
225
 
202
226
  include Google::Apis::Core::JsonObjectSupport
203
227
  end
204
228
 
229
+ class UndeleteSupportEventSubscriptionRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
205
235
  class Actor
206
236
  # @private
207
237
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -402,6 +432,12 @@ module Google
402
432
  end
403
433
  end
404
434
 
435
+ class Empty
436
+ # @private
437
+ class Representation < Google::Apis::Core::JsonRepresentation
438
+ end
439
+ end
440
+
405
441
  class EscalateCaseRequest
406
442
  # @private
407
443
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -418,6 +454,12 @@ module Google
418
454
  end
419
455
  end
420
456
 
457
+ class ExpungeSupportEventSubscriptionRequest
458
+ # @private
459
+ class Representation < Google::Apis::Core::JsonRepresentation
460
+ end
461
+ end
462
+
421
463
  class FeedItem
422
464
  # @private
423
465
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -460,6 +502,15 @@ module Google
460
502
  end
461
503
  end
462
504
 
505
+ class ListSupportEventSubscriptionsResponse
506
+ # @private
507
+ class Representation < Google::Apis::Core::JsonRepresentation
508
+ property :next_page_token, as: 'nextPageToken'
509
+ collection :support_event_subscriptions, as: 'supportEventSubscriptions', class: Google::Apis::CloudsupportV2beta::SupportEventSubscription, decorator: Google::Apis::CloudsupportV2beta::SupportEventSubscription::Representation
510
+
511
+ end
512
+ end
513
+
463
514
  class Media
464
515
  # @private
465
516
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -550,12 +601,32 @@ module Google
550
601
  end
551
602
  end
552
603
 
604
+ class SupportEventSubscription
605
+ # @private
606
+ class Representation < Google::Apis::Core::JsonRepresentation
607
+ property :create_time, as: 'createTime'
608
+ property :delete_time, as: 'deleteTime'
609
+ property :failure_reason, as: 'failureReason'
610
+ property :name, as: 'name'
611
+ property :pub_sub_topic, as: 'pubSubTopic'
612
+ property :purge_time, as: 'purgeTime'
613
+ property :state, as: 'state'
614
+ property :update_time, as: 'updateTime'
615
+ end
616
+ end
617
+
553
618
  class TextContent
554
619
  # @private
555
620
  class Representation < Google::Apis::Core::JsonRepresentation
556
621
  property :plain_text, as: 'plainText'
557
622
  end
558
623
  end
624
+
625
+ class UndeleteSupportEventSubscriptionRequest
626
+ # @private
627
+ class Representation < Google::Apis::Core::JsonRepresentation
628
+ end
629
+ end
559
630
  end
560
631
  end
561
632
  end
@@ -841,6 +841,328 @@ module Google
841
841
  command.query['quotaUser'] = quota_user unless quota_user.nil?
842
842
  execute_or_queue_command(command, &block)
843
843
  end
844
+
845
+ # Creates a support event subscription for an organization. EXAMPLES: cURL: ```
846
+ # shell parent="organizations/123456789" curl \ --request POST \ --header "
847
+ # Authorization: Bearer $(gcloud auth print-access-token)" \ --header 'Content-
848
+ # Type: application/json' \ --data '` "pub_sub_topic": "projects/my-project/
849
+ # topics/my-topic" `' \ "https://cloudsupport.googleapis.com/v2beta/$parent/
850
+ # supportEventSubscriptions" ``` Python: ```python import googleapiclient.
851
+ # discovery api_version = "v2beta" supportApiService = googleapiclient.discovery.
852
+ # build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
853
+ # https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
854
+ # request = supportApiService.supportEventSubscriptions().create( parent="
855
+ # organizations/123456789", body=` "pub_sub_topic": "projects/my-project/topics/
856
+ # my-topic" `, ) print(request.execute()) ```
857
+ # @param [String] parent
858
+ # Required. The parent resource name where the support event subscription will
859
+ # be created. Format: organizations/`organization_id`
860
+ # @param [Google::Apis::CloudsupportV2beta::SupportEventSubscription] support_event_subscription_object
861
+ # @param [String] fields
862
+ # Selector specifying which fields to include in a partial response.
863
+ # @param [String] quota_user
864
+ # Available to use for quota purposes for server-side applications. Can be any
865
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
866
+ # @param [Google::Apis::RequestOptions] options
867
+ # Request-specific options
868
+ #
869
+ # @yield [result, err] Result & error if block supplied
870
+ # @yieldparam result [Google::Apis::CloudsupportV2beta::SupportEventSubscription] parsed result object
871
+ # @yieldparam err [StandardError] error object if request failed
872
+ #
873
+ # @return [Google::Apis::CloudsupportV2beta::SupportEventSubscription]
874
+ #
875
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
876
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
877
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
878
+ def create_organization_support_event_subscription(parent, support_event_subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block)
879
+ command = make_simple_command(:post, 'v2beta/{+parent}/supportEventSubscriptions', options)
880
+ command.request_representation = Google::Apis::CloudsupportV2beta::SupportEventSubscription::Representation
881
+ command.request_object = support_event_subscription_object
882
+ command.response_representation = Google::Apis::CloudsupportV2beta::SupportEventSubscription::Representation
883
+ command.response_class = Google::Apis::CloudsupportV2beta::SupportEventSubscription
884
+ command.params['parent'] = parent unless parent.nil?
885
+ command.query['fields'] = fields unless fields.nil?
886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
887
+ execute_or_queue_command(command, &block)
888
+ end
889
+
890
+ # Soft deletes a support event subscription. EXAMPLES: cURL: ```shell
891
+ # support_event_subscription="organizations/123456789/supportEventSubscriptions/
892
+ # abcdef123456" curl \ --request DELETE \ --header "Authorization: Bearer $(
893
+ # gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2beta/
894
+ # $support_event_subscription" ``` Python: ```python import googleapiclient.
895
+ # discovery api_version = "v2beta" supportApiService = googleapiclient.discovery.
896
+ # build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
897
+ # https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
898
+ # request = supportApiService).supportEventSubscriptions().delete( name="
899
+ # organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(
900
+ # request.execute()) ```
901
+ # @param [String] name
902
+ # Required. The name of the support event subscription to delete. Format:
903
+ # organizations/`organization_id`/supportEventSubscriptions/`subscription_id`
904
+ # @param [String] fields
905
+ # Selector specifying which fields to include in a partial response.
906
+ # @param [String] quota_user
907
+ # Available to use for quota purposes for server-side applications. Can be any
908
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
909
+ # @param [Google::Apis::RequestOptions] options
910
+ # Request-specific options
911
+ #
912
+ # @yield [result, err] Result & error if block supplied
913
+ # @yieldparam result [Google::Apis::CloudsupportV2beta::SupportEventSubscription] parsed result object
914
+ # @yieldparam err [StandardError] error object if request failed
915
+ #
916
+ # @return [Google::Apis::CloudsupportV2beta::SupportEventSubscription]
917
+ #
918
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
919
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
920
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
921
+ def delete_organization_support_event_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
922
+ command = make_simple_command(:delete, 'v2beta/{+name}', options)
923
+ command.response_representation = Google::Apis::CloudsupportV2beta::SupportEventSubscription::Representation
924
+ command.response_class = Google::Apis::CloudsupportV2beta::SupportEventSubscription
925
+ command.params['name'] = name unless name.nil?
926
+ command.query['fields'] = fields unless fields.nil?
927
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
928
+ execute_or_queue_command(command, &block)
929
+ end
930
+
931
+ # Expunges a support event subscription. EXAMPLES: cURL: ```shell
932
+ # support_event_subscription="organizations/123456789/supportEventSubscriptions/
933
+ # abcdef123456" curl \ --request POST \ --header "Authorization: Bearer $(gcloud
934
+ # auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2beta/$
935
+ # support_event_subscription:expunge" ``` Python: ```python import
936
+ # googleapiclient.discovery api_version = "v2beta" supportApiService =
937
+ # googleapiclient.discovery.build( serviceName="cloudsupport", version=
938
+ # api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$
939
+ # discovery/rest?version=`api_version`", ) request = supportApiService.
940
+ # supportEventSubscriptions().expunge( name="organizations/123456789/
941
+ # supportEventSubscriptions/abcdef123456" ) print(request.execute()) ```
942
+ # @param [String] name
943
+ # Required. The name of the support event subscription to expunge. Format:
944
+ # organizations/`organization_id`/supportEventSubscriptions/`subscription_id`
945
+ # @param [Google::Apis::CloudsupportV2beta::ExpungeSupportEventSubscriptionRequest] expunge_support_event_subscription_request_object
946
+ # @param [String] fields
947
+ # Selector specifying which fields to include in a partial response.
948
+ # @param [String] quota_user
949
+ # Available to use for quota purposes for server-side applications. Can be any
950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
951
+ # @param [Google::Apis::RequestOptions] options
952
+ # Request-specific options
953
+ #
954
+ # @yield [result, err] Result & error if block supplied
955
+ # @yieldparam result [Google::Apis::CloudsupportV2beta::Empty] parsed result object
956
+ # @yieldparam err [StandardError] error object if request failed
957
+ #
958
+ # @return [Google::Apis::CloudsupportV2beta::Empty]
959
+ #
960
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
961
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
962
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
963
+ def expunge_support_event_subscription(name, expunge_support_event_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
964
+ command = make_simple_command(:post, 'v2beta/{+name}:expunge', options)
965
+ command.request_representation = Google::Apis::CloudsupportV2beta::ExpungeSupportEventSubscriptionRequest::Representation
966
+ command.request_object = expunge_support_event_subscription_request_object
967
+ command.response_representation = Google::Apis::CloudsupportV2beta::Empty::Representation
968
+ command.response_class = Google::Apis::CloudsupportV2beta::Empty
969
+ command.params['name'] = name unless name.nil?
970
+ command.query['fields'] = fields unless fields.nil?
971
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
972
+ execute_or_queue_command(command, &block)
973
+ end
974
+
975
+ # Gets a support event subscription. EXAMPLES: cURL: ```shell
976
+ # support_event_subscription="organizations/123456789/supportEventSubscriptions/
977
+ # abcdef123456" curl \ --header "Authorization: Bearer $(gcloud auth print-
978
+ # access-token)" \ "https://cloudsupport.googleapis.com/v2beta/$
979
+ # support_event_subscription" ``` Python: ```python import googleapiclient.
980
+ # discovery api_version = "v2beta" supportApiService = googleapiclient.discovery.
981
+ # build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
982
+ # https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
983
+ # request = supportApiService.supportEventSubscriptions().get( name="
984
+ # organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(
985
+ # request.execute()) ```
986
+ # @param [String] name
987
+ # Required. The name of the support event subscription to retrieve. Format:
988
+ # organizations/`organization_id`/supportEventSubscriptions/`subscription_id`
989
+ # @param [String] fields
990
+ # Selector specifying which fields to include in a partial response.
991
+ # @param [String] quota_user
992
+ # Available to use for quota purposes for server-side applications. Can be any
993
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
994
+ # @param [Google::Apis::RequestOptions] options
995
+ # Request-specific options
996
+ #
997
+ # @yield [result, err] Result & error if block supplied
998
+ # @yieldparam result [Google::Apis::CloudsupportV2beta::SupportEventSubscription] parsed result object
999
+ # @yieldparam err [StandardError] error object if request failed
1000
+ #
1001
+ # @return [Google::Apis::CloudsupportV2beta::SupportEventSubscription]
1002
+ #
1003
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1004
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1005
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1006
+ def get_organization_support_event_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
1007
+ command = make_simple_command(:get, 'v2beta/{+name}', options)
1008
+ command.response_representation = Google::Apis::CloudsupportV2beta::SupportEventSubscription::Representation
1009
+ command.response_class = Google::Apis::CloudsupportV2beta::SupportEventSubscription
1010
+ command.params['name'] = name unless name.nil?
1011
+ command.query['fields'] = fields unless fields.nil?
1012
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1013
+ execute_or_queue_command(command, &block)
1014
+ end
1015
+
1016
+ # Lists support event subscriptions. EXAMPLES: cURL: ```shell parent="
1017
+ # organizations/123456789" curl \ --header "Authorization: Bearer $(gcloud auth
1018
+ # print-access-token)" \ "https://cloudsupport.googleapis.com/v2beta/$parent/
1019
+ # supportEventSubscriptions" ``` Python: ```python import googleapiclient.
1020
+ # discovery api_version = "v2beta" supportApiService = googleapiclient.discovery.
1021
+ # build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
1022
+ # https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
1023
+ # request = supportApiService.supportEventSubscriptions().list( parent="
1024
+ # organizations/123456789" ) print(request.execute()) ```
1025
+ # @param [String] parent
1026
+ # Required. The fully qualified name of the Cloud resource to list support event
1027
+ # subscriptions under. Format: organizations/`organization_id`
1028
+ # @param [String] filter
1029
+ # Optional. Filter expression based on AIP-160. Supported fields: -
1030
+ # pub_sub_topic - state Examples: - `pub_sub_topic="projects/example-project/
1031
+ # topics/example-topic"` - `state=WORKING` - `pub_sub_topic="projects/example-
1032
+ # project/topics/example-topic" AND state=WORKING`
1033
+ # @param [Fixnum] page_size
1034
+ # Optional. The maximum number of support event subscriptions to return.
1035
+ # @param [String] page_token
1036
+ # Optional. A token identifying the page of results to return. If unspecified,
1037
+ # the first page is retrieved. When paginating, all other parameters provided to
1038
+ # `ListSupportEventSubscriptions` must match the call that provided the page
1039
+ # token.
1040
+ # @param [Boolean] show_deleted
1041
+ # Optional. Whether to show deleted subscriptions. By default, deleted
1042
+ # subscriptions are not returned.
1043
+ # @param [String] fields
1044
+ # Selector specifying which fields to include in a partial response.
1045
+ # @param [String] quota_user
1046
+ # Available to use for quota purposes for server-side applications. Can be any
1047
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1048
+ # @param [Google::Apis::RequestOptions] options
1049
+ # Request-specific options
1050
+ #
1051
+ # @yield [result, err] Result & error if block supplied
1052
+ # @yieldparam result [Google::Apis::CloudsupportV2beta::ListSupportEventSubscriptionsResponse] parsed result object
1053
+ # @yieldparam err [StandardError] error object if request failed
1054
+ #
1055
+ # @return [Google::Apis::CloudsupportV2beta::ListSupportEventSubscriptionsResponse]
1056
+ #
1057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1060
+ def list_organization_support_event_subscriptions(parent, filter: nil, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
1061
+ command = make_simple_command(:get, 'v2beta/{+parent}/supportEventSubscriptions', options)
1062
+ command.response_representation = Google::Apis::CloudsupportV2beta::ListSupportEventSubscriptionsResponse::Representation
1063
+ command.response_class = Google::Apis::CloudsupportV2beta::ListSupportEventSubscriptionsResponse
1064
+ command.params['parent'] = parent unless parent.nil?
1065
+ command.query['filter'] = filter unless filter.nil?
1066
+ command.query['pageSize'] = page_size unless page_size.nil?
1067
+ command.query['pageToken'] = page_token unless page_token.nil?
1068
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
1069
+ command.query['fields'] = fields unless fields.nil?
1070
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1071
+ execute_or_queue_command(command, &block)
1072
+ end
1073
+
1074
+ # Updates a support event subscription. EXAMPLES: cURL: ```shell
1075
+ # support_event_subscription="organizations/123456789/supportEventSubscriptions/
1076
+ # abcdef123456" curl \ --request PATCH \ --header "Authorization: Bearer $(
1077
+ # gcloud auth print-access-token)" \ --header "Content-Type: application/json" \
1078
+ # --data '` "pub_sub_topic": "projects/my-project/topics/new-topic" `' \ "https:/
1079
+ # /cloudsupport.googleapis.com/v2beta/$support_event_subscription?updateMask=
1080
+ # pub_sub_topic" ``` Python: ```python import googleapiclient.discovery
1081
+ # api_version = "v2beta" supportApiService = googleapiclient.discovery.build(
1082
+ # serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://
1083
+ # cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", ) request =
1084
+ # supportApiService.supportEventSubscriptions().patch( name="organizations/
1085
+ # 123456789/supportEventSubscriptions/abcdef123456", body=` "pub_sub_topic": "
1086
+ # projects/my-project/topics/new-topic" `, ) print(request.execute()) ```
1087
+ # @param [String] name
1088
+ # Identifier. The resource name of the support event subscription.
1089
+ # @param [Google::Apis::CloudsupportV2beta::SupportEventSubscription] support_event_subscription_object
1090
+ # @param [String] update_mask
1091
+ # Optional. The list of fields to update. The only supported value is
1092
+ # pub_sub_topic.
1093
+ # @param [String] fields
1094
+ # Selector specifying which fields to include in a partial response.
1095
+ # @param [String] quota_user
1096
+ # Available to use for quota purposes for server-side applications. Can be any
1097
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1098
+ # @param [Google::Apis::RequestOptions] options
1099
+ # Request-specific options
1100
+ #
1101
+ # @yield [result, err] Result & error if block supplied
1102
+ # @yieldparam result [Google::Apis::CloudsupportV2beta::SupportEventSubscription] parsed result object
1103
+ # @yieldparam err [StandardError] error object if request failed
1104
+ #
1105
+ # @return [Google::Apis::CloudsupportV2beta::SupportEventSubscription]
1106
+ #
1107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1110
+ def patch_organization_support_event_subscription(name, support_event_subscription_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1111
+ command = make_simple_command(:patch, 'v2beta/{+name}', options)
1112
+ command.request_representation = Google::Apis::CloudsupportV2beta::SupportEventSubscription::Representation
1113
+ command.request_object = support_event_subscription_object
1114
+ command.response_representation = Google::Apis::CloudsupportV2beta::SupportEventSubscription::Representation
1115
+ command.response_class = Google::Apis::CloudsupportV2beta::SupportEventSubscription
1116
+ command.params['name'] = name unless name.nil?
1117
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1118
+ command.query['fields'] = fields unless fields.nil?
1119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1120
+ execute_or_queue_command(command, &block)
1121
+ end
1122
+
1123
+ # Undeletes a support event subscription. EXAMPLES: cURL: ```shell
1124
+ # support_event_subscription="organizations/123456789/supportEventSubscriptions/
1125
+ # abcdef123456" curl \ --request POST \ --header "Authorization: Bearer $(gcloud
1126
+ # auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2beta/$
1127
+ # support_event_subscription:undelete" ``` Python: ```python import
1128
+ # googleapiclient.discovery api_version = "v2beta" supportApiService =
1129
+ # googleapiclient.discovery.build( serviceName="cloudsupport", version=
1130
+ # api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$
1131
+ # discovery/rest?version=`api_version`", ) request = supportApiService.
1132
+ # supportEventSubscriptions().undelete( name="organizations/123456789/
1133
+ # supportEventSubscriptions/abcdef123456" ) print(request.execute()) ```
1134
+ # @param [String] name
1135
+ # Required. The name of the support event subscription to undelete. Format:
1136
+ # organizations/`organization_id`/supportEventSubscriptions/`subscription_id`
1137
+ # @param [Google::Apis::CloudsupportV2beta::UndeleteSupportEventSubscriptionRequest] undelete_support_event_subscription_request_object
1138
+ # @param [String] fields
1139
+ # Selector specifying which fields to include in a partial response.
1140
+ # @param [String] quota_user
1141
+ # Available to use for quota purposes for server-side applications. Can be any
1142
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1143
+ # @param [Google::Apis::RequestOptions] options
1144
+ # Request-specific options
1145
+ #
1146
+ # @yield [result, err] Result & error if block supplied
1147
+ # @yieldparam result [Google::Apis::CloudsupportV2beta::SupportEventSubscription] parsed result object
1148
+ # @yieldparam err [StandardError] error object if request failed
1149
+ #
1150
+ # @return [Google::Apis::CloudsupportV2beta::SupportEventSubscription]
1151
+ #
1152
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1153
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1154
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1155
+ def undelete_support_event_subscription(name, undelete_support_event_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1156
+ command = make_simple_command(:post, 'v2beta/{+name}:undelete', options)
1157
+ command.request_representation = Google::Apis::CloudsupportV2beta::UndeleteSupportEventSubscriptionRequest::Representation
1158
+ command.request_object = undelete_support_event_subscription_request_object
1159
+ command.response_representation = Google::Apis::CloudsupportV2beta::SupportEventSubscription::Representation
1160
+ command.response_class = Google::Apis::CloudsupportV2beta::SupportEventSubscription
1161
+ command.params['name'] = name unless name.nil?
1162
+ command.query['fields'] = fields unless fields.nil?
1163
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1164
+ execute_or_queue_command(command, &block)
1165
+ end
844
1166
 
845
1167
  protected
846
1168
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudsupport_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2beta/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2beta/v0.52.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2beta/v0.54.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2beta
62
62
  rdoc_options: []
63
63
  require_paths: